fix GMP base URL
[rofl0r-mmix-cross.git] / patches / gcc-4.7.4-gperf.diff
blob63253515db223f8c449790ca6789f8ac8a37a72b
1 fixes build error when compiled with GCC 6.3.0:
2 In file included from ../../gcc/cp/except.c:990:0:
3 cfns.gperf: At top level:
4 cfns.gperf:101:1: error: 'gnu_inline' attribute present on 'libc_name_p'
5 cfns.gperf:26:14: error: but not here
7 --- gcc-4.7.4.org/gcc/cp/cfns.h 2009-04-21 20:03:23.000000000 +0000
8 +++ gcc-4.7.4/gcc/cp/cfns.h 2017-01-29 02:12:54.225436646 +0000
9 @@ -51,9 +51,6 @@
10 __inline
11 #endif
12 static unsigned int hash (const char *, unsigned int);
13 -#ifdef __GNUC__
14 -__inline
15 -#endif
16 const char * libc_name_p (const char *, unsigned int);
17 /* maximum key range = 391, duplicates = 0 */
19 @@ -122,12 +119,6 @@
20 return hval + asso_values[(unsigned char)str[len - 1]];
23 -#ifdef __GNUC__
24 -__inline
25 -#ifdef __GNUC_STDC_INLINE__
26 -__attribute__ ((__gnu_inline__))
27 -#endif
28 -#endif
29 const char *
30 libc_name_p (register const char *str, register unsigned int len)