openbsd-ports/lang/gcc/4.6/patches/patch-gcc_c-family_c_opt
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

15 lines
578 B
Plaintext

$OpenBSD: patch-gcc_c-family_c_opt,v 1.1 2012/03/31 20:02:03 pascal Exp $
--- gcc/c-family/c.opt.orig Tue Mar 29 16:24:42 2011
+++ gcc/c-family/c.opt Sun Mar 11 23:00:25 2012
@@ -993,6 +993,10 @@ fthreadsafe-statics
C++ ObjC++ Optimization Var(flag_threadsafe_statics) Init(1)
-fno-threadsafe-statics Do not generate thread-safe code for initializing local statics
+ftrampolines
+Common Var(flag_trampolines)
+Allows trampolines
+
funsigned-bitfields
C ObjC C++ ObjC++ Var(flag_signed_bitfields, 0)
When \"signed\" or \"unsigned\" is not given make the bitfield unsigned