2016-10-01 Richard Biener <rguenther@suse.de>
commitc9e875f1f39130d95112529c6108a5316603d372
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Oct 2016 14:34:18 +0000 (1 14:34 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Oct 2016 14:34:18 +0000 (1 14:34 +0000)
tree950d06aa812fb57babca263e710c574a544041eb
parent77daf8b6d244ba7564912db9b58f266742531576
2016-10-01  Richard Biener  <rguenther@suse.de>

PR middle-end/77798
* genmatch.c (get_operand_type): Add operand position arg
and handle COND_EXPR comparison operand with fixed boolean_type_node.
(expr::gen_transform): Adjust.
(dt_simplify::gen_1): Likewise.

* gfortran.fortran-torture/compile/pr77798.f90: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240696 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/genmatch.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.fortran-torture/compile/pr77798.f90 [new file with mode: 0644]