This is the mail archive of the 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]

Re: [PATCH] PR c++/27574 (PING)

On Mon, Nov 3, 2008 at 2:53 PM, Dodji Seketeli <> wrote:
> Richard Guenther a écrit :
>> Hm.  What is the effect on text size for C++ applications?
> Well, I don't have any hard figures for that, but I suspect that as the only
> the bodies of abstract functions which clones are reachable (and thus which
> bodies are emitted) are now being added, the text size might grow only very
> slightly.
> In any case, I am rebuilding/installing a gcc tree here so that I can
> compile some c++ programs of mine to come up with some data.
>>  We do not  need the function text itself but only its debug information -
>> the debug
>> information for the decl, not the text, correct?
> I think for a function decl, we "only" need DECL_ARGUMENTS (decl) and
> DECL_INITIAL (decl) to be present so that we can generate debug info.

So the only problem is the following line

  DECL_INITIAL (node->decl) = error_mark_node;

in cgraph_release_function_body?  Does it fix the PR
if you make that conditional on DECL_ABSTRACT?


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