Development

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Unnecessary debug info for unused consts in C++

    0 answers - 1118 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Comment #9 from drow at gcc dot gnu dot org 2006-07-22 19:39
    Ian, could you say why you think that patch is responsible? I wonder if your
    testcase would behave any differently on either side of the patch; it might be
    something different taking up all the space.
    I think the situation is simpler, and harder to fix. The debug generators make
    decisions based on TREE_USED. TREE_USED is set in many cases during parsing;
    but of course we parse more functions than we necessarily emit. As long as we
    commit to outputing a particular piece of debug information during parsing
    we're going to have this problem.
    beg gets its mark_used during finish_id_expression, called during parsing of
    c::foo.
    I don't see any way to solve this without replacing TREE_USED at parse time
    with a set of hash tables attached to far too many objects, reporting what each
    one would like to have emitted. But this would be awful for performance and
    memory use. I'm open to better ideas if you have one.
    Meanwhile, I do not find it likely that we will fix this for 4.2.

Re: Unnecessary debug info for unused consts in C++


max 4000 letters.
Your nickname that display:
In order to stop the spam: 1 + 0 =
QUESTION ON "Development"

EMSDN.COM