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


On Fri, 10 Jun 2005, DJ Delorie wrote:

> What about this scenario?
> 
> typedef int __attribute__((section("foo"))) FOOINT;
> 
> FOOINT a;
> 
> Would it make sense to allow this sort of thing?  Would it be feasible
> to implement?

It might make sense to define "section" as applying to the type - provided 
you have clearly defined rules for type compatibility, composite types, 
etc. - though it might also break existing code with the attribute in 
various positions.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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