patch-gcc_common_opt 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. $OpenBSD: patch-gcc_common_opt,v 1.2 2015/07/19 21:22:49 pascal Exp $
  2. --- gcc/common.opt.orig Thu Feb 26 03:43:52 2015
  3. +++ gcc/common.opt Sat Jun 27 11:26:32 2015
  4. @@ -580,6 +580,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. @@ -644,7 +648,7 @@ Common Var(warn_suggest_attribute_noreturn) Warning
  15. Warn about functions which might be candidates for __attribute__((noreturn))
  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. @@ -699,6 +703,10 @@ Wunused-variable
  22. Common Var(warn_unused_variable) Warning EnabledBy(Wunused)
  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. @@ -811,7 +819,7 @@ fabi-version=
  32. Common Joined RejectNegative UInteger Var(flag_abi_version) Init(2)
  33. faggressive-loop-optimizations
  34. -Common Report Var(flag_aggressive_loop_optimizations) Optimization Init(1)
  35. +Common Report Var(flag_aggressive_loop_optimizations) Optimization
  36. Aggressively optimize loops using language constraints
  37. falign-functions
  38. @@ -1008,7 +1016,7 @@ Common Report Var(flag_delete_dead_exceptions) Init(0)
  39. Delete dead instructions that may throw exceptions
  40. fdelete-null-pointer-checks
  41. -Common Report Var(flag_delete_null_pointer_checks) Init(1) Optimization
  42. +Common Report Var(flag_delete_null_pointer_checks)
  43. Delete useless null pointer checks
  44. fdevirtualize-speculatively
  45. @@ -1292,7 +1300,7 @@ Enable guessing of branch probabilities
  46. ; On SVR4 targets, it also controls whether or not to emit a
  47. ; string identifying the compiler.
  48. fident
  49. -Common Report Var(flag_no_ident,0)
  50. +Common Report Var(flag_no_ident,0) Init(1)
  51. Process #ident directives
  52. fif-conversion
  53. @@ -1648,7 +1656,7 @@ Common Report Var(flag_pic,2) Negative(fPIE)
  54. Generate position-independent code if possible (large mode)
  55. fPIE
  56. -Common Report Var(flag_pie,2) Negative(fpic)
  57. +Common Report Var(flag_pie,2) Negative(fpic) Init(PIE_DEFAULT)
  58. Generate position-independent code for executables if possible (large mode)
  59. fpic
  60. @@ -1964,7 +1972,7 @@ Common RejectNegative Joined Var(common_deferred_optio
  61. -fstack-limit-symbol=<name> Trap if the stack goes past symbol <name>
  62. fstack-protector
  63. -Common Report Var(flag_stack_protect, 1)
  64. +Common Report Var(flag_stack_protect, 3) Init(-1)
  65. Use propolice as a stack protection method
  66. fstack-protector-all
  67. @@ -2442,7 +2450,7 @@ Common JoinedOrMissing Negative(gdwarf-)
  68. Generate debug information in default version of DWARF format
  69. gdwarf-
  70. -Common Joined UInteger Var(dwarf_version) Init(4) Negative(gstabs)
  71. +Common Joined UInteger Var(dwarf_version) Init(2) Negative(gstabs)
  72. Generate debug information in DWARF v2 (or later) format
  73. ggdb
  74. @@ -2530,6 +2538,9 @@ no-canonical-prefixes
  75. Driver
  76. nodefaultlibs
  77. +Driver
  78. +
  79. +nopie
  80. Driver
  81. nostartfiles