Port-arm archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Having trouble bilding src tools on NetBSD-5.2 for arm platform -- any ideas?
hello. The following fix allows me to build ARM on NetBSD-5 and
should allow builds to work on non-NetBSD hosts as well.
Unless there is an objection, I'll commit this later today.
-thanks
-Brian
Index: elf32-arm.c
===================================================================
RCS file: /cvsroot/src/external/gpl3/binutils/dist/bfd/elf32-arm.c,v
retrieving revision 1.10
diff -u -r1.10 elf32-arm.c
--- elf32-arm.c 26 Oct 2016 18:42:52 -0000 1.10
+++ elf32-arm.c 30 Dec 2016 17:21:37 -0000
@@ -3207,8 +3207,8 @@
#endif
}
-#ifndef __NetBSD__
-static inline int
+#if !defined (__NetBSD__) || (__NetBSD_Version__ < 600000000)
+inline unsigned int
popcount (unsigned int mask)
{
#if GCC_VERSION >= 3004
Home |
Main Index |
Thread Index |
Old Index