This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/23282] [4.0 Regression] wrong results at -O on x86


------- Additional Comments From steven at gcc dot gnu dot org  2005-08-08 08:44 -------
GCC 4.0.2 (CVS) does this:  
  
ivcanon dump:  
  
  # b_9 = PHI <b_3(1)>;  
<L2>:;  
  if (b_9 != -1) goto <L3>; else goto <L4>;  
  
<L3>:;  
  printf (&"%d\n"[0], b_9);  
  abort ();  
  
  
.ivopts dump:  
  # b_9 = PHI <b_3(1)>;  
<L2>:;  
  if (b_9 != -1) goto <L3>; else goto <L4>;  
  
<L3>:;  
  printf (&"%d\n"[0], b_9);  
  abort ();  
  
  
Looks like final value replacement screws up.  
  

-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]