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@redhat.com>2011-05-31 16:24:47 +0000
commit4003b75eada4f19e39569a3bf15c9693d6212b2b (patch)
tree778bbc09ec74213fed04415bef262a8d0fc64442 /gcc/gcc.c
parent000b4bed2c5065fab460d2e2fa1fc2fa74935ae8 (diff)
* gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@174492 138bc75d-0d04-0410-961f-82ee72b054a4
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 c43e45ab427..eb917cdd995 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;