[RS6000] Make -msingle-pic-base remove the ELFv2 global entry code
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Sep 2015 22:19:18 +0000 (22:19 +0000)
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Sep 2015 22:19:18 +0000 (22:19 +0000)
commitdb15b98d518e5146e5b88592b3335d77b8465a4b
treea1f4db9b7fbb941336c57ed70165663f9dbb030c
parentb31fc8cdc35e18046c03c3f214991613e7d0106b
[RS6000] Make -msingle-pic-base remove the ELFv2 global entry code

For other ABIs, -msingle-pic-base makes gcc omit loading of the PIC
register in function prologues.  This patch makes the option affect
ELFv2 too.

* config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
r2_setup_needed when TARGET_SINGLE_PIC_BASE.
(rs6000_output_mi_thunk): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228309 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/rs6000/rs6000.c