rs6000: Another PIC LRA fix
commitc27fc6317e81281be31c1dd3de799a4cbd7bffa1
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 31 Oct 2015 19:48:19 +0000 (31 19:48 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 31 Oct 2015 19:48:19 +0000 (31 19:48 +0000)
tree8ccfe01cf58b4bf612178e510cc766ad8849e430
parent7185e92b45c2d5f3781cb91648ffb7d2d7ed4086
rs6000: Another PIC LRA fix

This one for TARGET_TOC && TARGET_MINIMAL_TOC.  Without it, r30 is not
saved in the prologue for functions that do not use r30, but the register
is set later in the prologue anyhow.  This made all java tests fail.

2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>

* config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
live as for using it elsewhere, for TARGET_MINIMAL_TOC.

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