This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH COMMITTED: Fix -fsplit-stack bug
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 28 Sep 2010 11:23:22 -0700
- Subject: 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))
{