re PR tree-optimization/86835 (Bogus "is used uninitialized" warning with -ffast...
authorJakub Jelinek <jakub@redhat.com>
Sat, 11 Aug 2018 11:29:12 +0000 (13:29 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 11 Aug 2018 11:29:12 +0000 (13:29 +0200)
commit8be591a9cd557be85e591a0362d220d84c296bd4
treee26d90f847d8519eda7b00b95cefd1491a045b12
parentfc186cbd1cdff6cecdb8eb0a350c3ee0af2d1332
re PR tree-optimization/86835 (Bogus "is used uninitialized" warning with -ffast-math)

PR tree-optimization/86835
* tree-ssa-math-opts.c (insert_reciprocals): Even when inserting
new_stmt after def_gsi, make sure to insert new_square_stmt after
that stmt, not 2 stmts before it.

* gcc.dg/pr86835.c: New test.

From-SVN: r263487
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr86835.c [new file with mode: 0644]
gcc/tree-ssa-math-opts.c