mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-20 11:21:29 +03:00
Never use -mpreferred-stack-boundary=2 on i386, now disallowed by GCC.
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
2011-07-02 Roland McGrath <roland@hack.frob.com>
|
2011-07-16 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
|
* sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
|
||||||
|
now disallowed by GCC.
|
||||||
|
|
||||||
* configure.in (use-default-link): Default to yes if a test -shared
|
* configure.in (use-default-link): Default to yes if a test -shared
|
||||||
link meets our qualifications.
|
link meets our qualifications.
|
||||||
|
@@ -30,13 +30,16 @@ endif
|
|||||||
# than 4 bytes.
|
# than 4 bytes.
|
||||||
# Lots of routines in math will use FPU, so make math subdir an exception
|
# Lots of routines in math will use FPU, so make math subdir an exception
|
||||||
# here.
|
# 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)
|
ifeq ($(subdir),math)
|
||||||
sysdep-CFLAGS += -mpreferred-stack-boundary=4
|
sysdep-CFLAGS += -mpreferred-stack-boundary=4
|
||||||
else
|
else
|
||||||
ifeq ($(subdir),csu)
|
ifeq ($(subdir),csu)
|
||||||
sysdep-CFLAGS += -mpreferred-stack-boundary=4
|
sysdep-CFLAGS += -mpreferred-stack-boundary=4
|
||||||
else
|
else
|
||||||
sysdep-CFLAGS += -mpreferred-stack-boundary=2
|
|
||||||
# Likewise, any function which calls user callbacks
|
# Likewise, any function which calls user callbacks
|
||||||
uses-callbacks += -mpreferred-stack-boundary=4
|
uses-callbacks += -mpreferred-stack-boundary=4
|
||||||
# Likewise, any stack alignment tests
|
# Likewise, any stack alignment tests
|
||||||
|
Reference in New Issue
Block a user