Commit 47d2cee5 by Zack Weinberg

genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL...

	* genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
	if pred->singleton != PARALLEL, issue a warning and pretend it was.
	Also issue a warning for any predicate we don't know about.

From-SVN: r85933
parent 8fe75e43
2004-08-12 Zack Weinberg <zack@codesourcery.com>
* genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
if pred->singleton != PARALLEL, issue a warning and pretend it was.
Also issue a warning for any predicate we don't know about.
2004-08-12 Richard Henderson <rth@redhat.com>
* config/i386/i386.c (internal_label_prefix): Export.
......
......@@ -974,8 +974,18 @@ add_to_sequence (rtx pattern, struct decision_head *last, const char *position,
{
test->u.pred.data = pred;
allows_const_int = pred->codes[CONST_INT];
if (was_code == MATCH_PARALLEL
&& pred->singleton != PARALLEL)
message_with_line (pattern_lineno,
"predicate '%s' used in match_parallel "
"does not allow only PARALLEL", pred->name);
else
code = pred->singleton;
}
else
message_with_line (pattern_lineno,
"warning: unknown predicate '%s' in '%s' expression",
pred_name, GET_RTX_NAME (was_code));
}
/* Can't enforce a mode if we allow const_int. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment