From 6d337bba2dd69139437f03298cc5c0e6bdb80aca Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Tue, 9 Mar 1993 00:11:33 +0000 Subject: [PATCH] (record_asm_reg_life): Cast class to int for indexing. From-SVN: r3682 --- gcc/reg-stack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index ee05b46503f..731a9487e7e 100644 --- a/gcc/reg-stack.c +++ b/gcc/reg-stack.c @@ -817,7 +817,7 @@ record_asm_reg_life (insn, regstack, operands, constraints, bzero (reg_used_as_output, sizeof (reg_used_as_output)); for (i = 0; i < n_outputs; i++) if (STACK_REG_P (operands[i])) - if (reg_class_size[operand_class[i]] != 1) + if (reg_class_size[(int) operand_class[i]] != 1) { error_for_asm (insn, "Output constraint %d must specify a single register", i); -- 2.30.2