Skip to contentSkip to conversation

Ignore the ms_abi/sysv_abi attributes.

PATCH New Michael Stefaniuc 1 participant 1 message Sep 30, 2009 Sparse checker

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Ignore the ms_abi/sysv_abi attributes.

This is needed for getting a meaningful sparse run on a Wine 64-bit compile. Else the basic Win32 headers will produce tons of
error: attribute 'ms_abi': unknown attribute
which end in
error: too many errors.

The sysv_abi attribute was just added for symmetry.

---
Resend for the chrisl tree.

 parse.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
parse.c +4 -0
index 34fa562..fa3b45e 100644
@@ -508,6 +508,8 @@ const char *ignored_attributes[] = {
 	"__malloc__",
 	"model",
 	"__model__",
+	"ms_abi",
+	"__ms_abi__",
 	"no_instrument_function",
 	"__no_instrument_function__",
 	"noinline",
@@ -530,6 +532,8 @@ const char *ignored_attributes[] = {
 	"__stdcall__",
 	"syscall_linkage",
 	"__syscall_linkage__",
+	"sysv_abi",
+	"__sysv_abi__",
 	"unused",
 	"__unused__",
 	"used",
Signature · 1 line
1.6.5.rc2