diff options
author | Andi Kleen <ak@suse.de> | 2006-03-25 10:29:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 12:10:53 -0500 |
commit | 6edfba1b33c701108717f4e036320fc39abe1912 (patch) | |
tree | 48f69c4e9c103c88541d4c5e36fae9a688c45bb1 /Makefile | |
parent | 681558fdb5848f0a6dc248108f0f7323f7380857 (diff) |
[PATCH] x86_64: Don't define string functions to builtin
gcc should handle this anyways, and it causes problems when
sprintf is turned into strcpy by gcc behind our backs and
the C fallback version of strcpy is actually defining __builtin_strcpy
Then drop -ffreestanding from the main Makefile because it isn't
needed anymore and implies -fno-builtin, which is wrong now.
(it was only added for x86-64, so dropping it should be safe)
Noticed by Roman Zippel
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -306,8 +306,7 @@ LINUXINCLUDE := -Iinclude \ | |||
306 | CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE) | 306 | CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE) |
307 | 307 | ||
308 | CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ | 308 | CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ |
309 | -fno-strict-aliasing -fno-common \ | 309 | -fno-strict-aliasing -fno-common |
310 | -ffreestanding | ||
311 | AFLAGS := -D__ASSEMBLY__ | 310 | AFLAGS := -D__ASSEMBLY__ |
312 | 311 | ||
313 | # Read KERNELRELEASE from .kernelrelease (if it exists) | 312 | # Read KERNELRELEASE from .kernelrelease (if it exists) |