OSDN Git Service

(constrain_operands): Properly handle '#' in constraint.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Mar 1994 20:17:55 +0000 (20:17 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Mar 1994 20:17:55 +0000 (20:17 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6704 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/recog.c

index b3ae350..1072fe9 100644 (file)
@@ -1,5 +1,5 @@
 /* Subroutines used by or related to instruction recognition.
-   Copyright (C) 1987, 1988, 1991, 1992, 1993 Free Software Foundation, Inc.
+   Copyright (C) 1987, 88, 91, 92, 93, 1994 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -1658,12 +1658,18 @@ constrain_operands (insn_code_num, strict)
            switch (c)
              {
              case '?':
-             case '#':
              case '!':
              case '*':
              case '%':
                break;
 
+             case '#':
+               /* Ignore rest of this alternative as far as
+                  constraint checking is concerned.  */
+               while (*p && *p != ',')
+                 p++;
+               break;
+
              case '=':
                op_types[opno] = OP_OUT;
                break;