linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* specifying custom attributes
@ 2007-08-02 22:53 Mike Frysinger
  2007-08-03  0:53 ` Josh Triplett
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2007-08-02 22:53 UTC (permalink / raw)
  To: linux-sparse; +Cc: Robin Getz

the Blackfin port has a few custom gcc attributes that annoys sparse:
include/asm/uaccess.h:63:77: error: attribute 'l1_text': unknown attribute

is there a way from the cmdline to specify a custom list of OK
attributes ?  i feel like adding these processor-specific attributes
to the source code may not be the way you guys wish to go ...
-mike

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

* Re: specifying custom attributes
  2007-08-02 22:53 specifying custom attributes Mike Frysinger
@ 2007-08-03  0:53 ` Josh Triplett
  2007-08-03  3:41   ` Robin Getz
  0 siblings, 1 reply; 3+ messages in thread
From: Josh Triplett @ 2007-08-03  0:53 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: linux-sparse, Robin Getz

On Thu, 2007-08-02 at 18:53 -0400, Mike Frysinger wrote:
> the Blackfin port has a few custom gcc attributes that annoys sparse:
> include/asm/uaccess.h:63:77: error: attribute 'l1_text': unknown attribute
> 
> is there a way from the cmdline to specify a custom list of OK
> attributes ?  i feel like adding these processor-specific attributes
> to the source code may not be the way you guys wish to go ...

Currently no.  It might make sense to add a way to turn off the "unknown
attribute" warning, like GCC's -Wno-attributes.

- Josh Triplett

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

* Re: specifying custom attributes
  2007-08-03  0:53 ` Josh Triplett
@ 2007-08-03  3:41   ` Robin Getz
  0 siblings, 0 replies; 3+ messages in thread
From: Robin Getz @ 2007-08-03  3:41 UTC (permalink / raw)
  To: Josh Triplett; +Cc: Mike Frysinger, linux-sparse

On Thu 2 Aug 2007 20:53, Josh Triplett pondered:
> On Thu, 2007-08-02 at 18:53 -0400, Mike Frysinger wrote:
> > the Blackfin port has a few custom gcc attributes that annoys sparse:
> > include/asm/uaccess.h:63:77: error: attribute 'l1_text': unknown
> attribute
> > 
> > is there a way from the cmdline to specify a custom list of OK
> > attributes ?  i feel like adding these processor-specific attributes
> > to the source code may not be the way you guys wish to go ...
> 
> Currently no.  It might make sense to add a way to turn off the "unknown
> attribute" warning, like GCC's -Wno-attributes.

I'm not sure that helps. (if it is just a global turn it off).

We would like :
 - (a) not to get false assertions (when 'l1_text' is used)
 - to get proper assertions when:
    - (b) someone does a typo (when 'l1_test' is used)
    - (c) compiled on a system which doesn't support this (like x86) 
          to make sure we didn't polute anything we should not have

Adding things to the source will cause c to fail.
using something like -Wno-attributes will cause b to fail (unless you were 
thinking it would take a list on the command line)

-Wno-attributes foo,bar,l1_text

?

-Robin

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

end of thread, other threads:[~2007-08-03  3:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-02 22:53 specifying custom attributes Mike Frysinger
2007-08-03  0:53 ` Josh Triplett
2007-08-03  3:41   ` Robin Getz

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