]> git.ipfire.org Git - thirdparty/gcc.git/commit
Evaluate condition arguments with the correct type.
authorAndrew MacLeod <amacleod@redhat.com>
Mon, 8 Aug 2022 19:13:51 +0000 (15:13 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Mon, 8 Aug 2022 20:08:51 +0000 (16:08 -0400)
commitef623bb58594958a7959f8f031f65a50eb0e5890
tree857027e0fbb693afd507c6c34169a3802ba036c8
parent053876cdbe8057210e6f4da4eec2df58f92ccd4c
Evaluate condition arguments with the correct type.

Processing of a cond_expr requires that a range of the correct type for the
operands of the cond_expr is passed in.

PR tree-optimization/106556
gcc/
* gimple-range-gori.cc (gori_compute::condexpr_adjust): Use the
  type of the cond_expr operands being evaluted.

gcc/testsuite/
* gfortran.dg/pr106556.f90: New.
gcc/gimple-range-gori.cc
gcc/testsuite/gfortran.dg/pr106556.f90 [new file with mode: 0644]