This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/19192] [4.0 Regression] Current development gcc generates incorrect line info for example code
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jan 2005 06:08:02 -0000
- Subject: [Bug debug/19192] [4.0 Regression] Current development gcc generates incorrect line info for example code
- References: <20041229174155.19192.fnf@specifixinc.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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