https://bugs.kde.org/show_bug.cgi?id=490651

--- Comment #7 from Sam James <s...@gentoo.org> ---
The reproduction instructions you used seem mixed. If you compile with `make`
(implicit -j1), then it's essentially the same, as GCC won't parallelise.

If you run with `make -jN`, then GCC will automatically use the jobserver make
created and consume slots for LTO parallelisation
(https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-flto):
> You can also specify -flto=jobserver to use GNU make’s job server mode to 
> determine the number of parallel jobs. This is useful when the Makefile 
> calling GCC is already executing in parallel. You must prepend a ‘+’ to the 
> command recipe in the parent Makefile for this to work. This option likely 
> only works if MAKE is GNU make. Even without the option value, GCC tries to 
> automatically detect a running GNU make’s job server. 

I suspect this explains the discrepancy.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to