This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [PATCH][MIPS] Fix register renaming in the interrupt handlers


Hi,

> > 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.
> > ---
> 
> Based on the feedback from Richard and Mike, this looks OK now.
> Thanks,
> Catherine

Committed as r226968.

I slightly modified the test to search for "^isr:.*\\\$8.*isr"
instead of just "\\\$8" as with the ToT compiler 2 tests failed with -flto.
It happened that $8 appeared in the LTO bytecode. Changed as obvious.

Regards,
Robert


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]