[Bug c++/56746] [4.8 regression] increased memory usage when compiling C++

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 28 09:51:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56746

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dodji at gcc dot gnu.org

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> 2013-03-28 09:51:35 UTC ---
(In reply to comment #5)
> While trying to isolate the problem, I have observed that the problem does not
> occur if -save-temps is used.
> While using -save-temps does not change anything with GCC 4.7, using it does
> reduce memory usage significantly with GCC 4.8.
> 
> Did something change with regards to the way temporary files are handled?

No, but using pre-processed source results in less pressure on line-tables
as no macro recording is taking place.  You could try -ftrack-macro-expansion=0
(which is undocumented - bah - Dodji, please fix that, invoke.texi).

Unreduced preprocessed source is ok, you can also upload it somewhere
accessible
if it's rejected here as attachment (compress it before attaching).



More information about the Gcc-bugs mailing list