From 57b3454125ff268fb900c0d60b267535857bcd93 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 2 Jul 2022 18:51:15 -0500 Subject: legacy/gcc6: add buildable patches --- legacy/gcc6/012_all_default-warn-trampolines.patch | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 legacy/gcc6/012_all_default-warn-trampolines.patch (limited to 'legacy/gcc6/012_all_default-warn-trampolines.patch') diff --git a/legacy/gcc6/012_all_default-warn-trampolines.patch b/legacy/gcc6/012_all_default-warn-trampolines.patch new file mode 100644 index 000000000..9ab4378d4 --- /dev/null +++ b/legacy/gcc6/012_all_default-warn-trampolines.patch @@ -0,0 +1,25 @@ +Enable -Wtrampolines by default. + + +--- a/gcc/common.opt ++++ b/gcc/common.opt +@@ -648,7 +648,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 +--- a/gcc/doc/gcc.info ++++ b/gcc/doc/gcc.info +@@ -4021,6 +4021,8 @@ compiler warns that an unrecognized option is present. + and thus requires the stack to be made executable in order for the + program to work properly. + ++ This warning is enabled by default in Gentoo. ++ + '-Wfloat-equal' + Warn if floating-point values are used in equality comparisons. + -- cgit v1.2.3-60-g2f50