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
This commit is contained in:
Richard Henderson 1999-10-06 12:24:28 -07:00 committed by Richard Henderson
parent d3a3fb6add
commit 2224ac3c4e
2 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Wed Oct 6 12:22:50 1999 Richard Henderson <rth@cygnus.com>
* genrecog.c (add_to_sequence): Verify operand to label_ref is
VOIDmode.
Wed Oct 6 10:21:15 1999 Richard Henderson <rth@cygnus.com>
* genconfig.c (main): Disable HAVE_conditional_arithmetic.

View File

@ -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;
}