linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] parser: add Blackfin gcc info
@ 2010-10-05  8:34 Mike Frysinger
  2010-10-05 16:18 ` Josh Triplett
  0 siblings, 1 reply; 11+ messages in thread
From: Mike Frysinger @ 2010-10-05  8:34 UTC (permalink / raw)
  To: linux-sparse; +Cc: michael.hennerich

The Blackfin port uses some custom attributes to control memory placement,
and it has some custom builtins.  So add the ones that the kernel actually
utilizes to avoid massive build errors with sparse.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 lib.c   |    3 +++
 parse.c |    6 ++++++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/lib.c b/lib.c
index ae6a20c..24176d8 100644
--- a/lib.c
+++ b/lib.c
@@ -716,6 +716,9 @@ void declare_builtin_functions(void)
 	add_pre_buffer("extern long __builtin_alpha_inslh(long, long);\n");
 	add_pre_buffer("extern long __builtin_alpha_cmpbge(long, long);\n");
 	add_pre_buffer("extern long __builtin_labs(long);\n");
+	add_pre_buffer("extern void __builtin_bfin_csync(void);\n");
+	add_pre_buffer("extern void __builtin_bfin_ssync(void);\n");
+	add_pre_buffer("extern int __builtin_bfin_norm_fr1x32(int);\n");
 
 	/* And some floating point stuff.. */
 	add_pre_buffer("extern int __builtin_isgreater(float, float);\n");
diff --git a/parse.c b/parse.c
index 9074b1d..32d2d0a 100644
--- a/parse.c
+++ b/parse.c
@@ -515,6 +515,12 @@ const char *ignored_attributes[] = {
 	"__format_arg__",
 	"hot",
 	"__hot__",
+	"l1_text",
+	"__l1_text__",
+	"l1_data",
+	"__l1_data__",
+	"l2",
+	"__l2__",
 	"malloc",
 	"__malloc__",
 	"may_alias",
-- 
1.7.3.1


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

end of thread, other threads:[~2010-10-06 21:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-05  8:34 [PATCH] parser: add Blackfin gcc info Mike Frysinger
2010-10-05 16:18 ` Josh Triplett
2010-10-06  1:34   ` Mike Frysinger
2010-10-06  2:33     ` Christopher Li
2010-10-06  5:38       ` Mike Frysinger
2010-10-06  7:10         ` Josh Triplett
2010-10-06  8:40           ` Christopher Li
2010-10-06 14:52             ` Mike Frysinger
2010-10-06 16:32           ` Mike Frysinger
2010-10-06 21:14             ` Christopher Li
2010-10-06  7:05     ` Josh Triplett

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