Skip to contentSkip to conversation

Missing 'noinline' and '__compiler_offsetof' for GCC4+

PATCH David Woodhouse 2 participants 2 messages Mar 2, 2005

lore
Share & tools
lore
#0 lore raw

At some point we'll want to create 'compiler-gcc4.h' but probably not until it's going to be actually differ from 'compiler-gcc+.h'. Because they only get out of date if they're not used by anyone...

include/linux/compiler-gcc+.h renamed from include/linux/compiler-gcc+.h~ +2 -0
@@ -13,4 +13,6 @@
 #define __attribute_used__	__attribute__((__used__))
 #define __attribute_pure__	__attribute__((pure))
 #define __attribute_const__	__attribute__((__const__))
+#define  noinline		__attribute__((noinline))
 #define __must_check 		__attribute__((warn_unused_result))
+#define __compiler_offsetof(a,b) __builtin_offsetof(a,b)
Signature · 1 line
dwmw2
#1 lore raw
Quoted 4 lines · David Woodhouse

At some point we'll want to create 'compiler-gcc4.h' but probably not until it's going to be actually differ from 'compiler-gcc+.h'. Because they only get out of date if they're not used by anyone...
...

The solution already in -mm is:
- compiler-gcc+.h removed because it was never updated
- compiler-gcc4.h created, contains compiler-gcc+.h plus the two fixes you noted

Quoted 1 line

dwmw2

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed