Commit 2c7c6f54 by Joseph Myers Committed by Joseph Myers

i386.c (override_options): Force -maccumulate-outgoing-args on if TARGET_STACK_PROBE.

	* config/i386/i386.c (override_options): Force
	-maccumulate-outgoing-args on if TARGET_STACK_PROBE.

testsuite:
	* gcc.target/i386/sse-10.c: Don't use
	-mno-accumulate-outgoing-args on *-*-mingw* *-*-cygwin*.

From-SVN: r132860
parent 676e1806
2008-03-04 Joseph Myers <joseph@codesourcery.com>
* config/i386/i386.c (override_options): Force
-maccumulate-outgoing-args on if TARGET_STACK_PROBE.
2008-03-04 Jan Hubicka <jh@suse.cz>
PR c++/35262
......
......@@ -2700,6 +2700,18 @@ override_options (void)
target_flags |= MASK_ACCUMULATE_OUTGOING_ARGS;
}
/* If stack probes are required, the space used for large function
arguments on the stack must also be probed, so enable
-maccumulate-outgoing-args so this happens in the prologue. */
if (TARGET_STACK_PROBE
&& !(target_flags & MASK_ACCUMULATE_OUTGOING_ARGS))
{
if (target_flags_explicit & MASK_ACCUMULATE_OUTGOING_ARGS)
warning (0, "stack probing requires -maccumulate-outgoing-args "
"for correctness");
target_flags |= MASK_ACCUMULATE_OUTGOING_ARGS;
}
/* For sane SSE instruction set generation we need fcomi instruction.
It is safe to enable all CMOVE instructions. */
if (TARGET_SSE)
......
2008-03-04 Joseph Myers <joseph@codesourcery.com>
* gcc.target/i386/sse-10.c: Don't use
-mno-accumulate-outgoing-args on *-*-mingw* *-*-cygwin*.
2008-03-04 Uros Bizjak <ubizjak@gmail.com>
* gfortran.dg/reassoc_1.f90: Cleanup dump files.
/* PR 17930 */
/* { dg-do run } */
/* { dg-options "-O1 -msse2 -mfpmath=sse -mno-accumulate-outgoing-args -fno-omit-frame-pointer" } */
/* { dg-options "-O1 -msse2 -mfpmath=sse -fno-omit-frame-pointer" { target *-*-mingw* *-*-cygwin* } } */
#include "sse2-check.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment