https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119516
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I am not sure this is an issue for compile time either. With -fno-checking, -O2 is only 12s while -O0 is 6s. GCC 14 with -O2 is 9s. Which might be the improvement without other checking enabled. Basically checking makes things slow which is expected.