From patchwork Sat May 16 20:56:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Buclaw X-Patchwork-Id: 1291970 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=OgQz6Ulj; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49Pcz954ZDz9sTK for ; Sun, 17 May 2020 06:57:07 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1B2B8388B001; Sat, 16 May 2020 20:57:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1B2B8388B001 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589662624; bh=yYQZQESaFGGYAMpKCSlW1L3KcPs64xbrX4KdIBxCncQ=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=OgQz6UljAACm8bFt6fuRM1DhaApySljtjqQEEYLzlgbwnvz3Msy9rFDaQMyrM6yrs WTwfsEq9s+JlLNEEjYojmk8cVtdsQMuKbRh7SY1qcbCYSdPtIVQfZrFh9hP42/C+Yc +XvDFit1NFI8YTxf2bf89MV+V3QYwDaHrfjjlJro= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [IPv6:2001:67c:2050::465:202]) by sourceware.org (Postfix) with ESMTPS id 2C499388B001 for ; Sat, 16 May 2020 20:57:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2C499388B001 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 49Pcyy5CKdzQlHt for ; Sat, 16 May 2020 22:56:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030) with ESMTP id 2QQHEh7b_MK5 for ; Sat, 16 May 2020 22:56:55 +0200 (CEST) To: gcc-patches@gcc.gnu.org Subject: [committed][GCC9] libphobos: Fix struct layout of stat_t on sparc-*-solaris* Date: Sat, 16 May 2020 22:56:52 +0200 Message-Id: <20200516205652.8232-1-ibuclaw@gdcproject.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: B9A351754 X-Rspamd-Score: 0.29 / 15.00 / 15.00 X-Spam-Status: No, score=-18.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Iain Buclaw via Gcc-patches From: Iain Buclaw Reply-To: Iain Buclaw Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Hi, The last change to the bindings removed the st_pad3 field from the wrong struct. It should have been stat64_t that needed updating instead. Patch backported from r10-8066, committed to gcc-9 branch. Iain. --- libphobos/ChangeLog PR d/90719 * libdruntime/core/sys/posix/sys/stat.d (Solaris): Move st_pad3 from struct stat64_t to stat32_t. --- libphobos/libdruntime/core/sys/posix/sys/stat.d | 2 +- 1 file changed, 1 insertions(+), 1 deletion(-) diff --git a/libphobos/libdruntime/core/sys/posix/sys/stat.d b/libphobos/libdruntime/core/sys/posix/sys/stat.d index 9fc89270d48..f394823767d 100644 --- a/libphobos/libdruntime/core/sys/posix/sys/stat.d +++ b/libphobos/libdruntime/core/sys/posix/sys/stat.d @@ -1314,6 +1314,7 @@ 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; @@ -1347,7 +1348,6 @@ else version (Solaris) dev_t st_rdev; c_long[2] st_pad2; off64_t st_size; - c_long st_pad3; union { timestruc_t st_atim;