From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id DD0073858404; Thu, 21 Dec 2023 18:55:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DD0073858404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1703184901; bh=l6vc+zewZTGoZesdj0JF6fZNXlUUj8GJzN3QJDiwN0A=; h=From:To:Subject:Date:From; b=lnb/VYWcxZbk3VP0nOdeyfQuH3+nuI1T/OqGaPcIjXfU+RrHHPv8nS7raXgFhNWEs gL5Kss+vqw8F4Rc/0ItvHjrpIVnGd2IgmIYgNbZRG4RsTKq3ASLf7veemdpXdYGykg RChRuK2R3hRTZ8V0Xb6MVsovU82ZPGT0+mNP/3rk= 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: c8f3b6500173b0efe083bfd3d0cbe2f90ea8de56 X-Git-Newrev: 71740db6e90a8c2fc0fcf52d726be8bfaf0822f8 Message-Id: <20231221185501.DD0073858404@sourceware.org> Date: Thu, 21 Dec 2023 18:55:01 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=71740db6e90a8c2fc0fcf52d726be8bfaf0822f8 commit 71740db6e90a8c2fc0fcf52d726be8bfaf0822f8 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;