During some command-line option handling revamp, -fno-compare-debug (AKA
-fcompare-debug=) was broken, in that it didn't disable the
recompilation any more.  This made bootstrap-debug-lean unnecessarily
slow and redundant, for stage2 was compiled twice using the -O0 stage1.
This patch restores the expected/documented behavior.  Regstrapped on
x86_64-linux-gnu and i686-linux-gnu.  Ok to install?

for  gcc/ChangeLog
from  Alexandre Oliva  <aol...@redhat.com>

	* gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.

Index: gcc/gcc.c
===================================================================
--- gcc/gcc.c.orig	2011-05-18 03:29:08.183329229 -0300
+++ gcc/gcc.c	2011-05-18 03:29:33.342256228 -0300
@@ -3277,7 +3277,7 @@ driver_handle_option (struct gcc_options
     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;

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer

Reply via email to