about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-10-21 09:05:01 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-10-21 09:05:01 -0700
commitd8f7fcacd728a18a9d5cef1cc4f81432278e27c8 (patch)
tree66be3aef4d8866b87edac4e2d5e21d0e5450f729
parent0ad76d1ee7cc1be5277621e08f7dd66493de5ca1 (diff)
downloadglibc-d8f7fcacd728a18a9d5cef1cc4f81432278e27c8.tar.gz
glibc-d8f7fcacd728a18a9d5cef1cc4f81432278e27c8.tar.xz
glibc-d8f7fcacd728a18a9d5cef1cc4f81432278e27c8.zip
Apply -fomit-frame-pointer only to .o/.os files
Since -fomit-frame-pointer is compatible with -pg, apply it only to
.o/.os files.

	* sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
	Renamed to ...
	(CFLAGS-epoll_pwait.o): This.
	(CFLAGS-mmap.c): Renamed to ...
	(CFLAGS-mmap.o): This.
	(CFLAGS-mmap64.c): Renamed to ...
	(CFLAGS-mmap64.o): This.
	(CFLAGS-epoll_pwait.os): New.
	(CFLAGS-mmap.os): Likewise.
	(CFLAGS-mmap64.os): Likewise.
	(CFLAGS-semtimedop.os): Likewise.
	(CFLAGS-semtimedop.c): Renamed to ...
	(CFLAGS-semtimedop.o): This.
-rw-r--r--ChangeLog16
-rw-r--r--sysdeps/unix/sysv/linux/i386/Makefile12
2 files changed, 24 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 29b273087c..358e2053ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
+	Renamed to ...
+	(CFLAGS-epoll_pwait.o): This.
+	(CFLAGS-mmap.c): Renamed to ...
+	(CFLAGS-mmap.o): This.
+	(CFLAGS-mmap64.c): Renamed to ...
+	(CFLAGS-mmap64.o): This.
+	(CFLAGS-epoll_pwait.os): New.
+	(CFLAGS-mmap.os): Likewise.
+	(CFLAGS-mmap64.os): Likewise.
+	(CFLAGS-semtimedop.os): Likewise.
+	(CFLAGS-semtimedop.c): Renamed to ...
+	(CFLAGS-semtimedop.o): This.
+
 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
 
 	* debug/tst-backtrace4.c (handle_signal): Fix a comment and
diff --git a/sysdeps/unix/sysv/linux/i386/Makefile b/sysdeps/unix/sysv/linux/i386/Makefile
index b4842173e9..71ba61e9d7 100644
--- a/sysdeps/unix/sysv/linux/i386/Makefile
+++ b/sysdeps/unix/sysv/linux/i386/Makefile
@@ -4,14 +4,18 @@ default-abi := 32
 ifeq ($(subdir),misc)
 sysdep_routines += ioperm iopl vm86
 # %ebp may be used to pass the 6th argument to syscall.
-CFLAGS-epoll_pwait.c += -fomit-frame-pointer
-CFLAGS-mmap.c += -fomit-frame-pointer
-CFLAGS-mmap64.c += -fomit-frame-pointer
+CFLAGS-epoll_pwait.o += -fomit-frame-pointer
+CFLAGS-epoll_pwait.os += -fomit-frame-pointer
+CFLAGS-mmap.o += -fomit-frame-pointer
+CFLAGS-mmap.os += -fomit-frame-pointer
+CFLAGS-mmap64.o += -fomit-frame-pointer
+CFLAGS-mmap64.os += -fomit-frame-pointer
 endif
 
 ifeq ($(subdir),sysvipc)
 # %ebp may be used to pass the 6th argument to syscall.
-CFLAGS-semtimedop.c += -fomit-frame-pointer
+CFLAGS-semtimedop.o += -fomit-frame-pointer
+CFLAGS-semtimedop.os += -fomit-frame-pointer
 endif
 
 ifeq ($(subdir),elf)