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

ofv at wanadoo dot es changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ofv at wanadoo dot es

--- Comment #13 from ofv at wanadoo dot es ---
My case is similar to the one described by Mathias Gaunard, but with a
difference of 3x memory usage when -ftrack-macro-expansion=0 is not added to
the command line.

I use Boost Preprocessor plus a number of macros to define and instantiate lots
of templates. That's the case that requires 3x more memory (low estimate) with
some TUs requiring way more than 1GB to compile (on a 32 bit machine, which
means that parallel builds usually ends with massive swapping and the compile
jobs killed due to memory starvation.)

I have a version of the same code base that uses variadic templates instead of
Boost Preprocessor, although the macros for instantiating the templates are
still there. That requires about 1.5x more memory.

Reply via email to