Skip to content

Commit

Permalink
Drop the superfluous test for an old version of gcc.
Browse files Browse the repository at this point in the history
The header file <linux/compiler.h> already enforces a suitably recent
version of gcc, so there's no point checking for that again.

Signed-off-by: Robert P. J. Day <[email protected]>
Signed-off-by: Adrian Bunk <[email protected]>
  • Loading branch information
Robert P. J. Day authored and AdrianBunk committed Oct 19, 2007
1 parent b707615 commit d8af7c6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,7 @@
/*
* This is one of the first .c files built. Error out early if we have compiler
* trouble.
*
* Versions of gcc older than that listed below may actually compile and link
* okay, but the end product can have subtle run time bugs. To avoid associated
* bogus bug reports, we flatly refuse to compile with a gcc that is known to be
* too old from the very beginning.
*/
#if (__GNUC__ < 3) || (__GNUC__ == 3 && __GNUC_MINOR__ < 2)
#error Sorry, your GCC is too old. It builds incorrect kernels.
#endif

#if __GNUC__ == 4 && __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ == 0
#warning gcc-4.1.0 is known to miscompile the kernel. A different compiler version is recommended.
Expand Down

0 comments on commit d8af7c6

Please sign in to comment.