https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89029
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- See e.g. PR72785, using __builtin_constant_p this way isn't really going to work reliably, it is folded too late and jump threading and other optimizations may cause it to be evaluated to 1 in some part of a function and 0 in another.