diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-10 18:28:51 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-10 18:28:51 +0000 |
commit | 4e6f14e40591122089b177324b39396238697238 (patch) | |
tree | a966be032d47a0fad7297b18e1a8cdc10e4f0a24 /gcc/genrecog.c | |
parent | 1c3c920abf911c65b424bd7d8eb72895be869ff3 (diff) | |
download | gcc-4e6f14e40591122089b177324b39396238697238.tar.gz |
gcc/
* genrecog.c (validate_pattern): Treat all messages except missing
modes as errors.
* config/epiphany/epiphany.md: Remove constraints from
define_peephole2s.
* config/h8300/h8300.md: Remove constraints from define_splits.
* config/msp430/msp430.md: Likewise.
* config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
nonimmediate_operand rather than general_operand for operand 0.
* config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
* config/pdp11/predicates.md (float_operand, float_nonimm_operand):
Use match_operator rather than match_test to invoke general_operand.
* config/v850/v850.md (*movqi_internal, *movhi_internal)
(*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205870 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genrecog.c')
-rw-r--r-- | gcc/genrecog.c | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/gcc/genrecog.c b/gcc/genrecog.c index 814be7d17e3..663ab601674 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -457,9 +457,8 @@ validate_pattern (rtx pattern, rtx insn, rtx set, int set_code) { pred = lookup_predicate (pred_name); if (!pred) - message_with_line (pattern_lineno, - "warning: unknown predicate '%s'", - pred_name); + error_with_line (pattern_lineno, "unknown predicate '%s'", + pred_name); } else pred = 0; @@ -477,9 +476,9 @@ validate_pattern (rtx pattern, rtx insn, rtx set, int set_code) || GET_CODE (insn) == DEFINE_PEEPHOLE2) { if (constraints0) - message_with_line (pattern_lineno, - "warning: constraints not supported in %s", - rtx_name[GET_CODE (insn)]); + error_with_line (pattern_lineno, + "constraints not supported in %s", + rtx_name[GET_CODE (insn)]); } /* A MATCH_OPERAND that is a SET should have an output reload. */ @@ -510,10 +509,9 @@ validate_pattern (rtx pattern, rtx insn, rtx set, int set_code) while not likely to occur at runtime, results in less efficient code from insn-recog.c. */ if (set && pred && pred->allows_non_lvalue) - message_with_line (pattern_lineno, - "warning: destination operand %d " - "allows non-lvalue", - XINT (pattern, 0)); + error_with_line (pattern_lineno, + "destination operand %d allows non-lvalue", + XINT (pattern, 0)); /* A modeless MATCH_OPERAND can be handy when we can check for multiple modes in the c_test. In most other cases, it is a @@ -781,16 +779,16 @@ add_to_sequence (rtx pattern, struct decision_head *last, 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); + error_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)); + error_with_line (pattern_lineno, + "unknown predicate '%s' in '%s' expression", + pred_name, GET_RTX_NAME (was_code)); } /* Can't enforce a mode if we allow const_int. */ |