ports/lang/bootgcc/patches/patch-gcc_common_opt

89 lines
2.9 KiB
Text

Index: gcc/common.opt
--- gcc/common.opt.orig
+++ gcc/common.opt
@@ -644,6 +644,10 @@ Wnull-dereference
Common Var(warn_null_dereference) Warning
Warn if dereferencing a NULL pointer may lead to erroneous or undefined behavior.
+Wstack-larger-than-
+Common RejectNegative Joined UInteger
+-Wstack-larger-than-<number> Warn if a function is using more than <number> bytes of stack space for its local variables.
+
Wunsafe-loop-optimizations
Common Ignore Warning
Does nothing. Preserved for backward compatibility.
@@ -759,7 +763,7 @@ Warn about statements between switch's controlling exp
case.
Wsystem-headers
-Common Var(warn_system_headers) Warning
+Common Var(warn_system_headers) Init(1) Warning
Do not suppress warnings from system headers.
Wtrampolines
@@ -814,6 +818,10 @@ Wunused-variable
Common Var(warn_unused_variable) Warning EnabledBy(Wunused)
Warn when a variable is unused.
+Wvariable-decl
+Common Var(warn_variable_decl)
+Warn about variable-sized declarations
+
Wcoverage-mismatch
Common Var(warn_coverage_mismatch) Init(1) Warning
Warn in case profiles in -fprofile-use do not match.
@@ -950,7 +958,7 @@ Common Joined RejectNegative UInteger Var(flag_abi_ver
The version of the C++ ABI in use.
faggressive-loop-optimizations
-Common Report Var(flag_aggressive_loop_optimizations) Optimization Init(1)
+Common Report Var(flag_aggressive_loop_optimizations) Optimization
Aggressively optimize loops using language constraints.
falign-functions
@@ -1204,7 +1212,7 @@ Common Report Var(flag_delete_dead_exceptions) Init(0)
Delete dead instructions that may throw exceptions.
fdelete-null-pointer-checks
-Common Report Var(flag_delete_null_pointer_checks) Init(-1) Optimization
+Common Report Var(flag_delete_null_pointer_checks) Init(0) Optimization
Delete useless null pointer checks.
fdevirtualize-at-ltrans
@@ -1556,7 +1564,7 @@ Enable guessing of branch probabilities.
; On SVR4 targets, it also controls whether or not to emit a
; string identifying the compiler.
fident
-Common Report Var(flag_no_ident,0)
+Common Report Var(flag_no_ident,0) Init(1)
Process #ident directives.
fif-conversion
@@ -2387,7 +2395,7 @@ Common RejectNegative Joined Var(common_deferred_optio
-fstack-limit-symbol=<name> Trap if the stack goes past symbol <name>.
fstack-protector
-Common Report Var(flag_stack_protect, 1) Init(-1) Optimization
+Common Report Var(flag_stack_protect, 3) Init(-1) Optimization
Use propolice as a stack protection method.
fstack-protector-all
@@ -2917,7 +2925,7 @@ Common Driver JoinedOrMissing Negative(gdwarf-)
Generate debug information in default version of DWARF format.
gdwarf-
-Common Driver Joined UInteger Var(dwarf_version) Init(4) Negative(gstabs)
+Common Driver Joined UInteger Var(dwarf_version) Init(2) Negative(gstabs)
Generate debug information in DWARF v2 (or later) format.
ggdb
@@ -3038,6 +3046,9 @@ no-canonical-prefixes
Driver
nodefaultlibs
+Driver
+
+nopie
Driver
nostartfiles