r207997 - Fix pr19653.

Richard Smith richard at metafoo.co.uk
Mon May 5 14:24:10 PDT 2014


On Mon, May 5, 2014 at 2:20 PM, Rafael EspĂ­ndola <rafael.espindola at gmail.com
> wrote:

> > I was hoping we'd say which section the alias would end up in here -- the
> > requested section should be obvious from the snippet.
>
> Not necessarily. For example:
>
> >> +void test3_bar() { }
> >> +void test3_foo() __attribute__((section("test"))); // expected-warning
> >> {{alias will not be in section 'test' but in the same section as the
> >> aliasee}}
> >> +void test3_foo() __attribute__((alias("test3_bar")));
>
> In here the aliasee has no explicit section, so we will only know it
> during llvm's codegen.


In this case, it'd be nice to say that the aliasee has no explicit section
attribute.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140505/28e89fc7/attachment.html>


More information about the cfe-commits mailing list