This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH COMMITTED: Fix -fsplit-stack bug


This patch fixes a bug in the generic -fsplit-stack code: I didn't
realize that decode_options can now be called more than once, when
processing the options attribute.  Bootstrapped on
x86_64-unknown-linux-gnu, did a partial testsuite run.  Committed to
mainline.

Ian


2010-09-28  Ian Lance Taylor  <iant@google.com>

	PR target/45815
	* opts.c (decode_options): Don't test whether the target supports
	split stack if flag_split_stack == 0.


Index: opts.c
===================================================================
--- opts.c	(revision 164670)
+++ opts.c	(working copy)
@@ -1091,7 +1091,7 @@ decode_options (unsigned int argc, const
      default value if they choose based on other options.  */
   if (flag_split_stack == -1)
     flag_split_stack = 0;
-  else
+  else if (flag_split_stack)
     {
       if (!targetm.supports_split_stack (true))
 	{

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]