From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id E40763858D20; Wed, 17 Apr 2024 20:08:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E40763858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713384508; bh=NO6SuA6KpbVuHhFSmS5o6a5vFf4Ur7/iDOykF+IBj5k=; h=From:To:Subject:Date:From; b=iLdjILoM7b1ROH9a4xJGv58HCw5nyD2/d2+3/Qqr96gIc8SDh933iY0rSxoyYEgR7 e7o6uVqdhb5skGGrzEEr+rfAYtKr0WooXS7Elitcr0M6hgZYGp2FcnlWa9cG5ciMmp HM8dvzcPKHLu4ZFhiyNL+SDK/giFXKVgaucU1TKs= 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: 0add13af81134d959a3d95f5c4c6ccf067332100 X-Git-Newrev: c3e44655e442a1c1341898c9427fc371c4b5cf78 Message-Id: <20240417200828.E40763858D20@sourceware.org> Date: Wed, 17 Apr 2024 20:08:28 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c3e44655e442a1c1341898c9427fc371c4b5cf78 commit c3e44655e442a1c1341898c9427fc371c4b5cf78 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;