summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-scopedtables.h
diff options
context:
space:
mode:
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-29 19:27:22 +0000
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-29 19:27:22 +0000
commit41c3cc7c2c643e90c72e3adaf52d5e170d501582 (patch)
tree4509a7d217deb143bc5f01ad664e9db7f7408540 /gcc/tree-ssa-scopedtables.h
parent556c2dd1a3c70cc3d285539b84eea31143005a91 (diff)
downloadgcc-41c3cc7c2c643e90c72e3adaf52d5e170d501582.tar.gz
rs6000: Save the PIC reg when needed
The PIC reg (r30) needs to be saved whenever the prologue sets it up, not just if it is used elsewhere in the function. Without this patch the prologue for such a function will modify r30 without saving it first, leading to disaster back in its callers. This happened in the testsuite for -m32 libgfortran and libstdc++, bootstrapped with -mlra, many hundred times. 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org> * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this function earlier in the file. (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of df_regs_ever_live_p. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229552 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-scopedtables.h')
0 files changed, 0 insertions, 0 deletions