From 1ddb342ad7b20c56b38ad4319f937d2d62c95841 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 2 Oct 1993 14:09:01 -0400 Subject: (record_reg_classes): Skip to next alternative when we skip normal cost computation. From-SVN: r5561 --- gcc/regclass.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'gcc/regclass.c') diff --git a/gcc/regclass.c b/gcc/regclass.c index 47da72f..be78332 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -1,5 +1,5 @@ /* Compute register class preferences for pseudo-registers. - Copyright (C) 1987, 1988, 1991, 1992 Free Software Foundation, Inc. + Copyright (C) 1987, 1988, 1991, 1992, 1993 Free Software Foundation, Inc. This file is part of GNU CC. @@ -1002,7 +1002,12 @@ record_reg_classes (n_alts, n_ops, ops, modes, constraints, insn) alt_cost += 2; /* This is in place of ordinary cost computation - for this operand. */ + for this operand, so skip to the end of the + alternative (should be just one character). */ + while (*p && *p++ != ',') + ; + + constraints[i] = p; continue; } } -- cgit v1.1