[LLVMdev] dragonegg and alias attribute

Gregory Malecha gmalecha at eecs.harvard.edu
Wed Aug 3 16:19:23 PDT 2011


Hello,

Another question about the more esoteric parts of C. Is there any way to get
dragonegg to handle c function aliases or is there a way to get around this?
For example, I've got a simple file:

int foo(int x) { return x; }

extern typeof(foo) foo2 __attribute((alias("foo")));

Compiling with vanilla gcc I end up with two symbols: foo and foo2 which
both refer to the same function. When I compile through dragonegg I only get
a symbol for foo.

Thanks.

-- 
gregory malecha
http://www.people.fas.harvard.edu/~gmalecha/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110803/84c59a29/attachment.html>


More information about the llvm-dev mailing list