pkgsrc/lang/gcc7/patches/patch-libgcc_config_arm_t-netbsd
maya 37e41c8801 gcc7: fix many netbsd targets.
add netbsd/arm EABI target. recognise dwarf2 unwinding in the common arm code.

switch convoluted stddef.h logic from relying on include guards having certain
names to only applying for netbsd, which should be the sole remaining user.
(necessary for netbsd/arm, which uses different include guards for ansi.h)

move linux/alpha code out of shared alpha+ELF header.

make all netbsd targets include netbsd-stdint.h.

Fixes PR pkg/52951.

Bump PKGREVISION. bump gcc7-libs PKGREVISION above this one.
2018-06-17 19:50:52 +00:00

27 lines
1 KiB
Text

$NetBSD: patch-libgcc_config_arm_t-netbsd,v 1.1 2018/06/17 19:50:52 maya Exp $
Update arm t-netbsd from netbsd's base.
--- libgcc/config/arm/t-netbsd.orig 2011-11-02 15:23:48.000000000 +0000
+++ libgcc/config/arm/t-netbsd
@@ -1,7 +1,18 @@
+# This list is from t-elf, but with some things removed.
+LIB1ASMFUNCS += _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func \
+ _call_via_rX _interwork_call_via_rX \
+ _arm_fixunsdfsi _arm_fixunssfsi \
+ _arm_floatdidf _arm_floatdisf _arm_floatundidf _arm_floatundisf \
+ _lshrdi3 _ashrdi3 _ashldi3 \
+ _clzsi2 _clzdi2 _ctzsi2
+
# Just for these, we omit the frame pointer since it makes such a big
# difference. It is then pointless adding debugging.
HOST_LIBGCC2_CFLAGS += -fomit-frame-pointer
-LIBGCC2_DEBUG_CFLAGS = -g0
-
LIB2ADD += $(srcdir)/floatunsidf.c $(srcdir)/floatunsisf.c
+
+# Currently there is a bug somewhere in GCC's alias analysis
+# or scheduling code that is breaking _fpmul_parts in fp-bit.c.
+# Disabling function inlining is a workaround for this problem.
+HOST_LIBGCC2_CFLAGS += -fno-inline