aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGraham Stott <grahams@redhat.com>2001-11-02 10:52:08 +0000
committerGraham Stott <grahams@gcc.gnu.org>2001-11-02 10:52:08 +0000
commitf5a5ea4a9d3736e528a9dde2caf66d0ecdcbfcc1 (patch)
treea074b0f5dc0101243ea018c8e34a4d06b06b407b /gcc
parent331f9c78890901a80956cc50ab3f1c40c5ed2054 (diff)
downloadgcc-f5a5ea4a9d3736e528a9dde2caf66d0ecdcbfcc1.zip
gcc-f5a5ea4a9d3736e528a9dde2caf66d0ecdcbfcc1.tar.gz
gcc-f5a5ea4a9d3736e528a9dde2caf66d0ecdcbfcc1.tar.bz2
* recog.c (decode_asm_operands): Check that the SRC is ASM_OPERANDS.
From-SVN: r46713
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/recog.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 571df09..45b5f19 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2001-11-02 Graham Stott <grahams@redhat.com>
+
+ * recog.c (decode_asm_operands): Check that the SRC is ASM_OPERANDS.
+
2001-11-01 Eric Christopher <echristo@redhat.com>
* config.gcc: Revert part of earlier patch.
diff --git a/gcc/recog.c b/gcc/recog.c
index 265ce3f..49d0cd9 100644
--- a/gcc/recog.c
+++ b/gcc/recog.c
@@ -1554,7 +1554,8 @@ decode_asm_operands (body, operands, operand_locs, constraints, modes)
template = ASM_OPERANDS_TEMPLATE (asmop);
}
else if (GET_CODE (body) == PARALLEL
- && GET_CODE (XVECEXP (body, 0, 0)) == SET)
+ && GET_CODE (XVECEXP (body, 0, 0)) == SET
+ && GET_CODE (SET_SRC (XVECEXP (body, 0, 0))) == ASM_OPERANDS)
{
rtx asmop = SET_SRC (XVECEXP (body, 0, 0));
int nparallel = XVECLEN (body, 0); /* Includes CLOBBERs. */