[Bug debug/19192] [4.0 Regression] Current development gcc generates incorrect line info for example code

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Jan 2 06:08:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-02 06:08 -------
With TER:
  [t.c : 8] D.1144 = [t.c : 8] add2 (3, 4);
  [t.c : 13] printf (&"%d\n"[0], D.1144 + 2) [tail call];
  [t.c : 14] return;
Without:
  [t.c : 8] D.1144 = [t.c : 8] add2 (3, 4);
  [t.c : 8] D.1124 = D.1144 + 2;
  [t.c : 13] printf (&"%d\n"[0], D.1124) [tail call];
  [t.c : 14] return;

In a way we cannot say the addition is on line 8 because we already optimizated before.

-- 


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



More information about the Gcc-bugs mailing list