[Bug tree-optimization/58956] [4.7/4.8/4.9 Regression] wrong code at -O1 and above (affecting gcc 4.6 to trunk)

2013-11-09 Thread mikpelinux at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58956

Mikael Pettersson mikpelinux at gmail dot com changed:

   What|Removed |Added

 CC||mikpelinux at gmail dot com

--- Comment #2 from Mikael Pettersson mikpelinux at gmail dot com ---
gcc 4.5.4 and 4.4.7 are also broken, but 4.3.6 is Ok.  Started with r142396.

The effect of that revision is that

{
  struct S *i = c;
  *i = foo ();

is compiled as if it had been written

{
  struct S tmp = foo ();
  *c = tmp;

which is wrong since foo may (and in this case does) change c.


[Bug tree-optimization/58956] [4.7/4.8/4.9 Regression] wrong code at -O1 and above (affecting gcc 4.6 to trunk)

2013-11-04 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58956

Richard Biener rguenth at gcc dot gnu.org changed:

   What|Removed |Added

   Keywords||wrong-code
   Target Milestone|--- |4.7.4


[Bug tree-optimization/58956] [4.7/4.8/4.9 Regression] wrong code at -O1 and above (affecting gcc 4.6 to trunk)

2013-11-01 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58956

Marek Polacek mpolacek at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2013-11-01
 CC||mpolacek at gcc dot gnu.org
Summary|wrong code at -O1 and above |[4.7/4.8/4.9 Regression]
   |(affecting gcc 4.6 to   |wrong code at -O1 and above
   |trunk)  |(affecting gcc 4.6 to
   ||trunk)
 Ever confirmed|0   |1

--- Comment #1 from Marek Polacek mpolacek at gcc dot gnu.org ---
Interesting.  Confirmed.