]> gcc.gnu.org Git - gcc.git/commit
Fix tree_simple_nonnegative_warnv_p for VECTOR_TYPEs
authorRichard Biener <rguenther@suse.de>
Fri, 23 Jun 2023 08:12:24 +0000 (10:12 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 23 Jun 2023 09:23:57 +0000 (11:23 +0200)
commit4f2fcf21d4c939831c299cb884cbeaca1d33fa8e
tree53496be0e8b861bdd5ab1e3f7b20810274c80f68
parent4127e0f3313c961b4b4e5efad85a25c40c2510c2
Fix tree_simple_nonnegative_warnv_p for VECTOR_TYPEs

tree_simple_nonnegative_warnv_p ends up being called on VECTOR_TYPEs
which I think even gets the wrong answer here for tcc_comparison
since vector bools are signed.  The following properly guards
that with !VECTOR_TYPE_P.

* fold-const.cc (tree_simple_nonnegative_warnv_p): Guard
the truth_value_p case with !VECTOR_TYPE_P.
gcc/fold-const.cc
This page took 0.057496 seconds and 6 git commands to generate.