[PATCH] Fix LTO weakref handling without .weakref assembler support (PR target/47333)

Jan Hubicka hubicka@ucw.cz
Fri Jan 6 21:55:00 GMT 2012

> Hi!
> If as doesn't support .weakref, we handle weakrefs by
> assemble_alias setting IDENTIFIER_TRANSPARENT_ALIAS and using
> ultimate_transparent_alias_target from assemble_name.
> But for this to work, assemble_alias has to be called before
> asm for functions is emitted, not after it.
> Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux
> and tested with the hacked up x86_64-linux gcc without HAVE_GAS_WEAKREF
> in auto-host.h on the testcase.
> Ok for trunk?


More information about the Gcc-patches mailing list