aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2011-05-31 16:24:47 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2011-05-31 16:24:47 +0000
commit28c14a046d33670222387395e77280e131234482 (patch)
tree778bbc09ec74213fed04415bef262a8d0fc64442 /gcc
parent70efc82d54f11140c52c8c22ff542706b6e0e45b (diff)
downloadgcc-28c14a046d33670222387395e77280e131234482.zip
gcc-28c14a046d33670222387395e77280e131234482.tar.gz
gcc-28c14a046d33670222387395e77280e131234482.tar.bz2
* gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
From-SVN: r174492
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/gcc.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d7394ab..fdebbd8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/gcc.c b/gcc/gcc.c
index c43e45a..eb917cd 100644
--- 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;