diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-08 17:44:50 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-08 17:44:50 +0000 |
commit | bb6e20de4c3aabf1fa349d0e463d9476d1c6ca8a (patch) | |
tree | 5bb71afb43ae27935433a50fe0412cbc642c1775 /gcc/toplev.c | |
parent | 2a60612cdc6af2a47d3eafb7c729230d055e2dac (diff) | |
download | gcc-bb6e20de4c3aabf1fa349d0e463d9476d1c6ca8a.tar.gz |
* toplev.c (process_options): Choose default debugging type when
gtoggle enables debug info and type is unset.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151524 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index c18965a3c6e..8a3c4f2635f 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; } |