Blame view
include/linux/compiler-gcc3.h
635 Bytes
94f582f82
|
1 2 3 |
#ifndef __LINUX_COMPILER_H #error "Please don't include <linux/compiler-gcc3.h> directly, include <linux/compiler.h> instead." #endif |
1da177e4c
|
4 |
|
733ed6e43
|
5 |
#if GCC_VERSION < 30200 |
6680598b4
|
6 7 |
# error Sorry, your compiler is too old - please upgrade it. #endif |
733ed6e43
|
8 |
#if GCC_VERSION >= 30300 |
0d7ebbbc6
|
9 |
# define __used __attribute__((__used__)) |
1da177e4c
|
10 |
#else |
0d7ebbbc6
|
11 |
# define __used __attribute__((__unused__)) |
1da177e4c
|
12 |
#endif |
733ed6e43
|
13 |
#if GCC_VERSION >= 30400 |
1da177e4c
|
14 15 |
#define __must_check __attribute__((warn_unused_result)) #endif |
2521f2c22
|
16 |
#ifdef CONFIG_GCOV_KERNEL |
733ed6e43
|
17 |
# if GCC_VERSION < 30400 |
2521f2c22
|
18 19 20 |
# error "GCOV profiling support for gcc versions below 3.4 not included" # endif /* __GNUC_MINOR__ */ #endif /* CONFIG_GCOV_KERNEL */ |