From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id BED603857810; Fri, 17 Oct 2025 19:12:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BED603857810 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1760728362; bh=nkDVrtQkRA3KH5tgt+zvOVebG7C1ubb+NkJO5u6Q9n8=; h=From:To:Subject:Date:From; b=aEu6p2aklamazVANoJolApeRoRp02/M38sLSRD6uYR/NazfwYvXMNHk9vRAdzOz60 FsArudiklluhTrgvfLllfF+2xHFHykKbA8l98E0RGbe3I3XXWhMI7/QHR4hJyL6TRn TenbqdLpwWyyfZdkIqQzSVhIyTSVzSelxQSXP1mA= 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: 9f366cce8c45dcafdf93d86c917f1b36b5456b20 X-Git-Newrev: 35ee0a2d71b1bc458ce78581f4da33fb52869f0f Message-Id: <20251017191242.BED603857810@sourceware.org> Date: Fri, 17 Oct 2025 19:12:42 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=35ee0a2d71b1bc458ce78581f4da33fb52869f0f commit 35ee0a2d71b1bc458ce78581f4da33fb52869f0f 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 766bef4a35..ac2e2ecc5e 100644 --- a/sysdeps/ieee754/dbl-64/Makefile +++ b/sysdeps/ieee754/dbl-64/Makefile @@ -2,6 +2,9 @@ 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 ifeq ($(subdir),stdio-common)