This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, C] reduce memory usage for CONSTRUCTORs in global scope variables
- From: "Giovanni Bajo" <rasky at develer dot com>
- To: "Andrew Pinski" <pinskia at physics dot uc dot edu>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 20 Jul 2005 20:26:13 +0200
- Subject: Re: [PATCH, C] reduce memory usage for CONSTRUCTORs in global scope variables
- References: <bccb70bb05c9012fd5e8a539a3063a13@physics.uc.edu>
Andrew Pinski <pinskia@physics.uc.edu> wrote:
> I noticed that there is we were wasting memory when we output the init
> element for arrays. The problem comes down to copying an INTEGER_CST
> which we will not touch after the copy. The copy is from pre GC so the
> INTEGER_CST might have been on a temporary obstack so we needed to copy
> it but now we have GC, we don't have this issue.
Ah well. I noticed it and was wondering what it was for, but wasn't so brave
to remove it within the contest of my CONSTRUCTOR patch :)
--
Giovanni Bajo