This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/30460] asm_debug is not initialized in gcc.c
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2007 02:10:11 -0000
- Subject: [Bug driver/30460] asm_debug is not initialized in gcc.c
- References: <bug-30460-646@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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