This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/36748] scev const-prop pass adds bad line numbers
- From: "drow at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Dec 2008 15:18:56 -0000
- Subject: [Bug debug/36748] scev const-prop pass adds bad line numbers
- References: <bug-36748-3264@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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