This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 6/6] Compile sched_getaffinity.c with -fno-builtin-memset
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 14 Aug 2015 05:19:07 -0700
- Subject: [PATCH 6/6] Compile sched_getaffinity.c with -fno-builtin-memset
- Authentication-results: sourceware.org; auth=none
Since sched_getaffinity.c calls memset which may not be inlined, we
should compile it with -fno-builtin-memset so that the internal hidden
memset is called without PLT.
OK for master?
* sysdeps/unix/sysv/linux/Makefile (CFLAGS-sched_getaffinity.c):
New. Set to -fno-builtin-memset.
---
sysdeps/unix/sysv/linux/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile
index bfbabd4..368f57b 100644
--- a/sysdeps/unix/sysv/linux/Makefile
+++ b/sysdeps/unix/sysv/linux/Makefile
@@ -144,6 +144,8 @@ tests += tst-getcpu
CFLAGS-fork.c = $(libio-mtsafe)
CFLAGS-getpid.o = -fomit-frame-pointer
CFLAGS-getpid.os = -fomit-frame-pointer
+# Use the internal hidden memset.
+CFLAGS-sched_getaffinity.c = -fno-builtin-memset
endif
ifeq ($(subdir),inet)
--
2.4.3