[patch] Allow linkonce_odr aliases

Nick Lewycky nlewycky at google.com
Sat Oct 5 01:28:19 PDT 2013


On 4 October 2013 20:09, Rafael EspĂ­ndola <rafael.espindola at gmail.com>wrote:

> I noticed that gcc produces alias when compiling
>
> void g();
> template<typename T>
> struct foobar {
>   foobar() {
>     g();
>   }
> };
> foobar<void> x;
>
> To do the same in clang (patch to go in a sec) we have to allow
> linkonce_odr aliases in llvm. The attached patch does that.
>

Sorry -- I don't yet understand the motivation. What alias does it produce?
My gcc 4.8.1 doesn't produce an alias on this code on x86-64 linux at -O0.

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131005/bf94ba0c/attachment.html>


More information about the llvm-commits mailing list