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/14048] [regression tree-ssa] bad debug line numbers near "return" statement, c++


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


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