From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 9800E38582A3; Thu, 9 Feb 2023 19:47:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9800E38582A3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675972073; bh=Memmi7LJfiyAmV7It4ylt7PijihWAN7FyCTduvgtfzw=; h=From:To:Subject:Date:From; b=R20yhyaHugXUjrZuG8oh72OUyhi+q84DDfl46Ihqyq9VG5pdVbxSqODhUrIjkGuvn WB5owJmPN60LjdunLshvyefwKIeQvsirnAoYJgSw2rDWMfxd+LpofYk1Ow6xs64/XD HlFv/YNLUmwpynVY+nnGiZqFM9assGj5/wPbYd+s= 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: 96b33006545e357ef11e2998b6c67e99a30d9c6f X-Git-Newrev: 0f3815d866b876b6d178cb2d61c0eec2d150ec9e Message-Id: <20230209194753.9800E38582A3@sourceware.org> Date: Thu, 9 Feb 2023 19:47:53 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0f3815d866b876b6d178cb2d61c0eec2d150ec9e commit 0f3815d866b876b6d178cb2d61c0eec2d150ec9e 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