diff mbox

[6/6] i386: Remove syscall assembly codes with 6 arguments

Message ID CAMe9rOrRYbG77vZRCTUynS+zpZOgxpxk8NwuHtoOCAW3Rt6BNQ@mail.gmail.com
State New
Headers show

Commit Message

H.J. Lu Oct. 21, 2015, 3:17 p.m. UTC
On Wed, Oct 21, 2015 at 7:23 AM, Andreas Schwab <schwab@suse.de> wrote:
> gcc: error: -pg and -fomit-frame-pointer are incompatible
>
> Andreas.
>

I am testing this patch and will check it in.
diff mbox

Patch

diff --git a/sysdeps/unix/sysv/linux/i386/Makefile
b/sysdeps/unix/sysv/linux/i386/Makefile
index b484217..71ba61e 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)