move more stuff into compiler-gcc.h
PATCH 1/1 move more stuff into compiler-gcc.h
Stuff that is unconditional in both compiler-gcc3.h and compiler-gcc4.h belongs into compiler-gcc.h.
Signed-off-by Adrian Bunk <[email protected]>
---
include/linux/compiler-gcc.h | 8 ++++++++ include/linux/compiler-gcc3.h | 8 -------- include/linux/compiler-gcc4.h | 7 ------- 3 files changed, 8 insertions(+), 15 deletions(-)
commit 13893bca73ac361f0c1c937f83b30ed9c2f8f64a
Author: Adrian Bunk <[email protected]> Date: Fri Oct 26 03:50:51 2007 +0200
include/linux/compiler-gcc.h +8 -0
@@ -31,6 +31,7 @@#define inline inline __attribute__((always_inline))#define __inline__ __inline__ __attribute__((always_inline))#define __inline __inline __attribute__((always_inline)) +#define __always_inline inline __attribute__((always_inline))#define __deprecated __attribute__((deprecated))#define __packed __attribute__((packed))#define __weak __attribute__((weak))
@@ -53,3 +54,10 @@#define noinline __attribute__((noinline))#define __attribute_const__ __attribute__((__const__))#define __maybe_unused __attribute__((unused)) + + +/* +* A trick to suppress uninitialized variable warning without generating any +* code +*/ +#define uninitialized_var (x) x = x
include/linux/compiler-gcc3.h +0 -8
@@ -16,11 +16,3 @@#if __GNUC_MINOR__ >=4 #define __must_check __attribute__((warn_unused_result))#endif - -/* -* A trick to suppress uninitialized variable warning without generating any -* code -*/ -#define uninitialized_var (x) x = x - -#define __always_inline inline __attribute__((always_inline))
include/linux/compiler-gcc4.h +0 -7
@@ -18,13 +18,6 @@#define __attribute_used__ __used/* deprecated */ #define __must_check __attribute__((warn_unused_result))#define __compiler_offsetof (a,b) __builtin_offsetof(a,b) -#define __always_inline inline __attribute__((always_inline)) - -/* -* A trick to suppress uninitialized variable warning without generating any -* code -*/ -#define uninitialized_var (x) x = x#if !(__GNUC__ ==4 && __GNUC_MINOR__ <3 )/* Mark functions as cold. gcc will assume any path leading to a call