From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id BE2523858416; Fri, 9 Feb 2024 17:32:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE2523858416 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707499976; bh=HnWjVBEUsnvSs20vmmY/8URQJdpHU4nfYKCKgVNgXr8=; h=From:To:Subject:Date:From; b=lAbmcMnS1kBV2p5qsBuVpW9MuL20NL3bP6009C+dzr8g28RMSrf0sypdlhVZACQuY LmaV3KktLR1I4QJGTt4AkPDH4/5weYEeSrGJ3tJLI4RopRXvVWTqBBb7qRdysfFjde DtDNcDJpqV6rj6bOI/uY9PXDse+kpss9jUK8c2yU= 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: bb27632e8ccbdbbf51bfc4670703fb53cd06e1bc X-Git-Newrev: 57a0850db5c0ad334fda874c7c483585e2c8577d Message-Id: <20240209173256.BE2523858416@sourceware.org> Date: Fri, 9 Feb 2024 17:32:56 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=57a0850db5c0ad334fda874c7c483585e2c8577d commit 57a0850db5c0ad334fda874c7c483585e2c8577d 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;