genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as the source of a set operation.

* genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
	the source of a set operation.

From-SVN: r146757
This commit is contained in:
Ben Elliston 2009-04-25 04:51:34 +00:00 committed by Ben Elliston
parent e6ff3083a0
commit 23750d7fe4
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-04-25 Ben Elliston <bje@au.ibm.com>
* genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
the source of a set operation.
2009-04-25 Anatoly Sokolov <aesok@post.ru>
* target.h (struct gcc_target): Add case_values_threshold field.

View file

@ -793,7 +793,8 @@ validate_pattern (rtx pattern, rtx insn, rtx set, int set_code)
&& GET_CODE (dest) != CC0
&& GET_CODE (src) != PC
&& GET_CODE (src) != CC0
&& GET_CODE (src) != CONST_INT)
&& GET_CODE (src) != CONST_INT
&& GET_CODE (src) != CALL)
{
const char *which;
which = (dmode == VOIDmode ? "destination" : "source");