position of section() attribute question
DJ Delorie
dj@redhat.com
Fri Jun 10 02:11:00 GMT 2005
> "section" attributes are presently storage-class-like (similar to
> "static") and only work on declarations.
Ok, I see that we set the "apply to decl" bit for "section". I guess
the question is - why? Would it be more consistent to keep track of
where it is given, and complain if it is applied to the type instead
of the decl?
Or is it as simple as "because the programmer expects it this way" ? ;-)
More information about the Gcc
mailing list