Skip to contentSkip to conversation

sparse: Add more ignored attributes

PATCH In review Michael Buesch 2 participants 2 messages Nov 26, 2009 – Nov 28, 2009 Sparse checker

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparse: Add more ignored attributes

This adds more ignored gcc-style attributes.

externally_visible is a standard gcc attribute.
signal is an AVR8 attribute used to define interrupt service routines.

Ignore these attributes, as they are currently not useful for sparse checking.

---

parse.c +4 -0
Index: sparse-dev/parse.c
===================================================================
@@ -505,6 +505,8 @@ const char *ignored_attributes[] = {
 	"__dllexport__",
 	"dllimport",
 	"__dllimport__",
+	"externally_visible",
+	"__externally_visible__",
 	"fastcall",
 	"__fastcall__",
 	"format",
@@ -537,6 +539,8 @@ const char *ignored_attributes[] = {
 	"__section__",
 	"sentinel",
 	"__sentinel__",
+	"signal",
+	"__signal__",
 	"stdcall",
 	"__stdcall__",
 	"syscall_linkage",
Signature · 1 line
Greetings, Michael.
maintainer
#1 lore raw
Quoted 2 lines · Michael Buesch

This adds more ignored gcc-style attributes.

Applied with slightly modified title.

Thanks!

Chris