[llvm-commits] Function aliases
Dan Gohman
djg at cray.com
Thu Apr 19 13:51:57 PDT 2007
> GCC doesn't allow variable aliases and I don't know
> how they should look (and work!). That's why I'm focusing on function
> aliases only.
Actually, GCC does accept variable aliases, at least on i686-pc-linux-gnu
and several other targets.
This code compiles and has two symbols in the output:
int x = 2;
extern int y __attribute__((alias("x")));
Dan
--
Dan Gohman, Cray Inc.
More information about the llvm-commits
mailing list