https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88088
Bug ID: 88088
Summary: -Wtrampolines should be enabled by -Wall (or -Wextra)
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: mark at gcc dot gnu.org
Target Milestone: ---
Usage of nested functions is fine unless one takes the function address and a
trampoline is generated. The trampoline often requires an executable stack.
Which is regarded as a security issue.
Adding -Wtrampolines to -Wall (or -Wextra) would catch such security issues
earlier.