DescriptionFrank Ch. Eigler
2019-02-27 18:53:49 UTC
Relative to RHEL7, RHEL8's gcc 8.2.1 is subject to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12245 . It consumes approximately a hundred bytes of cc1 memory per initialized array literal. This affects e.g. systemtap, which can generate some large initialized arrays.
% stap -kvp4 --example fileline-profile.stp --all-modules --ldd
(check last child gcc cpu & memory consumption w/ top)
% cd $TMPDIR/stapXYZ
% gcc -c stap_*.i
(observe same ram/cpu intensive compilation)
It's not hard for gcc to consume multiple gigabytes of ram, which is a problem on small VMs.