[RS6000] Weak functions may not be file local
authorAlan Modra <amodra@gmail.com>
Tue, 1 Sep 2015 23:03:19 +0000 (08:33 +0930)
committerAlan Modra <amodra@gcc.gnu.org>
Tue, 1 Sep 2015 23:03:19 +0000 (08:33 +0930)
commitb2c72901da7c6a7202a0451b23601c9b864ab99c
tree593153c5267b87b5614ee8569453ade4a75d229e
parent22219d9b1a5bcf9b96020f830493fed6525d936c
[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.

From-SVN: r227386
gcc/ChangeLog
gcc/config/rs6000/predicates.md
gcc/config/rs6000/rs6000.c