> 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.
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to