From ae9c5250740efd9f9932dc37f3a781bd8944d098 Mon Sep 17 00:00:00 2001 From: kenner Date: Sun, 6 Mar 1994 20:17:55 +0000 Subject: [PATCH] (constrain_operands): Properly handle '#' in constraint. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6704 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/recog.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/recog.c b/gcc/recog.c index b3ae3507095..1072fe93ef7 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -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; -- 2.11.0