This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/46820] toplevel ASM statements should be allowed to reffer local symbols in LTO
- From: "hubicka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 11 May 2012 22:38:23 +0000
- Subject: [Bug lto/46820] toplevel ASM statements should be allowed to reffer local symbols in LTO
- Auto-submitted: auto-generated
- References: <bug-46820-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46820
--- Comment #13 from Jan Hubicka <hubicka at gcc dot gnu.org> 2012-05-11 22:38:23 UTC ---
Updated description to match reality. Here it should really be user defined
alias with weak visibility.
void __f () { /* Do something. */; }
void f () __attribute__ ((weak, alias ("__f")))
works as expected.
But still toplevel asm statements should be allowed to have list of used and
defined symbols. I think there was patch circulating for this. But this is an
enhancement request. The asm statement as written has no chance to work unless
GCC gets into busyness of parsing assembly.
Honza