* [RFC] free_lang_data disables -g1
@ 2009-11-26 1:34 Cary Coutant
2009-11-26 10:44 ` Richard Guenther
0 siblings, 1 reply; 2+ messages in thread
From: Cary Coutant @ 2009-11-26 1:34 UTC (permalink / raw)
To: gcc-patches
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RFC] free_lang_data disables -g1
2009-11-26 1:34 [RFC] free_lang_data disables -g1 Cary Coutant
@ 2009-11-26 10:44 ` Richard Guenther
0 siblings, 0 replies; 2+ messages in thread
From: Richard Guenther @ 2009-11-26 10:44 UTC (permalink / raw)
To: Cary Coutant; +Cc: gcc-patches
On Thu, Nov 26, 2009 at 1:41 AM, Cary Coutant <ccoutant@google.com> wrote:
> 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.
I think that's just a bug and should read debug_info_level <
DINFO_LEVEL_TERSE (or even == DINFO_LEVEL_NONE).
A patch with either change is pre-approved if it bootstraps and
regtests fine.
Thanks,
Richard.
> -cary
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-26 10:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-26 1:34 [RFC] free_lang_data disables -g1 Cary Coutant
2009-11-26 10:44 ` Richard Guenther
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).