]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
darwin.h (STACK_BOUNDARY): Define.
authorGeoffrey Keating <geoffk@apple.com>
Fri, 8 Jun 2007 03:22:56 +0000 (03:22 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Fri, 8 Jun 2007 03:22:56 +0000 (03:22 +0000)
* config/i386/darwin.h (STACK_BOUNDARY): Define.

Co-Authored-By: Hui-May Chang <hm.chang@apple.com>
From-SVN: r125555

gcc/ChangeLog
gcc/config/i386/darwin.h

index 30e9f6ec38e2de488c263b95ec1a2bb6a81cb26a..caad8a0a6eca28ad3f38d4b974c590a6bc9ca869 100644 (file)
@@ -1,3 +1,7 @@
+2007-06-07  Geoffrey Keating  <geoffk@apple.com>
+
+       * config/i386/darwin.h (STACK_BOUNDARY): Define.
+
 2007-06-07  Simon Martin  <simartin@users.sourceforge.net>
 
        PR c++/30759
@@ -12,7 +16,7 @@
        (set_std_cxx98): Set cxx_dialect to cxx98.
        (set_std_cxx0x): Set cxx_dialect to cxx0x.
 
-2007-06-06  Geoffrey Keating  <geoffk@apple.com>
+2007-06-07  Geoffrey Keating  <geoffk@apple.com>
            Hui-May Chang <hm.chang@apple.com>
 
        * doc/invoke.texi (Darwin Options): Update documentation for
index f8732c56a47b6b936e93ac6644c53df8537745c6..144b4921196a1f659e2c73e3e1aa51c683f22a9f 100644 (file)
@@ -69,6 +69,12 @@ Boston, MA 02110-1301, USA.  */
 #undef TARGET_KEEPS_VECTOR_ALIGNED_STACK
 #define TARGET_KEEPS_VECTOR_ALIGNED_STACK 1
 
+/* On Darwin, the stack is 128-bit aligned at the point of every call.
+   Failure to ensure this will lead to a crash in the system libraries
+   or dynamic loader.  */
+#undef STACK_BOUNDARY
+#define STACK_BOUNDARY 128
+
 /* We want -fPIC by default, unless we're using -static to compile for
    the kernel or some such.  */