diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2009-09-08 17:44:50 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2009-09-08 17:44:50 +0000 |
commit | 6a57e634bf5c78f8d7297a07bca2a77c4a186ab9 (patch) | |
tree | 5bb71afb43ae27935433a50fe0412cbc642c1775 /gcc | |
parent | da4a947987f3486f79a8363b5519096cac4590f2 (diff) | |
download | gcc-6a57e634bf5c78f8d7297a07bca2a77c4a186ab9.zip gcc-6a57e634bf5c78f8d7297a07bca2a77c4a186ab9.tar.gz gcc-6a57e634bf5c78f8d7297a07bca2a77c4a186ab9.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/toplev.c | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5bee13c..c41d08d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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/41307 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of diff --git a/gcc/toplev.c b/gcc/toplev.c index c18965a..8a3c4f2 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1883,7 +1883,12 @@ process_options (void) if (flag_gtoggle) { 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 debug_info_level = DINFO_LEVEL_NONE; } |