From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 9172D3875DF3; Thu, 28 Sep 2023 17:53:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9172D3875DF3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1695923594; bh=d3pZ+aObhfMqCYfTBSbEbirtACeg7guXZtO50d34QHQ=; h=From:To:Subject:Date:From; b=GD2gySuZiRn51zB2W72mmHOieXWLZXIbOy4NFgzpIT41B86HpvEVsfxu8/uPnEWvW PfF9aDBU7ZM3Z9GAxsRZEy5JE6LncIxZOONQuwd58OVkodzKmOz+4aOIMDwydwfWPC GXWcJQ7pvlJQw3EDPaklNJRqeLsbrevfDt2ICw6w= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] riscv: Suppress clang confstr -Wignored-attributes feupdateenv X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: a0477f55f4ec8ac3fa538a7f2fe257fdd2a60733 X-Git-Newrev: 58bbb3f985d109845e68bb5ee99803af916f04b0 Message-Id: <20230928175314.9172D3875DF3@sourceware.org> Date: Thu, 28 Sep 2023 17:53:14 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=58bbb3f985d109845e68bb5ee99803af916f04b0 commit 58bbb3f985d109845e68bb5ee99803af916f04b0 Author: Adhemerval Zanella Date: Thu Sep 28 14:19:51 2023 -0300 riscv: Suppress clang confstr -Wignored-attributes feupdateenv clang warns that the alias will be always resolve to __GI___feupdateenv even if weak definition of __GI_feupdateenv is overridden, which is really the intention. Diff: --- sysdeps/riscv/rvf/feupdateenv.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sysdeps/riscv/rvf/feupdateenv.c b/sysdeps/riscv/rvf/feupdateenv.c index 8a35ffeecc..9ee4dc23dc 100644 --- a/sysdeps/riscv/rvf/feupdateenv.c +++ b/sysdeps/riscv/rvf/feupdateenv.c @@ -27,4 +27,10 @@ __feupdateenv (const fenv_t *envp) } libm_hidden_def (__feupdateenv) weak_alias (__feupdateenv, feupdateenv) +/* clang warns that the alias will be always resolve to __GI___feupdateenv + even if weak definition of __GI_feupdateenv is overridden, which is really + the intention. */ +DIAG_PUSH_NEEDS_COMMENT_CLANG; +DIAG_IGNORE_NEEDS_COMMENT_CLANG (16, "-Wignored-attributes"); libm_hidden_weak (feupdateenv) +DIAG_POP_NEEDS_COMMENT_CLANG;