darwin.h (PREFERRED_STACK_BOUNDARY): Don't let the user set a value below STACK_BOUNDARY.
authorEric Christopher <echristo@apple.com>
Thu, 14 Jun 2007 01:53:17 +0000 (01:53 +0000)
committerEric Christopher <echristo@gcc.gnu.org>
Thu, 14 Jun 2007 01:53:17 +0000 (01:53 +0000)
2007-06-13  Eric Christopher  <echristo@apple.com>

    * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Don't let
    the user set a value below STACK_BOUNDARY.

From-SVN: r125695

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

index 348347cc96253e9d13189790bc1443c5833c2a14..7f85af9b35a327db6ef4c778b5108d4d0be0ae71 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-13  Eric Christopher  <echristo@apple.com>
+
+       * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Don't let
+       the user set a value below STACK_BOUNDARY.
+
 2007-06-13  Thiemo Seufer  <ths@networkno.de>
 
        * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
index 144b4921196a1f659e2c73e3e1aa51c683f22a9f..9cc5e5424453f88c103c526b7b61d780b432f037 100644 (file)
@@ -75,6 +75,16 @@ Boston, MA 02110-1301, USA.  */
 #undef STACK_BOUNDARY
 #define STACK_BOUNDARY 128
 
+/* Since we'll never want a stack boundary less aligned than 128 bits
+   we need the extra work here otherwise bits of gcc get very grumpy
+   when we ask for lower alignment.  We could just reject values less
+   than 128 bits for Darwin, but it's easier to up the alignment if
+   it's below the minimum.  */
+#undef PREFERRED_STACK_BOUNDARY
+#define PREFERRED_STACK_BOUNDARY (ix86_preferred_stack_boundary > 128  \
+                                 ? ix86_preferred_stack_boundary       \
+                                 : 128)
+
 /* We want -fPIC by default, unless we're using -static to compile for
    the kernel or some such.  */