aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-01-31 05:14:10 +0000
committerRichard Stallman <rms@gnu.org>1992-01-31 05:14:10 +0000
commit4db18574822dcfa3ba6307e24dbf5938782d0292 (patch)
treec511a653c74e7b9b167214936b05e2a7f211ea9e /gcc
parentff57c94ea842e90d47db3a483c99b5fe6338c627 (diff)
downloadgcc-4db18574822dcfa3ba6307e24dbf5938782d0292.zip
gcc-4db18574822dcfa3ba6307e24dbf5938782d0292.tar.gz
gcc-4db18574822dcfa3ba6307e24dbf5938782d0292.tar.bz2
*** empty log message ***
From-SVN: r258
Diffstat (limited to 'gcc')
-rw-r--r--gcc/regclass.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c
index 76df1e4..5a4d72f 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: