This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug driver/30460] asm_debug is not initialized in gcc.c



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]