Commit 9921417d by Richard Sandiford Committed by Richard Sandiford

gencodes.c (main): Make LAST_INSN_CODE higher than any insn code, rather than…

gencodes.c (main): Make LAST_INSN_CODE higher than any insn code, rather than any named insn's code.

gcc/
	* gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
	rather than any named insn's code.

From-SVN: r210963
parent d9f99ec4
2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
* gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
rather than any named insn's code.
2014-05-27 Georg-Johann Lay <avr@gjlay.de>
PR libgcc/61152
......
......@@ -50,6 +50,7 @@ int
main (int argc, char **argv)
{
rtx desc;
int last = 1;
progname = "gencodes";
......@@ -82,13 +83,16 @@ enum insn_code {\n\
break;
if (GET_CODE (desc) == DEFINE_INSN || GET_CODE (desc) == DEFINE_EXPAND)
gen_insn (desc, insn_code_number);
{
gen_insn (desc, insn_code_number);
last = insn_code_number + 1;
}
}
puts (" LAST_INSN_CODE\n\
printf (" LAST_INSN_CODE = %d\n\
};\n\
\n\
#endif /* GCC_INSN_CODES_H */");
#endif /* GCC_INSN_CODES_H */\n", last);
if (ferror (stdout) || fflush (stdout) || fclose (stdout))
return FATAL_EXIT_CODE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment