[Bug tree-optimization/23657] [4.1 Regression] Wrong code generated: too much optimized out

2005-08-31 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-31 
16:19 ---
Confirmed, between t41.copyrename2 and t42.dom2, the V_MAY_DEF is removed.
After
  *next_8 = 7;

Before:
  #   TMT.51_18 = V_MAY_DEF TMT.51_4;
  *dest_2 = 7;

I think we are forgetting to copy the alias info.
I think this is fixed by the patch for PR 23509:
http://gcc.gnu.org/ml/gcc-patches/2005-08/msg01647.html

The tree-cfg.c part that is.

-- 
   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
 Status|UNCONFIRMED |NEW
  Component|c   |tree-optimization
 Ever Confirmed||1
  GCC build triplet|i686-pc-linux-gnu   |
   GCC host triplet|i686-pc-linux-gnu   |
 GCC target triplet|i686-pc-linux-gnu   |
   Keywords||alias, wrong-code
   Last reconfirmed|-00-00 00:00:00 |2005-08-31 16:19:38
   date||
Summary|Wrong code generated: too   |[4.1 Regression] Wrong code
   |much optimized out  |generated: too much
   ||optimized out
   Target Milestone|--- |4.1.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23657


[Bug tree-optimization/23657] [4.1 Regression] Wrong code generated: too much optimized out

2005-08-31 Thread qrczak at knm dot org dot pl

--- Additional Comments From qrczak at knm dot org dot pl  2005-08-31 22:11 
---
 I think this is fixed by the patch for PR 23509:
 http://gcc.gnu.org/ml/gcc-patches/2005-08/msg01647.html

Indeed, applying this patch and recompiling gcc fixed the bug. Thanks.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23657


[Bug tree-optimization/23657] [4.1 Regression] Wrong code generated: too much optimized out

2005-08-31 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-31 
22:14 ---
(In reply to comment #2)
 Indeed, applying this patch and recompiling gcc fixed the bug. Thanks.

Thanks for trying the patch. I only thought about this patch because of the 
symptom was about the 
same as other bug was.

-- 
   What|Removed |Added

URL||http://gcc.gnu.org/ml/gcc-
   ||patches/2005-
   ||08/msg01647.html
   Keywords||patch


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23657


[Bug tree-optimization/23657] [4.1 Regression] Wrong code generated: too much optimized out

2005-08-31 Thread qrczak at knm dot org dot pl

--- Additional Comments From qrczak at knm dot org dot pl  2005-08-31 22:23 
---


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

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23657