This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.27.9000-409-ged0d698
- From: fw at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 22 May 2018 13:08:31 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.27.9000-409-ged0d698
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via ed0d698870720752986f855a2b3da50e3c89bad5 (commit)
from e28e9b1ec40d5b545d980b0a36cbe41f3d1dbf6a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=ed0d698870720752986f855a2b3da50e3c89bad5
commit ed0d698870720752986f855a2b3da50e3c89bad5
Author: Florian Weimer <fweimer@redhat.com>
Date: Tue May 22 14:44:14 2018 +0200
i386: Drop -mpreferred-stack-boundary=4
The flag was a left-over from when the -mpreferred-stack-boundary=2 flag
was removed in commit db290cf59207aff09d1794e666e2854a93775f32.
diff --git a/ChangeLog b/ChangeLog
index ee8f745..22785e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2018-05-22 Florian Weimer <fweimer@redhat.com>
+
+ * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
+ not add -mpreferred-stack-boundary=4.
+ [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
+ (stack-align-test-flags): Likewise.
+ [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
+ Likewise.
+ [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
+ (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
+ [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
+ (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
+ * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
+ (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
+ (CFLAGS-tst-align2.c): Likewise.
+
2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
diff --git a/sysdeps/i386/Makefile b/sysdeps/i386/Makefile
index a150045..1682394 100644
--- a/sysdeps/i386/Makefile
+++ b/sysdeps/i386/Makefile
@@ -19,46 +19,10 @@ CFLAGS-dl-load.c += -Wno-unused
CFLAGS-dl-reloc.c += -Wno-unused
endif
-# Most of the glibc routines don't ever call user defined callbacks
-# nor use any FPU or SSE* and as such don't need bigger %esp alignment
-# 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
gen-as-const-headers += link-defines.sym
else
-# Likewise, any function which calls user callbacks
-uses-callbacks += -mpreferred-stack-boundary=4
-# Likewise, any stack alignment tests
-stack-align-test-flags += -malign-double -mpreferred-stack-boundary=4
-endif
-endif
-
-# And a couple of other routines
-ifeq ($(subdir),stdlib)
-CFLAGS-exit.c += -mpreferred-stack-boundary=4
-CFLAGS-cxa_finalize.c += -mpreferred-stack-boundary=4
-endif
-ifeq ($(subdir),elf)
-CFLAGS-dl-init.c += -mpreferred-stack-boundary=4
-CFLAGS-dl-fini.c += -mpreferred-stack-boundary=4
-CFLAGS-dl-open.c += -mpreferred-stack-boundary=4
-CFLAGS-dl-close.c += -mpreferred-stack-boundary=4
-CFLAGS-dl-error.c += -mpreferred-stack-boundary=4
-endif
-ifeq ($(subdir),dlfcn)
-CFLAGS-dlopen.c += -mpreferred-stack-boundary=4
-CFLAGS-dlopenold.c += -mpreferred-stack-boundary=4
-CFLAGS-dlclose.c += -mpreferred-stack-boundary=4
-CFLAGS-dlerror.c += -mpreferred-stack-boundary=4
+stack-align-test-flags += -malign-double
endif
ifneq (,$(filter -mno-tls-direct-seg-refs,$(CFLAGS)))
diff --git a/sysdeps/i386/nptl/Makefile b/sysdeps/i386/nptl/Makefile
index 93a6d30..7302403 100644
--- a/sysdeps/i386/nptl/Makefile
+++ b/sysdeps/i386/nptl/Makefile
@@ -18,9 +18,3 @@
ifeq ($(subdir),csu)
gen-as-const-headers += tcb-offsets.sym
endif
-
-ifeq ($(subdir),nptl)
-CFLAGS-pthread_create.c += -mpreferred-stack-boundary=4
-CFLAGS-tst-align.c += -mpreferred-stack-boundary=4
-CFLAGS-tst-align2.c += -mpreferred-stack-boundary=4
-endif
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 16 ++++++++++++++++
sysdeps/i386/Makefile | 38 +-------------------------------------
sysdeps/i386/nptl/Makefile | 6 ------
3 files changed, 17 insertions(+), 43 deletions(-)
hooks/post-receive
--
GNU C Library master sources