On Sat, Feb 03, 2001 at 12:40:03AM +0100, J . A . Magallon wrote: > Please, do not do so. That depends on the PACKAGE name and version, and there > is no standard way of versioning a patched gcc. > The -54 is a RH'ism, for example Mandrake Cooker includes patches from > different sources, and gcc is versioned like You can do: if [ "$CC" = gcc ]; then echo 'inline void f(unsigned int n){int i,j=-1;for(i=0;i<10&&j<0;i++)if((1UL<<i)==n)j=i;if(j<0)exit(0);}main(){f(64);exit(1);}' > test.c gcc -O2 -o test test.c if ./test; then echo "*** Please don't use this compiler to compile kernel"; fi rm -f test.c test fi (the $CC = gcc test is there e.g. so that the test is not done when cross-compiling or when there is a separate kernel compiler and userland compiler (e.g. on sparc64). This test will barf on gcc-2.96 up to -67 and on 2.97 until end of November or so). Similarly a testcase for the reload bug which caused in 2.95.2 miscompilation of some long long stuff in the kernel could be added as well if you want to go that way. Jakub - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: ReiserFS Oops (2.4.1, deterministic, symlink Alan Cox
- Re: ReiserFS Oops (2.4.1, deterministic, symlink Hans Reiser
- Re: ReiserFS Oops (2.4.1, deterministic, symlink Alan Cox
- Re: ReiserFS Oops (2.4.1, deterministic, symlin... Hans Reiser
- Re: ReiserFS Oops (2.4.1, deterministic, sy... Alan Cox
- Re: [reiserfs-list] Re: ReiserFS Oops (2.4.... Hans Reiser
- Re: [reiserfs-list] Re: ReiserFS Oops (2.4.... Alan Cox
- Re: [reiserfs-list] Re: ReiserFS Oops (2.4.... Hans Reiser
- Re: [reiserfs-list] Re: ReiserFS Oops (2.4.... J . A . Magallon
- Re: [reiserfs-list] Re: ReiserFS Oops (2.4.... Hans Reiser
- Re: [reiserfs-list] Re: ReiserFS Oops (2.4.... Jakub Jelinek
- Re: [reiserfs-list] Re: ReiserFS Oops (2.4.... Paul Jakma
- Re: [reiserfs-list] Re: ReiserFS Oops (2.4.... Alan Cox
- Re: [reiserfs-list] Re: ReiserFS Oops (2.4.... J . A . Magallon
- Re: [reiserfs-list] Re: ReiserFS Oops (2.4.... Jakub Jelinek
- Re: [reiserfs-list] Re: ReiserFS Oops (2.4.... Alan Cox
- Re: [reiserfs-list] Re: ReiserFS Oops (2.4.... David Woodhouse
- Re: [reiserfs-list] Re: ReiserFS Oops (2.4.... Albert D. Cahalan
- Re: [reiserfs-list] Re: ReiserFS Oops (2.4.... Alan Cox
- Re: [reiserfs-list] Re: ReiserFS Oops (2.4.... Albert D. Cahalan
- Re: [reiserfs-list] Re: ReiserFS Oops (2.4.... John Morrison