aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
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/gcc.c
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/gcc.c')
-rw-r--r--gcc/gcc.c2
1 files changed, 1 insertions, 1 deletions
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;