summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-03-17 21:37:11 -0400
committermidipix <writeonce@midipix.org>2015-03-17 21:37:11 -0400
commite610549b824fffff1c259b6e00c75d09c19d665e (patch)
tree41c41cdeb0d2425efe732e630706e98a01348003 /gcc
parent5351b7aa52a76c8a03525a75a888a0168ebebe7f (diff)
downloadcbb-gcc-4.6.4-e610549b824fffff1c259b6e00c75d09c19d665e.tar.bz2
cbb-gcc-4.6.4-e610549b824fffff1c259b6e00c75d09c19d665e.tar.xz
cfns.gperf, cfns.h: fix function inlining.
signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/cfns.gperf6
-rw-r--r--gcc/cp/cfns.h8
2 files changed, 1 insertions, 13 deletions
diff --git a/gcc/cp/cfns.gperf b/gcc/cp/cfns.gperf
index ef1ed083d..91f135e55 100644
--- a/gcc/cp/cfns.gperf
+++ b/gcc/cp/cfns.gperf
@@ -16,13 +16,7 @@ for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
-#ifdef __GNUC__
-__inline
-#endif
static unsigned int hash (const char *, unsigned int);
-#ifdef __GNUC__
-__inline
-#endif
const char * libc_name_p (const char *, unsigned int);
%}
%%
diff --git a/gcc/cp/cfns.h b/gcc/cp/cfns.h
index 62cdfab93..17bcd125b 100644
--- a/gcc/cp/cfns.h
+++ b/gcc/cp/cfns.h
@@ -47,13 +47,7 @@ for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
-#ifdef __GNUC__
-__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 */
@@ -124,7 +118,7 @@ hash (register const char *str, register unsigned int len)
#ifdef __GNUC__
__inline
-#ifdef __GNUC_STDC_INLINE__
+#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
__attribute__ ((__gnu_inline__))
#endif
#endif