From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 49826385841D; Fri, 9 Feb 2024 17:30:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 49826385841D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707499847; bh=Qt3saEKLyc5zq4A1F2SzHudHcWd8DMlDWVP7NQ3754A=; h=From:To:Subject:Date:From; b=lrAIKHF+7pCJpMnY82l1+gPj9IJVNO7uhsAMQqwikDIrxaxJrR1Sy4u8XWmty+PqE at49XeXhrxcKv+TtsLRxGTLw5vyqfU5tc8BdH1f7VmwzrCPKiNnNfO3yBUPtnRalW0 ZunpGxt0OZIWJFmDRNBCRCS5eQQhVWP4PLenjO/o= 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: 5edc6944b6496f40acf7c0b919361368bd262f95 X-Git-Newrev: f6bf59012994e6eed21fa8517543938dd5aad4ac Message-Id: <20240209173047.49826385841D@sourceware.org> Date: Fri, 9 Feb 2024 17:30:47 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f6bf59012994e6eed21fa8517543938dd5aad4ac commit f6bf59012994e6eed21fa8517543938dd5aad4ac 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