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

13 lines
469 B
Plaintext

$OpenBSD: patch-gcc_c-family_c-opts_c,v 1.1 2012/03/31 20:02:03 pascal Exp $
--- gcc/c-family/c-opts.c.orig Sun Mar 11 19:21:01 2012
+++ gcc/c-family/c-opts.c Sun Mar 11 19:21:20 2012
@@ -405,8 +405,6 @@ c_common_handle_option (size_t scode, const char *arg,
cpp_opts->warn_comments = value;
cpp_opts->warn_num_sign_change = value;
- if (warn_pointer_sign == -1)
- warn_pointer_sign = value;
break;
case OPT_Wbuiltin_macro_redefined: