aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-12-09 00:50:22 (GMT)
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-12-09 00:50:22 (GMT)
commit3ae0c9a36154b9e079f83aed30c9878d8fa8b9ea (patch)
tree6383844c0d69b48bfa959ba6a3b6a69f647db590 /gcc-4.9/gcc
parent41f3e25635616c067b9ee272304e6f86ac8ee9db (diff)
downloadtoolchain_gcc-3ae0c9a36154b9e079f83aed30c9878d8fa8b9ea.zip
toolchain_gcc-3ae0c9a36154b9e079f83aed30c9878d8fa8b9ea.tar.gz
toolchain_gcc-3ae0c9a36154b9e079f83aed30c9878d8fa8b9ea.tar.bz2
Remove inline redeclaration of libc_name_p
prevents build error with recent gcc: In file included from .././../../../../../src/gcc/gcc-4.9/gcc/cp/except.c:1013:0: cfns.gperf: In function ‘const char* libc_name_p(const char*, unsigned int)’: cfns.gperf:101:1: error: ‘const char* libc_name_p(const char*, unsigned int)’ redeclared inline with ‘gnu_inline’ attribute cfns.gperf:26:14: note: ‘const char* libc_name_p(const char*, unsigned int)’ previously declared here cfns.gperf: At global scope: cfns.gperf:26:14: warning: inline function ‘const char* libc_name_p(const char*, unsigned int)’ used but never defined Change-Id: I5130fc219d5fa39913ffa18a33185dcb64508dd3 Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
Diffstat (limited to 'gcc-4.9/gcc')
-rw-r--r--gcc-4.9/gcc/cp/cfns.gperf4
-rw-r--r--gcc-4.9/gcc/cp/cfns.h4
2 files changed, 0 insertions, 8 deletions
diff --git a/gcc-4.9/gcc/cp/cfns.gperf b/gcc-4.9/gcc/cp/cfns.gperf
index 05ca753..b3c1ac7 100644
--- a/gcc-4.9/gcc/cp/cfns.gperf
+++ b/gcc-4.9/gcc/cp/cfns.gperf
@@ -20,10 +20,6 @@ along with GCC; see the file COPYING3. If not see
__inline
#endif
static unsigned int hash (const char *, unsigned int);
-#ifdef __GNUC__
-__inline
-#endif
-const char * libc_name_p (const char *, unsigned int);
%}
%%
# The standard C library functions, for feeding to gperf; the result is used
diff --git a/gcc-4.9/gcc/cp/cfns.h b/gcc-4.9/gcc/cp/cfns.h
index c845ddf..6c9c8c4 100644
--- a/gcc-4.9/gcc/cp/cfns.h
+++ b/gcc-4.9/gcc/cp/cfns.h
@@ -51,10 +51,6 @@ along with GCC; see the file COPYING3. If not see
__inline
#endif
static unsigned int hash (const char *, unsigned int);
-#ifdef __GNUC__
-__inline
-#endif
-const char * libc_name_p (const char *, unsigned int);
/* maximum key range = 391, duplicates = 0 */
#ifdef __GNUC__