This is the mail archive of the gcc-help@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: handling of symbol prefixes in the "target" of the alias("target") attribute


Mike Frysinger <vapier@gentoo.org> writes:

> i'm wondering whether it is expected that the "target" of the alias() 
> attribute should automatically handle the symbol prefix 
> (__USER_LABEL_PREFIX__).  the documentation doesnt mention anything along 
> these lines, but going by existing ports like Windows and Blackfin/Linux, it 
> would seem that they do.  however, it seems like Apple's gcc fork does not.  
> it also seems more logical for the prefix to be handled transparently rather 
> than forcing everyone to do magic CPP crap with __USER_LABEL_PREFIX__.
> -mike

As far as I know it was never documented.  However, every target that I
checked does add __USER_LABEL_PREFIX__ before the alias name.

Apple's gcc fork must do something different anyhow, since Darwin
doesn't support aliases.  I don't know how Apple's gcc handles them.

Ian


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