patch-gcc_common_opt 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. $OpenBSD: patch-gcc_common_opt,v 1.5 2013/06/07 07:54:23 pascal Exp $
  2. --- gcc/common.opt.orig Mon Jan 14 17:35:23 2013
  3. +++ gcc/common.opt Sat Apr 13 16:20:31 2013
  4. @@ -546,6 +546,10 @@ Wlarger-than=
  5. Common RejectNegative Joined UInteger Warning
  6. -Wlarger-than=<number> Warn if an object is larger than <number> bytes
  7. +Wstack-larger-than-
  8. +Common RejectNegative Joined UInteger
  9. +-Wstack-larger-than-<number> Warn if a function is using more than <number> bytes of stack space for its local variables.
  10. +
  11. Wunsafe-loop-optimizations
  12. Common Var(warn_unsafe_loop_optimizations) Warning
  13. Warn if the loop cannot be optimized due to nontrivial assumptions.
  14. @@ -619,7 +623,7 @@ Common Var(warn_switch_enum) Warning
  15. Warn about all enumerated switches missing a specific case
  16. Wsystem-headers
  17. -Common Var(warn_system_headers) Warning
  18. +Common Var(warn_system_headers) Init(1) Warning
  19. Do not suppress warnings from system headers
  20. Wtrampolines
  21. @@ -670,6 +674,10 @@ Wunused-variable
  22. Common Var(warn_unused_variable) Init(-1) Warning
  23. Warn when a variable is unused
  24. +Wvariable-decl
  25. +Common Var(warn_variable_decl)
  26. +Warn about variable-sized declarations
  27. +
  28. Wcoverage-mismatch
  29. Common Var(warn_coverage_mismatch) Init(1) Warning
  30. Warn in case profiles in -fprofile-use do not match
  31. @@ -941,7 +949,7 @@ Common Report Var(flag_delayed_branch) Optimization
  32. Attempt to fill delay slots of branch instructions
  33. fdelete-null-pointer-checks
  34. -Common Report Var(flag_delete_null_pointer_checks) Init(1) Optimization
  35. +Common Report Var(flag_delete_null_pointer_checks)
  36. Delete useless null pointer checks
  37. fdevirtualize
  38. @@ -1164,7 +1172,7 @@ Enable guessing of branch probabilities
  39. ; On SVR4 targets, it also controls whether or not to emit a
  40. ; string identifying the compiler.
  41. fident
  42. -Common Report Var(flag_no_ident,0)
  43. +Common Report Var(flag_no_ident,0) Init(1)
  44. Process #ident directives
  45. fif-conversion
  46. @@ -1492,7 +1500,7 @@ Common Report Var(flag_pic,2)
  47. Generate position-independent code if possible (large mode)
  48. fPIE
  49. -Common Report Var(flag_pie,2)
  50. +Common Report Var(flag_pie,2) Init(PIE_DEFAULT)
  51. Generate position-independent code for executables if possible (large mode)
  52. fpic
  53. @@ -1782,7 +1790,7 @@ Common RejectNegative Joined Var(common_deferred_optio
  54. -fstack-limit-symbol=<name> Trap if the stack goes past symbol <name>
  55. fstack-protector
  56. -Common Report Var(flag_stack_protect, 1)
  57. +Common Report Var(flag_stack_protect, 1) Init(-1)
  58. Use propolice as a stack protection method
  59. fstack-protector-all