about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2011-07-16 03:10:06 -0700
committerRoland McGrath <roland@hack.frob.com>2011-07-16 03:10:06 -0700
commitdb290cf59207aff09d1794e666e2854a93775f32 (patch)
tree958bfef6730db728842232b19b8875a0615e8a93 /sysdeps
parentfd5e21c75d8e9221d766f4bc922a237265514ec2 (diff)
downloadglibc-db290cf59207aff09d1794e666e2854a93775f32.tar.gz
glibc-db290cf59207aff09d1794e666e2854a93775f32.tar.xz
glibc-db290cf59207aff09d1794e666e2854a93775f32.zip
Never use -mpreferred-stack-boundary=2 on i386, now disallowed by GCC.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/i386/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/i386/Makefile b/sysdeps/i386/Makefile
index 3d9f3fc358..661473e226 100644
--- a/sysdeps/i386/Makefile
+++ b/sysdeps/i386/Makefile
@@ -30,13 +30,16 @@ endif
 # than 4 bytes.
 # Lots of routines in math will use FPU, so make math subdir an exception
 # here.
+# In gcc 4.6 (and maybe earlier?) giving -mpreferred-stack-boundary=2 is
+# an error, so don't try to reduce it here like we used to.  We still
+# explicit set -mpreferred-stack-boundary=4 the places where it matters,
+# in case an older compiler defaulted to 2.
 ifeq ($(subdir),math)
 sysdep-CFLAGS += -mpreferred-stack-boundary=4
 else
 ifeq ($(subdir),csu)
 sysdep-CFLAGS += -mpreferred-stack-boundary=4
 else
-sysdep-CFLAGS += -mpreferred-stack-boundary=2
 # Likewise, any function which calls user callbacks
 uses-callbacks += -mpreferred-stack-boundary=4
 # Likewise, any stack alignment tests