diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2004-08-13 06:36:21 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2004-08-13 06:36:21 +0000 |
commit | 47d2cee50d64825872e97186da5a683dcabb5943 (patch) | |
tree | 6bcc0c4a0000dbc6ed0bd19b245971600293fbae /gcc/genrecog.c | |
parent | 8fe75e43623a88a049f0f33191fdffce583a69c3 (diff) | |
download | gcc-47d2cee50d64825872e97186da5a683dcabb5943.tar.gz |
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
Diffstat (limited to 'gcc/genrecog.c')
-rw-r--r-- | gcc/genrecog.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc/genrecog.c b/gcc/genrecog.c index f3c052c4fbe..c1d559ffe74 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -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]; - code = pred->singleton; + 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. */ |