summaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-31 16:24:47 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-31 16:24:47 +0000
commit400b18e778f8b553add64eacf8054098f65d3b2f (patch)
tree778bbc09ec74213fed04415bef262a8d0fc64442 /gcc/gcc.c
parent5479358a3db9254b19d83d384e18ac5e617c596a (diff)
downloadgcc-400b18e778f8b553add64eacf8054098f65d3b2f.tar.gz
* gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
git-svn-id: svn+ssh://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;