diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2011-05-31 16:24:47 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2011-05-31 16:24:47 +0000 |
commit | 28c14a046d33670222387395e77280e131234482 (patch) | |
tree | 778bbc09ec74213fed04415bef262a8d0fc64442 /gcc | |
parent | 70efc82d54f11140c52c8c22ff542706b6e0e45b (diff) | |
download | gcc-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/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 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. @@ -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; |