aboutsummaryrefslogtreecommitdiff
path: root/gcc/genrecog.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-10-06 12:24:28 -0700
committerRichard Henderson <rth@gcc.gnu.org>1999-10-06 12:24:28 -0700
commit2224ac3c4ed6786a379aecdbfb780e4faa914c40 (patch)
tree8a3c6f9495116719721b54eecccfcb1ad2aec18d /gcc/genrecog.c
parentd3a3fb6addab369c21d9e996634ca0ff70a63cb7 (diff)
downloadgcc-2224ac3c4ed6786a379aecdbfb780e4faa914c40.zip
gcc-2224ac3c4ed6786a379aecdbfb780e4faa914c40.tar.gz
gcc-2224ac3c4ed6786a379aecdbfb780e4faa914c40.tar.bz2
genrecog.c (add_to_sequence): Verify operand to label_ref is VOIDmode.
* genrecog.c (add_to_sequence): Verify operand to label_ref is VOIDmode. From-SVN: r29844
Diffstat (limited to 'gcc/genrecog.c')
-rw-r--r--gcc/genrecog.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/genrecog.c b/gcc/genrecog.c
index 9ba3889..c3172f5 100644
--- a/gcc/genrecog.c
+++ b/gcc/genrecog.c
@@ -540,10 +540,17 @@ add_to_sequence (pattern, last, position, insn_type, top)
fputc ('\n', stderr);
fatal ("mode mismatch in SET");
}
-
- /* Everything else is standard. */
break;
+ case LABEL_REF:
+ if (GET_MODE (XEXP (pattern, 0)) != VOIDmode)
+ {
+ print_rtl (stderr, pattern);
+ fputc ('\n', stderr);
+ fatal ("operand to LABEL_REF not VOIDmode");
+ }
+ break;
+
default:
break;
}