re PR target/53383 (Allow -mpreferred-stack-boundary=3 on x86-64)
PR target/53383 * config/i386/i386.c (ix86_option_override_internal): Always allow -mincoming-stack-boundary=3 for 64-bit targets. testsuite/ChangeLog: PR target/53383 * gcc.target/i386/pr53383-1.c (dg-options): Remove -mno-sse. * gcc.target/i386/pr53383-2.c (dg-options): Ditto. * gcc.target/i386/pr53383-3.c (dg-options): Ditto. From-SVN: r246543
This commit is contained in:
parent
92d85953a5
commit
34fac449e1
|
@ -1,7 +1,12 @@
|
||||||
|
2017-03-28 Uros Bizjak <ubizjak@gmail.com>
|
||||||
|
|
||||||
|
PR target/53383
|
||||||
|
* config/i386/i386.c (ix86_option_override_internal): Always
|
||||||
|
allow -mincoming-stack-boundary=3 for 64-bit targets.
|
||||||
|
|
||||||
2017-03-28 Bin Cheng <bin.cheng@arm.com>
|
2017-03-28 Bin Cheng <bin.cheng@arm.com>
|
||||||
|
|
||||||
* tree-vect-loop.c (optimize_mask_stores): Add bb to the right
|
* tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
|
||||||
loop.
|
|
||||||
|
|
||||||
2017-03-28 Bin Cheng <bin.cheng@arm.com>
|
2017-03-28 Bin Cheng <bin.cheng@arm.com>
|
||||||
|
|
||||||
|
|
|
@ -5927,9 +5927,8 @@ ix86_option_override_internal (bool main_args_p,
|
||||||
ix86_preferred_stack_boundary = PREFERRED_STACK_BOUNDARY_DEFAULT;
|
ix86_preferred_stack_boundary = PREFERRED_STACK_BOUNDARY_DEFAULT;
|
||||||
if (opts_set->x_ix86_preferred_stack_boundary_arg)
|
if (opts_set->x_ix86_preferred_stack_boundary_arg)
|
||||||
{
|
{
|
||||||
int min = (TARGET_64BIT_P (opts->x_ix86_isa_flags)
|
int min = TARGET_64BIT_P (opts->x_ix86_isa_flags)? 3 : 2;
|
||||||
? (TARGET_SSE_P (opts->x_ix86_isa_flags) ? 4 : 3) : 2);
|
int max = TARGET_SEH ? 4 : 12;
|
||||||
int max = (TARGET_SEH ? 4 : 12);
|
|
||||||
|
|
||||||
if (opts->x_ix86_preferred_stack_boundary_arg < min
|
if (opts->x_ix86_preferred_stack_boundary_arg < min
|
||||||
|| opts->x_ix86_preferred_stack_boundary_arg > max)
|
|| opts->x_ix86_preferred_stack_boundary_arg > max)
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
2017-03-28 Uros Bizjak <ubizjak@gmail.com>
|
||||||
|
|
||||||
|
PR target/53383
|
||||||
|
* gcc.target/i386/pr53383-1.c (dg-options): Remove -mno-sse.
|
||||||
|
* gcc.target/i386/pr53383-2.c (dg-options): Ditto.
|
||||||
|
* gcc.target/i386/pr53383-3.c (dg-options): Ditto.
|
||||||
|
|
||||||
2017-03-28 Bin Cheng <bin.cheng@arm.com>
|
2017-03-28 Bin Cheng <bin.cheng@arm.com>
|
||||||
|
|
||||||
* gcc.c-torture/compile/irreducible-loop.c: New.
|
* gcc.c-torture/compile/irreducible-loop.c: New.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* { dg-do compile } */
|
/* { dg-do compile } */
|
||||||
/* { dg-options "-O2 -mno-sse -mpreferred-stack-boundary=3" } */
|
/* { dg-options "-O2 -mpreferred-stack-boundary=3" } */
|
||||||
|
|
||||||
int
|
int
|
||||||
bar (int x)
|
bar (int x)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* { dg-do compile } */
|
/* { dg-do compile } */
|
||||||
/* { dg-options "-O2 -mno-sse -mpreferred-stack-boundary=3 -mincoming-stack-boundary=3" } */
|
/* { dg-options "-O2 -mpreferred-stack-boundary=3 -mincoming-stack-boundary=3" } */
|
||||||
|
|
||||||
int
|
int
|
||||||
bar (int x)
|
bar (int x)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* { dg-do compile } */
|
/* { dg-do compile } */
|
||||||
/* { dg-options "-O2 -mno-sse -mincoming-stack-boundary=3 -mpreferred-stack-boundary=3" } */
|
/* { dg-options "-O2 -mincoming-stack-boundary=3 -mpreferred-stack-boundary=3" } */
|
||||||
|
|
||||||
int
|
int
|
||||||
bar (int x)
|
bar (int x)
|
||||||
|
|
Loading…
Reference in New Issue