https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93092
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |memory-hog Status|UNCONFIRMED |NEW Last reconfirmed| |2020-01-09 Summary|g++ takes tremendous |g++ takes tremendous |compilation times |compilation times in | |var-tracking Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- -O0 -g is quick, enabling var-tracking for -O0 shows it taking 70% of the compile-time. Disabling var-tracking makes -O1 and -O2 quick as well. So - -fno-var-tracking is a good workaround. Somehow it's own limitation doesn't apply to this testcase.