From 6f045566f542db4a1d9c75fc9b50e206ac357351 Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 20 May 2013 05:47:34 +0000 Subject: * Switched to gcc-4.1.2 * Clean-up --- lang/g95/Makefile | 53 ++++--- lang/g95/PLIST | 20 +-- lang/g95/PLIST.DragonFly | 10 +- lang/g95/PLIST.Linux | 12 +- lang/g95/PLIST.SunOS | 8 +- lang/g95/distinfo | 35 +++-- lang/g95/patches/patch-.._gcc-4.0.3_gcc_config.gcc | 43 ------ .../patch-.._gcc-4.0.3_gcc_config_dragonfly-spec.h | 124 ----------------- .../patch-.._gcc-4.0.3_gcc_config_dragonfly.h | 94 ------------- .../patch-.._gcc-4.0.3_gcc_config_i386_darwin.h | 31 ----- .../patch-.._gcc-4.0.3_gcc_config_i386_dragonfly.h | 152 --------------------- ...atch-.._gcc-4.0.3_gcc_config_i386_dragonfly64.h | 52 ------- .../patch-.._gcc-4.0.3_gcc_config_t-dragonfly | 12 -- ...atch-.._gcc-4.0.3_gcc_config_t-dragonfly-thread | 9 -- .../patch-.._gcc-4.0.3_gcc_ginclude_stddef.h | 52 ------- lang/g95/patches/patch-.._gcc-4.0.3_gcc_toplev.h | 20 --- lang/g95/patches/patch-ab | 8 +- lang/g95/patches/patch-gcc_config.gcc | 53 +++++++ lang/g95/patches/patch-gcc_config_dragonfly-spec.h | 124 +++++++++++++++++ lang/g95/patches/patch-gcc_config_dragonfly.h | 94 +++++++++++++ lang/g95/patches/patch-gcc_config_i386_dragonfly.h | 152 +++++++++++++++++++++ .../patches/patch-gcc_config_i386_dragonfly64.h | 52 +++++++ lang/g95/patches/patch-gcc_config_t-dragonfly | 12 ++ .../patches/patch-gcc_config_t-dragonfly-thread | 9 ++ lang/g95/patches/patch-gcc_ginclude_stddef.h | 52 +++++++ lang/g95/patches/patch-gcc_toplev.h | 20 +++ 26 files changed, 640 insertions(+), 663 deletions(-) delete mode 100644 lang/g95/patches/patch-.._gcc-4.0.3_gcc_config.gcc delete mode 100644 lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_dragonfly-spec.h delete mode 100644 lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_dragonfly.h delete mode 100644 lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_i386_darwin.h delete mode 100644 lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_i386_dragonfly.h delete mode 100644 lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_i386_dragonfly64.h delete mode 100644 lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_t-dragonfly delete mode 100644 lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_t-dragonfly-thread delete mode 100644 lang/g95/patches/patch-.._gcc-4.0.3_gcc_ginclude_stddef.h delete mode 100644 lang/g95/patches/patch-.._gcc-4.0.3_gcc_toplev.h create mode 100644 lang/g95/patches/patch-gcc_config.gcc create mode 100644 lang/g95/patches/patch-gcc_config_dragonfly-spec.h create mode 100644 lang/g95/patches/patch-gcc_config_dragonfly.h create mode 100644 lang/g95/patches/patch-gcc_config_i386_dragonfly.h create mode 100644 lang/g95/patches/patch-gcc_config_i386_dragonfly64.h create mode 100644 lang/g95/patches/patch-gcc_config_t-dragonfly create mode 100644 lang/g95/patches/patch-gcc_config_t-dragonfly-thread create mode 100644 lang/g95/patches/patch-gcc_ginclude_stddef.h create mode 100644 lang/g95/patches/patch-gcc_toplev.h (limited to 'lang/g95') diff --git a/lang/g95/Makefile b/lang/g95/Makefile index 17611d28a70..013d679a51a 100644 --- a/lang/g95/Makefile +++ b/lang/g95/Makefile @@ -1,26 +1,27 @@ -# $NetBSD: Makefile,v 1.14 2013/02/08 12:46:14 obache Exp $ - -DISTNAME= g95_source -VERSION= 0.93 -PKGNAME= g95-${VERSION} -CATEGORIES= lang -MASTER_SITES= http://ftp.g95.org/v${VERSION}/ -EXTRACT_SUFX= .tgz -DIST_SUBDIR= ${PKGNAME_NOREV} -DISTFILES= ${DEFAULT_DISTFILES} -DISTFILES+= gcc-core-4.0.3.tar.bz2 -SITES.gcc-core-4.0.3.tar.bz2= ${MASTER_SITE_GNU:=gcc/gcc-4.0.3/} - -MAINTAINER= wennmach@NetBSD.org -HOMEPAGE= http://www.g95.org/ -COMMENT= Fortran 95 compiler from g95.org - -GNU_CONFIGURE= YES +# $NetBSD: Makefile,v 1.15 2013/05/20 05:47:34 adam Exp $ + +DISTNAME= g95_source +PKGNAME= g95-0.93 +PKGREVISION= 1 +CATEGORIES= lang +MASTER_SITES= http://ftp.g95.org/v${PKGVERSION_NOREV}/ +EXTRACT_SUFX= .tgz +DISTFILES= ${DEFAULT_DISTFILES} gcc-core-${GCC_VER}.tar.bz2 +SITES.gcc-core-${GCC_VER}.tar.bz2= ${MASTER_SITE_GNU:=gcc/gcc-${GCC_VER}/} + +MAINTAINER= wennmach@NetBSD.org +HOMEPAGE= http://www.g95.org/ +COMMENT= Fortran 95 compiler from g95.org +LICENSE= gnu-gpl-v2 + USE_TOOLS+= gmake gtar +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --with-gcc-dir=${GCC_DIR} WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} PLIST_SUBST+= MACHINE_GNU_PLATFORM=${MACHINE_GNU_PLATFORM:Q} -GCC_DIR= ${WRKDIR}/gcc-4.0.3 +GCC_VER= 4.1.2 +GCC_DIR= ${WRKDIR}/gcc-${GCC_VER} GCC_G95_DIR= ${GCC_DIR}/g95 GCC_CONFIGURE_SCRIPT= ../configure GCC_CONFIGURE_ARGS= ${CONFIGURE_ARGS} @@ -31,18 +32,16 @@ GCC_CONFIGURE_ARGS+= --disable-multilib .if ${OPSYS} == "SunOS" GCC_CONFIGURE_ENV+= OBJDUMP=/usr/sfw/bin/gobjdump GCC_CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/ccs/bin/ld -. if !exists(/usr/sfw/bin/gas) +. if !exists(/usr/sfw/bin/gas) GCC_CONFIGURE_ARGS+= --without-gnu-as --with-as=/usr/ccs/bin/as -. else +. else GCC_CONFIGURE_ARGS+= --with-gnu-as --with-as=/usr/sfw/bin/gas -. endif +. endif .endif -CONFIGURE_ARGS+= --with-gcc-dir=${GCC_DIR} - post-extract: ${MKDIR} ${GCC_G95_DIR} - cd ${WRKSRC} && ${GTAR} -xzf libf95.a-${VERSION}.tar.gz + cd ${WRKSRC} && ${GTAR} -xzf libf95.a-${PKGVERSION_NOREV}.tar.gz pre-configure: rm -f ${GCC_DIR}/config.sub ${GCC_DIR}/config.guess @@ -51,10 +50,10 @@ pre-configure: cd ${GCC_G95_DIR} && ${GCC_CONFIGURE_SCRIPT} ${GCC_CONFIGURE_ARGS} && ${GMAKE} post-build: - cd ${WRKSRC}/libf95.a-${VERSION} && ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} && ${GMAKE} + cd ${WRKSRC}/libf95.a-${PKGVERSION_NOREV} && ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} && ${GMAKE} post-install: - cd ${WRKSRC}/libf95.a-${VERSION} && ${GMAKE} install DESTDIR=${DESTDIR:Q} + cd ${WRKSRC}/libf95.a-${PKGVERSION_NOREV} && ${GMAKE} install DESTDIR=${DESTDIR:Q} cd ${DESTDIR}${PREFIX}/bin && ${LN} -sf ${MACHINE_GNU_PLATFORM:Q}-g95 g95 cd ${DESTDIR}${PREFIX}/bin && ${LN} -sf ${MACHINE_GNU_PLATFORM:Q}-g95 f95 diff --git a/lang/g95/PLIST b/lang/g95/PLIST index 0bd77591c4d..3f94537080f 100644 --- a/lang/g95/PLIST +++ b/lang/g95/PLIST @@ -1,13 +1,13 @@ -@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:03:31 joerg Exp $ -bin/g95 +@comment $NetBSD: PLIST,v 1.4 2013/05/20 05:47:34 adam Exp $ bin/f95 +bin/g95 bin/${MACHINE_GNU_PLATFORM}-g95 -lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/cc1 -lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/f951 -lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/libgcc_eh.a -lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/libgcc_s.so -lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/libgcc_s.so.1 -lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/libgcc.a -lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/libf95.a -share/doc/g95/INSTALL +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/cc1 +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/f951 +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/libgcc_eh.a +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/libgcc_s.so +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/libgcc_s.so.1 +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/libgcc.a +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/libf95.a share/doc/g95/G95Manual.pdf +share/doc/g95/INSTALL diff --git a/lang/g95/PLIST.DragonFly b/lang/g95/PLIST.DragonFly index 0aa89456611..19710f3c74f 100644 --- a/lang/g95/PLIST.DragonFly +++ b/lang/g95/PLIST.DragonFly @@ -1,5 +1,5 @@ -@comment $NetBSD: PLIST.DragonFly,v 1.1 2011/12/16 17:17:49 marino Exp $ -lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/crtbegin.o -lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/crtbeginS.o -lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/crtend.o -lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/crtendS.o +@comment $NetBSD: PLIST.DragonFly,v 1.2 2013/05/20 05:47:34 adam Exp $ +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/crtbegin.o +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/crtbeginS.o +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/crtend.o +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/crtendS.o diff --git a/lang/g95/PLIST.Linux b/lang/g95/PLIST.Linux index a0ace0c9384..3f3321602c3 100644 --- a/lang/g95/PLIST.Linux +++ b/lang/g95/PLIST.Linux @@ -1,6 +1,6 @@ -@comment $NetBSD: PLIST.Linux,v 1.1 2011/01/23 09:42:10 markd Exp $ -lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/crtbegin.o -lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/crtbeginS.o -lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/crtbeginT.o -lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/crtend.o -lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/crtendS.o +@comment $NetBSD: PLIST.Linux,v 1.2 2013/05/20 05:47:34 adam Exp $ +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/crtbegin.o +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/crtbeginS.o +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/crtbeginT.o +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/crtend.o +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/crtendS.o diff --git a/lang/g95/PLIST.SunOS b/lang/g95/PLIST.SunOS index 0d143879f9c..c1fe13983be 100644 --- a/lang/g95/PLIST.SunOS +++ b/lang/g95/PLIST.SunOS @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST.SunOS,v 1.1 2012/03/20 17:26:19 hans Exp $ -lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/crtbegin.o -lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/crtend.o -lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/gmon.o +@comment $NetBSD: PLIST.SunOS,v 1.2 2013/05/20 05:47:34 adam Exp $ +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/crtbegin.o +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/crtend.o +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/gmon.o diff --git a/lang/g95/distinfo b/lang/g95/distinfo index 7e317476f1a..530202945d5 100644 --- a/lang/g95/distinfo +++ b/lang/g95/distinfo @@ -1,23 +1,22 @@ -$NetBSD: distinfo,v 1.14 2013/04/04 14:31:32 jperkin Exp $ +$NetBSD: distinfo,v 1.15 2013/05/20 05:47:34 adam Exp $ -SHA1 (g95-0.93/g95_source.tgz) = b5e503fd6459b65cbda73190685f9490230d9cff -RMD160 (g95-0.93/g95_source.tgz) = 98d03e9a1835f4b3553a72a798bdf1d90a757176 -Size (g95-0.93/g95_source.tgz) = 1355198 bytes -SHA1 (g95-0.93/gcc-core-4.0.3.tar.bz2) = 5aa3e370dddaa485909028120002c3bb21e86be2 -RMD160 (g95-0.93/gcc-core-4.0.3.tar.bz2) = a930f26630a61194b134dba3c828b52e4bdbf81f -Size (g95-0.93/gcc-core-4.0.3.tar.bz2) = 15573608 bytes -SHA1 (patch-.._gcc-4.0.3_gcc_config.gcc) = f93cca19dbb3544a1259960a3ab092fd72038125 -SHA1 (patch-.._gcc-4.0.3_gcc_config_dragonfly-spec.h) = 2fac90d3b4b2113e4713497fbcf3a3999dde2045 -SHA1 (patch-.._gcc-4.0.3_gcc_config_dragonfly.h) = 12707232e61b664f3b1a9943cbb3a49e61e94fa9 -SHA1 (patch-.._gcc-4.0.3_gcc_config_i386_darwin.h) = f5b17c0c33e824f8463f9b8c82fb012796ba4927 -SHA1 (patch-.._gcc-4.0.3_gcc_config_i386_dragonfly.h) = 96fa1faed692f8d4aeade98dd42d25b85ba051d7 -SHA1 (patch-.._gcc-4.0.3_gcc_config_i386_dragonfly64.h) = b228dbcdf7b5cf22d41d6ff04a37c569ca514c50 -SHA1 (patch-.._gcc-4.0.3_gcc_config_t-dragonfly) = 9636163ffd359b2a0dbb0a7fec2ca1cf98032c3d -SHA1 (patch-.._gcc-4.0.3_gcc_config_t-dragonfly-thread) = a7181b3061e32d3edd38c09eed34232a75de83cf -SHA1 (patch-.._gcc-4.0.3_gcc_ginclude_stddef.h) = 5e18b132d36ca02dcfed0569297e7ad6b1eada26 -SHA1 (patch-.._gcc-4.0.3_gcc_toplev.h) = 164115c81d1a286c139afc652e6e85b2daba9d38 -SHA1 (patch-ab) = 7275d8df3ba1621f3d496c386df999295f36f974 +SHA1 (g95_source.tgz) = b5e503fd6459b65cbda73190685f9490230d9cff +RMD160 (g95_source.tgz) = 98d03e9a1835f4b3553a72a798bdf1d90a757176 +Size (g95_source.tgz) = 1355198 bytes +SHA1 (gcc-core-4.1.2.tar.bz2) = d6875295f6df1bec4a6f4ab8f0da54bfb8d97306 +RMD160 (gcc-core-4.1.2.tar.bz2) = 612cbd5b795f7095fb3f565e6a8eaaee82c472c5 +Size (gcc-core-4.1.2.tar.bz2) = 17485561 bytes +SHA1 (patch-ab) = 74187ee99e3e383333219cbc53676c07ca03ff19 SHA1 (patch-ac) = b20a90cc2f9078cf0048980b75fa6836da0f28a8 +SHA1 (patch-gcc_config.gcc) = 9da8f32372c64b1590d97e3f26aec0d5652cc959 +SHA1 (patch-gcc_config_dragonfly-spec.h) = bf0c97caa314714542cf8cc63fdf0c73bda80511 +SHA1 (patch-gcc_config_dragonfly.h) = 6d46b7b4637a20b36e19a15e1eaffdfff6638de9 +SHA1 (patch-gcc_config_i386_dragonfly.h) = 7d60d29b5ae636d69650e8c412a94f7a6045f6d9 +SHA1 (patch-gcc_config_i386_dragonfly64.h) = 9d2d8512a913e58055fa5c1b7d85a109117dcfba +SHA1 (patch-gcc_config_t-dragonfly) = dd8d5919af737dfb9e3c18be9a41b4e2c6f31155 +SHA1 (patch-gcc_config_t-dragonfly-thread) = ebdb58dacf0dc5d0bf2f1f1707a7c6ab29ee308c +SHA1 (patch-gcc_ginclude_stddef.h) = 60f51a470e03173803b5e20b1fa4d6882e8d1fe9 +SHA1 (patch-gcc_toplev.h) = 4894b45bf0fd30de0610a36827ef1089e0ec6bd5 SHA1 (patch-libf95.a-0.92_configure) = e23998692b410acaabaf24f591b659d2b229bcca SHA1 (patch-libf95.a-0.92_io_atof.c) = 0c3a209815be3a97d984cb9a15ee888f93110d1d SHA1 (patch-libf95.a-0.93_intrinsics_dot__product10.c) = a2fe19bab2a6f719f541692fd4ef7e67766a18e5 diff --git a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config.gcc b/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config.gcc deleted file mode 100644 index 09f909b20e3..00000000000 --- a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config.gcc +++ /dev/null @@ -1,43 +0,0 @@ -$NetBSD: patch-.._gcc-4.0.3_gcc_config.gcc,v 1.1 2011/02/19 16:06:31 rumko Exp $ - -DragonFly BSD support. - ---- ../gcc-4.0.3/gcc/config.gcc.orig 2011-02-01 19:11:53 +0100 -+++ ../gcc-4.0.3/gcc/config.gcc 2011-02-01 21:15:59 +0100 -@@ -440,6 +440,23 @@ - esac - fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h" - ;; -+*-*-dragonfly*) -+ gas=yes -+ gnu_ld=yes -+ extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" -+ tmake_file="t-slibgcc-elf-ver t-dragonfly" -+ case ${enable_threads} in -+ "" | yes | posix) -+ thread_file='posix' -+ tmake_file="${tmake_file} t-dragonfly-thread" -+ ;; -+ *) -+ echo 'Unknown thread configuration for FreeBSD' -+ exit 1 -+ ;; -+ esac -+ dfly_tm_file="${dfly_tm_file} dragonfly-spec.h dragonfly.h" -+ ;; - *-*-linux*libc1* | *-*-linux*aout*) - # Avoid the generic linux case. - ;; -@@ -969,6 +986,12 @@ - x86_64-*-freebsd*) - tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/x86-64.h i386/freebsd.h i386/freebsd64.h" - ;; -+i[34567]86-*-dragonfly*) -+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${dfly_tm_file} i386/dragonfly.h" -+ ;; -+x86_64-*-dragonfly*) -+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${dfly_tm_file} i386/x86-64.h i386/dragonfly.h i386/dragonfly64.h" -+ ;; - i[34567]86-*-netbsdelf*) - tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h" - ;; diff --git a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_dragonfly-spec.h b/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_dragonfly-spec.h deleted file mode 100644 index df503d4f490..00000000000 --- a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_dragonfly-spec.h +++ /dev/null @@ -1,124 +0,0 @@ -$NetBSD: patch-.._gcc-4.0.3_gcc_config_dragonfly-spec.h,v 1.1 2011/02/19 16:06:31 rumko Exp $ - -DragonFly BSD support. - ---- /dev/null 2011-02-01 20:59:25 +0100 -+++ ../gcc-4.0.3/gcc/config/dragonfly-spec.h 2011-02-01 19:58:33 +0100 -@@ -0,0 +1,117 @@ -+/* Base configuration file for all DragonFly targets. -+ Copyright (C) 1999, 2000, 2001, 2004, 2005 Free Software Foundation, Inc. -+ -+This file is part of GCC. -+ -+GCC is free software; you can redistribute it and/or modify -+it under the terms of the GNU General Public License as published by -+the Free Software Foundation; either version 2, or (at your option) -+any later version. -+ -+GCC is distributed in the hope that it will be useful, -+but WITHOUT ANY WARRANTY; without even the implied warranty of -+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+GNU General Public License for more details. -+ -+You should have received a copy of the GNU General Public License -+along with GCC; see the file COPYING. If not, write to -+the Free Software Foundation, 59 Temple Place - Suite 330, -+Boston, MA 02111-1307, USA. */ -+ -+/* Common DragonFly configuration. -+ All DragonFly architectures should include this file, which will specify -+ their commonalities. -+ Adapted from gcc/config/freebsd.h by -+ David O'Brien -+ Loren J. Rittle . */ -+ -+ -+/* In case we need to know. */ -+#define USING_CONFIG_DRAGONFLY_SPEC 1 -+ -+/* This defines which switch letters take arguments. On DragonFly, most of -+ the normal cases (defined in gcc.c) apply, and we also have -h* and -+ -z* options (for the linker) (coming from SVR4). -+ We also have -R (alias --rpath), no -z, --soname (-h), --assert etc. */ -+ -+#define DFLY_SWITCH_TAKES_ARG(CHAR) \ -+ (DEFAULT_SWITCH_TAKES_ARG (CHAR) \ -+ || (CHAR) == 'h' \ -+ || (CHAR) == 'z' /* ignored by ld */ \ -+ || (CHAR) == 'R') -+ -+/* This defines which multi-letter switches take arguments. */ -+ -+#define DFLY_WORD_SWITCH_TAKES_ARG(STR) \ -+ (DEFAULT_WORD_SWITCH_TAKES_ARG (STR) \ -+ || !strcmp ((STR), "rpath") || !strcmp ((STR), "rpath-link") \ -+ || !strcmp ((STR), "soname") || !strcmp ((STR), "defsym") \ -+ || !strcmp ((STR), "assert") || !strcmp ((STR), "dynamic-linker")) -+ -+#define DFLY_TARGET_OS_CPP_BUILTINS() \ -+ do \ -+ { \ -+ builtin_define ("__DragonFly__"); \ -+ builtin_define_std ("unix"); \ -+ builtin_define ("__KPRINTF_ATTRIBUTE__"); \ -+ builtin_assert ("system=unix"); \ -+ builtin_assert ("system=bsd"); \ -+ builtin_assert ("system=DragonFly"); \ -+ DFLY_TARGET_CPU_CPP_BUILTINS(); \ -+ } \ -+ while (0) -+ -+/* Define the default DragonFly-specific per-CPU hook code. */ -+#define DFLY_TARGET_CPU_CPP_BUILTINS() do {} while (0) -+ -+/* Provide a CPP_SPEC appropriate for DragonFly. We just deal with the GCC -+ option `-posix', and PIC issues. */ -+ -+#define DFLY_CPP_SPEC " \ -+ %(cpp_cpu) \ -+ %(cpp_arch) \ -+ %{fPIC|fpic|fPIE|fpie:-D__PIC__ -D__pic__} \ -+ %{posix:-D_POSIX_SOURCE}" -+ -+/* Provide a STARTFILE_SPEC appropriate for DragonFly. Here we add -+ the magical crtbegin.o file (see crtstuff.c) which provides part -+ of the support for getting C++ file-scope static object constructed -+ before entering `main'. */ -+ -+#define DFLY_STARTFILE_SPEC \ -+ "%{!shared: \ -+ %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \ -+ %{!p:%{profile:gcrt1.o%s} \ -+ %{!profile:crt1.o%s}}}} \ -+ crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}" -+ -+/* Provide a ENDFILE_SPEC appropriate for DragonFly. Here we tack on -+ the magical crtend.o file (see crtstuff.c) which provides part of -+ the support for getting C++ file-scope static object constructed -+ before entering `main', followed by a normal "finalizer" file, -+ `crtn.o'. */ -+ -+#define DFLY_ENDFILE_SPEC \ -+ "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s" -+ -+/* Provide a LIB_SPEC appropriate for DragonFly. Just select the appropriate -+ libc, depending on whether we're doing profiling or need threads support. -+ (similar to the default, except no -lg, and no -p). */ -+ -+#ifdef DFLY_NO_THREADS -+#define DFLY_LIB_SPEC " \ -+ %{pthread: %eThe -pthread option is only supported on DragonFly when gcc \ -+is built with the --enable-threads configure-time option.} \ -+ %{!shared: \ -+ %{!pg: -lc} \ -+ %{pg: -lc_p} \ -+ }" -+#else -+#define DFLY_LIB_SPEC " \ -+ %{!shared: \ -+ %{!pg: %{pthread:-lpthread} -lc} \ -+ %{pg: %{pthread:-lpthread_p} -lc_p} \ -+ }" -+#endif -+ -+#define DFLY_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.2" diff --git a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_dragonfly.h b/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_dragonfly.h deleted file mode 100644 index 3359af2b651..00000000000 --- a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_dragonfly.h +++ /dev/null @@ -1,94 +0,0 @@ -$NetBSD: patch-.._gcc-4.0.3_gcc_config_dragonfly.h,v 1.1 2011/02/19 16:06:31 rumko Exp $ - -DragonFly BSD support. - ---- /dev/null 2011-02-01 20:59:25 +0100 -+++ ../gcc-4.0.3/gcc/config/dragonfly.h 2011-02-01 19:19:27 +0100 -@@ -0,0 +1,87 @@ -+/* Base configuration file for all DragonFly targets. -+ Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. -+ -+This file is part of GCC. -+ -+GCC is free software; you can redistribute it and/or modify -+it under the terms of the GNU General Public License as published by -+the Free Software Foundation; either version 2, or (at your option) -+any later version. -+ -+GCC is distributed in the hope that it will be useful, -+but WITHOUT ANY WARRANTY; without even the implied warranty of -+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+GNU General Public License for more details. -+ -+You should have received a copy of the GNU General Public License -+along with GCC; see the file COPYING. If not, write to -+the Free Software Foundation, 59 Temple Place - Suite 330, -+Boston, MA 02111-1307, USA. */ -+ -+/* Common DragonFly configuration. -+ All DragonFly architectures should include this file, which will specify -+ their commonalities. -+ Adapted from gcc/config/i386/freebsd-elf.h by -+ David O'Brien . -+ Further work by David O'Brien and -+ Loren J. Rittle . */ -+ -+ -+/* In case we need to know. */ -+#define USING_CONFIG_DRAGONFLY 1 -+ -+/* This defines which switch letters take arguments. On DragonFly, most of -+ the normal cases (defined in gcc.c) apply, and we also have -h* and -+ -z* options (for the linker) (coming from SVR4). -+ We also have -R (alias --rpath), no -z, --soname (-h), --assert etc. */ -+ -+#undef SWITCH_TAKES_ARG -+#define SWITCH_TAKES_ARG(CHAR) (DFLY_SWITCH_TAKES_ARG(CHAR)) -+ -+#undef WORD_SWITCH_TAKES_ARG -+#define WORD_SWITCH_TAKES_ARG(STR) (DFLY_WORD_SWITCH_TAKES_ARG(STR)) -+ -+#undef TARGET_OS_CPP_BUILTINS -+#define TARGET_OS_CPP_BUILTINS() DFLY_TARGET_OS_CPP_BUILTINS() -+ -+#undef CPP_SPEC -+#define CPP_SPEC DFLY_CPP_SPEC -+ -+#undef STARTFILE_SPEC -+#define STARTFILE_SPEC DFLY_STARTFILE_SPEC -+ -+#undef ENDFILE_SPEC -+#define ENDFILE_SPEC DFLY_ENDFILE_SPEC -+ -+#undef LIB_SPEC -+#define LIB_SPEC DFLY_LIB_SPEC -+ -+ -+/************************[ Target stuff ]***********************************/ -+ -+/* All DragonFly Architectures support the ELF object file format. */ -+#undef OBJECT_FORMAT_ELF -+#define OBJECT_FORMAT_ELF -+ -+/* Don't assume anything about the header files. */ -+#undef NO_IMPLICIT_EXTERN_C -+#define NO_IMPLICIT_EXTERN_C 1 -+ -+/* Make gcc agree with DragonFly's standard headers (, etc...) */ -+ -+#undef WCHAR_TYPE -+#define WCHAR_TYPE "int" -+ -+#define MATH_LIBRARY_PROFILE "-lm_p" -+ -+/* Code generation parameters. */ -+ -+/* Use periods rather than dollar signs in special g++ assembler names. -+ This ensures the configuration knows our system correctly so we can link -+ with libraries compiled with the native cc. */ -+#undef NO_DOLLAR_IN_LABEL -+ -+/* Used by libgcc2.c. We support file locking with fcntl / F_SETLKW. -+ This enables the test coverage code to use file locking when exiting a -+ program, which avoids race conditions if the program has forked. */ -+#define TARGET_HAS_F_SETLKW diff --git a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_i386_darwin.h b/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_i386_darwin.h deleted file mode 100644 index 1713941adaf..00000000000 --- a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_i386_darwin.h +++ /dev/null @@ -1,31 +0,0 @@ -$NetBSD: patch-.._gcc-4.0.3_gcc_config_i386_darwin.h,v 1.1 2013/04/04 14:31:32 jperkin Exp $ - -Fix -arch type on OSX. - ---- ../gcc-4.0.3/gcc/config/i386/darwin.h.orig 2013-04-04 14:07:01.000000000 +0000 -+++ ../gcc-4.0.3/gcc/config/i386/darwin.h 2013-04-04 14:07:38.000000000 +0000 -@@ -23,7 +23,7 @@ - #undef TARGET_MACHO - #define TARGET_MACHO 1 - --#define TARGET_VERSION fprintf (stderr, " (i686 Darwin)"); -+#define TARGET_VERSION fprintf (stderr, " (i386 Darwin)"); - - #define TARGET_OS_CPP_BUILTINS() \ - do \ -@@ -43,12 +43,12 @@ - %{g: %{!fno-eliminate-unused-debug-symbols: -feliminate-unused-debug-symbols }}" - - #undef ASM_SPEC --#define ASM_SPEC "-arch i686 -force_cpusubtype_ALL" -+#define ASM_SPEC "-arch i386 -force_cpusubtype_ALL" - - #undef SUBTARGET_EXTRA_SPECS - #define SUBTARGET_EXTRA_SPECS \ -- { "darwin_arch", "i686" }, \ -- { "darwin_subarch", "%{march=pentium3:pentIIm3;:i686}" }, -+ { "darwin_arch", "i386" }, \ -+ { "darwin_subarch", "%{march=pentium3:pentIIm3;:i386}" }, - - - /* Use the following macro for any Darwin/x86-specific command-line option diff --git a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_i386_dragonfly.h b/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_i386_dragonfly.h deleted file mode 100644 index 24353c801f4..00000000000 --- a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_i386_dragonfly.h +++ /dev/null @@ -1,152 +0,0 @@ -$NetBSD: patch-.._gcc-4.0.3_gcc_config_i386_dragonfly.h,v 1.1 2011/02/19 16:06:31 rumko Exp $ - -DragonFly BSD support. - ---- /dev/null 2011-02-01 20:59:25 +0100 -+++ ../gcc-4.0.3/gcc/config/i386/dragonfly.h 2011-02-01 19:38:39 +0100 -@@ -0,0 +1,145 @@ -+/* Definitions for Intel 386 running DragonFly with ELF format -+ Copyright (C) 1996, 2000, 2002, 2004 Free Software Foundation, Inc. -+ Contributed by Eric Youngdale. -+ Modified for stabs-in-ELF by H.J. Lu. -+ Adapted from GNU/Linux version by John Polstra. -+ Continued development by David O'Brien -+ -+This file is part of GCC. -+ -+GCC is free software; you can redistribute it and/or modify -+it under the terms of the GNU General Public License as published by -+the Free Software Foundation; either version 2, or (at your option) -+any later version. -+ -+GCC is distributed in the hope that it will be useful, -+but WITHOUT ANY WARRANTY; without even the implied warranty of -+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+GNU General Public License for more details. -+ -+You should have received a copy of the GNU General Public License -+along with GCC; see the file COPYING. If not, write to -+the Free Software Foundation, 59 Temple Place - Suite 330, -+Boston, MA 02111-1307, USA. */ -+ -+ -+#define TARGET_VERSION fprintf (stderr, " (i386 DragonFly/ELF)"); -+ -+/* Override the default comment-starter of "/". */ -+#undef ASM_COMMENT_START -+#define ASM_COMMENT_START "#" -+ -+#undef ASM_APP_ON -+#define ASM_APP_ON "#APP\n" -+ -+#undef ASM_APP_OFF -+#define ASM_APP_OFF "#NO_APP\n" -+ -+#undef DBX_REGISTER_NUMBER -+#define DBX_REGISTER_NUMBER(n) \ -+ (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n]) -+ -+#undef NO_PROFILE_COUNTERS -+#define NO_PROFILE_COUNTERS 1 -+ -+/* Tell final.c that we don't need a label passed to mcount. */ -+ -+#undef MCOUNT_NAME -+#define MCOUNT_NAME ".mcount" -+ -+/* Make gcc agree with . */ -+ -+#if 0 -+#undef SIZE_TYPE -+#define SIZE_TYPE (TARGET_64BIT ? "long unsigned int" : "unsigned int") -+ -+#undef PTRDIFF_TYPE -+#define PTRDIFF_TYPE (TARGET_64BIT ? "long int" : "int") -+ -+#undef WCHAR_TYPE_SIZE -+#define WCHAR_TYPE_SIZE (TARGET_64BIT ? 32 : BITS_PER_WORD) -+#endif -+ -+#undef SUBTARGET_EXTRA_SPECS /* i386.h bogusly defines it. */ -+#define SUBTARGET_EXTRA_SPECS \ -+ { "dfly_dynamic_linker", DFLY_DYNAMIC_LINKER } -+ -+/* Provide a STARTFILE_SPEC appropriate for DragonFly. Here we add -+ the magical crtbegin.o file (see crtstuff.c) which provides part -+ of the support for getting C++ file-scope static object constructed -+ before entering `main'. */ -+ -+#undef STARTFILE_SPEC -+#define STARTFILE_SPEC \ -+ "%{!shared: \ -+ %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \ -+ %{!p:%{profile:gcrt1.o%s} \ -+ %{!profile:crt1.o%s}}}} \ -+ crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}" -+ -+/* Provide a ENDFILE_SPEC appropriate for DragonFly. Here we tack on -+ the magical crtend.o file (see crtstuff.c) which provides part of -+ the support for getting C++ file-scope static object constructed -+ before entering `main', followed by a normal "finalizer" file, -+ `crtn.o'. */ -+ -+#undef ENDFILE_SPEC -+#define ENDFILE_SPEC \ -+ "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s" -+ -+/* Provide a LINK_SPEC appropriate for DragonFly. -+ Here we provide support for the special GCC options -static and -+ -shared, which allow us to link things in one of these three modes -+ by applying the appropriate combinations of options at link-time. -+ We like to support here for as many of the other GNU linker -+ options as possible. But I don't have the time to search for -+ those flags. I am sure how to add support for -soname -+ shared_object_name. H.J. -+ -+ I took out %{v:%{!V:-V}}. It is too much :-(. They can use -+ -Wl,-V. -+ -+ When the -shared link option is used a final link is not being -+ done. */ -+ -+#undef LINK_SPEC -+#define LINK_SPEC "\ -+ %{p:%nconsider using `-pg' instead of `-p' with gprof(1)} \ -+ %{Wl,*:%*} \ -+ %{v:-V} \ -+ %{assert*} %{R*} %{rpath*} %{defsym*} \ -+ %{shared:-Bshareable %{h*} %{soname*}} \ -+ %{!shared: \ -+ %{!static: \ -+ %{rdynamic:-export-dynamic} \ -+ %{!dynamic-linker:-dynamic-linker %(dfly_dynamic_linker) }} \ -+ %{static:-Bstatic}} \ -+ %{symbolic:-Bsymbolic}" -+ -+/* A C statement to output to the stdio stream FILE an assembler -+ command to advance the location counter to a multiple of 1< and std::numeric_limits correct. */ -+#undef TARGET_96_ROUND_53_LONG_DOUBLE -+#define TARGET_96_ROUND_53_LONG_DOUBLE (!TARGET_64BIT) diff --git a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_i386_dragonfly64.h b/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_i386_dragonfly64.h deleted file mode 100644 index f43032221e4..00000000000 --- a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_i386_dragonfly64.h +++ /dev/null @@ -1,52 +0,0 @@ -$NetBSD: patch-.._gcc-4.0.3_gcc_config_i386_dragonfly64.h,v 1.1 2011/02/19 16:06:31 rumko Exp $ - -DragonFly BSD support. - ---- /dev/null 2011-02-01 20:59:25 +0100 -+++ ../gcc-4.0.3/gcc/config/i386/dragonfly64.h 2011-02-01 19:38:50 +0100 -@@ -0,0 +1,45 @@ -+/* Definitions for AMD x86-64 running DragonFly with ELF format -+ Copyright (C) 2002, 2004 Free Software Foundation, Inc. -+ Contributed by David O'Brien -+ -+This file is part of GCC. -+ -+GCC is free software; you can redistribute it and/or modify -+it under the terms of the GNU General Public License as published by -+the Free Software Foundation; either version 2, or (at your option) -+any later version. -+ -+GCC is distributed in the hope that it will be useful, -+but WITHOUT ANY WARRANTY; without even the implied warranty of -+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+GNU General Public License for more details. -+ -+You should have received a copy of the GNU General Public License -+along with GCC; see the file COPYING. If not, write to -+the Free Software Foundation, 59 Temple Place - Suite 330, -+Boston, MA 02111-1307, USA. */ -+ -+ -+#undef TARGET_VERSION -+#define TARGET_VERSION fprintf (stderr, " (DragonFly/x86-64 ELF)"); -+ -+#define SUBTARGET_EXTRA_SPECS \ -+ { "dfly_dynamic_linker", DFLY_DYNAMIC_LINKER } -+ -+/* Provide a LINK_SPEC appropriate for the DragonFly/x86-64 ELF target. -+ This is a copy of LINK_SPEC from tweaked for -+ the x86-64 target. */ -+ -+#undef LINK_SPEC -+#define LINK_SPEC "\ -+ %{m32:-m elf_i386_fbsd} \ -+ %{Wl,*:%*} \ -+ %{v:-V} \ -+ %{assert*} %{R*} %{rpath*} %{defsym*} \ -+ %{shared:-Bshareable %{h*} %{soname*}} \ -+ %{!shared: \ -+ %{!static: \ -+ %{rdynamic:-export-dynamic} \ -+ %{!dynamic-linker:-dynamic-linker %(dfly_dynamic_linker) }} \ -+ %{static:-Bstatic}} \ -+ %{symbolic:-Bsymbolic}" diff --git a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_t-dragonfly b/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_t-dragonfly deleted file mode 100644 index a3c7120d821..00000000000 --- a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_t-dragonfly +++ /dev/null @@ -1,12 +0,0 @@ -$NetBSD: patch-.._gcc-4.0.3_gcc_config_t-dragonfly,v 1.1 2011/02/19 16:06:31 rumko Exp $ - -DragonFly BSD support. - ---- /dev/null 2011-02-07 10:19:08 +0100 -+++ ../gcc-4.0.3/gcc/config/t-dragonfly 2011-02-07 10:22:59 +0100 -@@ -0,0 +1,5 @@ -+# Compile crtbeginS.o and crtendS.o with pic. -+CRTSTUFF_T_CFLAGS_S = -fPIC -+ -+# Compile libgcc.a with pic. -+TARGET_LIBGCC2_CFLAGS += -fPIC diff --git a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_t-dragonfly-thread b/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_t-dragonfly-thread deleted file mode 100644 index 6f4a44c33f9..00000000000 --- a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_config_t-dragonfly-thread +++ /dev/null @@ -1,9 +0,0 @@ -$NetBSD: patch-.._gcc-4.0.3_gcc_config_t-dragonfly-thread,v 1.1 2011/02/19 16:06:31 rumko Exp $ - -DragonFly BSD support. - ---- /dev/null 2011-02-07 10:19:08 +0100 -+++ ../gcc-4.0.3/gcc/config/t-dragonfly-thread 2011-02-07 10:23:04 +0100 -@@ -0,0 +1,2 @@ -+# This is currently needed to compile libgcc2 for threads support -+TARGET_LIBGCC2_CFLAGS += -pthread diff --git a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_ginclude_stddef.h b/lang/g95/patches/patch-.._gcc-4.0.3_gcc_ginclude_stddef.h deleted file mode 100644 index d84545c39c2..00000000000 --- a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_ginclude_stddef.h +++ /dev/null @@ -1,52 +0,0 @@ -$NetBSD: patch-.._gcc-4.0.3_gcc_ginclude_stddef.h,v 1.1 2011/02/19 16:06:31 rumko Exp $ - -DragonFly BSD support (_PTRDIFF_T_DECLARED is also needed on dfly). - ---- ../gcc-4.0.3/gcc/ginclude/stddef.h.orig 2011-02-06 21:30:12 +0100 -+++ ../gcc-4.0.3/gcc/ginclude/stddef.h 2011-02-06 21:31:14 +0100 -@@ -62,6 +62,10 @@ - #include - #endif - -+#if defined(__DragonFly__) -+#include -+#endif -+ - /* In 4.3bsd-net2, machine/ansi.h defines these symbols, which are - defined if the corresponding type is *not* defined. - FreeBSD-2.1 defines _MACHINE_ANSI_H_ instead of _ANSI_H_ */ -@@ -131,6 +135,7 @@ - or if we want this type in particular. */ - #if defined (_STDDEF_H) || defined (__need_ptrdiff_t) - #ifndef _PTRDIFF_T /* in case has defined it. */ -+#ifndef _PTRDIFF_T_DECLARED - #ifndef _T_PTRDIFF_ - #ifndef _T_PTRDIFF - #ifndef __PTRDIFF_T -@@ -139,6 +144,7 @@ - #ifndef ___int_ptrdiff_t_h - #ifndef _GCC_PTRDIFF_T - #define _PTRDIFF_T -+#define _PTRDIFF_T_DECLARED - #define _T_PTRDIFF_ - #define _T_PTRDIFF - #define __PTRDIFF_T -@@ -157,6 +163,7 @@ - #endif /* __PTRDIFF_T */ - #endif /* _T_PTRDIFF */ - #endif /* _T_PTRDIFF_ */ -+#endif /* _PTRDIFF_T_DECLARED */ - #endif /* _PTRDIFF_T */ - - /* If this symbol has done its job, get rid of it. */ -@@ -202,8 +209,8 @@ - #define ___int_size_t_h - #define _GCC_SIZE_T - #define _SIZET_ --#if defined (__FreeBSD__) && (__FreeBSD__ >= 5) --/* __size_t is a typedef on FreeBSD 5!, must not trash it. */ -+#if (defined (__FreeBSD__) && (__FreeBSD__ >= 5)) || defined(__DragonFly__) -+/* __size_t is a typedef on FreeBSD 5 and on DragonFly BSD!, must not trash it. */ - #else - #define __size_t - #endif diff --git a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_toplev.h b/lang/g95/patches/patch-.._gcc-4.0.3_gcc_toplev.h deleted file mode 100644 index 2855e37b21d..00000000000 --- a/lang/g95/patches/patch-.._gcc-4.0.3_gcc_toplev.h +++ /dev/null @@ -1,20 +0,0 @@ -$NetBSD: patch-.._gcc-4.0.3_gcc_toplev.h,v 1.1 2013/03/02 18:05:46 joerg Exp $ - ---- ../gcc-4.0.3/gcc/toplev.h.orig 2013-03-01 10:43:23.000000000 +0000 -+++ ../gcc-4.0.3/gcc/toplev.h -@@ -180,13 +180,13 @@ extern int floor_log2 ( - # define CTZ_HWI __builtin_ctz - # endif - --extern inline int -+extern __attribute__((__gnu_inline__)) inline int - floor_log2 (unsigned HOST_WIDE_INT x) - { - return x ? HOST_BITS_PER_WIDE_INT - 1 - (int) CLZ_HWI (x) : -1; - } - --extern inline int -+extern __attribute__((__gnu_inline__)) inline int - exact_log2 (unsigned HOST_WIDE_INT x) - { - return x == (x & -x) && x ? (int) CTZ_HWI (x) : -1; diff --git a/lang/g95/patches/patch-ab b/lang/g95/patches/patch-ab index b243486a065..1de3b8d6312 100644 --- a/lang/g95/patches/patch-ab +++ b/lang/g95/patches/patch-ab @@ -1,10 +1,10 @@ -$NetBSD: patch-ab,v 1.6 2012/05/08 02:59:16 sbd Exp $ +$NetBSD: patch-ab,v 1.7 2013/05/20 05:47:34 adam Exp $ Use $(host_alias) as the program prefix so it matches ${MACHINE_GNU_PLATFORM} ---- Makefile.in.orig 2009-02-17 16:46:06.000000000 +0000 +--- Makefile.in.orig 2010-04-22 04:23:24.000000000 +0000 +++ Makefile.in -@@ -1330,7 +1330,7 @@ clean-local: +@@ -1418,7 +1418,7 @@ clean-local: rm -f options.tmp options.c options.h version.c install-exec-hook: @@ -13,7 +13,7 @@ Use $(host_alias) as the program prefix so it matches ${MACHINE_GNU_PLATFORM} install-data-hook: -ln -sf f951$(EXEEXT) $(DESTDIR)@DEST_LIBDIR@/cc1 -@@ -1341,8 +1341,9 @@ install-data-hook: +@@ -1429,8 +1429,9 @@ install-data-hook: ranlib $(DESTDIR)@DEST_LIBDIR@/libgcc_eh.a ; \ ranlib $(DESTDIR)@DEST_LIBDIR@/libgcc.a ; \ fi diff --git a/lang/g95/patches/patch-gcc_config.gcc b/lang/g95/patches/patch-gcc_config.gcc new file mode 100644 index 00000000000..48880db4afd --- /dev/null +++ b/lang/g95/patches/patch-gcc_config.gcc @@ -0,0 +1,53 @@ +$NetBSD: patch-gcc_config.gcc,v 1.1 2013/05/20 05:47:34 adam Exp $ + +Darwin 64-bit support. +DragonFly BSD support. + +--- ../gcc-4.1.2/gcc/config.gcc.orig 2006-10-15 23:12:23.000000000 +0000 ++++ ../gcc-4.1.2/gcc/config.gcc +@@ -440,6 +440,23 @@ case ${target} in + esac + fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h" + ;; ++*-*-dragonfly*) ++ gas=yes ++ gnu_ld=yes ++ extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" ++ tmake_file="t-slibgcc-elf-ver t-dragonfly" ++ case ${enable_threads} in ++ "" | yes | posix) ++ thread_file='posix' ++ tmake_file="${tmake_file} t-dragonfly-thread" ++ ;; ++ *) ++ echo 'Unknown thread configuration for FreeBSD' ++ exit 1 ++ ;; ++ esac ++ dfly_tm_file="${dfly_tm_file} dragonfly-spec.h dragonfly.h" ++ ;; + *-*-linux*libc1* | *-*-linux*aout*) + # Avoid the generic linux case. + ;; +@@ -981,6 +998,8 @@ hppa[12]*-*-hpux11*) + i[34567]86-*-darwin*) + # All the configuration is presently done generically. + ;; ++x86_64-*-darwin*) ++ ;; + i[34567]86-*-elf*) + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h" + tmake_file="i386/t-i386elf t-svr4" +@@ -1012,6 +1031,12 @@ i[34567]86-*-freebsd*) + x86_64-*-freebsd*) + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/x86-64.h i386/freebsd.h i386/freebsd64.h" + ;; ++i[34567]86-*-dragonfly*) ++ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${dfly_tm_file} i386/dragonfly.h" ++ ;; ++x86_64-*-dragonfly*) ++ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${dfly_tm_file} i386/x86-64.h i386/dragonfly.h i386/dragonfly64.h" ++ ;; + i[34567]86-*-netbsdelf*) + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h" + ;; diff --git a/lang/g95/patches/patch-gcc_config_dragonfly-spec.h b/lang/g95/patches/patch-gcc_config_dragonfly-spec.h new file mode 100644 index 00000000000..a0552bfd026 --- /dev/null +++ b/lang/g95/patches/patch-gcc_config_dragonfly-spec.h @@ -0,0 +1,124 @@ +$NetBSD: patch-gcc_config_dragonfly-spec.h,v 1.1 2013/05/20 05:47:34 adam Exp $ + +DragonFly BSD support. + +--- ../gcc-4.1.2/gcc/config/dragonfly-spec.h.orig 2013-05-19 08:50:27.000000000 +0000 ++++ ../gcc-4.1.2/gcc/config/dragonfly-spec.h +@@ -0,0 +1,117 @@ ++/* Base configuration file for all DragonFly targets. ++ Copyright (C) 1999, 2000, 2001, 2004, 2005 Free Software Foundation, Inc. ++ ++This file is part of GCC. ++ ++GCC is free software; you can redistribute it and/or modify ++it under the terms of the GNU General Public License as published by ++the Free Software Foundation; either version 2, or (at your option) ++any later version. ++ ++GCC is distributed in the hope that it will be useful, ++but WITHOUT ANY WARRANTY; without even the implied warranty of ++MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++GNU General Public License for more details. ++ ++You should have received a copy of the GNU General Public License ++along with GCC; see the file COPYING. If not, write to ++the Free Software Foundation, 59 Temple Place - Suite 330, ++Boston, MA 02111-1307, USA. */ ++ ++/* Common DragonFly configuration. ++ All DragonFly architectures should include this file, which will specify ++ their commonalities. ++ Adapted from gcc/config/freebsd.h by ++ David O'Brien ++ Loren J. Rittle . */ ++ ++ ++/* In case we need to know. */ ++#define USING_CONFIG_DRAGONFLY_SPEC 1 ++ ++/* This defines which switch letters take arguments. On DragonFly, most of ++ the normal cases (defined in gcc.c) apply, and we also have -h* and ++ -z* options (for the linker) (coming from SVR4). ++ We also have -R (alias --rpath), no -z, --soname (-h), --assert etc. */ ++ ++#define DFLY_SWITCH_TAKES_ARG(CHAR) \ ++ (DEFAULT_SWITCH_TAKES_ARG (CHAR) \ ++ || (CHAR) == 'h' \ ++ || (CHAR) == 'z' /* ignored by ld */ \ ++ || (CHAR) == 'R') ++ ++/* This defines which multi-letter switches take arguments. */ ++ ++#define DFLY_WORD_SWITCH_TAKES_ARG(STR) \ ++ (DEFAULT_WORD_SWITCH_TAKES_ARG (STR) \ ++ || !strcmp ((STR), "rpath") || !strcmp ((STR), "rpath-link") \ ++ || !strcmp ((STR), "soname") || !strcmp ((STR), "defsym") \ ++ || !strcmp ((STR), "assert") || !strcmp ((STR), "dynamic-linker")) ++ ++#define DFLY_TARGET_OS_CPP_BUILTINS() \ ++ do \ ++ { \ ++ builtin_define ("__DragonFly__"); \ ++ builtin_define_std ("unix"); \ ++ builtin_define ("__KPRINTF_ATTRIBUTE__"); \ ++ builtin_assert ("system=unix"); \ ++ builtin_assert ("system=bsd"); \ ++ builtin_assert ("system=DragonFly"); \ ++ DFLY_TARGET_CPU_CPP_BUILTINS(); \ ++ } \ ++ while (0) ++ ++/* Define the default DragonFly-specific per-CPU hook code. */ ++#define DFLY_TARGET_CPU_CPP_BUILTINS() do {} while (0) ++ ++/* Provide a CPP_SPEC appropriate for DragonFly. We just deal with the GCC ++ option `-posix', and PIC issues. */ ++ ++#define DFLY_CPP_SPEC " \ ++ %(cpp_cpu) \ ++ %(cpp_arch) \ ++ %{fPIC|fpic|fPIE|fpie:-D__PIC__ -D__pic__} \ ++ %{posix:-D_POSIX_SOURCE}" ++ ++/* Provide a STARTFILE_SPEC appropriate for DragonFly. Here we add ++ the magical crtbegin.o file (see crtstuff.c) which provides part ++ of the support for getting C++ file-scope static object constructed ++ before entering `main'. */ ++ ++#define DFLY_STARTFILE_SPEC \ ++ "%{!shared: \ ++ %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \ ++ %{!p:%{profile:gcrt1.o%s} \ ++ %{!profile:crt1.o%s}}}} \ ++ crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}" ++ ++/* Provide a ENDFILE_SPEC appropriate for DragonFly. Here we tack on ++ the magical crtend.o file (see crtstuff.c) which provides part of ++ the support for getting C++ file-scope static object constructed ++ before entering `main', followed by a normal "finalizer" file, ++ `crtn.o'. */ ++ ++#define DFLY_ENDFILE_SPEC \ ++ "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s" ++ ++/* Provide a LIB_SPEC appropriate for DragonFly. Just select the appropriate ++ libc, depending on whether we're doing profiling or need threads support. ++ (similar to the default, except no -lg, and no -p). */ ++ ++#ifdef DFLY_NO_THREADS ++#define DFLY_LIB_SPEC " \ ++ %{pthread: %eThe -pthread option is only supported on DragonFly when gcc \ ++is built with the --enable-threads configure-time option.} \ ++ %{!shared: \ ++ %{!pg: -lc} \ ++ %{pg: -lc_p} \ ++ }" ++#else ++#define DFLY_LIB_SPEC " \ ++ %{!shared: \ ++ %{!pg: %{pthread:-lpthread} -lc} \ ++ %{pg: %{pthread:-lpthread_p} -lc_p} \ ++ }" ++#endif ++ ++#define DFLY_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.2" diff --git a/lang/g95/patches/patch-gcc_config_dragonfly.h b/lang/g95/patches/patch-gcc_config_dragonfly.h new file mode 100644 index 00000000000..a74c66b8c93 --- /dev/null +++ b/lang/g95/patches/patch-gcc_config_dragonfly.h @@ -0,0 +1,94 @@ +$NetBSD: patch-gcc_config_dragonfly.h,v 1.1 2013/05/20 05:47:34 adam Exp $ + +DragonFly BSD support. + +--- ../gcc-4.1.2/gcc/config/dragonfly.h.orig 2013-05-19 08:51:14.000000000 +0000 ++++ ../gcc-4.1.2/gcc/config/dragonfly.h +@@ -0,0 +1,87 @@ ++/* Base configuration file for all DragonFly targets. ++ Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. ++ ++This file is part of GCC. ++ ++GCC is free software; you can redistribute it and/or modify ++it under the terms of the GNU General Public License as published by ++the Free Software Foundation; either version 2, or (at your option) ++any later version. ++ ++GCC is distributed in the hope that it will be useful, ++but WITHOUT ANY WARRANTY; without even the implied warranty of ++MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++GNU General Public License for more details. ++ ++You should have received a copy of the GNU General Public License ++along with GCC; see the file COPYING. If not, write to ++the Free Software Foundation, 59 Temple Place - Suite 330, ++Boston, MA 02111-1307, USA. */ ++ ++/* Common DragonFly configuration. ++ All DragonFly architectures should include this file, which will specify ++ their commonalities. ++ Adapted from gcc/config/i386/freebsd-elf.h by ++ David O'Brien . ++ Further work by David O'Brien and ++ Loren J. Rittle . */ ++ ++ ++/* In case we need to know. */ ++#define USING_CONFIG_DRAGONFLY 1 ++ ++/* This defines which switch letters take arguments. On DragonFly, most of ++ the normal cases (defined in gcc.c) apply, and we also have -h* and ++ -z* options (for the linker) (coming from SVR4). ++ We also have -R (alias --rpath), no -z, --soname (-h), --assert etc. */ ++ ++#undef SWITCH_TAKES_ARG ++#define SWITCH_TAKES_ARG(CHAR) (DFLY_SWITCH_TAKES_ARG(CHAR)) ++ ++#undef WORD_SWITCH_TAKES_ARG ++#define WORD_SWITCH_TAKES_ARG(STR) (DFLY_WORD_SWITCH_TAKES_ARG(STR)) ++ ++#undef TARGET_OS_CPP_BUILTINS ++#define TARGET_OS_CPP_BUILTINS() DFLY_TARGET_OS_CPP_BUILTINS() ++ ++#undef CPP_SPEC ++#define CPP_SPEC DFLY_CPP_SPEC ++ ++#undef STARTFILE_SPEC ++#define STARTFILE_SPEC DFLY_STARTFILE_SPEC ++ ++#undef ENDFILE_SPEC ++#define ENDFILE_SPEC DFLY_ENDFILE_SPEC ++ ++#undef LIB_SPEC ++#define LIB_SPEC DFLY_LIB_SPEC ++ ++ ++/************************[ Target stuff ]***********************************/ ++ ++/* All DragonFly Architectures support the ELF object file format. */ ++#undef OBJECT_FORMAT_ELF ++#define OBJECT_FORMAT_ELF ++ ++/* Don't assume anything about the header files. */ ++#undef NO_IMPLICIT_EXTERN_C ++#define NO_IMPLICIT_EXTERN_C 1 ++ ++/* Make gcc agree with DragonFly's standard headers (, etc...) */ ++ ++#undef WCHAR_TYPE ++#define WCHAR_TYPE "int" ++ ++#define MATH_LIBRARY_PROFILE "-lm_p" ++ ++/* Code generation parameters. */ ++ ++/* Use periods rather than dollar signs in special g++ assembler names. ++ This ensures the configuration knows our system correctly so we can link ++ with libraries compiled with the native cc. */ ++#undef NO_DOLLAR_IN_LABEL ++ ++/* Used by libgcc2.c. We support file locking with fcntl / F_SETLKW. ++ This enables the test coverage code to use file locking when exiting a ++ program, which avoids race conditions if the program has forked. */ ++#define TARGET_HAS_F_SETLKW diff --git a/lang/g95/patches/patch-gcc_config_i386_dragonfly.h b/lang/g95/patches/patch-gcc_config_i386_dragonfly.h new file mode 100644 index 00000000000..b77454c9247 --- /dev/null +++ b/lang/g95/patches/patch-gcc_config_i386_dragonfly.h @@ -0,0 +1,152 @@ +$NetBSD: patch-gcc_config_i386_dragonfly.h,v 1.1 2013/05/20 05:47:34 adam Exp $ + +DragonFly BSD support. + +--- /dev/null 2011-02-01 20:59:25 +0100 ++++ ../gcc-4.1.2/gcc/config/i386/dragonfly.h 2011-02-01 19:38:39 +0100 +@@ -0,0 +1,145 @@ ++/* Definitions for Intel 386 running DragonFly with ELF format ++ Copyright (C) 1996, 2000, 2002, 2004 Free Software Foundation, Inc. ++ Contributed by Eric Youngdale. ++ Modified for stabs-in-ELF by H.J. Lu. ++ Adapted from GNU/Linux version by John Polstra. ++ Continued development by David O'Brien ++ ++This file is part of GCC. ++ ++GCC is free software; you can redistribute it and/or modify ++it under the terms of the GNU General Public License as published by ++the Free Software Foundation; either version 2, or (at your option) ++any later version. ++ ++GCC is distributed in the hope that it will be useful, ++but WITHOUT ANY WARRANTY; without even the implied warranty of ++MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++GNU General Public License for more details. ++ ++You should have received a copy of the GNU General Public License ++along with GCC; see the file COPYING. If not, write to ++the Free Software Foundation, 59 Temple Place - Suite 330, ++Boston, MA 02111-1307, USA. */ ++ ++ ++#define TARGET_VERSION fprintf (stderr, " (i386 DragonFly/ELF)"); ++ ++/* Override the default comment-starter of "/". */ ++#undef ASM_COMMENT_START ++#define ASM_COMMENT_START "#" ++ ++#undef ASM_APP_ON ++#define ASM_APP_ON "#APP\n" ++ ++#undef ASM_APP_OFF ++#define ASM_APP_OFF "#NO_APP\n" ++ ++#undef DBX_REGISTER_NUMBER ++#define DBX_REGISTER_NUMBER(n) \ ++ (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n]) ++ ++#undef NO_PROFILE_COUNTERS ++#define NO_PROFILE_COUNTERS 1 ++ ++/* Tell final.c that we don't need a label passed to mcount. */ ++ ++#undef MCOUNT_NAME ++#define MCOUNT_NAME ".mcount" ++ ++/* Make gcc agree with . */ ++ ++#if 0 ++#undef SIZE_TYPE ++#define SIZE_TYPE (TARGET_64BIT ? "long unsigned int" : "unsigned int") ++ ++#undef PTRDIFF_TYPE ++#define PTRDIFF_TYPE (TARGET_64BIT ? "long int" : "int") ++ ++#undef WCHAR_TYPE_SIZE ++#define WCHAR_TYPE_SIZE (TARGET_64BIT ? 32 : BITS_PER_WORD) ++#endif ++ ++#undef SUBTARGET_EXTRA_SPECS /* i386.h bogusly defines it. */ ++#define SUBTARGET_EXTRA_SPECS \ ++ { "dfly_dynamic_linker", DFLY_DYNAMIC_LINKER } ++ ++/* Provide a STARTFILE_SPEC appropriate for DragonFly. Here we add ++ the magical crtbegin.o file (see crtstuff.c) which provides part ++ of the support for getting C++ file-scope static object constructed ++ before entering `main'. */ ++ ++#undef STARTFILE_SPEC ++#define STARTFILE_SPEC \ ++ "%{!shared: \ ++ %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \ ++ %{!p:%{profile:gcrt1.o%s} \ ++ %{!profile:crt1.o%s}}}} \ ++ crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}" ++ ++/* Provide a ENDFILE_SPEC appropriate for DragonFly. Here we tack on ++ the magical crtend.o file (see crtstuff.c) which provides part of ++ the support for getting C++ file-scope static object constructed ++ before entering `main', followed by a normal "finalizer" file, ++ `crtn.o'. */ ++ ++#undef ENDFILE_SPEC ++#define ENDFILE_SPEC \ ++ "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s" ++ ++/* Provide a LINK_SPEC appropriate for DragonFly. ++ Here we provide support for the special GCC options -static and ++ -shared, which allow us to link things in one of these three modes ++ by applying the appropriate combinations of options at link-time. ++ We like to support here for as many of the other GNU linker ++ options as possible. But I don't have the time to search for ++ those flags. I am sure how to add support for -soname ++ shared_object_name. H.J. ++ ++ I took out %{v:%{!V:-V}}. It is too much :-(. They can use ++ -Wl,-V. ++ ++ When the -shared link option is used a final link is not being ++ done. */ ++ ++#undef LINK_SPEC ++#define LINK_SPEC "\ ++ %{p:%nconsider using `-pg' instead of `-p' with gprof(1)} \ ++ %{Wl,*:%*} \ ++ %{v:-V} \ ++ %{assert*} %{R*} %{rpath*} %{defsym*} \ ++ %{shared:-Bshareable %{h*} %{soname*}} \ ++ %{!shared: \ ++ %{!static: \ ++ %{rdynamic:-export-dynamic} \ ++ %{!dynamic-linker:-dynamic-linker %(dfly_dynamic_linker) }} \ ++ %{static:-Bstatic}} \ ++ %{symbolic:-Bsymbolic}" ++ ++/* A C statement to output to the stdio stream FILE an assembler ++ command to advance the location counter to a multiple of 1< and std::numeric_limits correct. */ ++#undef TARGET_96_ROUND_53_LONG_DOUBLE ++#define TARGET_96_ROUND_53_LONG_DOUBLE (!TARGET_64BIT) diff --git a/lang/g95/patches/patch-gcc_config_i386_dragonfly64.h b/lang/g95/patches/patch-gcc_config_i386_dragonfly64.h new file mode 100644 index 00000000000..6ac6c8bb098 --- /dev/null +++ b/lang/g95/patches/patch-gcc_config_i386_dragonfly64.h @@ -0,0 +1,52 @@ +$NetBSD: patch-gcc_config_i386_dragonfly64.h,v 1.1 2013/05/20 05:47:34 adam Exp $ + +DragonFly BSD support. + +--- ../gcc-4.1.2/gcc/config/i386/dragonfly64.h.orig 2013-05-19 08:54:10.000000000 +0000 ++++ ../gcc-4.1.2/gcc/config/i386/dragonfly64.h +@@ -0,0 +1,45 @@ ++/* Definitions for AMD x86-64 running DragonFly with ELF format ++ Copyright (C) 2002, 2004 Free Software Foundation, Inc. ++ Contributed by David O'Brien ++ ++This file is part of GCC. ++ ++GCC is free software; you can redistribute it and/or modify ++it under the terms of the GNU General Public License as published by ++the Free Software Foundation; either version 2, or (at your option) ++any later version. ++ ++GCC is distributed in the hope that it will be useful, ++but WITHOUT ANY WARRANTY; without even the implied warranty of ++MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++GNU General Public License for more details. ++ ++You should have received a copy of the GNU General Public License ++along with GCC; see the file COPYING. If not, write to ++the Free Software Foundation, 59 Temple Place - Suite 330, ++Boston, MA 02111-1307, USA. */ ++ ++ ++#undef TARGET_VERSION ++#define TARGET_VERSION fprintf (stderr, " (DragonFly/x86-64 ELF)"); ++ ++#define SUBTARGET_EXTRA_SPECS \ ++ { "dfly_dynamic_linker", DFLY_DYNAMIC_LINKER } ++ ++/* Provide a LINK_SPEC appropriate for the DragonFly/x86-64 ELF target. ++ This is a copy of LINK_SPEC from tweaked for ++ the x86-64 target. */ ++ ++#undef LINK_SPEC ++#define LINK_SPEC "\ ++ %{m32:-m elf_i386_fbsd} \ ++ %{Wl,*:%*} \ ++ %{v:-V} \ ++ %{assert*} %{R*} %{rpath*} %{defsym*} \ ++ %{shared:-Bshareable %{h*} %{soname*}} \ ++ %{!shared: \ ++ %{!static: \ ++ %{rdynamic:-export-dynamic} \ ++ %{!dynamic-linker:-dynamic-linker %(dfly_dynamic_linker) }} \ ++ %{static:-Bstatic}} \ ++ %{symbolic:-Bsymbolic}" diff --git a/lang/g95/patches/patch-gcc_config_t-dragonfly b/lang/g95/patches/patch-gcc_config_t-dragonfly new file mode 100644 index 00000000000..a4a03e2a3f0 --- /dev/null +++ b/lang/g95/patches/patch-gcc_config_t-dragonfly @@ -0,0 +1,12 @@ +$NetBSD: patch-gcc_config_t-dragonfly,v 1.1 2013/05/20 05:47:34 adam Exp $ + +DragonFly BSD support. + +--- ../gcc-4.1.2/gcc/config/t-dragonfly.orig 2013-05-19 08:54:45.000000000 +0000 ++++ ../gcc-4.1.2/gcc/config/t-dragonfly +@@ -0,0 +1,5 @@ ++# Compile crtbeginS.o and crtendS.o with pic. ++CRTSTUFF_T_CFLAGS_S = -fPIC ++ ++# Compile libgcc.a with pic. ++TARGET_LIBGCC2_CFLAGS += -fPIC diff --git a/lang/g95/patches/patch-gcc_config_t-dragonfly-thread b/lang/g95/patches/patch-gcc_config_t-dragonfly-thread new file mode 100644 index 00000000000..43d022a520f --- /dev/null +++ b/lang/g95/patches/patch-gcc_config_t-dragonfly-thread @@ -0,0 +1,9 @@ +$NetBSD: patch-gcc_config_t-dragonfly-thread,v 1.1 2013/05/20 05:47:34 adam Exp $ + +DragonFly BSD support. + +--- ../gcc-4.1.2/gcc/config/t-dragonfly-thread.orig 2013-05-19 08:55:29.000000000 +0000 ++++ ../gcc-4.1.2/gcc/config/t-dragonfly-thread +@@ -0,0 +1,2 @@ ++# This is currently needed to compile libgcc2 for threads support ++TARGET_LIBGCC2_CFLAGS += -pthread diff --git a/lang/g95/patches/patch-gcc_ginclude_stddef.h b/lang/g95/patches/patch-gcc_ginclude_stddef.h new file mode 100644 index 00000000000..72f31d263e8 --- /dev/null +++ b/lang/g95/patches/patch-gcc_ginclude_stddef.h @@ -0,0 +1,52 @@ +$NetBSD: patch-gcc_ginclude_stddef.h,v 1.1 2013/05/20 05:47:34 adam Exp $ + +DragonFly BSD support (_PTRDIFF_T_DECLARED is also needed on dfly). + +--- ../gcc-4.1.2/gcc/ginclude/stddef.h.orig 2005-06-25 01:11:52.000000000 +0000 ++++ ../gcc-4.1.2/gcc/ginclude/stddef.h +@@ -62,6 +62,10 @@ Boston, MA 02110-1301, USA. */ + #include + #endif + ++#if defined(__DragonFly__) ++#include ++#endif ++ + /* In 4.3bsd-net2, machine/ansi.h defines these symbols, which are + defined if the corresponding type is *not* defined. + FreeBSD-2.1 defines _MACHINE_ANSI_H_ instead of _ANSI_H_ */ +@@ -131,6 +135,7 @@ _TYPE_wchar_t; + or if we want this type in particular. */ + #if defined (_STDDEF_H) || defined (__need_ptrdiff_t) + #ifndef _PTRDIFF_T /* in case has defined it. */ ++#ifndef _PTRDIFF_T_DECLARED + #ifndef _T_PTRDIFF_ + #ifndef _T_PTRDIFF + #ifndef __PTRDIFF_T +@@ -139,6 +144,7 @@ _TYPE_wchar_t; + #ifndef ___int_ptrdiff_t_h + #ifndef _GCC_PTRDIFF_T + #define _PTRDIFF_T ++#define _PTRDIFF_T_DECLARED + #define _T_PTRDIFF_ + #define _T_PTRDIFF + #define __PTRDIFF_T +@@ -157,6 +163,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; + #endif /* __PTRDIFF_T */ + #endif /* _T_PTRDIFF */ + #endif /* _T_PTRDIFF_ */ ++#endif /* _PTRDIFF_T_DECLARED */ + #endif /* _PTRDIFF_T */ + + /* If this symbol has done its job, get rid of it. */ +@@ -202,8 +209,8 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; + #define ___int_size_t_h + #define _GCC_SIZE_T + #define _SIZET_ +-#if defined (__FreeBSD__) && (__FreeBSD__ >= 5) +-/* __size_t is a typedef on FreeBSD 5!, must not trash it. */ ++#if (defined (__FreeBSD__) && (__FreeBSD__ >= 5)) || defined(__DragonFly__) ++/* __size_t is a typedef on FreeBSD 5 and on DragonFly BSD!, must not trash it. */ + #else + #define __size_t + #endif diff --git a/lang/g95/patches/patch-gcc_toplev.h b/lang/g95/patches/patch-gcc_toplev.h new file mode 100644 index 00000000000..0dd63813958 --- /dev/null +++ b/lang/g95/patches/patch-gcc_toplev.h @@ -0,0 +1,20 @@ +$NetBSD: patch-gcc_toplev.h,v 1.1 2013/05/20 05:47:34 adam Exp $ + +--- ../gcc-4.1.2/gcc/toplev.h.orig 2005-09-09 00:47:05.000000000 +0000 ++++ ../gcc-4.1.2/gcc/toplev.h +@@ -171,13 +171,13 @@ extern int floor_log2 ( + # define CTZ_HWI __builtin_ctz + # endif + +-extern inline int ++extern __attribute__((__gnu_inline__)) inline int + floor_log2 (unsigned HOST_WIDE_INT x) + { + return x ? HOST_BITS_PER_WIDE_INT - 1 - (int) CLZ_HWI (x) : -1; + } + +-extern inline int ++extern __attribute__((__gnu_inline__)) inline int + exact_log2 (unsigned HOST_WIDE_INT x) + { + return x == (x & -x) && x ? (int) CTZ_HWI (x) : -1; -- cgit v1.2.3