OSDN Git Service

* gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 May 2011 16:24:47 +0000 (16:24 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 May 2011 16:24:47 +0000 (16:24 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174492 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gcc.c

index d7394ab..fdebbd8 100644 (file)
@@ -1,5 +1,9 @@
 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
 
+       * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
+
+2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
+
        * gengtype-state.c (read_state_params_structs): Initialize
        previous.
 
index c43e45a..eb917cd 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -3277,7 +3277,7 @@ driver_handle_option (struct gcc_options *opts,
     compare_debug_with_arg:
       gcc_assert (decoded->canonical_option_num_elements == 1);
       gcc_assert (arg != NULL);
-      if (arg)
+      if (*arg)
        compare_debug = 1;
       else
        compare_debug = -1;