]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libphobos: Fix struct layout of stat32_t on sparc-*-solaris*
authorIain Buclaw <ibuclaw@gdcproject.org>
Mon, 27 Apr 2020 21:40:48 +0000 (23:40 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Mon, 27 Apr 2020 21:57:54 +0000 (23:57 +0200)
Solaris 11 <sys/stat.h> has:

    struct stat {
...
    #if _FILE_OFFSET_BITS != 64
long st_pad3;
    #endif
...
    };

In the extern(C) core.sys bindings, st_pad3 is included in the
non-largefie version of struct stat when it shouldn't be.

libphobos/ChangeLog:

PR d/90719
* libdruntime/core/sys/posix/sys/stat.d (Solaris): Remove st_pad3 from
struct stat32_t.

libphobos/ChangeLog
libphobos/libdruntime/core/sys/posix/sys/stat.d

index 569a3c91ab25eb73eb2fcebcba19b5de6525fe9e..af379c8c4c5d3ec05a33fc4700be00405b5c5205 100644 (file)
@@ -1,3 +1,9 @@
+2020-04-27  Iain Buclaw  <ibuclaw@gdcproject.org>
+
+       PR d/90719
+       * libdruntime/core/sys/posix/sys/stat.d (Solaris): Remove st_pad3 from
+       struct stat32_t.
+
 2020-03-12  Release Manager
 
        * GCC 9.3.0 released.
index 76e4460550df1bdbcd225ba8a813c8c064f4be73..9fc89270d480b82617bd3db5cf0461f4648596aa 100644 (file)
@@ -1314,7 +1314,6 @@ else version (Solaris)
             dev_t st_rdev;
             c_long[2] st_pad2;
             off_t st_size;
-            c_long st_pad3;
             union
             {
                 timestruc_t st_atim;