https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96503
Kees Cook <kees at outflux dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kees at outflux dot net --- Comment #1 from Kees Cook <kees at outflux dot net> --- Created attachment 53643 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53643&action=edit PoC showing unexpected __bdos results across inlines Fixing this is needed for the Linux kernel to do much useful with alloc_size. Most of the allocators are inline wrappers, for example. This can be additionally shown to break __builtin_dynamic_object_size(), which means all FORTIFY_SOURCE of alloc_size-marked inlines is broken. :( https://godbolt.org/z/jTKjY3s1j