https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112708
--- Comment #10 from Bruno Haible <bruno at clisp dot org> ---
(In reply to Jakub Jelinek from comment #9)
> var-tracking is very compile time intensive,
> so it would significantly slow down -O0 compilation.
Indeed, these are the timings of "time make" that I observe when compiling
GNU gettext 0.22 (only the "user" time figure, in seconds):
gcc 11.2 gcc 13.2
-ggdb 58.7 68.2
-ggdb -fvar-tracking 62.5 71.8
-ggdb -fsanitize=address 69.6 80.6
-ggdb -fsanitize=address -fvar-tracking 82.7 93.7
So, while -fvar-tracking without -fsanitize=address has a penalty of ca. 6%,
-fvar-tracking in the presence of -fsanitize=address has a penalty of ca. 17%.