diff options
author | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-25 04:51:34 +0000 |
---|---|---|
committer | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-25 04:51:34 +0000 |
commit | 84e907aa01ec118397983eaa94882c5f6361b611 (patch) | |
tree | bf36d7aeb3b533a7070a8e5d2142e5d6b92f1783 /gcc | |
parent | 906bb5c363f525c69bf1611dc6489036796cd154 (diff) | |
download | gcc-84e907aa01ec118397983eaa94882c5f6361b611.tar.gz |
* genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
the source of a set operation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146757 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/genrecog.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3af998b3c33..9ebf110e982 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/genrecog.c b/gcc/genrecog.c index 02006e2af9c..b52baca038e 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -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"); |