[BACK]Return to patch-libgcc_config.host CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / lang / gcc7 / patches

File: [cvs.NetBSD.org] / pkgsrc / lang / gcc7 / patches / patch-libgcc_config.host (download)

Revision 1.1, Sun Jun 17 19:50:52 2018 UTC (5 years, 10 months ago) by maya
Branch: MAIN
CVS Tags: pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2

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.

$NetBSD: patch-libgcc_config.host,v 1.1 2018/06/17 19:50:52 maya Exp $

netbsd/arm EABI support

--- libgcc/config.host.orig	2018-01-08 13:39:11.000000000 +0000
+++ libgcc/config.host
@@ -396,7 +396,16 @@ arm*-*-freebsd*)                # ARM Fr
 	tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
 	;;
 arm*-*-netbsdelf*)
-	tmake_file="$tmake_file arm/t-arm arm/t-netbsd t-slibgcc-gld-nover"
+	tmake_file="$tmake_file arm/t-arm"
+	case ${host} in
+	arm*-*-netbsdelf-*eabi*)
+	  tmake_file="${tmake_file} arm/t-netbsd-eabi"
+	  unwind_header=config/arm/unwind-arm.h
+	;;
+	*)
+	  tmake_file="${tmake_file} arm/t-netbsd t-slibgcc-gld-nover"
+	  ;;
+	esac
 	;;
 arm*-*-linux*)			# ARM GNU/Linux with ELF
 	tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm"