summaryrefslogtreecommitdiff
path: root/lang/gcc44
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-03-02 18:05:01 +0000
committerjoerg <joerg@pkgsrc.org>2013-03-02 18:05:01 +0000
commit48bc7119f06fee03d9cd8cb2d7091b7a99c92292 (patch)
tree12e5c2512b4849f7e4e67e72095661684b5aa839 /lang/gcc44
parent9d838cab8c130943cabb7ad3494518f9c39f6fb6 (diff)
downloadpkgsrc-48bc7119f06fee03d9cd8cb2d7091b7a99c92292.tar.gz
Fix build with clang.
Diffstat (limited to 'lang/gcc44')
-rw-r--r--lang/gcc44/distinfo3
-rw-r--r--lang/gcc44/patches/patch-gcc_toplev.h20
2 files changed, 22 insertions, 1 deletions
diff --git a/lang/gcc44/distinfo b/lang/gcc44/distinfo
index 5a332102f33..7e1d0ede7d0 100644
--- a/lang/gcc44/distinfo
+++ b/lang/gcc44/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2012/06/08 15:42:28 joerg Exp $
+$NetBSD: distinfo,v 1.16 2013/03/02 18:05:01 joerg Exp $
SHA1 (gcc-4.4.7.tar.bz2) = a6c834b0c2f58583da1d093de7a81a20ede9af75
RMD160 (gcc-4.4.7.tar.bz2) = 481609ebff38bf8a1fdf9a300dc460c1f425836a
@@ -13,3 +13,4 @@ SHA1 (patch-ak) = 08da661b8b19fdd9fa086f67b185266c1d378658
SHA1 (patch-al) = 462059744f7f057f13d6c472d0aff9d012546082
SHA1 (patch-am) = fcfabcec9e6d0b8e9ada348dc65e8ddb890f96ca
SHA1 (patch-gcc_ginclude_stddef.h) = 867e3ff87f0b8865b37823c42c9b01935b94e5fb
+SHA1 (patch-gcc_toplev.h) = 536f52c86635b2a5ba894499fa6c398f9206c82a
diff --git a/lang/gcc44/patches/patch-gcc_toplev.h b/lang/gcc44/patches/patch-gcc_toplev.h
new file mode 100644
index 00000000000..099bc44e533
--- /dev/null
+++ b/lang/gcc44/patches/patch-gcc_toplev.h
@@ -0,0 +1,20 @@
+$NetBSD: patch-gcc_toplev.h,v 1.1 2013/03/02 18:05:01 joerg Exp $
+
+--- gcc/toplev.h.orig 2009-02-20 15:20:38.000000000 +0000
++++ gcc/toplev.h
+@@ -186,13 +186,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;