aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2015-07-06 11:50:47 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2015-07-06 04:50:47 -0700
commitec1590f2571ecf093de855ed2c9c1383320063a1 (patch)
treeea60216ac576d7157e4692639d99d39d9a125347 /gcc/config
parent09e9c1e08597728f6fe052f033a9cf6c57d7562f (diff)
downloadgcc-ec1590f2571ecf093de855ed2c9c1383320063a1.zip
gcc-ec1590f2571ecf093de855ed2c9c1383320063a1.tar.gz
gcc-ec1590f2571ecf093de855ed2c9c1383320063a1.tar.bz2
Allow -mincoming-stack-boundary=3 with -mno-sse
Similar to -mpreferred-stack-boundary=3, -mincoming-stack-boundary=3 is allowed with -mno-sse in 64-bit mode. gcc/ PR target/53383 * config/i386/i386.c (ix86_option_override_internal): Allow -mincoming-stack-boundary=3 for 64-bit if SSE is disabled. gcc/testsuite/ PR target/53383 * gcc.target/i386/pr53383-1.c: New file. * gcc.target/i386/pr53383-2.c: Likewise. * gcc.target/i386/pr53383-3.c: Likewise. From-SVN: r225452
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/i386/i386.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 7d26e8c..0a5dfd3 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -4085,12 +4085,13 @@ ix86_option_override_internal (bool main_args_p,
ix86_incoming_stack_boundary = ix86_default_incoming_stack_boundary;
if (opts_set->x_ix86_incoming_stack_boundary_arg)
{
- if (opts->x_ix86_incoming_stack_boundary_arg
- < (TARGET_64BIT_P (opts->x_ix86_isa_flags) ? 4 : 2)
+ int min = (TARGET_64BIT_P (opts->x_ix86_isa_flags)
+ ? (TARGET_SSE_P (opts->x_ix86_isa_flags) ? 4 : 3) : 2);
+
+ if (opts->x_ix86_incoming_stack_boundary_arg < min
|| opts->x_ix86_incoming_stack_boundary_arg > 12)
error ("-mincoming-stack-boundary=%d is not between %d and 12",
- opts->x_ix86_incoming_stack_boundary_arg,
- TARGET_64BIT_P (opts->x_ix86_isa_flags) ? 4 : 2);
+ opts->x_ix86_incoming_stack_boundary_arg, min);
else
{
ix86_user_incoming_stack_boundary