• R/O
  • HTTP
  • SSH

linux-2.4.36: Commit

2.4.36-stable kernel tree

Commit MetaInfo

Revisiona35c6d8698611328d27ed003efc5fa4a6df4fc86 (tree)
Zeit2007-08-10 06:07:53
AutorWilly Tarreau <w@1wt....>
CommiterWilly Tarreau

Log Message

[PATCH] second build fix for some rare buggy versions of GCC 4

Last gcc4 fix 78bf0892b4008a0011f7af916460bc59103acd0a uncoverred a known
bug which appeared in gcc between 4.1 and 4.2.0 and which makes it ignore
the first -fno-builtin-xxx when more than one of those params is passed.
This resulted in the kernel not building with some versions such as
gcc version 4.1.2 20061115 (prerelease) as shipped by Debian as version

Since those versions do not need -fno-builtin-strpbrk, set this option
first so that it doesn't matter wether it's ignored. This fix was confirmed
by Richard Kojedzinszky. So with this fix, we know the kernel builds on x86
with gcc-4.1.1 (already did), 4.1.2-20061115, and 4.2.1.

Reference to the thread discussing this bug on gcc-ml :

Signed-off-by: Willy Tarreau <w@1wt.eu>

Ändern Zusammenfassung


--- a/Makefile
+++ b/Makefile
@@ -93,7 +93,7 @@ CPPFLAGS := -D__KERNEL__ -I$(HPATH)
9494 CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
9595 -fno-strict-aliasing -fno-common
96-CFLAGS += -fno-builtin-sprintf -fno-builtin-strpbrk
96+CFLAGS += -fno-builtin-strpbrk -fno-builtin-sprintf
9898 CFLAGS += -fomit-frame-pointer
9999 endif
Show on old repository browser