https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93114
--- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Created attachment 48430 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48430&action=edit Preliminary partial patch Here is a very preliminary implementation, which only looks at the return values of maxloc et al. If we look at the arguments too, this will be much larger...