[Olsr-dev] [PATCH v1 11/12] Makefile: WARNINGS: add -Wtrampolines

Ferry Huberts (spam-protected)
Tue May 29 15:59:40 CEST 2012


From: Ferry Huberts <(spam-protected)>

-Wtrampolines
  Warn about trampolines generated for pointers to nested functions.

  A trampoline is a small piece of data or code that is created at run
  time on the stack when the address of a nested function is taken, and
  is used to call the nested function indirectly.  For some targets, it
  is made up of data only and thus requires no special treatment.  But,
  for most targets, it is made up of code and thus requires the stack
  to be made executable in order for the program to work properly.

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 Makefile.inc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Makefile.inc b/Makefile.inc
index 930489a..2c9d9da 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -98,6 +98,7 @@ WARNINGS +=	-Wsync-nand
 WARNINGS +=	-Wundef
 WARNINGS +=	-Wlogical-op
 WARNINGS +=	-Wjump-misses-init
+WARNINGS +=	-Wtrampolines
 # the following 2 do not work yet and need more work on it
 #WARNINGS +=	-Wconversion
 #WARNINGS +=	-Wredundant-decls
-- 
1.7.7.6





More information about the Olsr-dev mailing list