diff options
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/gcc.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d7394abe494..fdebbd8f7f9 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 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; |