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 debug/19192] [4.0 Regression] Current development gcc generates incorrect line info for example code


------- 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


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