re PR target/38052 (genautomata segfaults when -O2 is enabled)
authorRichard Sandiford <rdsandiford@googlemail.com>
Sun, 16 Nov 2008 20:31:13 +0000 (20:31 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sun, 16 Nov 2008 20:31:13 +0000 (20:31 +0000)
commit7cc003b5c2ebc9b2573ab75fc1a18874c7288b63
treebdc35ba9036ef04b4c9475e0971bd8161b85eaf8
parent8d9d9172904ef71ad7edc1f3ee3bb725dc294948
re PR target/38052 (genautomata segfaults when -O2 is enabled)

gcc/
PR target/38052
* config/mips/mips.c (mips_cfun_call_saved_reg_p)
(mips_cfun_might_clobber_call_saved_reg_p): New functions,
split out from...
(mips_save_reg_p): ...here.  Always consult TARGET_CALL_SAVED_GP
rather than call_really_used_regs when handling $gp.

From-SVN: r141926
gcc/ChangeLog
gcc/config/mips/mips.c