From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 39756385841D; Tue, 2 Apr 2024 15:54:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 39756385841D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1712073278; bh=HAs1MclqhsJQ9FwSvTr/pw3MyTsp0Xg+13HMSv9LaK0=; h=From:To:Subject:Date:From; b=DpYEpCKSzqfUv/1pGTD9AJ3XREPknQ7VRnmiAvslx5HHY/9VLDXZmnrs0NsswcgOd bBt8XAFWDOKKcLsXXKe3j64DooLOf59Zw0tWIuctr/cE/Rh5hc3jEei2jaSn4A6kvM XguwxaTRqko2XTAKUlwlk6/SJxhL8YVzfqs60sp0= 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: 5c0ed4a65b92dc4b47f825c4b635ac4f403f3d13 X-Git-Newrev: fe98b1453b74b0066fa0bb40aeb71e07869a67b6 Message-Id: <20240402155438.39756385841D@sourceware.org> Date: Tue, 2 Apr 2024 15:54:38 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=fe98b1453b74b0066fa0bb40aeb71e07869a67b6 commit fe98b1453b74b0066fa0bb40aeb71e07869a67b6 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 4d1cec5ee8..617df86b7a 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;