From 4db18574822dcfa3ba6307e24dbf5938782d0292 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Fri, 31 Jan 1992 05:14:10 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r258 --- gcc/regclass.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/regclass.c b/gcc/regclass.c index 76df1e486ef..5a4d72fe4a1 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -718,7 +718,11 @@ reg_class_record (op, opno, constraints) case '4': /* If constraint says "match another operand", use that operand's constraint to choose preferences. */ - next = constraints[*p - '0']; + if (*p - '0' < opno) + { + opno = *p - '0'; + next = constraints[opno]; + } break; default: -- 2.30.2