openbsd-ports/lang/gcc/4.6/patches/patch-libgcc_config_host
pascal e7f261aa15 Update to gcc 4.6.3.
Also, sync a bit with base gcc:
- disable unsafe builtins
- disable -Wpointer-sign in -Wall
- move -fstrict-aliasing to -O3, disable -fstrict-overflow and
  -fdelete-null-pointer-checks
- enable -Wsystem-headers
- default to march=i486 on i386
- fix crtsavres on powerpc
- sync sparc64 config
- implement -Wvariable-decl, -Wstack-larger-than-N (alpha, amd64, i386, sparc,
  sparc64), -Wtrampolines, -ftrampolines
- default to -fno-ident
- fix -rdynamic by passing -export-dynamic to ld(1)

some bits from Brad, others from me.

tested by myself and jsg@, adastrap now hosted by sthen@ (thanks).

ok jsg@ sthen@
2012-03-31 20:02:03 +00:00

22 lines
775 B
Plaintext

$OpenBSD: patch-libgcc_config_host,v 1.3 2012/03/31 20:02:03 pascal Exp $
--- libgcc/config.host.orig Wed Nov 23 23:15:54 2011
+++ libgcc/config.host Sun Mar 11 19:10:41 2012
@@ -288,6 +288,8 @@ i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
;;
i[34567]86-*-openbsd*)
;;
+x86_64-*-openbsd*)
+ ;;
i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu*)
extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm"
@@ -458,6 +460,8 @@ powerpc-*-freebsd*)
tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-freebsd t-softfp"
;;
powerpc-*-netbsd*)
+ ;;
+powerpc-*-openbsd*)
;;
powerpc-*-eabispe*)
tmake_file="${tmake_file} rs6000/t-ppccomm"