From: Pavel Roskin <proski@gnu.org>
To: linux-sparse@vger.kernel.org
Subject: [PATCH] Recognize and ignore _Complex, artificial and vector_size
Date: Thu, 04 Aug 2011 17:38:11 -0400 [thread overview]
Message-ID: <20110804213811.27256.73386.stgit@mj> (raw)
Signed-off-by: Pavel Roskin <proski@gnu.org>
---
ident-list.h | 2 ++
parse.c | 9 +++++++++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/ident-list.h b/ident-list.h
index b94aece..973bf57 100644
--- a/ident-list.h
+++ b/ident-list.h
@@ -87,6 +87,8 @@ IDENT(fastcall); IDENT(__fastcall__);
IDENT(dllimport); IDENT(__dllimport__);
IDENT(dllexport); IDENT(__dllexport__);
IDENT(restrict); IDENT(__restrict);
+IDENT(artificial); IDENT(__artificial__);
+IDENT(vector_size); IDENT(__vector_size__);
/* Preprocessor idents. Direct use of __IDENT avoids mentioning the keyword
* itself by name, preventing these tokens from expanding when compiling
diff --git a/parse.c b/parse.c
index 537055f..1c3e305 100644
--- a/parse.c
+++ b/parse.c
@@ -145,6 +145,10 @@ static struct symbol_op restrict_op = {
.type = KW_QUALIFIER,
};
+static struct symbol_op complex_op = {
+ .type = KW_QUALIFIER,
+};
+
static struct symbol_op typeof_op = {
.type = KW_SPECIFIER,
.declarator = typeof_specifier,
@@ -419,6 +423,7 @@ static struct init_keyword {
/* Ignored for now.. */
{ "restrict", NS_TYPEDEF, .op = &restrict_op},
{ "__restrict", NS_TYPEDEF, .op = &restrict_op},
+ { "_Complex", NS_TYPEDEF, .op = &complex_op},
/* Storage class */
{ "auto", NS_TYPEDEF, .op = &auto_op },
@@ -486,6 +491,8 @@ const char *ignored_attributes[] = {
"__alloc_size__",
"always_inline",
"__always_inline__",
+ "artificial",
+ "__artificial__",
"bounded",
"__bounded__",
"cdecl",
@@ -563,6 +570,8 @@ const char *ignored_attributes[] = {
"__unused__",
"used",
"__used__",
+ "vector_size",
+ "__vector_size__",
"visibility",
"__visibility__",
"warn_unused_result",
next reply other threads:[~2011-08-04 21:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-04 21:38 Pavel Roskin [this message]
2011-08-04 22:49 ` [PATCH] Recognize and ignore _Complex, artificial and vector_size Christopher Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110804213811.27256.73386.stgit@mj \
--to=proski@gnu.org \
--cc=linux-sparse@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox