Blame view

include/linux/compiler-gcc3.h 635 Bytes
94f582f82   Robert P. J. Day   Force erroneous i...
1
2
3
  #ifndef __LINUX_COMPILER_H
  #error "Please don't include <linux/compiler-gcc3.h> directly, include <linux/compiler.h> instead."
  #endif
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
4

733ed6e43   Daniel Santos   compiler-gcc{3,4}...
5
  #if GCC_VERSION < 30200
6680598b4   Ingo Molnar   Disallow gcc vers...
6
7
  # error Sorry, your compiler is too old - please upgrade it.
  #endif
733ed6e43   Daniel Santos   compiler-gcc{3,4}...
8
  #if GCC_VERSION >= 30300
0d7ebbbc6   David Rientjes   compiler: introdu...
9
  # define __used			__attribute__((__used__))
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
10
  #else
0d7ebbbc6   David Rientjes   compiler: introdu...
11
  # define __used			__attribute__((__unused__))
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
12
  #endif
733ed6e43   Daniel Santos   compiler-gcc{3,4}...
13
  #if GCC_VERSION >= 30400
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
14
15
  #define __must_check		__attribute__((warn_unused_result))
  #endif
2521f2c22   Peter Oberparleiter   gcov: add gcov pr...
16
  #ifdef CONFIG_GCOV_KERNEL
733ed6e43   Daniel Santos   compiler-gcc{3,4}...
17
  # if GCC_VERSION < 30400
2521f2c22   Peter Oberparleiter   gcov: add gcov pr...
18
19
20
  #   error "GCOV profiling support for gcc versions below 3.4 not included"
  # endif /* __GNUC_MINOR__ */
  #endif /* CONFIG_GCOV_KERNEL */