aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2009-09-08 17:44:50 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2009-09-08 17:44:50 +0000
commit6a57e634bf5c78f8d7297a07bca2a77c4a186ab9 (patch)
tree5bb71afb43ae27935433a50fe0412cbc642c1775 /gcc/toplev.c
parentda4a947987f3486f79a8363b5519096cac4590f2 (diff)
downloadgcc-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/toplev.c')
-rw-r--r--gcc/toplev.c7
1 files changed, 6 insertions, 1 deletions
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;
}