From: Pavel Roskin <proski@gnu.org>
To: linux-sparse@vger.kernel.org
Subject: [PATCH] Recognize and ignore __alias__ and __visibility__
Date: Sun, 13 Aug 2006 01:51:58 -0400 [thread overview]
Message-ID: <20060813055158.28706.93407.stgit@dv.roinet.com> (raw)
From: Pavel Roskin <proski@gnu.org>
They are equivalent to "alias" and "visibility" except that gcc won't
complain about them in ANSI programs.
Signed-off-by: Pavel Roskin <proski@gnu.org>
---
ident-list.h | 4 ++--
parse.c | 4 ++++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ident-list.h b/ident-list.h
index 95bb96a..ecdce6d 100644
--- a/ident-list.h
+++ b/ident-list.h
@@ -56,8 +56,8 @@ IDENT(__const); IDENT(__const__); IDENT(
IDENT(__noreturn__); IDENT(regparm); IDENT(weak); IDENT(__weak__);
IDENT(__no_instrument_function__); IDENT(no_instrument_function);
IDENT(__sentinel__); IDENT(sentinel);
-IDENT(alias); IDENT(pure); IDENT(always_inline);
-IDENT(syscall_linkage); IDENT(visibility);
+IDENT(alias); IDENT(__alias__); IDENT(pure); IDENT(always_inline);
+IDENT(syscall_linkage); IDENT(visibility); IDENT(__visibility__);
IDENT(bitwise); IDENT(__bitwise__);
IDENT(model); IDENT(__model__);
IDENT(__format_arg__);
diff --git a/parse.c b/parse.c
index c536ec2..1c9aab8 100644
--- a/parse.c
+++ b/parse.c
@@ -530,6 +530,8 @@ static const char * handle_attribute(str
return NULL;
if (attribute == &alias_ident)
return NULL;
+ if (attribute == &__alias___ident)
+ return NULL;
if (attribute == &pure_ident ||
attribute == &__pure___ident)
return NULL;
@@ -539,6 +541,8 @@ static const char * handle_attribute(str
return NULL;
if (attribute == &visibility_ident)
return NULL;
+ if (attribute == &__visibility___ident)
+ return NULL;
if (attribute == &deprecated_ident ||
attribute == &__deprecated___ident)
return NULL;
next reply other threads:[~2006-08-13 5:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-13 5:51 Pavel Roskin [this message]
2006-08-14 15:52 ` [PATCH] Recognize and ignore __alias__ and __visibility__ Josh Triplett
2006-08-14 19:25 ` Pavel Roskin
2006-09-11 21:09 ` [PATCH RESEND] " Josh Triplett
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=20060813055158.28706.93407.stgit@dv.roinet.com \
--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