https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77278
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > This led to error messages like > > lto1: warning: type of '_gfortran_st_write' does not match original > declaration [-Wlto-type-mismatch] > ../../../trunk/libgfortran/io/transfer.c:3746:1: > note: 'st_write' was previously declared here > ../../../trunk/libgfortran/io/transfer.c:3746:1: note: code may be > misoptimized unless -fno-strict-aliasing is used > > so there is likely work to do on the library side and on the LTO side. This looks like pr68649 and pr68717.