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

Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory


Daniel Jacobowitz wrote:

>> Does that sound like a reasonable approach until we fix all the
>> debug info issues?
> 
> I haven't been following, but this is still pretty lousy - is there
> really no practical way to do this without 2.5GB?

If you construct the debug information lazily, there is no reason for it
to use more than the maximum length of a single symbol name.  Just
create the string, write it to the file, and free it.  All we need is a
hook in the debug generators when they access TYPE_NAME of a type, or
DECL_NAME of a TYPE_DECL.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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