patch gcc to compile with gcc 6.2 (long since fixed in the official gcc)

This commit is contained in:
Wolfgang Thaller 2017-04-11 16:58:44 +02:00
parent 21ec187812
commit 26c2330aae
2 changed files with 3 additions and 8 deletions

View File

@ -20,10 +20,10 @@ along with GCC; see the file COPYING3. If not see
__inline __inline
#endif #endif
static unsigned int hash (const char *, unsigned int); static unsigned int hash (const char *, unsigned int);
#ifdef __GNUC__ /*#ifdef __GNUC__
__inline __inline
#endif #endif
const char * libc_name_p (const char *, unsigned int); const char * libc_name_p (const char *, unsigned int);*/
%} %}
%% %%
# The standard C library functions, for feeding to gperf; the result is used # The standard C library functions, for feeding to gperf; the result is used

View File

@ -122,12 +122,7 @@ hash (register const char *str, register unsigned int len)
return hval + asso_values[(unsigned char)str[len - 1]]; return hval + asso_values[(unsigned char)str[len - 1]];
} }
#ifdef __GNUC__
__inline
#ifdef __GNUC_STDC_INLINE__
__attribute__ ((__gnu_inline__))
#endif
#endif
const char * const char *
libc_name_p (register const char *str, register unsigned int len) libc_name_p (register const char *str, register unsigned int len)
{ {