Skip to content

Commit

Permalink
x86_64: Support gcc 5 properly
Browse files Browse the repository at this point in the history
The ifdef tests were broken.  Assume it acts like gcc 4

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed May 21, 2007
1 parent 6c977aa commit 21124a8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/linux/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ extern void __chk_io_ptr(const void __iomem *);

#ifdef __KERNEL__

#if __GNUC__ > 4
#error no compiler-gcc.h file for this gcc version
#elif __GNUC__ == 4
#if __GNUC__ >= 4
# include <linux/compiler-gcc4.h>
#elif __GNUC__ == 3 && __GNUC_MINOR__ >= 2
# include <linux/compiler-gcc3.h>
Expand Down

0 comments on commit 21124a8

Please sign in to comment.