From 28c14a046d33670222387395e77280e131234482 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Tue, 31 May 2011 16:24:47 +0000 Subject: [PATCH] * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug. From-SVN: r174492 --- gcc/ChangeLog | 4 ++++ gcc/gcc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d7394abe494..fdebbd8f7f9 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 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; -- 2.30.2