summaryrefslogtreecommitdiff
path: root/cross/avr-gcc/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2012-11-16 00:38:21 +0000
committerjoerg <joerg@pkgsrc.org>2012-11-16 00:38:21 +0000
commit7028628854417327c1bf46882542b89d7c019bea (patch)
tree3e30ccb828e48edc3ebf9cb73998126a1d88e6af /cross/avr-gcc/patches
parentf8515c315e7a9d5c05b123645427d13694b62fd3 (diff)
downloadpkgsrc-7028628854417327c1bf46882542b89d7c019bea.tar.gz
Fix inline usage.
Diffstat (limited to 'cross/avr-gcc/patches')
-rw-r--r--cross/avr-gcc/patches/patch-gcc_cp_cfns.h20
-rw-r--r--cross/avr-gcc/patches/patch-gcc_toplev.h23
2 files changed, 43 insertions, 0 deletions
diff --git a/cross/avr-gcc/patches/patch-gcc_cp_cfns.h b/cross/avr-gcc/patches/patch-gcc_cp_cfns.h
new file mode 100644
index 00000000000..d960d3ecd50
--- /dev/null
+++ b/cross/avr-gcc/patches/patch-gcc_cp_cfns.h
@@ -0,0 +1,20 @@
+$NetBSD: patch-gcc_cp_cfns.h,v 1.1 2012/11/16 00:38:21 joerg Exp $
+
+--- gcc/cp/cfns.h.orig 2012-11-14 17:13:55.000000000 +0000
++++ gcc/cp/cfns.h
+@@ -35,13 +35,13 @@ __inline
+ #endif
+ static unsigned int hash (const char *, unsigned int);
+ #ifdef __GNUC__
+-__inline
++static __inline
+ #endif
+ const char * libc_name_p (const char *, unsigned int);
+ /* maximum key range = 391, duplicates = 0 */
+
+ #ifdef __GNUC__
+-__inline
++static __inline
+ #else
+ #ifdef __cplusplus
+ inline
diff --git a/cross/avr-gcc/patches/patch-gcc_toplev.h b/cross/avr-gcc/patches/patch-gcc_toplev.h
new file mode 100644
index 00000000000..c3cd951ccaa
--- /dev/null
+++ b/cross/avr-gcc/patches/patch-gcc_toplev.h
@@ -0,0 +1,23 @@
+$NetBSD: patch-gcc_toplev.h,v 1.1 2012/11/16 00:38:21 joerg Exp $
+
+--- gcc/toplev.h.orig 2012-11-14 17:06:44.000000000 +0000
++++ gcc/toplev.h
+@@ -185,18 +185,6 @@ extern int floor_log2 (
+ # define CLZ_HWI __builtin_clz
+ # define CTZ_HWI __builtin_ctz
+ # endif
+-
+-extern inline int
+-floor_log2 (unsigned HOST_WIDE_INT x)
+-{
+- return x ? HOST_BITS_PER_WIDE_INT - 1 - (int) CLZ_HWI (x) : -1;
+-}
+-
+-extern inline int
+-exact_log2 (unsigned HOST_WIDE_INT x)
+-{
+- return x == (x & -x) && x ? (int) CTZ_HWI (x) : -1;
+-}
+ #endif /* GCC_VERSION >= 3004 */
+
+ /* Functions used to get and set GCC's notion of in what directory