[Bug middle-end/93092] g++ takes tremendous compilation times in var-tracking

admin@tho-otto.de gcc-bugzilla@gcc.gnu.org
Thu Jan 9 10:08:00 GMT 2020


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

--- Comment #3 from Thorsten Otto <admin@tho-otto.de> ---
I can confirm that -fno-var-trackings makes situation better, but it must
somehow be related to generating debug infos:

$ time g++ -O2 -g -c nfosmesa_init.i
real    4m58.028s
user    4m57.749s
sys     0m0.282s

$ time g++ -O2 -g -c -fno-var-tracking nfosmesa_init.i
real    0m3.045s
user    0m2.885s
sys     0m0.161s

$ time g++ -O2 -g0 -c nfosmesa_init.i
real    0m2.896s
user    0m2.760s
sys     0m0.137s

$ time g++ -O2 -g0 -c -fno-var-tracking nfosmesa_init.i
real    0m3.139s
user    0m2.979s
sys     0m0.160s


More information about the Gcc-bugs mailing list