[Bug middle-end/69578] -Wuninitialized not issuing warning.

2018-09-10 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69578

Manuel López-Ibáñez  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||manu at gcc dot gnu.org
 Resolution|--- |DUPLICATE

--- Comment #5 from Manuel López-Ibáñez  ---
Original report is PR18501.

Comment #4 is PR54554.

*** This bug has been marked as a duplicate of bug 18501 ***

[Bug middle-end/69578] -Wuninitialized not issuing warning.

2018-09-09 Thread selinger at mathstat dot dal.ca
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69578

Peter Selinger  changed:

   What|Removed |Added

 CC||selinger at mathstat dot dal.ca

--- Comment #4 from Peter Selinger  ---
I ran into the same bug with this code:

double weight() {
  double sum;
  int i;

  for (i=0; i<10; i++) {
sum++;
  }
  return sum;
}

With -Wuninitialized or -Wmaybe-uninitialized, no warning is generated with
-O0. The warning is generated with -O1, -O2, -O3. Other compilers (such as
clang) generate the warning correctly.

Confirmed with gcc 8.2.0.

[Bug middle-end/69578] -Wuninitialized not issuing warning.

2017-03-29 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69578

--- Comment #3 from Marc Glisse  ---
It is a dup of all the uninit PRs caused by CCP turning PHI into X
(X=10 here).

[Bug middle-end/69578] -Wuninitialized not issuing warning.

2017-03-29 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69578

Martin Sebor  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-03-29
 CC||msebor at gcc dot gnu.org
 Ever confirmed|0   |1
  Known to fail||5.3.1, 6.3.0, 7.0

--- Comment #2 from Martin Sebor  ---
Confirmed with the top of trunk (7.0).