From nobody Sun Jul 07 23:47:24 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WHP7K0cVKz5QN6F; Sun, 07 Jul 2024 23:47:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WHP7J6T61z4gYn; Sun, 7 Jul 2024 23:47:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720396044; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lTLfyklUpDPpvAPLcIyFb/ypqOow4D3u8Qe3Q8PcMLw=; b=CYuEnuMyUPlcyQoMVPhmzFxeFxp19Lki8BWItSBJBOTXvh+67YXuEi0x6w2qCdgWD2kIw/ tdCFzMd3ZNRRJGT9+JxZNYdyztpGziOnHQ+oFdZCvFKnwwv/dM21h+7mmlMpk+LYp/ICnc pwh+xLNn45kZCh2PExYD0z+aq88iIeT+A5Q1Da9PHpU9mMl8soeuTKOQl1RN5HtO7h7tPk IEGzljLBY+z+tnCQ1N9ghlKdQE/M87PSUnlp2z1+wsi2prxuvcFxPCyF95FnNwHBflGNU7 mS+QTVvwIrNokE/sFqDd7tmlUcGTploZzGi85bQpXUoKJB/vwF6sSH090u0tXg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720396044; a=rsa-sha256; cv=none; b=tYLzLO7HsrDnHgvAefMCnb1EKQ0lK3Dw/rrVBLgw0kFbvzkyXr+ICr84LX7x3YHAXRHwKT J8PJNl1cyLWp1y9sldYLEke2wARJFtJyet9vAAEfjkhUGmOASaAjsJesNErFRhdCJtnTor U8jXQMo69cyhRQ1clZoD/pT/1A/wK1pp2hLEKdWH4u4E71Smy7N+RcCCMc1TsWeLMIsrGL 9Ez8ZUyEqK3+L1rOEwcUXSD3cPXoDjXGJ7+a4rRTxEE5uPYmNMueobdkWfYLImW1GXfVIR ClUYFgNRUAn6k2IEpOv688af+O5n95tGZDef7PdjjcsA2mDqCitobFwODUxP1A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720396044; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lTLfyklUpDPpvAPLcIyFb/ypqOow4D3u8Qe3Q8PcMLw=; b=BQfe+9r7epZapoxIGWUJkhrajr/jo4iN8LBnG7iHWpct6J9JRExfkBgfF/7/J7UvrhgV7a r0HprZ4WdiS6IW3pjZ+/nP2lPlXFTHW2jF0sGLVkUAcA+D/rb54RvHMaUtohTDgdAJbMlS +plL6ce41WRSyjW+v1OQ6YlKyWnBl+8/l24UOyaLUe/VUMUi7K+fu+bch3w91jxy/BvgpF f3rFeCJx80SRTEAiSa9n2yJpBUEydk2HXBSvYULb4UHtAmLLP1gyP4QRctllD4iP43qNrv Aaufrrb1V30yECgOH2+n40biUoO9G7v1OQE90CGTAdTt4xyczEkTMrxUa9CHDA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WHP7J65b4zSjN; Sun, 7 Jul 2024 23:47:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 467NlOm5002143; Sun, 7 Jul 2024 23:47:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 467NlOj6002140; Sun, 7 Jul 2024 23:47:24 GMT (envelope-from git) Date: Sun, 7 Jul 2024 23:47:24 GMT Message-Id: <202407072347.467NlOj6002140@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ryan Libby Subject: git: f7f9a033f3ec - main - rtld: quiet gcc -Wrestrict List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rlibby X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f7f9a033f3ec755c8f1657103ba083294eb155d4 Auto-Submitted: auto-generated The branch main has been updated by rlibby: URL: https://cgit.FreeBSD.org/src/commit/?id=f7f9a033f3ec755c8f1657103ba083294eb155d4 commit f7f9a033f3ec755c8f1657103ba083294eb155d4 Author: Ryan Libby AuthorDate: 2024-07-07 23:46:49 +0000 Commit: Ryan Libby CommitDate: 2024-07-07 23:46:49 +0000 rtld: quiet gcc -Wrestrict Reported by: GCC -Wrestrict Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D45892 --- lib/libthr/thread/thr_rtld.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libthr/thread/thr_rtld.c b/lib/libthr/thread/thr_rtld.c index 54560a2f7df2..25ecb83a11a3 100644 --- a/lib/libthr/thread/thr_rtld.c +++ b/lib/libthr/thread/thr_rtld.c @@ -220,19 +220,19 @@ _thr_rtld_init(void) struct RtldLockInfo li; struct pthread *curthread; ucontext_t *uc; - long dummy = -1; int uc_len; + char dummy[2] = {}; curthread = _get_curthread(); /* force to resolve _umtx_op PLT */ - _umtx_op_err((struct umtx *)&dummy, UMTX_OP_WAKE, 1, 0, 0); + _umtx_op_err(&dummy, UMTX_OP_WAKE, 1, 0, 0); /* force to resolve errno() PLT */ __error(); /* force to resolve memcpy PLT */ - memcpy(&dummy, &dummy, sizeof(dummy)); + memcpy(&dummy[0], &dummy[1], 1); mprotect(NULL, 0, 0); _rtld_get_stack_prot();