This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/46820] toplevel ASM statements should be allowed to reffer local symbols in LTO


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]