diff options
author | joerg <joerg@pkgsrc.org> | 2014-09-10 12:13:06 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2014-09-10 12:13:06 +0000 |
commit | 44a28a45ac60a3663313e30288184d1973166137 (patch) | |
tree | 28b2b2786bdbd361e451fee60721e9afbb78caa4 /cross/nios2-gcc41/patches/patch-gcc_toplev.h | |
parent | 50c1da4be77efd27695086661f92035299916f1e (diff) | |
download | pkgsrc-44a28a45ac60a3663313e30288184d1973166137.tar.gz |
With build with clang due to overlap with system headers.
Diffstat (limited to 'cross/nios2-gcc41/patches/patch-gcc_toplev.h')
-rw-r--r-- | cross/nios2-gcc41/patches/patch-gcc_toplev.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cross/nios2-gcc41/patches/patch-gcc_toplev.h b/cross/nios2-gcc41/patches/patch-gcc_toplev.h new file mode 100644 index 00000000000..4b3f3802587 --- /dev/null +++ b/cross/nios2-gcc41/patches/patch-gcc_toplev.h @@ -0,0 +1,20 @@ +$NetBSD: patch-gcc_toplev.h,v 1.1 2014/09/10 12:13:06 joerg Exp $ + +--- gcc/toplev.h.orig 2013-06-13 21:33:10.000000000 +0000 ++++ 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; |