[Bug debug/36748] scev const-prop pass adds bad line numbers

drow at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Dec 6 15:20:00 GMT 2008



------- Comment #3 from drow at gcc dot gnu dot org  2008-12-06 15:18 -------
I tried 4.4.0 20081130; it does not look fixed.

<bb 8>:
  # mult_acc.14_40 = PHI <mult_acc.14_17(6)>
  [break.c : 12] D.2737_41 = value_13 + -1;
  [break.c : 12] D.2738_42 = (unsigned int) D.2674_12;
  [break.c : 12] D.2739_43 = 2 - D.2738_42;
  [break.c : 12] D.2740_44 = (int) D.2739_43;
  value_39 = D.2737_41 + D.2740_44;

There are no references to code on line 13 or 25, which are the opening braces.
 But those lines are now associated with line 12 and 24, which are the
declarations of main and factorial respectively.  The references are still
introduced by scev.


-- 


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



More information about the Gcc-bugs mailing list