head 1.5; access; symbols pkgsrc-2016Q4:1.4.0.24 pkgsrc-2016Q4-base:1.4 pkgsrc-2016Q3:1.4.0.22 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.20 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.4.0.18 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.4.0.16 pkgsrc-2015Q4-base:1.4 pkgsrc-2015Q3:1.4.0.14 pkgsrc-2015Q3-base:1.4 pkgsrc-2015Q2:1.4.0.12 pkgsrc-2015Q2-base:1.4 pkgsrc-2015Q1:1.4.0.10 pkgsrc-2015Q1-base:1.4 pkgsrc-2014Q4:1.4.0.8 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.4.0.6 pkgsrc-2014Q3-base:1.4 pkgsrc-2014Q2:1.4.0.4 pkgsrc-2014Q2-base:1.4 pkgsrc-2014Q1:1.4.0.2 pkgsrc-2014Q1-base:1.4 pkgsrc-2013Q4:1.3.0.14 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.12 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.10 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.3.0.8 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.3.0.6 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.3.0.4 pkgsrc-2012Q3-base:1.3 pkgsrc-2012Q2:1.3.0.2 pkgsrc-2012Q2-base:1.3 pkgsrc-2012Q1:1.2.0.2 pkgsrc-2012Q1-base:1.2 pkgsrc-2011Q4:1.1.1.1.0.6 pkgsrc-2011Q4-base:1.1.1.1 pkgsrc-2011Q3:1.1.1.1.0.4 pkgsrc-2011Q3-base:1.1.1.1 pkgsrc-2011Q2:1.1.1.1.0.2 pkgsrc-2011Q2-base:1.1.1.1 pkgsrc-20110515:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.5 date 2016.12.29.22.46.30; author maya; state dead; branches; next 1.4; commitid Ow92GGJ72no0PVzz; 1.4 date 2014.01.25.13.38.48; author ryoon; state Exp; branches; next 1.3; commitid ba3VpA0s6si5bvmx; 1.3 date 2012.04.17.07.48.13; author sbd; state Exp; branches; next 1.2; 1.2 date 2012.03.14.23.24.54; author wiz; state Exp; branches; next 1.1; 1.1 date 2011.05.15.00.09.56; author wiz; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2011.05.15.00.09.56; author wiz; state Exp; branches; next ; desc @@ 1.5 log @Remove gcc45,46,47 and libs as discussed in pkgsrc-users GCC_REQD for these versions now resolves to gcc48 due to a previous commit. Please file a bug report if you are having trouble with GCC 4.8. @ text @$NetBSD: patch-aa,v 1.4 2014/01/25 13:38:48 ryoon Exp $ * Add t-crtstuff to tmake_file on NetBSD. * Add netbsd-stdint.h to tm_file on NetBSD. * wrap the system stdint.h on NetBSD. * Add Dragonfly support. --- gcc/config.gcc.orig 2013-03-06 17:40:07.000000000 +0000 +++ gcc/config.gcc @@@@ -561,6 +561,33 @@@@ case ${target} in # need_64bit_hwint=yes # system compiler has this for all arch! use_gcc_stdint=wrap ;; +*-*-dragonfly*) + gas=yes + gnu_ld=yes + extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" + case ${target} in + *-*-dragonfly1 | *-*-dragonfly[1].*) + tm_defines="${tm_defines} DFBSD_MAJOR=1" ;; + *-*-dragonfly2 | *-*-dragonfly[2].*) + tm_defines="${tm_defines} DFBSD_MAJOR=2" ;; + *-*-dragonfly3 | *-*-dragonfly[3].*) + tm_defines="${tm_defines} DFBSD_MAJOR=3" ;; + *-*-dragonfly4 | *-*-dragonfly[4].*) + tm_defines="${tm_defines} DFBSD_MAJOR=4" ;; + *) + echo 'Please update *-*-dragonfly* in gcc/config.gcc' + exit 1 + ;; + esac + tmake_file="t-slibgcc-elf-ver t-dragonfly" + case ${enable_threads} in + "" | yes | posix) + thread_file='posix' + tmake_file="${tmake_file} t-dragonfly-thread" + ;; + esac + dfbsd_tm_file="${dfbsd_tm_file} dragonfly-spec.h dragonfly.h" + ;; *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu) extra_options="$extra_options gnu-user.opt" extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" @@@@ -655,6 +682,7 @@@@ case ${target} in default_use_cxa_atexit=yes ;; esac + use_gcc_stdint=wrap ;; *-*-openbsd*) tmake_file="t-libc-ok t-openbsd t-libgcc-pic" @@@@ -668,6 +696,14 @@@@ case ${target} in *-*-openbsd2.*|*-*-openbsd3.[012]) tm_defines="${tm_defines} HAS_LIBC_R=1" ;; esac + case ${target} in + *-*-openbsd[0-3].*|*-*-openbsd4.[012]) + # keep default of no cxa_atexit support for these older releases + ;; + *) + default_use_cxa_atexit=yes + ;; + esac ;; *-*-rtems*) case ${enable_threads} in @@@@ -741,7 +777,7 @@@@ alpha*-*-netbsd*) tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee" ;; alpha*-*-openbsd*) - tm_defines="${tm_defines} OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_FUNCTION_SIZE OBSD_HAS_DECLARE_OBJECT" + tm_defines="${tm_defines} OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_FUNCTION_SIZE OBSD_HAS_DECLARE_OBJECT PIE_DEFAULT=2" tm_file="alpha/alpha.h alpha/elf.h openbsd.h openbsd-stdint.h alpha/openbsd.h openbsd-libpthread.h" extra_options="${extra_options} openbsd.opt alpha/elf.opt" # default x-alpha is only appropriate for dec-osf. @@@@ -1057,10 +1093,14 @@@@ hppa*-*-linux*) tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver" fi ;; -# port not yet contributed. -#hppa*-*-openbsd*) -# target_cpu_default="MASK_PA_11" -# ;; +hppa*-*-openbsd*) + target_cpu_default="MASK_PA_11" + tm_defines="${tm_defines} PIE_DEFAULT=1" + tm_file="${tm_file} dbxelf.h elfos.h openbsd-libpthread.h \ + pa/pa32-regs.h pa/openbsd.h openbsd.h" + tmake_file="${tmake_file} pa/t-openbsd" + extra_options="${extra_options} openbsd.opt" + ;; hppa[12]*-*-hpux10*) case ${target} in hppa1.1-*-* | hppa2*-*-*) @@@@ -1223,19 +1263,26 @@@@ 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" tmake_file="${tmake_file} i386/t-crtstuff" ;; +x86_64-*-dragonfly*) + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${dfbsd_tm_file} i386/x86-64.h i386/dragonfly.h i386/dragonfly64.h" + ;; +i[34567]86-*-dragonfly*) + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${dfbsd_tm_file} i386/dragonfly.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" + 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" extra_options="${extra_options} netbsd.opt netbsd-elf.opt" + tmake_file="${tmake_file} i386/t-crtstuff" ;; i[34567]86-*-netbsd*) - tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h" + tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h netbsd-stdint.h" extra_options="${extra_options} netbsd.opt" tmake_file="${tmake_file} t-netbsd" extra_parts="" use_collect2=yes ;; x86_64-*-netbsd*) - 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" + 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" extra_options="${extra_options} netbsd.opt netbsd-elf.opt" tmake_file="${tmake_file} i386/t-crtstuff" ;; @@@@ -1248,12 +1295,19 @@@@ i[34567]86-*-openbsd2.*|i[34567]86-*open use_collect2=yes ;; i[34567]86-*-openbsd*) + tm_defines="${tm_defines} PIE_DEFAULT=1" tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h" tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h i386/openbsdelf.h" extra_options="${extra_options} openbsd.opt" gas=yes gnu_ld=yes ;; +x86_64-*-openbsd*) + tm_defines="${tm_defines} PIE_DEFAULT=1" + tm_file="i386/biarch64.h i386/i386.h i386/unix.h i386/att.h dbxelf.h elfos.h openbsd.h openbsd-libpthread.h i386/x86-64.h i386/openbsd64.h" + tm_file="${tm_file} exec-stack.h" + tmake_file="t-libc-ok t-openbsd i386/t-openbsd" + ;; i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu) # Intel 80386's running GNU/* # with ELF format using glibc 2 @@@@ -1914,14 +1968,15 @@@@ mips*-*-linux*) # Linux MIPS, either test x$with_llsc != x || with_llsc=yes ;; mips*-*-openbsd*) - tm_defines="${tm_defines} OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_OBJECT OBSD_HAS_CORRECT_SPECS" - target_cpu_default="MASK_ABICALLS" - tm_file="mips/mips.h openbsd.h openbsd-stdint.h openbsd-libpthread.h mips/openbsd.h mips/sdb.h" + tm_defines="${tm_defines} OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_OBJECT OBSD_HAS_CORRECT_SPECS MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_64 PIE_DEFAULT=1" + tm_file="dbxelf.h elfos.h openbsd.h openbsd-stdint.h openbsd-libpthread.h mips/mips.h mips/openbsd64.h" extra_options="${extra_options} openbsd.opt" case ${target} in mips*el-*-openbsd*) - tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=0";; - *) tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=MASK_BIG_ENDIAN";; + tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=0" + target_cpu_default="MASK_ABICALLS";; + *) tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=MASK_BIG_ENDIAN" + target_cpu_default="MASK_ABICALLS|MASK_FIX_R4000|MASK_FIX_R4400";; esac ;; mips*-sde-elf*) @@@@ -2061,10 +2116,11 @@@@ picochip-*) tmake_file="picochip/t-picochip t-pnt16-warn" ;; # port not yet contributed -#powerpc-*-openbsd*) -# tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-fprules-fpbit " -# extra_headers= -# ;; +powerpc-*-openbsd*) + tm_file="${tm_file} dbxelf.h elfos.h openbsd.h openbsd-libpthread.h freebsd-spec.h rs6000/sysv4.h rs6000/openbsd.h" + tmake_file="${tmake_file} rs6000/t-openbsd" + extra_options="${extra_options} rs6000/sysv4.opt" + ;; powerpc-*-darwin*) extra_options="${extra_options} rs6000/darwin.opt" extra_parts="crt2.o" @@@@ -2665,6 +2721,7 @@@@ sparc64-*-netbsd*) tmake_file="${tmake_file} sparc/t-netbsd64" ;; sparc64-*-openbsd*) + tm_defines="${tm_defines} PIE_DEFAULT=2" tm_file="sparc/openbsd1-64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp64-elf.h" tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h sparc/openbsd64.h" extra_options="${extra_options} openbsd.opt" @@@@ -2830,6 +2887,12 @@@@ case ${target} in arch_without_sse2=yes arch_without_64bit=yes ;; + i386-*-openbsd*) + arch=i486 + cpu=generic + arch_without_sse2=yes + arch_without_64bit=yes + ;; i386-*-*) arch=i386 cpu=i386 @ 1.4 log @Update to 4.6.4 * Add OpenBSD/amd64 5.4 support Changelog: * Bugfixes @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.3 2012/04/17 07:48:13 sbd Exp $ @ 1.3 log @Add comments to patches @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.2 2012/03/14 23:24:54 wiz Exp $ d9 3 a11 3 --- gcc/config.gcc.orig 2011-07-22 18:44:50.000000000 +0200 +++ gcc/config.gcc 2012-03-13 13:40:05.000000000 +0100 @@@@ -561,6 +561,33 @@@@ d45 1 a45 1 @@@@ -655,6 +682,7 @@@@ d53 44 a96 1 @@@@ -1219,19 +1247,26 @@@@ d126 78 @ 1.2 log @Pass proper configure arguments so that it is happy with GNU tools available on NetBSD; removes two dependencies. Unlimit before running tests, reduces test failures. Add t-crtstuff to tmake_file on NetBSD as well. gcc46 should work much better now on NetBSD. All from Kai-Uwe Eckhardt in private mail. Bump PKGREVISION. @ text @d1 7 a7 1 $NetBSD$ @ 1.1 log @Initial revision @ text @d3 3 a5 3 --- gcc/config.gcc.orig 2011-03-14 06:05:29.000000000 +0000 +++ gcc/config.gcc @@@@ -560,6 +560,33 @@@@ case ${target} in d39 1 a39 1 @@@@ -654,6 +681,7 @@@@ case ${target} in d47 1 a47 1 @@@@ -1217,19 +1245,25 @@@@ x86_64-*-freebsd*) d61 1 @ 1.1.1.1 log @Initial import of gcc46-4.6.0, packaged for wip by Kai-Uwe Eckhardt. This is the gcc 4.6 compiler suite. This package has a test target. For testing (only), this package requires devel/dejagnu and devel/autogen. @ text @@