diff options
author | Tom Wood <wood@gnu.org> | 1992-03-05 20:07:30 +0000 |
---|---|---|
committer | Tom Wood <wood@gnu.org> | 1992-03-05 20:07:30 +0000 |
commit | e5c90c23e250db46bbb880af6daf0fcd8d67962b (patch) | |
tree | d3908563298a74e34cac5c144200cf38331cb318 /gcc/regclass.c | |
parent | bf4400c2e6915a4ca437a3932575f92b08b46647 (diff) | |
download | gcc-e5c90c23e250db46bbb880af6daf0fcd8d67962b.tar.gz |
*** empty log message ***
From-SVN: r395
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r-- | gcc/regclass.c | 16 |
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; } } |