This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: position of section() attribute question


> "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" ? ;-)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]