linux/generic: sync to todays yaffs tree
[openwrt.git] / target / linux / octeon / patches-2.6.30 / 001-handle_removal_h_constraint.patch
1 This is an incomplete proof of concept that I applied to be able to
2 build a 64 bit kernel with GCC-4.4. It doesn't handle the 32 bit case
3 or the R4000_WAR case.
4
5 Comments welcome.
6
7 Signed-off-by: David Daney <ddaney@caviumnetworks.com>
8 ---
9 arch/mips/include/asm/compiler.h | 7 +++++++
10 2 files changed, 11 insertions(+), 0 deletions(-)
11
12 --- a/arch/mips/include/asm/compiler.h
13 +++ b/arch/mips/include/asm/compiler.h
14 @@ -16,4 +16,11 @@
15 #define GCC_REG_ACCUM "accum"
16 #endif
17
18 +#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
19 +#define GCC_NO_H_CONSTRAINT
20 +#ifdef CONFIG_64BIT
21 +typedef unsigned int uint128_t __attribute__((mode(TI)));
22 +#endif
23 +#endif
24 +
25 #endif /* _ASM_COMPILER_H */
This page took 0.041648 seconds and 5 git commands to generate.