Blame view

include/linux/compiler-gcc3.h 823 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

6680598b4   Ingo Molnar   Disallow gcc vers...
5
6
7
  #if __GNUC_MINOR__ < 2
  # error Sorry, your compiler is too old - please upgrade it.
  #endif
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
8
  #if __GNUC_MINOR__ >= 3
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
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
13
14
15
  #if __GNUC_MINOR__ >= 4
  #define __must_check		__attribute__((warn_unused_result))
  #endif
2521f2c22   Peter Oberparleiter   gcov: add gcov pr...
16
17
18
19
20
  #ifdef CONFIG_GCOV_KERNEL
  # if __GNUC_MINOR__ < 4
  #   error "GCOV profiling support for gcc versions below 3.4 not included"
  # endif /* __GNUC_MINOR__ */
  #endif /* CONFIG_GCOV_KERNEL */
949099148   Borislav Petkov   Add unitialized_v...
21
22
23
24
25
  /*
   * A trick to suppress uninitialized variable warning without generating any
   * code
   */
  #define uninitialized_var(x) x = x
40fc55cb6   Ingo Molnar   [PATCH] Make __al...
26
  #define __always_inline		inline __attribute__((always_inline))