rs6000.c tests TREE_ASM_WRITTEN too early.
Richard Henderson
rth@redhat.com
Thu Dec 28 11:32:00 GMT 2000
On Thu, Dec 28, 2000 at 01:42:43PM -0500, David Edelsohn wrote:
> + We also record that the function exists in the current compilation
> + unit, reachable by short branch, by setting SYMBOL_REF_FLAG.
[...]
> + if (!DECL_WEAK (DECL)) \
> + SYMBOL_REF_FLAG (sym_ref) = 1; \
At least for sysv4 you probably also need to be checking flag_pic,
since a non-static function in a shared library can still be
overridden. I don't know if the semantics of AIX shared libraries
differ.
Unless of course the linker is smart enough to make sure that the
short branch makes it to a PLT stub...
r~
More information about the Gcc-patches
mailing list