https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70768

--- Comment #2 from James Almer <jamrial at gmail dot com> ---
(In reply to Markus Trippelsdorf from comment #1)
> Well, you simply need more RAM to compile this testcase, because gcc-6 uses
> slightly over 2GB peak, so your machine starts swapping.
> On my machine (with 8GB RAM) gcc-6 is actually slightly faster.
> 
> (For gcc-7 you need to configure it with --enable-checking=release to
> compare timings.)

Tried to assign more RAM to the vm and it indeed fixed the trashing and
slowness with gcc-6 and newer.

gcc-6/7 uses like 2.1GB of RAM to compile this file whereas gcc-5 uses only
1.6GB. Is this intended/expected, or can it be considered a memory hog?

Reply via email to