OSDN Git Service

* toplev.c (process_options): Choose default debugging type when
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Sep 2009 17:44:50 +0000 (17:44 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Sep 2009 17:44:50 +0000 (17:44 +0000)
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

gcc/ChangeLog
gcc/toplev.c

index 5bee13c..c41d08d 100644 (file)
@@ -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
index c18965a..8a3c4f2 100644 (file)
@@ -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;
     }