OSDN Git Service

[PATCH] second build fix for some rare buggy versions of GCC 4
authorWilly Tarreau <w@1wt.eu>
Thu, 9 Aug 2007 21:07:01 +0000 (23:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 9 Aug 2007 21:07:53 +0000 (23:07 +0200)
commita35c6d8698611328d27ed003efc5fa4a6df4fc86
treee0a6b7301f1c0b2a2d611a825477dc6efbe27df7
parent50fa1ba19fbdaec7550253d56d067a1b5fc946df
[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
4.1.1-21.

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 :

  http://gcc.gnu.org/ml/gcc-bugs/2006-07/msg01514.html

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