Fri Apr 12 15:40:54 2013 UTC ()
lang/gcc-aux: Update to gcc 4.7.3 (version 20130411)

This is a bug fix release.
The official change page is http://gcc.gnu.org/gcc-4.7/changes.html
According to it, 119 bugs have been resolved since version 4.7.2 was
released (3 P1 bugs, 27 P2 bugs).


(marino)
diff -r1.7 -r1.8 pkgsrc/lang/gcc-aux/Makefile
diff -r1.2 -r1.3 pkgsrc/lang/gcc-aux/distinfo
diff -r1.3 -r1.4 pkgsrc/lang/gcc-aux/files/diff-ada
diff -r1.3 -r1.4 pkgsrc/lang/gcc-aux/files/diff-cxx-testsuite
diff -r1.4 -r1.5 pkgsrc/lang/gcc-aux/files/diff-core
diff -r1.2 -r1.3 pkgsrc/lang/gcc-aux/files/diff-cxx

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

--- pkgsrc/lang/gcc-aux/Makefile 2013/01/31 23:01:56 1.7
+++ pkgsrc/lang/gcc-aux/Makefile 2013/04/12 15:40:54 1.8
@@ -1,31 +1,30 @@ @@ -1,31 +1,30 @@
1# $NetBSD: Makefile,v 1.7 2013/01/31 23:01:56 marino Exp $ 1# $NetBSD: Makefile,v 1.8 2013/04/12 15:40:54 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= 20120920 15SNAPSHOT= 20130411
17GCC_BRANCH= 4.7 16GCC_BRANCH= 4.7
18GCC_POINT= 2 17GCC_POINT= 3
19GCC_VERSION= ${GCC_BRANCH}.${GCC_POINT} 18GCC_VERSION= ${GCC_BRANCH}.${GCC_POINT}
20LANGS= c 19LANGS= c
21 20
22USE_TOOLS+= gmake sed:run perl makeinfo bzip2 patch pod2man 21USE_TOOLS+= gmake sed:run perl makeinfo bzip2 patch pod2man
23USE_BUILTIN.iconv= no 22USE_BUILTIN.iconv= no
24APPLY_DIFFS= core 23APPLY_DIFFS= core
25 24
26.include "../../mk/bsd.prefs.mk" 25.include "../../mk/bsd.prefs.mk"
27.include "options.mk" 26.include "options.mk"
28 27
29# Requires bootstrap compiler, which is only available for NetBSD i386/AMD64 28# Requires bootstrap compiler, which is only available for NetBSD i386/AMD64
30# DragonFly i386/AMD64 and SunOS i386 Bootstrap compilers for OpenBSD and 29# DragonFly i386/AMD64 and SunOS i386 Bootstrap compilers for OpenBSD and
31# FreeBSD also exist, but are currently reserved for the native package systems 30# FreeBSD also exist, but are currently reserved for the native package systems

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

--- pkgsrc/lang/gcc-aux/distinfo 2012/10/01 17:26:52 1.2
+++ pkgsrc/lang/gcc-aux/distinfo 2013/04/12 15:40:54 1.3
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1$NetBSD: distinfo,v 1.2 2012/10/01 17:26:52 marino Exp $ 1$NetBSD: distinfo,v 1.3 2013/04/12 15:40:54 marino Exp $
2 2
3SHA1 (gcc-4.7.2.tar.bz2) = a464ba0f26eef24c29bcd1e7489421117fb9ee35 3SHA1 (gcc-4.7.3.tar.bz2) = 69e02737bd6e1a7c6047d801600d39c32b9427ca
4RMD160 (gcc-4.7.2.tar.bz2) = fc281ade14b47d2a9c2ced4f7082c74bfbae31c1 4RMD160 (gcc-4.7.3.tar.bz2) = b4ba153b098cad726ecd28195ee445aa542d37ae
5Size (gcc-4.7.2.tar.bz2) = 82884636 bytes 5Size (gcc-4.7.3.tar.bz2) = 82904224 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.3 -r1.4 pkgsrc/lang/gcc-aux/files/diff-ada (expand / switch to unified diff)

--- pkgsrc/lang/gcc-aux/files/diff-ada 2012/10/01 17:26:52 1.3
+++ pkgsrc/lang/gcc-aux/files/diff-ada 2013/04/12 15:40:54 1.4
@@ -2218,27 +2218,27 @@ @@ -2218,27 +2218,27 @@
2218+ if (__gnat_get_interrupt_state (SIGBUS) != 's') 2218+ if (__gnat_get_interrupt_state (SIGBUS) != 's')
2219+ sigaction (SIGBUS, &act, NULL); 2219+ sigaction (SIGBUS, &act, NULL);
2220+ if (__gnat_get_interrupt_state (SIGSEGV) != 's') 2220+ if (__gnat_get_interrupt_state (SIGSEGV) != 's')
2221+ sigaction (SIGSEGV, &act, NULL); 2221+ sigaction (SIGSEGV, &act, NULL);
2222+ 2222+
2223+ __gnat_handler_installed = 1; 2223+ __gnat_handler_installed = 1;
2224+} 2224+}
2225+ 2225+
2226+ 2226+
2227+/*******************/ 2227+/*******************/
2228 /* VxWorks Section */ 2228 /* VxWorks Section */
2229 /*******************/ 2229 /*******************/
2230  2230
2231@@ -2416,9 +2487,13 @@ 2231@@ -2450,9 +2521,13 @@
2232 initialization of the FP processor. This version is used under INTERIX 2232 initialization of the FP processor. This version is used under INTERIX
2233 and WIN32. */ 2233 and WIN32. */
2234  2234
2235-#if defined (_WIN32) || defined (__INTERIX) \ 2235-#if defined (_WIN32) || defined (__INTERIX) \
2236- || defined (__Lynx__) || defined(__NetBSD__) || defined(__FreeBSD__) \ 2236- || defined (__Lynx__) || defined(__NetBSD__) || defined(__FreeBSD__) \
2237- || defined (__OpenBSD__) 2237- || defined (__OpenBSD__)
2238+#if defined (_WIN32) \ 2238+#if defined (_WIN32) \
2239+ || defined (__INTERIX) \ 2239+ || defined (__INTERIX) \
2240+ || defined (__Lynx__) \ 2240+ || defined (__Lynx__) \
2241+ || defined (__NetBSD__) \ 2241+ || defined (__NetBSD__) \
2242+ || defined (__FreeBSD__) \ 2242+ || defined (__FreeBSD__) \
2243+ || defined (__DragonFly__) \ 2243+ || defined (__DragonFly__) \
2244+ || defined (__OpenBSD__) 2244+ || defined (__OpenBSD__)
@@ -8961,67 +8961,65 @@ @@ -8961,67 +8961,65 @@
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,33 @@ 8974@@ -1231,14 +1240,21 @@
8975 MISCLIB = -lutil 8975 MISCLIB = -lutil
8976 endif 8976 endif
8977  8977
8978-ifeq ($(strip $(filter-out %86_64 freebsd%,$(arch) $(osys))),) 
8979+ 8978+
8980+# FREEBSD AMD64 8979+# FREEBSD AMD64
8981+ifeq ($(strip $(filter-out x86_64 freebsd%,$(arch) $(osys))),) 8980 ifeq ($(strip $(filter-out %86_64 freebsd%,$(arch) $(osys))),)
8982 LIBGNAT_TARGET_PAIRS = \ 8981 LIBGNAT_TARGET_PAIRS = \
8983+ a-exetim.adb<a-exetim-posix.adb \ 8982+ a-exetim.adb<a-exetim-posix.adb \
8984+ a-exetim.ads<a-exetim-default.ads \ 8983+ a-exetim.ads<a-exetim-default.ads \
8985 a-intnam.ads<a-intnam-freebsd.ads \ 8984 a-intnam.ads<a-intnam-freebsd.ads \
8986+ g-socthi.adb<g-socthi-bsd.adb \ 8985+ g-socthi.adb<g-socthi-bsd.adb \
8987+ g-trasym.adb<g-trasym-bsd.adb \ 8986+ g-trasym.adb<g-trasym-bsd.adb \
8988 s-inmaop.adb<s-inmaop-posix.adb \ 8987 s-inmaop.adb<s-inmaop-posix.adb \
8989 s-intman.adb<s-intman-posix.adb \ 8988 s-intman.adb<s-intman-posix.adb \
8990+ s-mudido.adb<s-mudido-affinity.adb \ 8989+ s-mudido.adb<s-mudido-affinity.adb \
8991 s-osinte.adb<s-osinte-freebsd.adb \ 8990 s-osinte.adb<s-osinte-freebsd.adb \
8992- s-osinte.ads<s-osinte-freebsd.ads \ 8991- s-osinte.ads<s-osinte-freebsd.ads \
8993- s-osprim.adb<s-osprim-posix.adb \ 8992- s-osprim.adb<s-osprim-posix.adb \
8994+ s-osinte.ads<s-osinte-freebsd64.ads \ 8993+ s-osinte.ads<s-osinte-freebsd64.ads \
8995+ s-osprim.adb<s-osprim-bsd64.adb \ 8994+ s-osprim.adb<s-osprim-bsd64.adb \
8996 s-taprop.adb<s-taprop-posix.adb \ 8995 s-taprop.adb<s-taprop-posix.adb \
8997 s-taspri.ads<s-taspri-posix.ads \ 8996 s-taspri.ads<s-taspri-posix.ads \
8998 s-tpopsp.adb<s-tpopsp-posix.adb \ 8997 s-tpopsp.adb<s-tpopsp-posix.adb \
8999- g-trasym.adb<g-trasym-dwarf.adb \ 8998@@ -1246,10 +1262,11 @@
9000 $(ATOMICS_TARGET_PAIRS) \ 
9001 $(X86_64_TARGET_PAIRS) \ 8999 $(X86_64_TARGET_PAIRS) \
9002 system.ads<system-freebsd-x86_64.ads 9000 system.ads<system-freebsd-x86_64.ads
9003  9001
9004- TOOLS_TARGET_PAIRS = \ 9002- TOOLS_TARGET_PAIRS = \
9005- mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb 9003- mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
9006 GNATLIB_SHARED = gnatlib-shared-dual 9004 GNATLIB_SHARED = gnatlib-shared-dual
9007  9005
9008+ EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o 9006+ EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
9009+ EXTRA_GNATRTL_TASKING_OBJS=a-exetim.o 9007+ EXTRA_GNATRTL_TASKING_OBJS=a-exetim.o
9010+ 9008+
9011 EH_MECHANISM=-gcc 9009 EH_MECHANISM=-gcc
9012 THREADSLIB= -lpthread 9010 THREADSLIB= -lpthread
9013 GMEM_LIB = gmemlib 9011 GMEM_LIB = gmemlib
9014@@ -1258,6 +1274,268 @@ 9012@@ -1257,6 +1274,268 @@
9015 MISCLIB = -lutil 9013 MISCLIB = -lutil
9016 endif 9014 endif
9017  9015
9018+ 9016+
9019+# DRAGONFLY i386 9017+# DRAGONFLY i386
9020+ifeq ($(strip $(filter-out %86 dragonfly%,$(arch) $(osys))),) 9018+ifeq ($(strip $(filter-out %86 dragonfly%,$(arch) $(osys))),)
9021+ LIBGNAT_TARGET_PAIRS = \ 9019+ LIBGNAT_TARGET_PAIRS = \
9022+ a-exetim.adb<a-exetim-posix.adb \ 9020+ a-exetim.adb<a-exetim-posix.adb \
9023+ a-exetim.ads<a-exetim-default.ads \ 9021+ a-exetim.ads<a-exetim-default.ads \
9024+ a-intnam.ads<a-intnam-dragonfly.ads \ 9022+ a-intnam.ads<a-intnam-dragonfly.ads \
9025+ g-socthi.adb<g-socthi-bsd.adb \ 9023+ g-socthi.adb<g-socthi-bsd.adb \
9026+ g-trasym.adb<g-trasym-bsd.adb \ 9024+ g-trasym.adb<g-trasym-bsd.adb \
9027+ s-inmaop.adb<s-inmaop-posix.adb \ 9025+ s-inmaop.adb<s-inmaop-posix.adb \

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

--- pkgsrc/lang/gcc-aux/files/diff-cxx-testsuite 2012/08/03 08:53:57 1.3
+++ pkgsrc/lang/gcc-aux/files/diff-cxx-testsuite 2013/04/12 15:40:54 1.4
@@ -498,36 +498,26 @@ @@ -498,36 +498,26 @@
498 // { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } } 498 // { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
499 // { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } } 499 // { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
500 // { dg-require-cstdint "" } 500 // { dg-require-cstdint "" }
501--- libstdc++-v3/testsuite/30_threads/lock/4.cc.orig 501--- libstdc++-v3/testsuite/30_threads/lock/4.cc.orig
502+++ libstdc++-v3/testsuite/30_threads/lock/4.cc 502+++ libstdc++-v3/testsuite/30_threads/lock/4.cc
503@@ -1,5 +1,5 @@ 503@@ -1,5 +1,5 @@
504-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* powerpc-ibm-aix* } } 504-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* powerpc-ibm-aix* } }
505-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* powerpc-ibm-aix* } } 505-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* powerpc-ibm-aix* } }
506+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* } } 506+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* } }
507+// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* } } 507+// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* } }
508 // { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } } 508 // { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
509 // { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } } 509 // { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
510 // { dg-require-cstdint "" } 510 // { dg-require-cstdint "" }
511--- libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc.orig 
512+++ libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc 
513@@ -1,5 +1,5 @@ 
514-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* powerpc-ibm-aix* } } 
515-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* powerpc-ibm-aix* } } 
516+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* } } 
517+// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* } } 
518 // { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } } 
519 // { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } } 
520 // { dg-require-cstdint "" } 
521--- libstdc++-v3/testsuite/30_threads/mutex/cons/1.cc.orig 511--- libstdc++-v3/testsuite/30_threads/mutex/cons/1.cc.orig
522+++ libstdc++-v3/testsuite/30_threads/mutex/cons/1.cc 512+++ libstdc++-v3/testsuite/30_threads/mutex/cons/1.cc
523@@ -1,5 +1,5 @@ 513@@ -1,5 +1,5 @@
524-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* powerpc-ibm-aix* } } 514-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* powerpc-ibm-aix* } }
525-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* powerpc-ibm-aix* } } 515-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* powerpc-ibm-aix* } }
526+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* } } 516+// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* } }
527+// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* } } 517+// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* } }
528 // { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } } 518 // { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
529 // { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } } 519 // { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
530 // { dg-require-cstdint "" } 520 // { dg-require-cstdint "" }
531--- libstdc++-v3/testsuite/30_threads/mutex/dest/destructor_locked.cc.orig 521--- libstdc++-v3/testsuite/30_threads/mutex/dest/destructor_locked.cc.orig
532+++ libstdc++-v3/testsuite/30_threads/mutex/dest/destructor_locked.cc 522+++ libstdc++-v3/testsuite/30_threads/mutex/dest/destructor_locked.cc
533@@ -1,5 +1,5 @@ 523@@ -1,5 +1,5 @@

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

--- pkgsrc/lang/gcc-aux/files/diff-core 2012/10/01 17:26:52 1.4
+++ pkgsrc/lang/gcc-aux/files/diff-core 2013/04/12 15:40:54 1.5
@@ -39,73 +39,73 @@ @@ -39,73 +39,73 @@
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@@ -652,6 +675,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@@ -893,7 +917,32 @@ 52@@ -903,7 +927,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 arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/rtems-elf.h rtems.h newlib-stdint.h"
54 tmake_file="arm/t-arm arm/t-arm-elf" 54 tmake_file="arm/t-arm arm/t-arm-elf t-rtems arm/t-rtems"
55 ;; 55 ;;
56-arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*) 56-arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
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"
66+ 66+
67+ tm_defines="$tm_defines DEFAULT_LIBC=LIBC_BIONIC ANDROID_DEFAULT=1" 67+ tm_defines="$tm_defines DEFAULT_LIBC=LIBC_BIONIC ANDROID_DEFAULT=1"
68+ case $target in 68+ case $target in
69+ arm*b-*) 69+ arm*b-*)
70+ tm_defines="$tm_defines TARGET_BIG_ENDIAN_DEFAULT=1" 70+ tm_defines="$tm_defines TARGET_BIG_ENDIAN_DEFAULT=1"
71+ ;; 71+ ;;
72+ esac 72+ esac
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*-*-rtems*)
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@@ -902,11 +951,6 @@ 86@@ -912,11 +961,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*-*-rtems*)
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@@ -1208,19 +1252,31 @@ 98@@ -1216,19 +1260,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@@ -3554,6 +3610,8 @@ 132@@ -3577,6 +3633,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.
@@ -758,37 +758,37 @@ @@ -758,37 +758,37 @@
758@@ -266,8 +278,10 @@ 758@@ -266,8 +278,10 @@
759 esac 759 esac
760  760
761 case ${host} in 761 case ${host} in
762-*-*-darwin* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | *-*-solaris2* | \ 762-*-*-darwin* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | *-*-solaris2* | \
763- alpha*-dec-osf5.1*) 763- alpha*-dec-osf5.1*)
764+*-*-freebsd* | *-*-dragonfly* | *-*-netbsd* | *-*-openbsd*) 764+*-*-freebsd* | *-*-dragonfly* | *-*-netbsd* | *-*-openbsd*)
765+ enable_execute_stack=enable-execute-stack-freebsd.c 765+ enable_execute_stack=enable-execute-stack-freebsd.c
766+ ;; 766+ ;;
767+*-*-darwin* | *-*-solaris2* | alpha*-dec-osf5.1*) 767+*-*-darwin* | *-*-solaris2* | alpha*-dec-osf5.1*)
768 enable_execute_stack=enable-execute-stack-mprotect.c 768 enable_execute_stack=enable-execute-stack-mprotect.c
769 ;; 769 ;;
770 i[34567]86-*-mingw* | x86_64-*-mingw*) 770 i[34567]86-*-mingw* | x86_64-*-mingw*)
771@@ -354,11 +368,11 @@ 771@@ -358,11 +372,11 @@
772 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"
773 extra_parts="$extra_parts crti.o crtn.o" 773 extra_parts="$extra_parts crti.o crtn.o"
774 ;; 774 ;;
775-arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*) 775-arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
776+arm*-*-symbianelf* | arm*-*-rtemseabi*) 776+arm*-*-symbianelf* | arm*-*-rtems*)
777 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"
778 tm_file="$tm_file arm/bpabi-lib.h" 778 tm_file="$tm_file arm/bpabi-lib.h"
779 case ${host} in 779 case ${host} in
780- arm*-*-eabi* | arm*-*-rtemseabi*) 780- arm*-*-eabi* | arm*-*-rtems*)
781+ arm*-*-rtemseabi*) 781+ arm*-*-rtems*)
782 tmake_file="${tmake_file} arm/t-bpabi" 782 tmake_file="${tmake_file} arm/t-bpabi"
783 extra_parts="crtbegin.o crtend.o crti.o crtn.o" 783 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
784 ;; 784 ;;
785@@ -526,16 +540,29 @@ 785@@ -526,16 +540,29 @@
786 x86_64-*-elf*) 786 x86_64-*-elf*)
787 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"
788 ;; 788 ;;
789+i[34567]86-*-dragonfly*) 789+i[34567]86-*-dragonfly*)
790+ tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" 790+ tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
791+ md_unwind_header=i386/dragonfly-unwind.h 791+ md_unwind_header=i386/dragonfly-unwind.h
792+ ;; 792+ ;;
793+x86_64-*-dragonfly*) 793+x86_64-*-dragonfly*)
794+ tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" 794+ tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
@@ -802,27 +802,27 @@ @@ -802,27 +802,27 @@
802 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff" 802 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
803+ md_unwind_header=i386/freebsd-unwind.h 803+ md_unwind_header=i386/freebsd-unwind.h
804 ;; 804 ;;
805 i[34567]86-*-netbsdelf*) 805 i[34567]86-*-netbsdelf*)
806+ tmake_file="${tmake_file} i386/t-crtstuff" 806+ tmake_file="${tmake_file} i386/t-crtstuff"
807+ md_unwind_header=i386/netbsd-unwind.h 807+ md_unwind_header=i386/netbsd-unwind.h
808 ;; 808 ;;
809 x86_64-*-netbsd*) 809 x86_64-*-netbsd*)
810 tmake_file="${tmake_file} i386/t-crtstuff" 810 tmake_file="${tmake_file} i386/t-crtstuff"
811+ md_unwind_header=i386/netbsd-unwind.h 811+ md_unwind_header=i386/netbsd-unwind.h
812 ;; 812 ;;
813 i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) 813 i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
814 ;; 814 ;;
815@@ -1163,6 +1190,7 @@ 815@@ -1167,6 +1194,7 @@
816 i[34567]86-*-gnu* | \ 816 i[34567]86-*-gnu* | \
817 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \ 817 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \
818 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \ 818 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \
819+ i[34567]86-*-dragonfly* | x86_64-*-dragonfly* | \ 819+ i[34567]86-*-dragonfly* | x86_64-*-dragonfly* | \
820 i[34567]86-*-freebsd* | x86_64-*-freebsd*) 820 i[34567]86-*-freebsd* | x86_64-*-freebsd*)
821 tmake_file="${tmake_file} t-softfp-tf" 821 tmake_file="${tmake_file} t-softfp-tf"
822 if test "${host_address}" = 32; then 822 if test "${host_address}" = 32; then
823--- libgcc/crtstuff.c.orig 823--- libgcc/crtstuff.c.orig
824+++ libgcc/crtstuff.c 824+++ libgcc/crtstuff.c
825@@ -81,11 +81,19 @@ 825@@ -81,11 +81,19 @@
826 } 826 }
827 #endif 827 #endif
828  828
@@ -915,28 +915,28 @@ @@ -915,28 +915,28 @@
915+ && (defined(__FreeBSD__) || defined(__DragonFly__)) 915+ && (defined(__FreeBSD__) || defined(__DragonFly__))
916 # define ElfW __ElfN 916 # define ElfW __ElfN
917 # define USE_PT_GNU_EH_FRAME 917 # define USE_PT_GNU_EH_FRAME
918 #endif 918 #endif
919  919
920+#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \ 920+#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
921+ && defined(TARGET_DL_ITERATE_PHDR) \ 921+ && defined(TARGET_DL_ITERATE_PHDR) \
922+ && (defined(__OpenBSD__) || defined(__NetBSD__)) 922+ && (defined(__OpenBSD__) || defined(__NetBSD__))
923+# define ElfW(n) Elf_##n 923+# define ElfW(n) Elf_##n
924+# define USE_PT_GNU_EH_FRAME 924+# define USE_PT_GNU_EH_FRAME
925+#endif 925+#endif
926+ 926+
927 #if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \ 927 #if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
928 && defined(TARGET_DL_ITERATE_PHDR) \ 928 && defined(__OpenBSD__)
929 && defined(__sun__) && defined(__svr4__) 929 # define ElfW(type) Elf_##type
930--- /dev/null 930--- /dev/null
931+++ libgcc/config/i386/dragonfly-unwind.h 931+++ libgcc/config/i386/dragonfly-unwind.h
932@@ -0,0 +1,158 @@ 932@@ -0,0 +1,158 @@
933+/* DWARF2 EH unwinding support for DragonFly BSD: AMD x86-64 and x86. 933+/* DWARF2 EH unwinding support for DragonFly BSD: AMD x86-64 and x86.
934+ Copyright (C) 2010 John Marino <draco@marino.st> */ 934+ Copyright (C) 2010 John Marino <draco@marino.st> */
935+ 935+
936+/* Do code reading to identify a signal frame, and set the frame 936+/* Do code reading to identify a signal frame, and set the frame
937+ state data appropriately. See unwind-dw2.c for the structs. */ 937+ state data appropriately. See unwind-dw2.c for the structs. */
938+ 938+
939+#include <sys/types.h> 939+#include <sys/types.h>
940+#include <sys/sysctl.h> 940+#include <sys/sysctl.h>
941+#include <signal.h> 941+#include <signal.h>
942+#include <sys/ucontext.h> 942+#include <sys/ucontext.h>
@@ -1463,137 +1463,137 @@ @@ -1463,137 +1463,137 @@
1463 void 1463 void
1464 setproctitle (const char *name ATTRIBUTE_UNUSED, ...) 1464 setproctitle (const char *name ATTRIBUTE_UNUSED, ...)
1465 { 1465 {
1466+#ifndef __ANDROID__ 1466+#ifndef __ANDROID__
1467 #ifdef PR_SET_NAME 1467 #ifdef PR_SET_NAME
1468 /* On GNU/Linux this sets the top visible "comm", but not 1468 /* On GNU/Linux this sets the top visible "comm", but not
1469 necessarily the name visible in ps. */ 1469 necessarily the name visible in ps. */
1470 prctl (PR_SET_NAME, name); 1470 prctl (PR_SET_NAME, name);
1471 #endif 1471 #endif
1472+#endif 1472+#endif
1473 } 1473 }
1474--- gcc/configure.orig 1474--- gcc/configure.orig
1475+++ gcc/configure 1475+++ gcc/configure
1476@@ -26856,6 +26856,20 @@ 1476@@ -26902,6 +26902,20 @@
1477 gcc_cv_target_dl_iterate_phdr=no 1477 gcc_cv_target_dl_iterate_phdr=no
1478 fi 1478 fi
1479 ;; 1479 ;;
1480+ *-*-dragonfly* | *-*-freebsd*) 1480+ *-*-dragonfly* | *-*-freebsd*)
1481+ 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
1482+ gcc_cv_target_dl_iterate_phdr=yes 1482+ gcc_cv_target_dl_iterate_phdr=yes
1483+ else 1483+ else
1484+ gcc_cv_target_dl_iterate_phdr=no 1484+ gcc_cv_target_dl_iterate_phdr=no
1485+ fi 1485+ fi
1486+ ;; 1486+ ;;
1487+ *-*-netbsd*) 1487+ *-*-netbsd*)
1488+ 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
1489+ gcc_cv_target_dl_iterate_phdr=yes 1489+ gcc_cv_target_dl_iterate_phdr=yes
1490+ else 1490+ else
1491+ gcc_cv_target_dl_iterate_phdr=no 1491+ gcc_cv_target_dl_iterate_phdr=no
1492+ fi 1492+ fi
1493+ ;; 1493+ ;;
1494 esac 1494 esac
1495  1495
1496 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then 1496 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
1497--- gcc/Makefile.in.orig 1497--- gcc/Makefile.in.orig
1498+++ gcc/Makefile.in 1498+++ gcc/Makefile.in
1499@@ -1150,7 +1150,6 @@ 1499@@ -1165,7 +1165,6 @@
1500 insn-automata.o \ 1500 insn-automata.o \
1501 insn-emit.o \ 1501 insn-emit.o \
1502 insn-extract.o \ 1502 insn-extract.o \
1503- insn-modes.o \ 1503- insn-modes.o \
1504 insn-opinit.o \ 1504 insn-opinit.o \
1505 insn-output.o \ 1505 insn-output.o \
1506 insn-peep.o \ 1506 insn-peep.o \
1507@@ -1469,13 +1468,18 @@ 1507@@ -1484,13 +1483,18 @@
1508 ALL_HOST_BACKEND_OBJS = $(GCC_OBJS) $(OBJS) $(OBJS-libcommon) \ 1508 ALL_HOST_BACKEND_OBJS = $(GCC_OBJS) $(OBJS) $(OBJS-libcommon) \
1509 $(OBJS-libcommon-target) @TREEBROWSER@ main.o gccspec.o cppspec.o \ 1509 $(OBJS-libcommon-target) @TREEBROWSER@ main.o gccspec.o cppspec.o \
1510 $(COLLECT2_OBJS) $(EXTRA_GCC_OBJS) mips-tfile.o mips-tdump.o \ 1510 $(COLLECT2_OBJS) $(EXTRA_GCC_OBJS) mips-tfile.o mips-tdump.o \
1511- $(GCOV_OBJS) $(GCOV_DUMP_OBJS) 1511- $(GCOV_OBJS) $(GCOV_DUMP_OBJS)
1512+ $(GCOV_OBJS) $(GCOV_DUMP_OBJS) insn-modes.o insn-modes-ada.o 1512+ $(GCOV_OBJS) $(GCOV_DUMP_OBJS) insn-modes.o insn-modes-ada.o
1513  1513
1514 # This lists all host object files, whether they are included in this 1514 # This lists all host object files, whether they are included in this
1515 # compilation or not. 1515 # compilation or not.
1516 ALL_HOST_OBJS = $(ALL_HOST_FRONTEND_OBJS) $(ALL_HOST_BACKEND_OBJS) 1516 ALL_HOST_OBJS = $(ALL_HOST_FRONTEND_OBJS) $(ALL_HOST_BACKEND_OBJS)
1517  1517
1518-BACKEND = main.o @TREEBROWSER@ libbackend.a libcommon-target.a libcommon.a \ 1518-BACKEND = main.o @TREEBROWSER@ libbackend.a libcommon-target.a libcommon.a \
1519+BACKEND = main.o @TREEBROWSER@ insn-modes.o libbackend.a \ 1519+BACKEND = main.o @TREEBROWSER@ insn-modes.o libbackend.a \
1520+ libcommon-target.a libcommon.a \ 1520+ libcommon-target.a libcommon.a \
1521+ $(CPPLIB) $(LIBDECNUMBER) 1521+ $(CPPLIB) $(LIBDECNUMBER)
1522+ 1522+
1523+BACKEND2 = main.o @TREEBROWSER@ insn-modes-ada.o libbackend.a \ 1523+BACKEND2 = main.o @TREEBROWSER@ insn-modes-ada.o libbackend.a \
1524+ libcommon-target.a libcommon.a \ 1524+ libcommon-target.a libcommon.a \
1525 $(CPPLIB) $(LIBDECNUMBER) 1525 $(CPPLIB) $(LIBDECNUMBER)
1526  1526
1527 MOSTLYCLEANFILES = insn-flags.h insn-config.h insn-codes.h \ 1527 MOSTLYCLEANFILES = insn-flags.h insn-config.h insn-codes.h \
1528@@ -3506,6 +3510,8 @@ 1528@@ -3522,6 +3526,8 @@
1529 $(TM_H) $(RTL_H) $(DIAGNOSTIC_CORE_H) insn-config.h $(RECOG_H) 1529 $(TM_H) $(RTL_H) $(DIAGNOSTIC_CORE_H) insn-config.h $(RECOG_H)
1530 insn-modes.o : insn-modes.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ 1530 insn-modes.o : insn-modes.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
1531 $(MACHMODE_H) 1531 $(MACHMODE_H)
1532+insn-modes-ada.o : insn-modes-ada.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ 1532+insn-modes-ada.o : insn-modes-ada.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
1533+ $(TM_H) $(MACHMODE_H) 1533+ $(TM_H) $(MACHMODE_H)
1534 insn-opinit.o : insn-opinit.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ 1534 insn-opinit.o : insn-opinit.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
1535 $(TM_H) $(RTL_H) $(TM_P_H) insn-config.h $(FLAGS_H) $(RECOG_H) \ 1535 $(TM_H) $(RTL_H) $(TM_P_H) insn-config.h $(FLAGS_H) $(RECOG_H) \
1536 $(EXPR_H) $(OPTABS_H) reload.h 1536 $(EXPR_H) $(OPTABS_H) reload.h
1537@@ -3599,6 +3605,7 @@ 1537@@ -3615,6 +3621,7 @@
1538  1538
1539 insn-modes.c: s-modes; @true 1539 insn-modes.c: s-modes; @true
1540 insn-modes.h: s-modes-h; @true 1540 insn-modes.h: s-modes-h; @true
1541+insn-modes-ada.c: s-modes-ada; @true 1541+insn-modes-ada.c: s-modes-ada; @true
1542 min-insn-modes.c: s-modes-m; @true 1542 min-insn-modes.c: s-modes-m; @true
1543  1543
1544 s-modes: build/genmodes$(build_exeext) 1544 s-modes: build/genmodes$(build_exeext)
1545@@ -3616,6 +3623,12 @@ 1545@@ -3632,6 +3639,12 @@
1546 $(SHELL) $(srcdir)/../move-if-change tmp-min-modes.c min-insn-modes.c 1546 $(SHELL) $(srcdir)/../move-if-change tmp-min-modes.c min-insn-modes.c
1547 $(STAMP) s-modes-m 1547 $(STAMP) s-modes-m
1548  1548
1549+s-modes-ada: s-modes 1549+s-modes-ada: s-modes
1550+ $(shell sed -e 's/: TARGET_96_ROUND_53_LONG_DOUBLE \? &ieee_extended_intel_96_round_53_format //' \ 1550+ $(shell sed -e 's/: TARGET_96_ROUND_53_LONG_DOUBLE \? &ieee_extended_intel_96_round_53_format //' \
1551+ < insn-modes.c > tmp-modes-ada.c) 1551+ < insn-modes.c > tmp-modes-ada.c)
1552+ $(SHELL) $(srcdir)/../move-if-change tmp-modes-ada.c insn-modes-ada.c 1552+ $(SHELL) $(srcdir)/../move-if-change tmp-modes-ada.c insn-modes-ada.c
1553+ $(STAMP) s-modes-ada 1553+ $(STAMP) s-modes-ada
1554+ 1554+
1555 insn-preds.c: s-preds; @true 1555 insn-preds.c: s-preds; @true
1556 tm-preds.h: s-preds-h; @true 1556 tm-preds.h: s-preds-h; @true
1557 tm-constrs.h: s-constrs-h; @true 1557 tm-constrs.h: s-constrs-h; @true
1558@@ -4378,7 +4391,7 @@ 1558@@ -4394,7 +4407,7 @@
1559 DESTDIR=$(@D) \ 1559 DESTDIR=$(@D) \
1560 $(SHELL) $(srcdir)/doc/install.texi2html 1560 $(SHELL) $(srcdir)/doc/install.texi2html
1561  1561
1562-MANFILES = doc/gcov.1 doc/cpp.1 doc/gcc.1 doc/gfdl.7 doc/gpl.7 doc/fsf-funding.7 1562-MANFILES = doc/gcov.1 doc/cpp.1 doc/gcc.1 doc/gfdl.7 doc/gpl.7 doc/fsf-funding.7
1563+MANFILES = doc/gcov.1 doc/cpp.1 doc/gcc.1 1563+MANFILES = doc/gcov.1 doc/cpp.1 doc/gcc.1
1564  1564
1565 generated-manpages: man 1565 generated-manpages: man
1566  1566
1567@@ -4530,7 +4543,7 @@ 1567@@ -4546,7 +4559,7 @@
1568 # Install the driver last so that the window when things are 1568 # Install the driver last so that the window when things are
1569 # broken is small. 1569 # broken is small.
1570 install: install-common $(INSTALL_HEADERS) \ 1570 install: install-common $(INSTALL_HEADERS) \
1571- install-cpp install-man install-info install-@POSUB@ \ 1571- install-cpp install-man install-info install-@POSUB@ \
1572+ install-cpp install-man install-@POSUB@ \ 1572+ install-cpp install-man install-@POSUB@ \
1573 install-driver install-lto-wrapper install-gcc-ar 1573 install-driver install-lto-wrapper install-gcc-ar
1574  1574
1575 ifeq ($(enable_plugin),yes) 1575 ifeq ($(enable_plugin),yes)
1576@@ -4655,6 +4668,9 @@ 1576@@ -4671,6 +4684,9 @@
1577 -rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-$(version)$(exeext) 1577 -rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-$(version)$(exeext)
1578 -( cd $(DESTDIR)$(bindir) && \ 1578 -( cd $(DESTDIR)$(bindir) && \
1579 $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-$(version)$(exeext) ) 1579 $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-$(version)$(exeext) )
1580+ -if [ -f gnat1$(exeext) ] ; then \ 1580+ -if [ -f gnat1$(exeext) ] ; then \
1581+ ( cd $(DESTDIR)$(bindir) && $(LN) $(GCC_INSTALL_NAME)$(exeext) ada$(exeext) ) \ 1581+ ( cd $(DESTDIR)$(bindir) && $(LN) $(GCC_INSTALL_NAME)$(exeext) ada$(exeext) ) \
1582+ fi 1582+ fi
1583 -if [ -f gcc-cross$(exeext) ] ; then \ 1583 -if [ -f gcc-cross$(exeext) ] ; then \
1584 if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \ 1584 if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \
1585 rm -f $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \ 1585 rm -f $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \
1586@@ -4728,10 +4744,7 @@ 1586@@ -4744,10 +4760,7 @@
1587 install-man: lang.install-man \ 1587 install-man: lang.install-man \
1588 $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext) \ 1588 $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext) \
1589 $(DESTDIR)$(man1dir)/$(CPP_INSTALL_NAME)$(man1ext) \ 1589 $(DESTDIR)$(man1dir)/$(CPP_INSTALL_NAME)$(man1ext) \
1590- $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext) \ 1590- $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext) \
1591- $(DESTDIR)$(man7dir)/fsf-funding$(man7ext) \ 1591- $(DESTDIR)$(man7dir)/fsf-funding$(man7ext) \
1592- $(DESTDIR)$(man7dir)/gfdl$(man7ext) \ 1592- $(DESTDIR)$(man7dir)/gfdl$(man7ext) \
1593- $(DESTDIR)$(man7dir)/gpl$(man7ext) 1593- $(DESTDIR)$(man7dir)/gpl$(man7ext)
1594+ $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext) 1594+ $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext)
1595  1595
1596 $(DESTDIR)$(man7dir)/%$(man7ext): doc/%.7 installdirs 1596 $(DESTDIR)$(man7dir)/%$(man7ext): doc/%.7 installdirs
1597 -rm -f $@ 1597 -rm -f $@
1598--- configure.orig 1598--- configure.orig
1599+++ configure 1599+++ configure

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

--- pkgsrc/lang/gcc-aux/files/diff-cxx 2013/01/31 23:01:56 1.2
+++ pkgsrc/lang/gcc-aux/files/diff-cxx 2013/04/12 15:40:54 1.3
@@ -34,46 +34,46 @@ @@ -34,46 +34,46 @@
34+ CMESSAGES_H=config/locale/generic/messages_members.h 34+ CMESSAGES_H=config/locale/generic/messages_members.h
35+ CMESSAGES_CC=config/locale/generic/messages_members.cc 35+ CMESSAGES_CC=config/locale/generic/messages_members.cc
36+ CMONEY_CC=config/locale/generic/monetary_members.cc 36+ CMONEY_CC=config/locale/generic/monetary_members.cc
37+ CNUMERIC_CC=config/locale/generic/numeric_members.cc 37+ CNUMERIC_CC=config/locale/generic/numeric_members.cc
38+ CTIME_H=config/locale/generic/time_members.h 38+ CTIME_H=config/locale/generic/time_members.h
39+ CTIME_CC=config/locale/generic/time_members.cc 39+ CTIME_CC=config/locale/generic/time_members.cc
40+ CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h 40+ CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
41+ ;; 41+ ;;
42 gnu) 42 gnu)
43 AC_MSG_RESULT(gnu) 43 AC_MSG_RESULT(gnu)
44  44
45--- libstdc++-v3/configure.orig 45--- libstdc++-v3/configure.orig
46+++ libstdc++-v3/configure 46+++ libstdc++-v3/configure
47@@ -15704,7 +15704,7 @@ 47@@ -15738,7 +15738,7 @@
48 if test "${enable_clocale+set}" = set; then : 48 if test "${enable_clocale+set}" = set; then :
49 enableval=$enable_clocale; 49 enableval=$enable_clocale;
50 case "$enableval" in 50 case "$enableval" in
51- generic|gnu|ieee_1003.1-2001|newlib|yes|no|auto) ;; 51- generic|gnu|ieee_1003.1-2001|newlib|yes|no|auto) ;;
52+ generic|gnu|ieee_1003.1-2001|newlib|darwin|dragonfly|yes|no|auto) ;; 52+ generic|gnu|ieee_1003.1-2001|newlib|darwin|dragonfly|yes|no|auto) ;;
53 *) as_fn_error "Unknown argument to enable/disable clocale" "$LINENO" 5 ;; 53 *) as_fn_error "Unknown argument to enable/disable clocale" "$LINENO" 5 ;;
54 esac 54 esac
55  55
56@@ -15742,6 +15742,9 @@ 56@@ -15776,6 +15776,9 @@
57 darwin* | freebsd*) 57 darwin* | freebsd*)
58 enable_clocale_flag=darwin 58 enable_clocale_flag=darwin
59 ;; 59 ;;
60+ dragonfly*) 60+ dragonfly*)
61+ enable_clocale_flag=dragonfly 61+ enable_clocale_flag=dragonfly
62+ ;; 62+ ;;
63 *) 63 *)
64 if test x"$with_newlib" = x"yes"; then 64 if test x"$with_newlib" = x"yes"; then
65 enable_clocale_flag=newlib 65 enable_clocale_flag=newlib
66@@ -15883,7 +15886,23 @@ 66@@ -15917,7 +15920,23 @@
67 CTIME_CC=config/locale/generic/time_members.cc 67 CTIME_CC=config/locale/generic/time_members.cc
68 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h 68 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
69 ;; 69 ;;
70+ dragonfly) 70+ dragonfly)
71+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: dragonfly" >&5 71+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: dragonfly" >&5
72+$as_echo "dragonfly" >&6; } 72+$as_echo "dragonfly" >&6; }
73  73
74+ CLOCALE_H=config/locale/generic/c_locale.h 74+ CLOCALE_H=config/locale/generic/c_locale.h
75+ CLOCALE_CC=config/locale/dragonfly/c_locale.cc 75+ CLOCALE_CC=config/locale/dragonfly/c_locale.cc
76+ CCODECVT_CC=config/locale/generic/codecvt_members.cc 76+ CCODECVT_CC=config/locale/generic/codecvt_members.cc
77+ CCOLLATE_CC=config/locale/generic/collate_members.cc 77+ CCOLLATE_CC=config/locale/generic/collate_members.cc
78+ CCTYPE_CC=config/locale/dragonfly/ctype_members.cc 78+ CCTYPE_CC=config/locale/dragonfly/ctype_members.cc
79+ CMESSAGES_H=config/locale/generic/messages_members.h 79+ CMESSAGES_H=config/locale/generic/messages_members.h