Commit 6a57e634 by Alexandre Oliva Committed by Alexandre Oliva

toplev.c (process_options): Choose default debugging type when gtoggle enables…

toplev.c (process_options): Choose default debugging type when gtoggle enables debug info and type is unset.

* toplev.c (process_options): Choose default debugging type when
gtoggle enables debug info and type is unset.

From-SVN: r151524
parent da4a9479
2009-09-08 Alexandre Oliva <aoliva@redhat.com> 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
* toplev.c (process_options): Choose default debugging type when
gtoggle enables debug info and type is unset.
2009-09-08 Alexandre Oliva <aoliva@redhat.com>
PR debug/41276 PR debug/41276
PR debug/41307 PR debug/41307
* cselib.c (cselib_expand_value_rtx_1): Don't return copy of * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
......
...@@ -1883,7 +1883,12 @@ process_options (void) ...@@ -1883,7 +1883,12 @@ process_options (void)
if (flag_gtoggle) if (flag_gtoggle)
{ {
if (debug_info_level == DINFO_LEVEL_NONE) if (debug_info_level == DINFO_LEVEL_NONE)
debug_info_level = DINFO_LEVEL_NORMAL; {
debug_info_level = DINFO_LEVEL_NORMAL;
if (write_symbols == NO_DEBUG)
write_symbols = PREFERRED_DEBUGGING_TYPE;
}
else else
debug_info_level = DINFO_LEVEL_NONE; debug_info_level = DINFO_LEVEL_NONE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment