From: Alexandre Oliva Date: Tue, 31 May 2011 16:24:47 +0000 (+0000) Subject: * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug. X-Git-Tag: releases/gcc-4.7.0~6337 X-Git-Url: https://gcc.gnu.org/git/?a=commitdiff_plain;h=28c14a046d33670222387395e77280e131234482;p=gcc.git * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug. From-SVN: r174492 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d7394abe494b..fdebbd8f7f9e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-05-31 Alexandre Oliva + + * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug. + 2011-05-31 Alexandre Oliva * gengtype-state.c (read_state_params_structs): Initialize diff --git a/gcc/gcc.c b/gcc/gcc.c index c43e45ab427a..eb917cdd995c 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;