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.
Tracking this upstream in PR12245. In each release we fix a few compile-time-hog bugs, hopefully this will/was one of them.