From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id A545938930FB; Thu, 28 Sep 2023 17:51:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A545938930FB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1695923467; bh=goFN3uJ1/CF1e/fJ82yGgd1daInrIBXs+lTuLWa4Gj4=; h=From:To:Subject:Date:From; b=UR7P+64pTidPxSZ+BM1tBMI874arL+0dYBl2iSZWuNjuG05QzOJBsGHQvUKESIRCQ 8OUuwpRzFvboOsVYIRWDcIB7ssbZ+NB+A6nc86pyKG6z8p1lv2K2bb70d1sf6GKAhI 2UJzzYHjIE27DTyP4obKIGe3TeiU2cFXIAfR0fQk= 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: 2eb9ad3c6309171458772f3776dba72be092176a X-Git-Newrev: 7f64f51c7e7ecfcb8fa9f438ffad93f6b00ab3a6 Message-Id: <20230928175107.A545938930FB@sourceware.org> Date: Thu, 28 Sep 2023 17:51:07 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7f64f51c7e7ecfcb8fa9f438ffad93f6b00ab3a6 commit 7f64f51c7e7ecfcb8fa9f438ffad93f6b00ab3a6 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