Re: [PATCH] Spell __attribute__ correctly in cache.h.
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Aug 28, 2005, 19:48 UTC
- Message-ID
- <Pine.LNX.4.58.0508281245150.3317@g5.osdl.org>
- In-Reply-To
- <43120BC5.8060608@kaijanaho.info>
On Sun, 28 Aug 2005, Antti-Juhani Kaijanaho wrote:
Show 5 quoted lines
> > This is not true under C99. If an array[] is the last member of a > struct (which is what we are, AFAIK, talking about), then sizeof that > struct is defined and gives the size of that struct as if the array's > size were zero (but the struct cannot be used in an automatic context).
Ahh, thanks. Mea culpa, I thought it was illegal in general. In that case, the only reason not to use [] is that older gcc's don't like it, but even that version cut-off may be old enough to not matter.
Anybody know? gcc-2.95 is still considered production at least for the kernel. I don't have it available to test whether it understands [] though.
Linus