Commit 1ddb342a by Richard Kenner

(record_reg_classes): Skip to next alternative when we skip normal

cost computation.

From-SVN: r5561
parent 4d1a011f
/* Compute register class preferences for pseudo-registers. /* 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. This file is part of GNU CC.
...@@ -1002,7 +1002,12 @@ record_reg_classes (n_alts, n_ops, ops, modes, constraints, insn) ...@@ -1002,7 +1002,12 @@ record_reg_classes (n_alts, n_ops, ops, modes, constraints, insn)
alt_cost += 2; alt_cost += 2;
/* This is in place of ordinary cost computation /* 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; continue;
} }
} }
......
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