Mon Oct 1 17:26:52 2012 UTC ()
lang/gcc-aux 4.7.1: Upgrade to version 4.7.2

The GCC projected released version 4.7.2 on 20 September.  There were few
diff changes (only core and ada) between it and version 4.7.1, so it's a
straightforward update.

Release announcement: http://gcc.gnu.org/ml/gcc/2012-09/msg00181.html

Notable Excerpts:
GCC 4.7.2 is the first bug-fix release containing important fixes for
regressions and serious bugs in GCC 4.7.1 with over 70 bugs fixed since
the previous release

A notable change in GCC 4.7.2 compared to 4.7.1 are ABI bug fixes
related to some C++11 templates (std::list and std::pair).  As a result,
code using those templates in C++11 mode is again ABI compatible with
code in C++03/C++98 mode or C++11 mode of GCC 4.6 and earlier, but might
be ABI incompatible with code compiled by GCC 4.7.1 or 4.7.0 in C++11
mode.


(marino)
diff -r1.3 -r1.4 pkgsrc/lang/gcc-aux/Makefile
diff -r1.1 -r1.2 pkgsrc/lang/gcc-aux/distinfo
diff -r1.2 -r1.3 pkgsrc/lang/gcc-aux/files/diff-ada
diff -r1.3 -r1.4 pkgsrc/lang/gcc-aux/files/diff-core

cvs diff -r1.3 -r1.4 pkgsrc/lang/gcc-aux/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/gcc-aux/Makefile 2012/08/03 08:53:57 1.3
+++ pkgsrc/lang/gcc-aux/Makefile 2012/10/01 17:26:52 1.4
@@ -1,31 +1,30 @@ @@ -1,31 +1,30 @@
1# $NetBSD: Makefile,v 1.3 2012/08/03 08:53:57 marino Exp $ 1# $NetBSD: Makefile,v 1.4 2012/10/01 17:26:52 marino Exp $
2# 2#
3 3
4PKGNAME= gcc-aux-${SNAPSHOT} 4PKGNAME= gcc-aux-${SNAPSHOT}
5DISTNAME= gcc-${GCC_VERSION} 5DISTNAME= gcc-${GCC_VERSION}
6PKGREVISION= 2 
7CATEGORIES= lang 6CATEGORIES= lang
8MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC_VERSION}/} 7MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC_VERSION}/}
9DISTFILES= ${DISTNAME}.tar.bz2 8DISTFILES= ${DISTNAME}.tar.bz2
10 9
11MAINTAINER= draco@marino.st 10MAINTAINER= draco@marino.st
12HOMEPAGE= http://www.dragonlace.net/ 11HOMEPAGE= http://www.dragonlace.net/
13COMMENT= GNAT Ada compiler based on GCC ${GCC_BRANCH} 12COMMENT= GNAT Ada compiler based on GCC ${GCC_BRANCH}
14LICENSE= gnu-gpl-v3 AND gnu-lgpl-v3 13LICENSE= gnu-gpl-v3 AND gnu-lgpl-v3
15 14
16SNAPSHOT= 20120614 15SNAPSHOT= 20120920
17GCC_BRANCH= 4.7 16GCC_BRANCH= 4.7
18GCC_POINT= 1 17GCC_POINT= 2
19GCC_VERSION= ${GCC_BRANCH}.${GCC_POINT} 18GCC_VERSION= ${GCC_BRANCH}.${GCC_POINT}
20LANGS= c 19LANGS= c
21 20
22PKG_DESTDIR_SUPPORT= user-destdir 21PKG_DESTDIR_SUPPORT= user-destdir
23 22
24USE_TOOLS+= gmake sed:run perl makeinfo bzip2 patch pod2man 23USE_TOOLS+= gmake sed:run perl makeinfo bzip2 patch pod2man
25USE_BUILTIN.iconv= no 24USE_BUILTIN.iconv= no
26APPLY_DIFFS= core 25APPLY_DIFFS= core
27 26
28.include "../../mk/bsd.prefs.mk" 27.include "../../mk/bsd.prefs.mk"
29.include "options.mk" 28.include "options.mk"
30 29
31# Requires bootstrap compiler, which is only available for NetBSD i386/AMD64 30# Requires bootstrap compiler, which is only available for NetBSD i386/AMD64
@@ -318,23 +317,26 @@ test-cxx: @@ -318,23 +317,26 @@ test-cxx:
318.if !empty(PKG_OPTIONS:Mtestsuite) && !empty(PKG_OPTIONS:Mcxx) 317.if !empty(PKG_OPTIONS:Mtestsuite) && !empty(PKG_OPTIONS:Mcxx)
319 # libstdc++ always ends with error status, so ignore it 318 # libstdc++ always ends with error status, so ignore it
320 cd ${BUILDDIR} && ${SETENV} ${MY_MAKE_ENV} ${GMAKE} -sk \ 319 cd ${BUILDDIR} && ${SETENV} ${MY_MAKE_ENV} ${GMAKE} -sk \
321 check-c++ || ${TRUE} 320 check-c++ || ${TRUE}
322.endif 321.endif
323 322
324test-c: 323test-c:
325.if !empty(PKG_OPTIONS:Mtestsuite) 324.if !empty(PKG_OPTIONS:Mtestsuite)
326 cd ${BUILDDIR} && ${SETENV} ${MY_MAKE_ENV} ${GMAKE} -sk check-c 325 cd ${BUILDDIR} && ${SETENV} ${MY_MAKE_ENV} ${GMAKE} -sk check-c
327.endif 326.endif
328 327
329 328
330do-install: 329do-install:
331 cd ${BUILDDIR} && ${SETENV} ${MY_MAKE_ENV} ${GMAKE} install-strip \ 330 # This was install-strip, but a bug in 4.7.x prevents libobjc
 331 # from installation. Just install the unstripped version until
 332 # it's fixed (Bug filed with GCC: 54720)
 333 cd ${BUILDDIR} && ${SETENV} ${MY_MAKE_ENV} ${GMAKE} install \
332 DESTDIR=${DESTDIR} 334 DESTDIR=${DESTDIR}
333 335
334 336
335 337
336.include "../../converters/libiconv/buildlink3.mk" 338.include "../../converters/libiconv/buildlink3.mk"
337.include "../../devel/gmp/buildlink3.mk" 339.include "../../devel/gmp/buildlink3.mk"
338.include "../../math/mpfr/buildlink3.mk" 340.include "../../math/mpfr/buildlink3.mk"
339.include "../../math/mpcomplex/buildlink3.mk" 341.include "../../math/mpcomplex/buildlink3.mk"
340.include "../../mk/bsd.pkg.mk" 342.include "../../mk/bsd.pkg.mk"

cvs diff -r1.1 -r1.2 pkgsrc/lang/gcc-aux/distinfo (expand / switch to unified diff)

--- pkgsrc/lang/gcc-aux/distinfo 2012/07/08 19:30:38 1.1
+++ pkgsrc/lang/gcc-aux/distinfo 2012/10/01 17:26:52 1.2
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1$NetBSD: distinfo,v 1.1 2012/07/08 19:30:38 marino Exp $ 1$NetBSD: distinfo,v 1.2 2012/10/01 17:26:52 marino Exp $
2 2
3SHA1 (gcc-4.7.1.tar.bz2) = 3ab74e63a8f2120b4f2c5557f5ffec6907337137 3SHA1 (gcc-4.7.2.tar.bz2) = a464ba0f26eef24c29bcd1e7489421117fb9ee35
4RMD160 (gcc-4.7.1.tar.bz2) = 4b52d867d06288a0b3bb33c845cac0112c22b513 4RMD160 (gcc-4.7.2.tar.bz2) = fc281ade14b47d2a9c2ced4f7082c74bfbae31c1
5Size (gcc-4.7.1.tar.bz2) = 82639660 bytes 5Size (gcc-4.7.2.tar.bz2) = 82884636 bytes
6SHA1 (gnat-bootstrap.i386.dragonfly.tar.bz2) = d7a8103243a2df3723d9d3c3ec0da9c3bb725214 6SHA1 (gnat-bootstrap.i386.dragonfly.tar.bz2) = d7a8103243a2df3723d9d3c3ec0da9c3bb725214
7RMD160 (gnat-bootstrap.i386.dragonfly.tar.bz2) = 9e6fde444e0ed76ee404810af6d6b7eb48659c09 7RMD160 (gnat-bootstrap.i386.dragonfly.tar.bz2) = 9e6fde444e0ed76ee404810af6d6b7eb48659c09
8Size (gnat-bootstrap.i386.dragonfly.tar.bz2) = 28205489 bytes 8Size (gnat-bootstrap.i386.dragonfly.tar.bz2) = 28205489 bytes
9SHA1 (gnat-bootstrap.i386.netbsd.tar.bz2) = 19b61f54fae8e237a4e678ff03f20f50b47db1df 9SHA1 (gnat-bootstrap.i386.netbsd.tar.bz2) = 19b61f54fae8e237a4e678ff03f20f50b47db1df
10RMD160 (gnat-bootstrap.i386.netbsd.tar.bz2) = ade03f223b2af229daece20a749915f7da0eb0a6 10RMD160 (gnat-bootstrap.i386.netbsd.tar.bz2) = ade03f223b2af229daece20a749915f7da0eb0a6
11Size (gnat-bootstrap.i386.netbsd.tar.bz2) = 27654956 bytes 11Size (gnat-bootstrap.i386.netbsd.tar.bz2) = 27654956 bytes
12SHA1 (gnat-bootstrap.x86_64.dragonfly.tar.bz2) = 77a637a497c61e4085de31b24a205f24b1776a15 12SHA1 (gnat-bootstrap.x86_64.dragonfly.tar.bz2) = 77a637a497c61e4085de31b24a205f24b1776a15
13RMD160 (gnat-bootstrap.x86_64.dragonfly.tar.bz2) = 4d0eb7b8a5f901333f1ffd190a5bf72072b2b52e 13RMD160 (gnat-bootstrap.x86_64.dragonfly.tar.bz2) = 4d0eb7b8a5f901333f1ffd190a5bf72072b2b52e
14Size (gnat-bootstrap.x86_64.dragonfly.tar.bz2) = 31380342 bytes 14Size (gnat-bootstrap.x86_64.dragonfly.tar.bz2) = 31380342 bytes
15SHA1 (gnat-bootstrap.x86_64.netbsd.tar.bz2) = 84f0e9179998daa643046a5d139321c4130ea84d 15SHA1 (gnat-bootstrap.x86_64.netbsd.tar.bz2) = 84f0e9179998daa643046a5d139321c4130ea84d
16RMD160 (gnat-bootstrap.x86_64.netbsd.tar.bz2) = 0b2943349536c323a62b56dc05ff1fedd6d7e17a 16RMD160 (gnat-bootstrap.x86_64.netbsd.tar.bz2) = 0b2943349536c323a62b56dc05ff1fedd6d7e17a
17Size (gnat-bootstrap.x86_64.netbsd.tar.bz2) = 30572187 bytes 17Size (gnat-bootstrap.x86_64.netbsd.tar.bz2) = 30572187 bytes
18SHA1 (gnat-bootstrap.i386.solaris.tar.bz2) = 4962657bfc894a20ad3102c1f6fe8e566b47cb51 18SHA1 (gnat-bootstrap.i386.solaris.tar.bz2) = 4962657bfc894a20ad3102c1f6fe8e566b47cb51

cvs diff -r1.2 -r1.3 pkgsrc/lang/gcc-aux/files/diff-ada (expand / switch to unified diff)

--- pkgsrc/lang/gcc-aux/files/diff-ada 2012/07/14 21:53:05 1.2
+++ pkgsrc/lang/gcc-aux/files/diff-ada 2012/10/01 17:26:52 1.3
@@ -8961,27 +8961,27 @@ @@ -8961,27 +8961,27 @@
8961 $(X86_TARGET_PAIRS) \ 8961 $(X86_TARGET_PAIRS) \
8962 system.ads<system-freebsd-x86.ads 8962 system.ads<system-freebsd-x86.ads
8963  8963
8964- TOOLS_TARGET_PAIRS = \ 8964- TOOLS_TARGET_PAIRS = \
8965- mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb 8965- mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
8966 GNATLIB_SHARED = gnatlib-shared-dual 8966 GNATLIB_SHARED = gnatlib-shared-dual
8967  8967
8968+ EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o 8968+ EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
8969+ EXTRA_GNATRTL_TASKING_OBJS=a-exetim.o 8969+ EXTRA_GNATRTL_TASKING_OBJS=a-exetim.o
8970+ 8970+
8971 EH_MECHANISM=-gcc 8971 EH_MECHANISM=-gcc
8972 THREADSLIB= -lpthread 8972 THREADSLIB= -lpthread
8973 GMEM_LIB = gmemlib 8973 GMEM_LIB = gmemlib
8974@@ -1231,26 +1240,101 @@ 8974@@ -1231,26 +1240,33 @@
8975 MISCLIB = -lutil 8975 MISCLIB = -lutil
8976 endif 8976 endif
8977  8977
8978-ifeq ($(strip $(filter-out %86_64 freebsd%,$(arch) $(osys))),) 8978-ifeq ($(strip $(filter-out %86_64 freebsd%,$(arch) $(osys))),)
8979+ 8979+
8980+# FREEBSD AMD64 8980+# FREEBSD AMD64
8981+ifeq ($(strip $(filter-out x86_64 freebsd%,$(arch) $(osys))),) 8981+ifeq ($(strip $(filter-out x86_64 freebsd%,$(arch) $(osys))),)
8982 LIBGNAT_TARGET_PAIRS = \ 8982 LIBGNAT_TARGET_PAIRS = \
8983+ a-exetim.adb<a-exetim-posix.adb \ 8983+ a-exetim.adb<a-exetim-posix.adb \
8984+ a-exetim.ads<a-exetim-default.ads \ 8984+ a-exetim.ads<a-exetim-default.ads \
8985 a-intnam.ads<a-intnam-freebsd.ads \ 8985 a-intnam.ads<a-intnam-freebsd.ads \
8986+ g-socthi.adb<g-socthi-bsd.adb \ 8986+ g-socthi.adb<g-socthi-bsd.adb \
8987+ g-trasym.adb<g-trasym-bsd.adb \ 8987+ g-trasym.adb<g-trasym-bsd.adb \
@@ -8998,33 +8998,33 @@ @@ -8998,33 +8998,33 @@
8998 s-tpopsp.adb<s-tpopsp-posix.adb \ 8998 s-tpopsp.adb<s-tpopsp-posix.adb \
8999- g-trasym.adb<g-trasym-dwarf.adb \ 8999- g-trasym.adb<g-trasym-dwarf.adb \
9000 $(ATOMICS_TARGET_PAIRS) \ 9000 $(ATOMICS_TARGET_PAIRS) \
9001 $(X86_64_TARGET_PAIRS) \ 9001 $(X86_64_TARGET_PAIRS) \
9002 system.ads<system-freebsd-x86_64.ads 9002 system.ads<system-freebsd-x86_64.ads
9003  9003
9004- TOOLS_TARGET_PAIRS = \ 9004- TOOLS_TARGET_PAIRS = \
9005- mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb 9005- mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
9006 GNATLIB_SHARED = gnatlib-shared-dual 9006 GNATLIB_SHARED = gnatlib-shared-dual
9007  9007
9008+ EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o 9008+ EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
9009+ EXTRA_GNATRTL_TASKING_OBJS=a-exetim.o 9009+ EXTRA_GNATRTL_TASKING_OBJS=a-exetim.o
9010+ 9010+
9011+ EH_MECHANISM=-gcc 9011 EH_MECHANISM=-gcc
9012+ THREADSLIB= -lpthread 9012 THREADSLIB= -lpthread
9013+ GMEM_LIB = gmemlib 9013 GMEM_LIB = gmemlib
9014+ LIBRARY_VERSION := $(LIB_VERSION) 9014@@ -1258,6 +1274,268 @@
9015+ MISCLIB = -lutil 9015 MISCLIB = -lutil
9016+endif 9016 endif
9017+ 9017
9018+ 9018+
9019+# DRAGONFLY i386 9019+# DRAGONFLY i386
9020+ifeq ($(strip $(filter-out %86 dragonfly%,$(arch) $(osys))),) 9020+ifeq ($(strip $(filter-out %86 dragonfly%,$(arch) $(osys))),)
9021+ LIBGNAT_TARGET_PAIRS = \ 9021+ LIBGNAT_TARGET_PAIRS = \
9022+ a-exetim.adb<a-exetim-posix.adb \ 9022+ a-exetim.adb<a-exetim-posix.adb \
9023+ a-exetim.ads<a-exetim-default.ads \ 9023+ a-exetim.ads<a-exetim-default.ads \
9024+ a-intnam.ads<a-intnam-dragonfly.ads \ 9024+ a-intnam.ads<a-intnam-dragonfly.ads \
9025+ g-socthi.adb<g-socthi-bsd.adb \ 9025+ g-socthi.adb<g-socthi-bsd.adb \
9026+ g-trasym.adb<g-trasym-bsd.adb \ 9026+ g-trasym.adb<g-trasym-bsd.adb \
9027+ s-inmaop.adb<s-inmaop-posix.adb \ 9027+ s-inmaop.adb<s-inmaop-posix.adb \
9028+ s-intman.adb<s-intman-posix.adb \ 9028+ s-intman.adb<s-intman-posix.adb \
9029+ s-mudido.adb<s-mudido-affinity.adb \ 9029+ s-mudido.adb<s-mudido-affinity.adb \
9030+ s-osinte.adb<s-osinte-dragonfly.adb \ 9030+ s-osinte.adb<s-osinte-dragonfly.adb \
@@ -9066,33 +9066,33 @@ @@ -9066,33 +9066,33 @@
9066+ s-osprim.adb<s-osprim-posix.adb \ 9066+ s-osprim.adb<s-osprim-posix.adb \
9067+ s-taprop.adb<s-taprop-posix.adb \ 9067+ s-taprop.adb<s-taprop-posix.adb \
9068+ s-taspri.ads<s-taspri-posix.ads \ 9068+ s-taspri.ads<s-taspri-posix.ads \
9069+ s-tpopsp.adb<s-tpopsp-posix.adb \ 9069+ s-tpopsp.adb<s-tpopsp-posix.adb \
9070+ $(ATOMICS_TARGET_PAIRS) \ 9070+ $(ATOMICS_TARGET_PAIRS) \
9071+ $(X86_64_TARGET_PAIRS) \ 9071+ $(X86_64_TARGET_PAIRS) \
9072+ system.ads<system-dragonfly-x86_64.ads 9072+ system.ads<system-dragonfly-x86_64.ads
9073+ 9073+
9074+ GNATLIB_SHARED = gnatlib-shared-dual 9074+ GNATLIB_SHARED = gnatlib-shared-dual
9075+ 9075+
9076+ EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o 9076+ EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
9077+ EXTRA_GNATRTL_TASKING_OBJS=a-exetim.o 9077+ EXTRA_GNATRTL_TASKING_OBJS=a-exetim.o
9078+ 9078+
9079 EH_MECHANISM=-gcc 9079+ EH_MECHANISM=-gcc
9080 THREADSLIB= -lpthread 9080+ THREADSLIB= -lpthread
9081 GMEM_LIB = gmemlib 9081+ GMEM_LIB = gmemlib
9082@@ -1258,6 +1342,200 @@ 9082+ LIBRARY_VERSION := $(LIB_VERSION)
9083 MISCLIB = -lutil 9083+ MISCLIB = -lutil
9084 endif 9084+endif
9085  9085+
9086+ 9086+
9087+# OPENBSD i386 9087+# OPENBSD i386
9088+ifeq ($(strip $(filter-out %86 openbsd%,$(arch) $(osys))),) 9088+ifeq ($(strip $(filter-out %86 openbsd%,$(arch) $(osys))),)
9089+ LIBGNAT_TARGET_PAIRS = \ 9089+ LIBGNAT_TARGET_PAIRS = \
9090+ a-exetim.adb<a-exetim-posix.adb \ 9090+ a-exetim.adb<a-exetim-posix.adb \
9091+ a-exetim.ads<a-exetim-default.ads \ 9091+ a-exetim.ads<a-exetim-default.ads \
9092+ a-intnam.ads<a-intnam-openbsd.ads \ 9092+ a-intnam.ads<a-intnam-openbsd.ads \
9093+ g-socthi.adb<g-socthi-bsd.adb \ 9093+ g-socthi.adb<g-socthi-bsd.adb \
9094+ g-trasym.adb<g-trasym-bsd.adb \ 9094+ g-trasym.adb<g-trasym-bsd.adb \
9095+ s-inmaop.adb<s-inmaop-posix.adb \ 9095+ s-inmaop.adb<s-inmaop-posix.adb \
9096+ s-intman.adb<s-intman-posix.adb \ 9096+ s-intman.adb<s-intman-posix.adb \
9097+ s-mudido.adb<s-mudido-affinity.adb \ 9097+ s-mudido.adb<s-mudido-affinity.adb \
9098+ s-osinte.adb<s-osinte-openbsd.adb \ 9098+ s-osinte.adb<s-osinte-openbsd.adb \
@@ -9270,35 +9270,26 @@ @@ -9270,35 +9270,26 @@
9270+ EXTRA_GNATRTL_TASKING_OBJS= s-linux.o 9270+ EXTRA_GNATRTL_TASKING_OBJS= s-linux.o
9271+ EH_MECHANISM= 9271+ EH_MECHANISM=
9272+ THREADSLIB= 9272+ THREADSLIB=
9273+ MISCLIB= 9273+ MISCLIB=
9274+ GNATLIB_SHARED= gnatlib-shared-dual 9274+ GNATLIB_SHARED= gnatlib-shared-dual
9275+ GMEM_LIB= gmemlib 9275+ GMEM_LIB= gmemlib
9276+ LIBRARY_VERSION:= $(LIB_VERSION) 9276+ LIBRARY_VERSION:= $(LIB_VERSION)
9277+endif 9277+endif
9278+ 9278+
9279+ 9279+
9280 ifeq ($(strip $(filter-out s390% linux%,$(arch) $(osys))),) 9280 ifeq ($(strip $(filter-out s390% linux%,$(arch) $(osys))),)
9281 LIBGNAT_TARGET_PAIRS_COMMON = \ 9281 LIBGNAT_TARGET_PAIRS_COMMON = \
9282 a-intnam.ads<a-intnam-linux.ads \ 9282 a-intnam.ads<a-intnam-linux.ads \
9283@@ -2597,7 +2875,7 @@ 
9284 $(MAKE) $(FLAGS_TO_PASS) \ 
9285 GNATLIBFLAGS="$(GNATLIBFLAGS)" \ 
9286 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \ 
9287- GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \ 
9288+ GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET)" \ 
9289 MULTISUBDIR="$(MULTISUBDIR)" \ 
9290 THREAD_KIND="$(THREAD_KIND)" \ 
9291 gnatlib 
9292--- gnattools/configure.orig 9283--- gnattools/configure.orig
9293+++ gnattools/configure 9284+++ gnattools/configure
9294@@ -2058,7 +2058,27 @@ 9285@@ -2058,7 +2058,27 @@
9295 s390*-*-linux*) 9286 s390*-*-linux*)
9296 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb" 9287 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb"
9297 ;; 9288 ;;
9298- *86-*-freebsd*) 9289- *86-*-freebsd*)
9299+ *86-*-freebsd* | x86_64-*-freebsd*) 9290+ *86-*-freebsd* | x86_64-*-freebsd*)
9300+ TOOLS_TARGET_PAIRS="\ 9291+ TOOLS_TARGET_PAIRS="\
9301+ mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \ 9292+ mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
9302+ indepsw.adb<indepsw-gnu.adb" 9293+ indepsw.adb<indepsw-gnu.adb"
9303+ ;; 9294+ ;;
9304+ *86-*-dragonfly* | x86_64-*-dragonfly*) 9295+ *86-*-dragonfly* | x86_64-*-dragonfly*)

cvs diff -r1.3 -r1.4 pkgsrc/lang/gcc-aux/files/diff-core (expand / switch to unified diff)

--- pkgsrc/lang/gcc-aux/files/diff-core 2012/08/03 08:53:57 1.3
+++ pkgsrc/lang/gcc-aux/files/diff-core 2012/10/01 17:26:52 1.4
@@ -1,65 +1,65 @@ @@ -1,65 +1,65 @@
1--- gcc/DEV-PHASE.orig 1--- gcc/DEV-PHASE.orig
2+++ gcc/DEV-PHASE 2+++ gcc/DEV-PHASE
3@@ -0,0 +1 @@ 3@@ -0,0 +1 @@
4+release 4+release
5--- gcc/config.gcc.orig 5--- gcc/config.gcc.orig
6+++ gcc/config.gcc 6+++ gcc/config.gcc
7@@ -573,6 +573,9 @@ 7@@ -581,6 +581,9 @@
8 "" | yes | posix) 8 "" | yes | posix)
9 thread_file='posix' 9 thread_file='posix'
10 ;; 10 ;;
11+ gnat | single) 11+ gnat | single)
12+ # Let these non-posix thread selections fall through if requested 12+ # Let these non-posix thread selections fall through if requested
13+ ;; 13+ ;;
14 *) 14 *)
15 echo 'Unknown thread configuration for FreeBSD' 15 echo 'Unknown thread configuration for FreeBSD'
16 exit 1 16 exit 1
17@@ -589,6 +592,26 @@ 17@@ -597,6 +600,26 @@
18 # need_64bit_hwint=yes # system compiler has this for all arch! 18 # need_64bit_hwint=yes # system compiler has this for all arch!
19 use_gcc_stdint=wrap 19 use_gcc_stdint=wrap
20 ;; 20 ;;
21+*-*-dragonfly*) 21+*-*-dragonfly*)
22+ gas=yes 22+ gas=yes
23+ gnu_ld=yes 23+ gnu_ld=yes
24+ tmake_file="t-slibgcc" 24+ tmake_file="t-slibgcc"
25+ case ${enable_threads} in 25+ case ${enable_threads} in
26+ "" | yes | posix) 26+ "" | yes | posix)
27+ thread_file='posix' 27+ thread_file='posix'
28+ ;; 28+ ;;
29+ no | gnat | single) 29+ no | gnat | single)
30+ # Let these non-posix thread selections fall through if requested 30+ # Let these non-posix thread selections fall through if requested
31+ ;; 31+ ;;
32+ *) 32+ *)
33+ echo 'Unknown thread configuration for DragonFly BSD' 33+ echo 'Unknown thread configuration for DragonFly BSD'
34+ exit 1 34+ exit 1
35+ ;; 35+ ;;
36+ esac 36+ esac
37+ extra_options="$extra_options rpath.opt dragonfly.opt" 37+ extra_options="$extra_options rpath.opt dragonfly.opt"
38+ default_use_cxa_atexit=yes 38+ default_use_cxa_atexit=yes
39+ use_gcc_stdint=wrap 39+ use_gcc_stdint=wrap
40+ ;; 40+ ;;
41 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu) 41 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
42 extra_options="$extra_options gnu-user.opt" 42 extra_options="$extra_options gnu-user.opt"
43 gas=yes 43 gas=yes
44@@ -644,6 +667,7 @@ 44@@ -652,6 +675,7 @@
45 esac 45 esac
46 ;; 46 ;;
47 *-*-netbsd*) 47 *-*-netbsd*)
48+ use_gcc_stdint=wrap 48+ use_gcc_stdint=wrap
49 tmake_file="t-slibgcc" 49 tmake_file="t-slibgcc"
50 gas=yes 50 gas=yes
51 gnu_ld=yes 51 gnu_ld=yes
52@@ -885,7 +909,32 @@ 52@@ -893,7 +917,32 @@
53 tm_file="dbxelf.h elfos.h newlib-stdint.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h" 53 tm_file="dbxelf.h elfos.h newlib-stdint.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
54 tmake_file="arm/t-arm arm/t-arm-elf" 54 tmake_file="arm/t-arm arm/t-arm-elf"
55 ;; 55 ;;
56-arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*) 56-arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*)
57+arm*-android-eabi*) 57+arm*-android-eabi*)
58+ gas=yes 58+ gas=yes
59+ gnu_ld=yes 59+ gnu_ld=yes
60+ case ${enable_threads} in 60+ case ${enable_threads} in
61+ "" | yes | posix) thread_file='posix' ;; 61+ "" | yes | posix) thread_file='posix' ;;
62+ esac 62+ esac
63+ tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h" 63+ tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h"
64+ tm_file="$tm_file arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/bpabi.h arm/linux-eabi.h" 64+ tm_file="$tm_file arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/bpabi.h arm/linux-eabi.h"
65+ tm_file="$tm_file ../../libgcc/config/arm/bpabi-lib.h arm/aout.h arm/arm.h" 65+ tm_file="$tm_file ../../libgcc/config/arm/bpabi-lib.h arm/aout.h arm/arm.h"
@@ -73,39 +73,39 @@ @@ -73,39 +73,39 @@
73+ extra_options="$extra_options linux.opt linux-android.opt" 73+ extra_options="$extra_options linux.opt linux-android.opt"
74+ default_use_cxa_atexit=yes 74+ default_use_cxa_atexit=yes
75+ use_gcc_tgmath=no 75+ use_gcc_tgmath=no
76+ use_gcc_stdint=wrap 76+ use_gcc_stdint=wrap
77+ 77+
78+ # The BPABI long long divmod functions return a 128-bit value in registers r0-r3. 78+ # The BPABI long long divmod functions return a 128-bit value in registers r0-r3.
79+ # Correctly modeling that requires the use of TImode. 79+ # Correctly modeling that requires the use of TImode.
80+ need_64bit_hwint=yes 80+ need_64bit_hwint=yes
81+ ;; 81+ ;;
82+arm*-*-symbianelf* | arm*-*-rtemseabi*) 82+arm*-*-symbianelf* | arm*-*-rtemseabi*)
83 # The BPABI long long divmod functions return a 128-bit value in 83 # The BPABI long long divmod functions return a 128-bit value in
84 # registers r0-r3. Correctly modeling that requires the use of 84 # registers r0-r3. Correctly modeling that requires the use of
85 # TImode. 85 # TImode.
86@@ -894,11 +943,6 @@ 86@@ -902,11 +951,6 @@
87 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h" 87 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h"
88 tmake_file="arm/t-arm arm/t-arm-elf" 88 tmake_file="arm/t-arm arm/t-arm-elf"
89 case ${target} in 89 case ${target} in
90- arm*-*-eabi*) 90- arm*-*-eabi*)
91- tm_file="$tm_file newlib-stdint.h" 91- tm_file="$tm_file newlib-stdint.h"
92- tmake_file="${tmake_file} arm/t-bpabi" 92- tmake_file="${tmake_file} arm/t-bpabi"
93- use_gcc_stdint=wrap 93- use_gcc_stdint=wrap
94- ;; 94- ;;
95 arm*-*-rtemseabi*) 95 arm*-*-rtemseabi*)
96 tm_file="${tm_file} rtems.h arm/rtems-eabi.h newlib-stdint.h" 96 tm_file="${tm_file} rtems.h arm/rtems-eabi.h newlib-stdint.h"
97 tmake_file="${tmake_file} arm/t-bpabi t-rtems arm/t-rtems-eabi" 97 tmake_file="${tmake_file} arm/t-bpabi t-rtems arm/t-rtems-eabi"
98@@ -1196,19 +1240,31 @@ 98@@ -1208,19 +1252,31 @@
99 x86_64-*-elf*) 99 x86_64-*-elf*)
100 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h" 100 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h"
101 ;; 101 ;;
102+i[34567]86-*-dragonfly*) 102+i[34567]86-*-dragonfly*)
103+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h dragonfly.h dragonfly-stdint.h i386/dragonfly.h" 103+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h dragonfly.h dragonfly-stdint.h i386/dragonfly.h"
104+ tmake_file="${tmake_file} i386/t-crtstuff" 104+ tmake_file="${tmake_file} i386/t-crtstuff"
105+ ;; 105+ ;;
106+x86_64-*-dragonfly*) 106+x86_64-*-dragonfly*)
107+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h dragonfly.h dragonfly-stdint.h i386/x86-64.h i386/dragonfly.h" 107+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h dragonfly.h dragonfly-stdint.h i386/x86-64.h i386/dragonfly.h"
108+ tmake_file="${tmake_file} i386/t-crtstuff" 108+ tmake_file="${tmake_file} i386/t-crtstuff"
109+ ;; 109+ ;;
110 i[34567]86-*-freebsd*) 110 i[34567]86-*-freebsd*)
111 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h" 111 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
@@ -119,27 +119,27 @@ @@ -119,27 +119,27 @@
119- tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h" 119- tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
120+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h netbsd-stdint.h" 120+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h netbsd-stdint.h"
121 extra_options="${extra_options} netbsd.opt netbsd-elf.opt" 121 extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
122+ tmake_file="${tmake_file} i386/t-crtstuff" 122+ tmake_file="${tmake_file} i386/t-crtstuff"
123 ;; 123 ;;
124 x86_64-*-netbsd*) 124 x86_64-*-netbsd*)
125- tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h" 125- tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h"
126+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h netbsd-stdint.h" 126+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h netbsd-stdint.h"
127 extra_options="${extra_options} netbsd.opt netbsd-elf.opt" 127 extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
128+ tmake_file="${tmake_file} i386/t-crtstuff" 128+ tmake_file="${tmake_file} i386/t-crtstuff"
129 ;; 129 ;;
130 i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) 130 i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
131 tm_file="i386/i386.h i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h openbsd-oldgas.h openbsd.h i386/openbsd.h" 131 tm_file="i386/i386.h i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h openbsd-oldgas.h openbsd.h i386/openbsd.h"
132@@ -3530,6 +3586,8 @@ 132@@ -3554,6 +3610,8 @@
133 ;; 133 ;;
134 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*) 134 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
135 ;; 135 ;;
136+ i[34567]86-*-dragonfly* | x86_64-*-dragonfly*) 136+ i[34567]86-*-dragonfly* | x86_64-*-dragonfly*)
137+ ;; 137+ ;;
138 i[34567]86-*-freebsd* | x86_64-*-freebsd*) 138 i[34567]86-*-freebsd* | x86_64-*-freebsd*)
139 ;; 139 ;;
140 ia64*-*-linux*) 140 ia64*-*-linux*)
141--- /dev/null 141--- /dev/null
142+++ gcc/config/dragonfly-stdint.h 142+++ gcc/config/dragonfly-stdint.h
143@@ -0,0 +1,56 @@ 143@@ -0,0 +1,56 @@
144+/* Definitions for <stdint.h> types for DragonFly systems. 144+/* Definitions for <stdint.h> types for DragonFly systems.
145+ Copyright (C) 2009 Free Software Foundation, Inc. 145+ Copyright (C) 2009 Free Software Foundation, Inc.
@@ -563,40 +563,61 @@ @@ -563,40 +563,61 @@
563+#define LIBGCC2_TF_CEXT q 563+#define LIBGCC2_TF_CEXT q
564+#define TF_SIZE 113 564+#define TF_SIZE 113
565+ 565+
566+/* Static stack checking is supported by means of probes. */ 566+/* Static stack checking is supported by means of probes. */
567+#define STACK_CHECK_STATIC_BUILTIN 1 567+#define STACK_CHECK_STATIC_BUILTIN 1
568+ 568+
569+/* Support for i386 has been removed from DragonFly for several releases */ 569+/* Support for i386 has been removed from DragonFly for several releases */
570+#define SUBTARGET32_DEFAULT_CPU "i486" 570+#define SUBTARGET32_DEFAULT_CPU "i486"
571+ 571+
572+#define TARGET_ASM_FILE_END file_end_indicate_exec_stack 572+#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
573+ 573+
574--- gcc/config/i386/freebsd.h.orig 574--- gcc/config/i386/freebsd.h.orig
575+++ gcc/config/i386/freebsd.h 575+++ gcc/config/i386/freebsd.h
576@@ -102,6 +102,7 @@ 576@@ -91,6 +91,12 @@
 577 When the -shared link option is used a final link is not being
 578 done. */
 579
 580+#if FBSD_MAJOR < 9
 581+#define ELF_HASH_STYLE ""
 582+#else
 583+#define ELF_HASH_STYLE "--hash-style=both "
 584+#endif
 585+
 586 #undef LINK_SPEC
 587 #define LINK_SPEC "\
 588 %{p:%nconsider using '-pg' instead of '-p' with gprof(1)} \
 589@@ -102,6 +108,7 @@
577 %{rdynamic:-export-dynamic} \ 590 %{rdynamic:-export-dynamic} \
578 -dynamic-linker %(fbsd_dynamic_linker) } \ 591 -dynamic-linker %(fbsd_dynamic_linker) } \
579 %{static:-Bstatic}} \ 592 %{static:-Bstatic}} \
580+ %{!static:--hash-style=both -rpath @PREFIX@/gcc-aux/lib} \ 593+ %{!static:" ELF_HASH_STYLE "-rpath @PREFIX@/gcc-aux/lib} \
581 %{symbolic:-Bsymbolic}" 594 %{symbolic:-Bsymbolic}"
582  595
583 /* A C statement to output to the stdio stream FILE an assembler 596 /* A C statement to output to the stdio stream FILE an assembler
584@@ -148,3 +149,5 @@ 597@@ -148,3 +155,5 @@
585  598
586 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack 599 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
587  600
588+/* Compile in __enable_execute_stack (void *) (see config.host) */ 601+/* Compile in __enable_execute_stack (void *) (see config.host) */
589+#define HAVE_ENABLE_EXECUTE_STACK 602+#define HAVE_ENABLE_EXECUTE_STACK
 603--- gcc/config/i386/freebsd64.h.orig
 604+++ gcc/config/i386/freebsd64.h
 605@@ -41,4 +41,5 @@
 606 %{rdynamic:-export-dynamic} \
 607 -dynamic-linker %(fbsd_dynamic_linker) } \
 608 %{static:-Bstatic}} \
 609+ %{!static:" ELF_HASH_STYLE "-rpath @PREFIX@/gcc-aux/lib} \
 610 %{symbolic:-Bsymbolic}"
590--- gcc/config/i386/netbsd-elf.h.orig 611--- gcc/config/i386/netbsd-elf.h.orig
591+++ gcc/config/i386/netbsd-elf.h 612+++ gcc/config/i386/netbsd-elf.h
592@@ -38,7 +38,8 @@ 613@@ -38,7 +38,8 @@
593 /* Provide a LINK_SPEC appropriate for a NetBSD/i386 ELF target. */ 614 /* Provide a LINK_SPEC appropriate for a NetBSD/i386 ELF target. */
594  615
595 #undef LINK_SPEC 616 #undef LINK_SPEC
596-#define LINK_SPEC NETBSD_LINK_SPEC_ELF 617-#define LINK_SPEC NETBSD_LINK_SPEC_ELF
597+#define LINK_SPEC NETBSD_LINK_SPEC_ELF \ 618+#define LINK_SPEC NETBSD_LINK_SPEC_ELF \
598+"%{!static:-rpath @PREFIX@/gcc-aux/lib}" 619+"%{!static:-rpath @PREFIX@/gcc-aux/lib}"
599  620
600 #define NETBSD_ENTRY_POINT "__start" 621 #define NETBSD_ENTRY_POINT "__start"
601  622
602@@ -119,3 +120,9 @@ 623@@ -119,3 +120,9 @@
@@ -751,27 +772,27 @@ @@ -751,27 +772,27 @@
751 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" 772 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
752 extra_parts="$extra_parts crti.o crtn.o" 773 extra_parts="$extra_parts crti.o crtn.o"
753 ;; 774 ;;
754-arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*) 775-arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*)
755+arm*-*-symbianelf* | arm*-*-rtemseabi*) 776+arm*-*-symbianelf* | arm*-*-rtemseabi*)
756 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix" 777 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
757 tm_file="$tm_file arm/bpabi-lib.h" 778 tm_file="$tm_file arm/bpabi-lib.h"
758 case ${host} in 779 case ${host} in
759- arm*-*-eabi* | arm*-*-rtemseabi*) 780- arm*-*-eabi* | arm*-*-rtemseabi*)
760+ arm*-*-rtemseabi*) 781+ arm*-*-rtemseabi*)
761 tmake_file="${tmake_file} arm/t-bpabi" 782 tmake_file="${tmake_file} arm/t-bpabi"
762 extra_parts="crtbegin.o crtend.o crti.o crtn.o" 783 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
763 ;; 784 ;;
764@@ -523,16 +537,29 @@ 785@@ -526,16 +540,29 @@
765 x86_64-*-elf*) 786 x86_64-*-elf*)
766 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic" 787 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
767 ;; 788 ;;
768+i[34567]86-*-dragonfly*) 789+i[34567]86-*-dragonfly*)
769+ tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" 790+ tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
770+ md_unwind_header=i386/dragonfly-unwind.h 791+ md_unwind_header=i386/dragonfly-unwind.h
771+ ;; 792+ ;;
772+x86_64-*-dragonfly*) 793+x86_64-*-dragonfly*)
773+ tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" 794+ tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
774+ md_unwind_header=i386/dragonfly-unwind.h 795+ md_unwind_header=i386/dragonfly-unwind.h
775+ ;; 796+ ;;
776 i[34567]86-*-freebsd*) 797 i[34567]86-*-freebsd*)
777 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff" 798 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
@@ -781,27 +802,27 @@ @@ -781,27 +802,27 @@
781 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff" 802 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
782+ md_unwind_header=i386/freebsd-unwind.h 803+ md_unwind_header=i386/freebsd-unwind.h
783 ;; 804 ;;
784 i[34567]86-*-netbsdelf*) 805 i[34567]86-*-netbsdelf*)
785+ tmake_file="${tmake_file} i386/t-crtstuff" 806+ tmake_file="${tmake_file} i386/t-crtstuff"
786+ md_unwind_header=i386/netbsd-unwind.h 807+ md_unwind_header=i386/netbsd-unwind.h
787 ;; 808 ;;
788 x86_64-*-netbsd*) 809 x86_64-*-netbsd*)
789 tmake_file="${tmake_file} i386/t-crtstuff" 810 tmake_file="${tmake_file} i386/t-crtstuff"
790+ md_unwind_header=i386/netbsd-unwind.h 811+ md_unwind_header=i386/netbsd-unwind.h
791 ;; 812 ;;
792 i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) 813 i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
793 ;; 814 ;;
794@@ -1160,6 +1187,7 @@ 815@@ -1163,6 +1190,7 @@
795 i[34567]86-*-gnu* | \ 816 i[34567]86-*-gnu* | \
796 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \ 817 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \
797 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \ 818 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \
798+ i[34567]86-*-dragonfly* | x86_64-*-dragonfly* | \ 819+ i[34567]86-*-dragonfly* | x86_64-*-dragonfly* | \
799 i[34567]86-*-freebsd* | x86_64-*-freebsd*) 820 i[34567]86-*-freebsd* | x86_64-*-freebsd*)
800 tmake_file="${tmake_file} t-softfp-tf" 821 tmake_file="${tmake_file} t-softfp-tf"
801 if test "${host_address}" = 32; then 822 if test "${host_address}" = 32; then
802--- libgcc/crtstuff.c.orig 823--- libgcc/crtstuff.c.orig
803+++ libgcc/crtstuff.c 824+++ libgcc/crtstuff.c
804@@ -81,11 +81,19 @@ 825@@ -81,11 +81,19 @@
805 } 826 }
806 #endif 827 #endif
807  828
@@ -1442,27 +1463,27 @@ @@ -1442,27 +1463,27 @@
1442 void 1463 void
1443 setproctitle (const char *name ATTRIBUTE_UNUSED, ...) 1464 setproctitle (const char *name ATTRIBUTE_UNUSED, ...)
1444 { 1465 {
1445+#ifndef __ANDROID__ 1466+#ifndef __ANDROID__
1446 #ifdef PR_SET_NAME 1467 #ifdef PR_SET_NAME
1447 /* On GNU/Linux this sets the top visible "comm", but not 1468 /* On GNU/Linux this sets the top visible "comm", but not
1448 necessarily the name visible in ps. */ 1469 necessarily the name visible in ps. */
1449 prctl (PR_SET_NAME, name); 1470 prctl (PR_SET_NAME, name);
1450 #endif 1471 #endif
1451+#endif 1472+#endif
1452 } 1473 }
1453--- gcc/configure.orig 1474--- gcc/configure.orig
1454+++ gcc/configure 1475+++ gcc/configure
1455@@ -26810,6 +26810,20 @@ 1476@@ -26856,6 +26856,20 @@
1456 gcc_cv_target_dl_iterate_phdr=no 1477 gcc_cv_target_dl_iterate_phdr=no
1457 fi 1478 fi
1458 ;; 1479 ;;
1459+ *-*-dragonfly* | *-*-freebsd*) 1480+ *-*-dragonfly* | *-*-freebsd*)
1460+ if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then 1481+ if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
1461+ gcc_cv_target_dl_iterate_phdr=yes 1482+ gcc_cv_target_dl_iterate_phdr=yes
1462+ else 1483+ else
1463+ gcc_cv_target_dl_iterate_phdr=no 1484+ gcc_cv_target_dl_iterate_phdr=no
1464+ fi 1485+ fi
1465+ ;; 1486+ ;;
1466+ *-*-netbsd*) 1487+ *-*-netbsd*)
1467+ if grep dl_iterate_phdr $target_header_dir/link_elf.h > /dev/null 2>&1; then 1488+ if grep dl_iterate_phdr $target_header_dir/link_elf.h > /dev/null 2>&1; then
1468+ gcc_cv_target_dl_iterate_phdr=yes 1489+ gcc_cv_target_dl_iterate_phdr=yes
@@ -1566,22 +1587,22 @@ @@ -1566,22 +1587,22 @@
1566 install-man: lang.install-man \ 1587 install-man: lang.install-man \
1567 $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext) \ 1588 $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext) \
1568 $(DESTDIR)$(man1dir)/$(CPP_INSTALL_NAME)$(man1ext) \ 1589 $(DESTDIR)$(man1dir)/$(CPP_INSTALL_NAME)$(man1ext) \
1569- $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext) \ 1590- $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext) \
1570- $(DESTDIR)$(man7dir)/fsf-funding$(man7ext) \ 1591- $(DESTDIR)$(man7dir)/fsf-funding$(man7ext) \
1571- $(DESTDIR)$(man7dir)/gfdl$(man7ext) \ 1592- $(DESTDIR)$(man7dir)/gfdl$(man7ext) \
1572- $(DESTDIR)$(man7dir)/gpl$(man7ext) 1593- $(DESTDIR)$(man7dir)/gpl$(man7ext)
1573+ $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext) 1594+ $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext)
1574  1595
1575 $(DESTDIR)$(man7dir)/%$(man7ext): doc/%.7 installdirs 1596 $(DESTDIR)$(man7dir)/%$(man7ext): doc/%.7 installdirs
1576 -rm -f $@ 1597 -rm -f $@
1577--- configure.orig 1598--- configure.orig
1578+++ configure 1599+++ configure
1579@@ -14412,7 +14412,7 @@ 1600@@ -14419,7 +14419,7 @@
1580 _ACEOF 1601 _ACEOF
1581 if ac_fn_c_try_compile "$LINENO"; then : 1602 if ac_fn_c_try_compile "$LINENO"; then :
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 1603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1583-$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions" 1604-$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1584+$as_echo "yes" >&6; }; 1605+$as_echo "yes" >&6; };
1585 else 1606 else
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1587 $as_echo "no" >&6; } 1608 $as_echo "no" >&6; }