Messages in this thread Patch in this message | | | Subject | Missing 'noinline' and '__compiler_offsetof' for GCC4+ | From | David Woodhouse <> | Date | Wed, 02 Mar 2005 09:16:47 +0000 |
| |
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...
--- linux-2.6.10/include/linux/compiler-gcc+.h~ 2004-12-24 21:35:39.000000000 +0000 +++ linux-2.6.10/include/linux/compiler-gcc+.h 2005-03-01 15:49:47.000000000 +0000 @@ -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)
-- dwmw2
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |