Commit e1ea7451 by Nick Clifton Committed by Nick Clifton

mcore.h (REGNO_REG_CLASS): Do not index beyond the end of the regno_reg_class array.

	* config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
	end of the regno_reg_class array.

From-SVN: r173015
parent 5c2f94b4
2011-04-27 Nick Clifton <nickc@redhat.com>
* config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
end of the regno_reg_class array.
2011-04-27 Jakub Jelinek <jakub@redhat.com>
PR c/48742
......
......@@ -357,7 +357,7 @@ enum reg_class
or could index an array. */
extern const enum reg_class regno_reg_class[FIRST_PSEUDO_REGISTER];
#define REGNO_REG_CLASS(REGNO) regno_reg_class[REGNO]
#define REGNO_REG_CLASS(REGNO) ((REGNO) < FIRST_PSEUDO_REGISTER ? regno_reg_class[REGNO] : NO_REGS)
/* When this hook returns true for MODE, the compiler allows
registers explicitly used in the rtl to be used as spill registers
......
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