From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 337833858438; Wed, 7 Feb 2024 14:06:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 337833858438 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707314767; bh=hZCzedXMh7RliJnwl4ovNQHLonOe5gmwXjGMK5OBHQM=; h=From:To:Subject:Date:From; b=ixU+xzPdZY7JPNuK5TGG6VLAerV4UCrETtiCltwI81qy8+fOR+UZqmQv+Sbk7jYPz amnhT8ewXf73aP9+7d5tnfI95GNzTWtG9+5X+g9W58L+y5EuL2GXfcwlTACE/UuNqf FnurkmrMS/QDtfJhF2P8esBr6r0pN0I5UYVYk+v8= 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] math: Suppress clang -Wincompatible-library-redeclaration on s_llround X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: ae06f7a3c48c9f19dd47d49f215a3f5b030e6065 X-Git-Newrev: 279c98388499fd414c234fb3924ccfa4672c2dd8 Message-Id: <20240207140607.337833858438@sourceware.org> Date: Wed, 7 Feb 2024 14:06:07 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=279c98388499fd414c234fb3924ccfa4672c2dd8 commit 279c98388499fd414c234fb3924ccfa4672c2dd8 Author: Adhemerval Zanella Date: Wed Aug 24 12:41:39 2022 -0300 math: Suppress clang -Wincompatible-library-redeclaration on s_llround Clang issues: ../sysdeps/ieee754/dbl-64/s_llround.c:83:30: error: incompatible redeclaration of library function 'lround' [-Werror,-Wincompatible-library-redeclaration] libm_alias_double (__lround, lround) ^ ../sysdeps/ieee754/dbl-64/s_llround.c:83:30: note: 'lround' is a builtin with type 'long (double)' Diff: --- sysdeps/ieee754/dbl-64/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/ieee754/dbl-64/Makefile b/sysdeps/ieee754/dbl-64/Makefile index 78530b5966..9f1226326c 100644 --- a/sysdeps/ieee754/dbl-64/Makefile +++ b/sysdeps/ieee754/dbl-64/Makefile @@ -2,4 +2,7 @@ ifeq ($(subdir),math) # branred depends on precise IEEE double rounding CFLAGS-branred.c += $(config-cflags-nofma) CFLAGS-e_sqrt.c += $(config-cflags-nofma) + +# The symbols alias to lround +CFLAGS-s_llround.c += -fno-builtin-lround endif