[Bug target/67417] powerpc64 bootstrap with -mcmodel=small results in linker error
amodra at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Sep 1 23:26:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67417
--- Comment #6 from Alan Modra <amodra at gcc dot gnu.org> ---
Author: amodra
Date: Tue Sep 1 23:25:48 2015
New Revision: 227389
URL: https://gcc.gnu.org/viewcvs?rev=227389&root=gcc&view=rev
Log:
[RS6000] Weak functions may not be file local
A weak symbol defined in the current object file may not turn out to
be the definition used at link time, if other copies of the symbol
exist. This means they can't be considered file local.
PR target/67417
* config/rs6000/predicates.md (current_file_function_operand): Don't
return true for weak symbols.
* config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/config/rs6000/predicates.md
branches/gcc-4_9-branch/gcc/config/rs6000/rs6000.c
More information about the Gcc-bugs
mailing list