diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2001-10-23 11:50:50 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2001-10-23 11:50:50 +0000 |
commit | fbb83b433067ff743fe0e6c84fc45c4c270f276d (patch) | |
tree | 27041cf7f79a06096f0227a88d2cf26f16e1c4c3 /gcc/config | |
parent | c6257c5d978a99ffc409664b03f696fce8c82e10 (diff) | |
download | gcc-fbb83b433067ff743fe0e6c84fc45c4c270f276d.zip gcc-fbb83b433067ff743fe0e6c84fc45c4c270f276d.tar.gz gcc-fbb83b433067ff743fe0e6c84fc45c4c270f276d.tar.bz2 |
i386.c (override_options): Default to minimum stack alignment when optimizing for code size.
* config/i386/i386.c (override_options): Default to minimum
stack alignment when optimizing for code size.
* doc/invoke.texi (-mpreferred-stack-boundary): Document the
change.
From-SVN: r46433
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/i386.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 5183c5f..06dc3be 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -973,8 +973,12 @@ override_options () align_functions = 1 << abs (processor_target_table[ix86_cpu].align_func); /* Validate -mpreferred-stack-boundary= value, or provide default. - The default of 128 bits is for Pentium III's SSE __m128. */ - ix86_preferred_stack_boundary = 128; + The default of 128 bits is for Pentium III's SSE __m128, but we + don't want additional code to keep the stack aligned when + optimizing for code size. */ + ix86_preferred_stack_boundary = (optimize_size + ? TARGET_64BIT ? 64 : 32 + : 128); if (ix86_preferred_stack_boundary_string) { i = atoi (ix86_preferred_stack_boundary_string); |