* gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 31 May 2011 16:24:47 +0000 (16:24 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Tue, 31 May 2011 16:24:47 +0000 (16:24 +0000)
From-SVN: r174492

gcc/ChangeLog
gcc/gcc.c

index d7394abe494b59bb65317605141f98107962e80d..fdebbd8f7f9ee63df88a6e85f7b7b8cf709e806e 100644 (file)
@@ -1,3 +1,7 @@
+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
index c43e45ab427add091f0917cdb39cd05c4a0c9a5f..eb917cdd995ce8899cf3bb017cc0731421df849d 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;