From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16154 invoked by alias); 14 Jan 2007 02:10:23 -0000 Received: (qmail 16136 invoked by uid 48); 14 Jan 2007 02:10:11 -0000 Date: Sun, 14 Jan 2007 02:10:00 -0000 Message-ID: <20070114021011.16135.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug driver/30460] asm_debug is not initialized in gcc.c In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-01/txt/msg01104.txt.bz2 ------- Comment #2 from pinskia at gcc dot gnu dot org 2007-01-14 02:10 ------- actually asm_debug is initialized in init_spec, with the following comment: /* Initialize here, not in definition. The IRIX 6 O32 cc sometimes chokes on ?: in file-scope variable initializations. */ asm_debug = ASM_DEBUG_SPEC; Oh, init_spec is not called because you read in the spec so there is no need to call the initializer: /* Read the specs file unless it is a default one. */ if (specs_file != 0 && strcmp (specs_file, "specs")) read_specs (specs_file, TRUE); else init_spec (); so your patch is incorrect as it might cause a bootstrap failure (unless IRIX 6 support has been removed). -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor Keywords|patch | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30460