Skip to content

Commit fd285bb

Browse files
Andrew MortonLinus Torvalds
authored andcommitted
[PATCH] Abandon gcc-2.95.x
There's one scsi driver which doesn't compile due to weird __VA_ARGS__ tricks and the rather useful scsi/sd.c is currently getting an ICE. None of the new SAS code compiles, due to extensive use of anonymous unions. The V4L guys are very good at exploiting the gcc-2.95.x macro expansion bug (_why_ does each driver need to implement its own debug macros?) and various people keep on sneaking in anonymous unions, which are rather nice. Plus anonymous unions are rather useful. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent fe7d37d commit fd285bb

3 files changed

Lines changed: 1 addition & 37 deletions

File tree

include/linux/compiler-gcc2.h

Lines changed: 0 additions & 29 deletions
This file was deleted.

include/linux/compiler.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ extern void __chk_io_ptr(void __iomem *);
4242
# include <linux/compiler-gcc4.h>
4343
#elif __GNUC__ == 3
4444
# include <linux/compiler-gcc3.h>
45-
#elif __GNUC__ == 2
46-
# include <linux/compiler-gcc2.h>
4745
#else
4846
# error Sorry, your compiler is too old/not recognized.
4947
#endif

init/main.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,6 @@
5858
* This is one of the first .c files built. Error out early
5959
* if we have compiler trouble..
6060
*/
61-
#if __GNUC__ == 2 && __GNUC_MINOR__ == 96
62-
#ifdef CONFIG_FRAME_POINTER
63-
#error This compiler cannot compile correctly with frame pointers enabled
64-
#endif
65-
#endif
6661

6762
#ifdef CONFIG_X86_LOCAL_APIC
6863
#include <asm/smp.h>
@@ -74,7 +69,7 @@
7469
* To avoid associated bogus bug reports, we flatly refuse to compile
7570
* with a gcc that is known to be too old from the very beginning.
7671
*/
77-
#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
72+
#if (__GNUC__ < 3) || (__GNUC__ == 3 && __GNUC_MINOR__ < 2)
7873
#error Sorry, your GCC is too old. It builds incorrect kernels.
7974
#endif
8075

0 commit comments

Comments
 (0)