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@
13 lines
459 B
Plaintext
13 lines
459 B
Plaintext
$OpenBSD: patch-gcc_c-decl_c,v 1.1 2012/03/31 20:02:03 pascal Exp $
|
|
--- gcc/c-decl.c.orig Thu Feb 23 18:38:13 2012
|
|
+++ gcc/c-decl.c Mon Mar 12 08:42:51 2012
|
|
@@ -4788,6 +4788,8 @@ warn_variable_length_array (tree name, tree size)
|
|
"variable length array is used");
|
|
}
|
|
}
|
|
+ if (warn_variable_decl)
|
|
+ warning (OPT_Wvariable_decl, "variable-sized array %qE", name);
|
|
}
|
|
|
|
/* Given a size SIZE that may not be a constant, return a SAVE_EXPR to
|