From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 649EB3858409; Tue, 14 Dec 2021 15:28:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 649EB3858409 From: "syq at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug d/103604] [12 Regression] trunk 20210506 fails to build in libphobos on mips64el-linux-gnu Date: Tue, 14 Dec 2021 15:28:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: d X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: syq at debian dot org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ibuclaw at gdcproject dot org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2021 15:28:02 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103604 --- Comment #17 from YunQiang Su --- (In reply to Iain Buclaw from comment #16) > (In reply to Iain Buclaw from comment #15) > > Don't think it would fail now the statically allocated size is *at leas= t* > > same as C. But some alias is still not matching up. > core.sys.posix.sys.types is implicitly assuming X86 sizes. (In reply to YunQiang Su from comment #13) > And please have a wait, I need to make sure that this patch can work with > N32. Finally, with help of gdb, This patch can work with both N64 and N32. --- /usr/lib/gcc/mips64el-linux-gnuabi64/11/include/d/core/sys/posix/sys/st= at.d 2021-11-18 20:24:46.000000000 +0000 +++ stat.d 2021-12-14 15:22:21.929556158 +0000 @@ -345,7 +345,7 @@ { struct stat_t { - c_ulong st_dev; + ulong st_dev; int[3] st_pad1; static if (!__USE_FILE_OFFSET64) { @@ -353,13 +353,13 @@ } else { - c_ulong st_ino; + ulong st_ino; } mode_t st_mode; nlink_t st_nlink; uid_t st_uid; gid_t st_gid; - c_ulong st_rdev; + ulong st_rdev; static if (!__USE_FILE_OFFSET64) { uint[2] st_pad2; @@ -368,8 +368,8 @@ } else { - c_long[3] st_pad2; - c_long st_size; + uint[3] st_pad2; + long st_size; } static if (__USE_MISC || __USE_XOPEN2K8) { @@ -400,9 +400,9 @@ } else { - c_long st_blocks; + long st_blocks; } - c_long[14] st_pad5; + uint[14] st_pad5; } } else version (PPC)=