This is the mail archive of the gcc-patches@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]

[RFC] free_lang_data disables -g1


This code in free_lang_data():

  /* FIXME.  Remove after save_debug_info is working.  */
  if (!(flag_generate_lto
	|| (!in_lto_p
	    && !flag_gtoggle && debug_info_level <= DINFO_LEVEL_TERSE)))
    return 0;

does not catch the -g1 case, falling on through, freeing the
lang-specific data, and setting debug_info_level to NONE, with the
effect that we get no debug info. Would a patch to change
"debug_info_level <= DINFO_LEVEL_TERSE" to "debug_info_level <
DINFO_LEVEL_TERSE" be reasonable, or is there some reason we want to
proceed with the freeing at -g1?

I understand that this will go away eventually, but in the meantime,
it appears that -g1 is broken.

-cary


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