From: Ethan Jackson <ethan@nicira.com>
To: linux-sparse@vger.kernel.org
Cc: Ethan Jackson <ethan@nicira.com>
Subject: [PATCH] sparse: Add 'leaf' to ignored attributes.
Date: Tue, 17 Jan 2012 14:47:11 -0800 [thread overview]
Message-ID: <1326840431-27368-1-git-send-email-ethan@nicira.com> (raw)
This patch adds the 'leaf' GCC attribute to the list of ignored
attributes. Glibc uses this attribute causing the following
warnings in userspace projects:
/usr/include/stdlib.h:514:26: error: attribute '__leaf__': unknown attribute
Signed-off-by: Ethan Jackson <ethan@nicira.com>
---
ident-list.h | 2 ++
parse.c | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/ident-list.h b/ident-list.h
index b12d172..35ac6bd 100644
--- a/ident-list.h
+++ b/ident-list.h
@@ -88,6 +88,8 @@ IDENT(dllimport); IDENT(__dllimport__);
IDENT(dllexport); IDENT(__dllexport__);
IDENT(restrict); IDENT(__restrict);
IDENT(artificial); IDENT(__artificial__);
+IDENT(leaf); IDENT(__leaf__);
+
/* 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 bd42180..f8ade3e 100644
--- a/parse.c
+++ b/parse.c
@@ -519,6 +519,8 @@ const char *ignored_attributes[] = {
"__format_arg__",
"hot",
"__hot__",
+ "leaf",
+ "__leaf__",
"l1_text",
"__l1_text__",
"l1_data",
--
1.7.8.3
next reply other threads:[~2012-01-17 22:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-17 22:47 Ethan Jackson [this message]
2012-01-18 7:20 ` [PATCH] sparse: Add 'leaf' to ignored attributes Pekka Enberg
2012-01-18 8:33 ` Christopher Li
2012-01-18 16:58 ` Ethan Jackson
2012-06-07 23:01 ` Ethan Jackson
[not found] ` <CANeU7QkVuB1k1C9wyqxEoVKZT-c3PdTHmmVY-YnUW1h8o9BjjA@mail.gmail.com>
2012-06-09 4:50 ` Ethan Jackson
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=1326840431-27368-1-git-send-email-ethan@nicira.com \
--to=ethan@nicira.com \
--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;
as well as URLs for NNTP newsgroup(s).