https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85663
Hans-Peter Nilsson <hp at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|8.0.1 |8.1.0 --- Comment #7 from Hans-Peter Nilsson <hp at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #6) > Hans-Peter, any comments on this? (In reply to Sergei Trofimovich from comment #2) > > - FIRST_32_SECOND_64(144, 216); > > + FIRST_32_SECOND_64(160, 216); > > I think mips has really 3 stat values: > 32 ABI: 144 > n32 ABI: 160 > 64 ABI: 216 > > $ cat a.c > #include <sys/types.h> > #include <sys/stat.h> > #include <unistd.h> > > int main() { > return sizeof(struct stat); > } This is misleading. What needs to be checked is the size of the *kernel* stat. See https://gcc.gnu.org/ml/gcc-patches/2018-03/msg01263.html where I fixed it correctly and explained the issue. I'm guessing a later import unfixed it, but I'll go check. I'm changing the related version (8.0.1 -> 8.1.0), as from the comments it seems obvious that this is 8.1.0 (and later, presumably?), not 8.0.1.