[Bug tree-optimization/86835] [8 Regression] Bogus "is used uninitialized" warning with -ffast-math

2018-09-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86835

Jakub Jelinek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #8 from Jakub Jelinek  ---
Fixed for 8.3+ too.

[Bug tree-optimization/86835] [8 Regression] Bogus "is used uninitialized" warning with -ffast-math

2018-09-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86835

--- Comment #7 from Jakub Jelinek  ---
Author: jakub
Date: Wed Sep  5 07:21:15 2018
New Revision: 264106

URL: https://gcc.gnu.org/viewcvs?rev=264106&root=gcc&view=rev
Log:
Backported from mainline
2018-08-11  Jakub Jelinek  

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.

Added:
branches/gcc-8-branch/gcc/testsuite/gcc.dg/pr86835.c
Modified:
branches/gcc-8-branch/gcc/ChangeLog
branches/gcc-8-branch/gcc/testsuite/ChangeLog
branches/gcc-8-branch/gcc/tree-ssa-math-opts.c

[Bug tree-optimization/86835] [8 Regression] Bogus "is used uninitialized" warning with -ffast-math

2018-08-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86835

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug tree-optimization/86835] [8 Regression] Bogus "is used uninitialized" warning with -ffast-math

2018-08-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86835

Jakub Jelinek  changed:

   What|Removed |Added

Summary|[8/9 Regression] Bogus "is  |[8 Regression] Bogus "is
   |used uninitialized" warning |used uninitialized" warning
   |with -ffast-math|with -ffast-math

--- Comment #6 from Jakub Jelinek  ---
Fixed on the trunk so far.