i386.c (override_options): Set upper limit of -mpreferred-stack-boundary to 12.

* config/i386/i386.c (override_options): Set upper limit of
-mpreferred-stack-boundary to 12.

From-SVN: r46432
This commit is contained in:
Alexandre Oliva 2001-10-23 11:47:23 +00:00 committed by Alexandre Oliva
parent f1e09fa253
commit c6257c5d97
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-10-23 Alexandre Oliva <aoliva@redhat.com>
* config/i386/i386.c (override_options): Set upper limit of
-mpreferred-stack-boundary to 12.
2001-10-22 Zack Weinberg <zack@codesourcery.com>
* recog.c (peephole2_optimize): Add default case to switch.

View File

@ -978,8 +978,8 @@ override_options ()
if (ix86_preferred_stack_boundary_string)
{
i = atoi (ix86_preferred_stack_boundary_string);
if (i < (TARGET_64BIT ? 3 : 2) || i > 31)
error ("-mpreferred-stack-boundary=%d is not between %d and 31", i,
if (i < (TARGET_64BIT ? 3 : 2) || i > 12)
error ("-mpreferred-stack-boundary=%d is not between %d and 12", i,
TARGET_64BIT ? 3 : 2);
else
ix86_preferred_stack_boundary = (1 << i) * BITS_PER_UNIT;