This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.23-569-gd957c4d


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  d957c4d3fa48d685ff2726c605c988127ef99395 (commit)
      from  41d036588230253487e94bf2608f5213a23c7fb2 (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=d957c4d3fa48d685ff2726c605c988127ef99395

commit d957c4d3fa48d685ff2726c605c988127ef99395
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Jul 18 15:16:11 2016 -0700

    i386: Compile rtld-*.os with -mno-sse -mno-mmx -mfpmath=387
    
    Compile i386 rtld-*.os with -mno-sse -mno-mmx -mfpmath=387 so that no
    code in ld.so uses mm/xmm/ymm/zmm registers on i386 since the first 3
    mm/xmm/ymm/zmm registers are used to pass vector parameters which must
    be preserved.
    
    	* sysdeps/i386/Makefile (rtld-CFLAGS): New.
    	[subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
    	-mfpmath=387 with $(rtld-CFLAGS).
    	[subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
    	$(rtld-CFLAGS).

diff --git a/ChangeLog b/ChangeLog
index 855032f..b587b40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* sysdeps/i386/Makefile (rtld-CFLAGS): New.
+	[subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
+	-mfpmath=387 with $(rtld-CFLAGS).
+	[subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
+	$(rtld-CFLAGS).
+
 2016-07-18   Ross Burton  <ross.burton@intel.com>
 	     Khem Raj  <raj.khem@gmail.com>
 
diff --git a/sysdeps/i386/Makefile b/sysdeps/i386/Makefile
index 6c91842..e94f2cb 100644
--- a/sysdeps/i386/Makefile
+++ b/sysdeps/i386/Makefile
@@ -84,17 +84,20 @@ ifeq ($(subdir),csu)
 gen-as-const-headers += tlsdesc.sym
 endif
 
-ifeq ($(subdir),elf)
 # Make sure no code in ld.so uses mm/xmm/ymm/zmm registers on i386 since
 # the first 3 mm/xmm/ymm/zmm registers are used to pass vector parameters
 # which must be preserved.
 # With SSE disabled, ensure -fpmath is not set to use sse either.
+rtld-CFLAGS = -mno-sse -mno-mmx -mfpmath=387
+ifeq ($(subdir),elf)
 CFLAGS-.os += $(if $(filter $(@F),$(patsubst %,%.os,$(all-rtld-routines))),\
-		   -mno-sse -mno-mmx -mfpmath=387)
+		   $(rtld-CFLAGS))
 
 tests-special += $(objpfx)tst-ld-sse-use.out
 $(objpfx)tst-ld-sse-use.out: ../sysdeps/i386/tst-ld-sse-use.sh $(objpfx)ld.so
 	@echo "Checking ld.so for SSE register use.  This will take a few seconds..."
 	$(BASH) $< $(objpfx) '$(NM)' '$(OBJDUMP)' '$(READELF)' > $@; \
 	$(evaluate-test)
+else
+CFLAGS-.os += $(if $(filter rtld-%.os,$(@F)), $(rtld-CFLAGS))
 endif

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog             |    8 ++++++++
 sysdeps/i386/Makefile |    7 +++++--
 2 files changed, 13 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]