https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111769
--- Comment #3 from David Brown <david at westcontrol dot com> --- (In reply to Andrew Pinski from comment #2) > IIRC there was a bug about this specific thing which was closed as fixed > with the use of LTO ... Certainly if you use LTO, then this is not necessary. But LTO use is far from universal, and there can be good reasons not to use it. (It is rarely seen in small embedded systems, for various reasons - some good, some less good.) The thought here is for a very low cost (for users) enhancement - the check could be introduced without any change to the users' existing build process, code, or linker scripts.