]> git.ipfire.org Git - thirdparty/gcc.git/commit
[RS6000] Make -msingle-pic-base remove the ELFv2 global entry code
authorAlan Modra <amodra@gmail.com>
Wed, 30 Sep 2015 22:19:18 +0000 (07:49 +0930)
committerAlan Modra <amodra@gcc.gnu.org>
Wed, 30 Sep 2015 22:19:18 +0000 (07:49 +0930)
commit7dc396e20f0efa59cad65d95d53ff1541d9ae807
treea1f4db9b7fbb941336c57ed70165663f9dbb030c
parentcc3cd79bc2050c45981d0c9d3efa7b7d27154eab
[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.

From-SVN: r228309
gcc/ChangeLog
gcc/config/rs6000/rs6000.c