All of lore.kernel.org
 help / color / mirror / Atom feed
* __attribute__ annotations and struct types
@ 2007-02-14 20:01 Daniel Drake
  2007-02-14 20:15 ` [PATCH] " Christopher Li
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Drake @ 2007-02-14 20:01 UTC (permalink / raw)
  To: linux-sparse

gcc-4.1.1 accepts this as valid code:

struct __attribute__((__aligned__(16))) foo {
    int a;
};

sparse doesn't like it:

	test.c:7:8: error: Trying to use reserved word '__attribute__' 
	as identifier

I'm not sure if this is a bug that people are interested in solving, as
the more common form works in both gcc and sparse:

struct foo {
    int a;
} __attribute__((__aligned__(16)));

Thanks,
-- 
Daniel Drake
Brontes Technologies, A 3M Company

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

end of thread, other threads:[~2007-02-23  2:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-14 20:01 __attribute__ annotations and struct types Daniel Drake
2007-02-14 20:15 ` [PATCH] " Christopher Li
2007-02-14 21:02   ` Daniel Drake
2007-02-14 21:05     ` Randy Dunlap
2007-02-23  2:23     ` Josh Triplett

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.