summaryrefslogtreecommitdiff
path: root/gcc/regclass.c
diff options
context:
space:
mode:
authorTom Wood <wood@gnu.org>1992-03-05 20:07:30 +0000
committerTom Wood <wood@gnu.org>1992-03-05 20:07:30 +0000
commite5c90c23e250db46bbb880af6daf0fcd8d67962b (patch)
treed3908563298a74e34cac5c144200cf38331cb318 /gcc/regclass.c
parentbf4400c2e6915a4ca437a3932575f92b08b46647 (diff)
downloadgcc-e5c90c23e250db46bbb880af6daf0fcd8d67962b.tar.gz
*** empty log message ***
From-SVN: r395
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r--gcc/regclass.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c
index 5a4d72fe4a1..544d78e2379 100644
--- a/gcc/regclass.c
+++ b/gcc/regclass.c
@@ -326,18 +326,14 @@ fix_register (name, fixed, call_used)
/* Decode the name and update the primary form of
the register info. */
- for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
- if (reg_names[i][0] && ! strcmp (reg_names[i], name))
- {
- fixed_regs[i] = fixed;
- call_used_regs[i] = call_used;
- break;
- }
-
- if (i == FIRST_PSEUDO_REGISTER)
+ if ((i = decode_reg_name (name)) >= 0)
+ {
+ fixed_regs[i] = fixed;
+ call_used_regs[i] = call_used;
+ }
+ else
{
warning ("unknown register name: %s", name);
- return;
}
}