When building the GNU tool chain on a host with GCC 4.6.3, the build
fails due to lack of a gnu_inline attribute for cfns.gperf. I believe
the following patch fixes this problem.
My only concern is that this has not appeared upstream, although it has
appeared as an issue on a number of IRC channels. Comments welcome
before I commit it.
Index: gcc/cp/cfns.h
===================================================================
--- gcc/cp/cfns.h (revision 2559)
+++ gcc/cp/cfns.h (working copy)
@@ -1,5 +1,5 @@
-/* ANSI-C code produced by gperf version 3.0.3 */
-/* Command-line: gperf -o -C -E -k '1-6,$' -j1 -D -N libc_name_p -L ANSI-C
cfns.gperf */
+/* ANSI-C code produced by gperf version 3.0.4 */
+/* Command-line: gperf -o -C -E -k '1-6,$' -j1 -D -N libc_name_p -L ANSI-C
../../unisrc/gcc/cp/cfns.gperf */
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
@@ -28,7 +28,7 @@
#error "gperf generated tables don't work with this execution character set.
Please report a bug to <[email protected]>."
#endif
-#line 1 "cfns.gperf"
+#line 1 "../../unisrc/gcc/cp/cfns.gperf"
/* Copyright (C) 2000, 2003 Free Software Foundation, Inc.
@@ -54,7 +54,7 @@
#ifdef __GNUC__
__inline
#endif
-const char * libc_name_p (const char *, unsigned int);
+__attribute__ ((gnu_inline)) const char * libc_name_p (const char *, unsigned
int);
/* maximum key range = 391, duplicates = 0 */
#ifdef __GNUC__
@@ -124,7 +124,7 @@
#ifdef __GNUC__
__inline
-#ifdef __GNUC_STDC_INLINE__
+#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
__attribute__ ((__gnu_inline__))
#endif
#endif
Index: gcc/cp/cfns.gperf
===================================================================
--- gcc/cp/cfns.gperf (revision 2559)
+++ gcc/cp/cfns.gperf (working copy)
@@ -23,7 +23,7 @@
#ifdef __GNUC__
__inline
#endif
-const char * libc_name_p (const char *, unsigned int);
+__attribute__ ((gnu_inline)) const char * libc_name_p (const char *, unsigned
int);
%}
%%
# The standard C library functions, for feeding to gperf; the result is used
Jeremy
--
Tel: +44 (1590) 610184
Cell: +44 (7970) 676050
SkypeID: jeremybennett
Email: [email protected]
Web: www.embecosm.com
_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc