https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110168
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID CC| |jakub at gcc dot gnu.org Status|UNCONFIRMED |RESOLVED --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- At least -O is intentionally required, without that while e.g. always_inline inline functions are inlined, arguments to them aren't really forward propagated, so __builtin_object_size (x, [01]) would pretty much always return -1, as it couldn't track what the pointer points to.