Let tree_single_nonzero_warnv_p use range information
authorMarc Glisse <marc.glisse@inria.fr>
Tue, 25 Apr 2017 06:51:44 +0000 (08:51 +0200)
committerMarc Glisse <glisse@gcc.gnu.org>
Tue, 25 Apr 2017 06:51:44 +0000 (06:51 +0000)
commitbb0249cbb7500772af1bfcc68f8929d60f6cb51f
treee90536cb0cd55db656121748d26aa28fc47667d9
parent452e929aae6965414b9fd85c23de7cd57e9f174b
Let tree_single_nonzero_warnv_p use range information

2017-04-25  Marc Glisse  <marc.glisse@inria.fr>

gcc/
* fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.

gcc/testsuite/
* gcc.dg/tree-ssa/cmpmul-1.c: New file.
* gcc.dg/Wstrict-overflow-18.c: Xfail.

From-SVN: r247123
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wstrict-overflow-18.c
gcc/testsuite/gcc.dg/tree-ssa/cmpmul-1.c [new file with mode: 0644]