linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ignore __cold__ attribute
@ 2008-04-22 10:41 Johannes Berg
       [not found] ` <20080422090739.2izftuclwocs80o4-cebfxv@fcnzpbc.arg@webmail.spamcop.net>
  0 siblings, 1 reply; 6+ messages in thread
From: Johannes Berg @ 2008-04-22 10:41 UTC (permalink / raw)
  To: Josh Triplett; +Cc: linux-sparse, Al Viro, David Woodhouse

This is a new attribute in gcc 4.3, which when used and sparse is
compiled with gcc 4.3 leads to unknown attribute errors. Ignore it.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
diff --git a/parse.c b/parse.c
index 83e2d67..cdcd742 100644
--- a/parse.c
+++ b/parse.c
@@ -355,6 +355,7 @@ static struct init_keyword {
 	{ "__constructor__",	NS_KEYWORD,	.op = &ignore_attr_op },
 	{ "destructor",	NS_KEYWORD,	.op = &ignore_attr_op },
 	{ "__destructor__",	NS_KEYWORD,	.op = &ignore_attr_op },
+	{ "__cold__",	NS_KEYWORD,	.op = &ignore_attr_op },
 };
 
 void init_parser(int stream)



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-06-19  5:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-22 10:41 [PATCH] ignore __cold__ attribute Johannes Berg
     [not found] ` <20080422090739.2izftuclwocs80o4-cebfxv@fcnzpbc.arg@webmail.spamcop.net>
2008-04-22 13:25   ` Johannes Berg
2008-04-22 21:35     ` Pavel Roskin
2008-04-25  2:26       ` Josh Triplett
2008-05-02 19:42         ` Pavel Roskin
2008-06-19  5:04         ` Pavel Roskin

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).