From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 352BE3858D32; Mon, 29 Jan 2024 17:58:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 352BE3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706551109; bh=UTWcgtPeZYUnrEuybt+SZe15EYC1KeL5tIYAcM06vbQ=; h=From:To:Subject:Date:From; b=JoCPVpVVGP9+TWO08gci78pU99ZFzBGCDfaD7PQcLT0VFoZppIey4qrjS+sCw53R6 gLoCIy74FvCMABOcCf4zXYM8EG5KQ3/ftct/JydRGWBtujTFQNdow3oJzvf5TDub1T 7SWajCTcNFaMdFaWoQszCtb460Q4KFPLJ5UhHFhQ= 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: f2c1c4e8cc6b7652f0c8711328b18c0430da983b X-Git-Newrev: efb8131dae62a767957c46e13b51f4f8c223c0c8 Message-Id: <20240129175829.352BE3858D32@sourceware.org> Date: Mon, 29 Jan 2024 17:58:29 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=efb8131dae62a767957c46e13b51f4f8c223c0c8 commit efb8131dae62a767957c46e13b51f4f8c223c0c8 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;