diff options
Diffstat (limited to 'lang/g95/patches/patch-gcc_toplev.h')
-rw-r--r-- | lang/g95/patches/patch-gcc_toplev.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/g95/patches/patch-gcc_toplev.h b/lang/g95/patches/patch-gcc_toplev.h new file mode 100644 index 00000000000..0dd63813958 --- /dev/null +++ b/lang/g95/patches/patch-gcc_toplev.h @@ -0,0 +1,20 @@ +$NetBSD: patch-gcc_toplev.h,v 1.1 2013/05/20 05:47:34 adam Exp $ + +--- ../gcc-4.1.2/gcc/toplev.h.orig 2005-09-09 00:47:05.000000000 +0000 ++++ ../gcc-4.1.2/gcc/toplev.h +@@ -171,13 +171,13 @@ extern int floor_log2 ( + # define CTZ_HWI __builtin_ctz + # endif + +-extern inline int ++extern __attribute__((__gnu_inline__)) 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 ++extern __attribute__((__gnu_inline__)) inline int + exact_log2 (unsigned HOST_WIDE_INT x) + { + return x == (x & -x) && x ? (int) CTZ_HWI (x) : -1; |