This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: handling of symbol prefixes in the "target" of the alias("target") attribute
- From: Ian Lance Taylor <iant at google dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 26 May 2009 21:41:42 -0700
- Subject: Re: handling of symbol prefixes in the "target" of the alias("target") attribute
- References: <200905262120.46794.vapier@gentoo.org>
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