This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/14048] [regression tree-ssa] bad debug line numbers near "return" statement, c++
- From: "rth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Feb 2004 11:58:52 -0000
- Subject: [Bug debug/14048] [regression tree-ssa] bad debug line numbers near "return" statement, c++
- References: <20040206144410.14048.mec.gnu@mindspring.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rth at gcc dot gnu dot org 2004-02-27 11:58 -------
I can fix this for some, but not all, instances. For
A a;
if (p)
return 0;
if (q)
return 1;
there are two return statements. At -O0, there will only be one instance of the
destructor for "a". What line should it be indicated for? It can't have line
numbers for both return statements. Seems to me that the declaration line for "a"
is as good as any...
At -O2 we will ususally copy the destructor calls. However, if the destructor
gets inlined, and is large enough, then we won't duplicate it there either.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rth at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-02-27 11:58:51
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14048