dragonegg and alias attribute

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.

Hi Gregory,

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.

it seems it is being handled a bit too well by dragonegg :slight_smile: Please open a bug
report.

Best wishes, Duncan.