This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
record_reg_classes 'p' constraint
- To: Jeffrey Law <law at cygnus dot com>, Jim Wilson <wilson at cygnus dot com>
- Subject: record_reg_classes 'p' constraint
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Tue, 19 Jan 1999 13:18:22 -0500
- Cc: egcs-patches at cygnus dot com
I think that record_reg_classes needs something like the following
to set "win" for valid addresses matching 'p' constraint.
David
* regclass (record_reg_classes, 'p'): Win if valid address.
Index: regclass.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/regclass.c,v
retrieving revision 1.49
diff -c -p -r1.49 regclass.c
*** regclass.c 1999/01/18 06:17:18 1.49
--- regclass.c 1999/01/19 18:15:39
*************** record_reg_classes (n_alts, n_ops, ops,
*** 1262,1268 ****
--- 1262,1271 ----
case '!': case '#': case '&':
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
+ break;
+
case 'p':
+ win = address_operand (op, GET_MODE (op));
break;
case 'm': case 'o': case 'V':