summaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2012-06-22 17:10:58 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2012-06-22 17:10:58 +0000
commite24005a24f41165050220aba1cabd6da49d255fb (patch)
tree0003aa8aaa6d843a98cf3a0c9c56d2d6c8773942 /gcc/doc
parent8ac8f5ae7dc6454744f1f6dee69b5a63e67112f5 (diff)
downloadgcc-e24005a24f41165050220aba1cabd6da49d255fb.tar.gz
Allow -mpreferred-stack-boundary=3 on x86-64
PR target/53383 * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3. * config/i386/i386.c (ix86_option_override_internal): Allow -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled. * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit if SSE is disabled. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188893 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 387d6922f89..029a7ab0ad2 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -13577,6 +13577,12 @@ Attempt to keep the stack boundary aligned to a 2 raised to @var{num}
byte boundary. If @option{-mpreferred-stack-boundary} is not specified,
the default is 4 (16 bytes or 128 bits).
+@strong{Warning:} When generating code for the x86-64 architecture with
+SSE extensions disabled, @option{-mpreferred-stack-boundary=3} can be
+used to keep the stack boundary aligned to 8 byte boundary. You must
+build all modules with @option{-mpreferred-stack-boundary=3}, including
+any libraries. This includes the system libraries and startup modules.
+
@item -mincoming-stack-boundary=@var{num}
@opindex mincoming-stack-boundary
Assume the incoming stack is aligned to a 2 raised to @var{num} byte