summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/patchsets/gcc/7.3.0/12_all_default-warn-trampolines.patch')
-rw-r--r--src/patchsets/gcc/7.3.0/12_all_default-warn-trampolines.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/patchsets/gcc/7.3.0/12_all_default-warn-trampolines.patch b/src/patchsets/gcc/7.3.0/12_all_default-warn-trampolines.patch
new file mode 100644
index 0000000000..7a644cb1e1
--- /dev/null
+++ b/src/patchsets/gcc/7.3.0/12_all_default-warn-trampolines.patch
@@ -0,0 +1,13 @@
+Enable -Wtrampolines by default.
+
+--- a/gcc/common.opt
++++ b/gcc/common.opt
+@@ -712,7 +712,7 @@ Common Var(warn_system_headers) Warning
+ Do not suppress warnings from system headers.
+
+ Wtrampolines
+-Common Var(warn_trampolines) Warning
++Common Var(warn_trampolines) Init(1) Warning
+ Warn whenever a trampoline is generated.
+
+ Wtype-limits