genattrtab.c (write_eligible_delay): Verify DELAY_INSN still has a delay slot in the generated code.

* genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
	has a delay slot in the generated code.

From-SVN: r246879
This commit is contained in:
Jeff Law 2017-04-12 10:08:18 -06:00 committed by Jeff Law
parent e1abef483e
commit 988ed78513
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2017-04-12 Jeff Law <law@redhat.com>
* genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
has a delay slot in the generated code.
* config/cris/cris.md (cris_preferred_reload_class): Return
GENNONACR_REGS rather than GENERAL_REGS.

View File

@ -4416,6 +4416,9 @@ write_eligible_delay (FILE *outf, const char *kind)
fprintf (outf, "{\n");
fprintf (outf, " rtx_insn *insn ATTRIBUTE_UNUSED;\n");
fprintf (outf, "\n");
fprintf (outf, " if (num_delay_slots (delay_insn) == 0)\n");
fprintf (outf, " return 0;");
fprintf (outf, "\n");
fprintf (outf, " gcc_assert (slot < %d);\n", max_slots);
fprintf (outf, "\n");
/* Allow dbr_schedule to pass labels, etc. This can happen if try_split