summaryrefslogblamecommitdiff
path: root/system/gcc/012_all_default-warn-trampolines.patch
blob: 0bb1bd6d8ed52a840713eec88ac3b00f69aa0060 (plain) (tree)
1
2
3
4
5
6




                                
                                                           









                                             
                                                                            


                                                                        
                                                                             



                                                                     
Enable -Wtrampolines by default.


--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -799,7 +799,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
@@ -7744,6 +7744,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, Alpine, and Adelie Linux.
+
 '-Wfloat-equal'
      Warn if floating-point values are used in equality comparisons.