This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[RFC] free_lang_data disables -g1
- From: Cary Coutant <ccoutant at google dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 25 Nov 2009 16:41:03 -0800
- Subject: [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