Skip to contentSkip to conversation

Ignore "naked" attribute

PATCH Applied Michael Buesch 2 participants 2 messages Nov 29, 2009 – Nov 30, 2009 Sparse checker

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Ignore "naked" attribute

The GCC "naked" attribute is used on certain architectures to generate functions without a prologue/epilogue.

Ignore it in sparse.

---
 parse.c |    2 ++
 1 file changed, 2 insertions(+)
parse.c +2 -0
@@ -521,6 +521,8 @@ const char *ignored_attributes[] = {
 	"__model__",
 	"ms_abi",
 	"__ms_abi__",
+	"naked",
+	"__naked__",
 	"no_instrument_function",
 	"__no_instrument_function__",
 	"noinline",
Signature · 1 line
Greetings, Michael.
maintainer Applied
#1 lore raw
Quoted 4 lines · Michael Buesch

The GCC "naked" attribute is used on certain architectures to generate functions without a prologue/epilogue.

Ignore it in sparse.

Applied.

Thanks,

Chris