This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ppc64 __attribute__((visibility ("hidden"))) and multiple TOCs
>>>>> Jakub Jelinek writes:
Jakub> I guess the right thing to do would be to replace the current
Jakub> 3 uses of SYMBOL_REF_LOCAL_P (x) macro in config/rs6000/*.md
Jakub> with
Jakub> SYMBOL_REF_LOCAL_P (x) && (!TARGET_ARCH64 || !SYMBOL_REF_EXTERNAL_P (x))
Jakub> where TARGET_ARCH64 is replaced by whatever ppc* subarches need multi-toc.
The only one that needs to be changed in the
current_file_function_operand predicate in rs6000/predicates.md
I think the test needs to be
SYMBOL_REF_LOCAL_P (x) && (DEFAULT_ABI != ABI_AIX
|| !SYMBOL_REF_EXTERNAL_P (x))
David