[MIPS] Fix register renaming in the interrupt handlers.
authorRobert Suchanek <robert.suchanek@imgtec.com>
Tue, 18 Aug 2015 12:42:12 +0000 (12:42 +0000)
committerRobert Suchanek <rts@gcc.gnu.org>
Tue, 18 Aug 2015 12:42:12 +0000 (12:42 +0000)
commitec8a2131b6a1384c71a69eb0ca24b234621437b6
tree086a2c0a88767149b195b4a2fb6395acd370962c
parent7b008bbc0c4050da71786bb51de743964807aa44
[MIPS] Fix register renaming in the interrupt handlers.

gcc/
* config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
* config/mips/mips.c (mips_hard_regno_rename_ok): New function.
(mips_hard_regno_scratch_ok): Likewise.
(TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
* config/mips/mips.h (HARD_REGNO_RENAME_OK): New.

gcc/testsuite/
* gcc.target/mips/interrupt_handler-bug-1.c: New test.

From-SVN: r226968
gcc/ChangeLog
gcc/config/mips/mips-protos.h
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/interrupt_handler-bug-1.c [new file with mode: 0644]