public inbox for
help / color / mirror / Atom feed
From: Adhemerval Zanella <>
Subject: [glibc/azanella/clang] math: Suppress clang -Wincompatible-library-redeclaration on s_llround
Date: Wed, 30 Aug 2023 12:35:58 +0000 (GMT)	[thread overview]
Message-ID: <> (raw);h=314ec91560d6be2a58df34779fe1a68defe411b8

commit 314ec91560d6be2a58df34779fe1a68defe411b8
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'
      libm_alias_double (__lround, lround)
      ../sysdeps/ieee754/dbl-64/s_llround.c:83:30: note: 'lround' is a builtin
      with type 'long (double)'

 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

             reply	other threads:[~2023-08-30 12:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-30 12:35 Adhemerval Zanella [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-02-09 17:30 Adhemerval Zanella
2024-02-07 14:06 Adhemerval Zanella
2024-01-29 17:56 Adhemerval Zanella
2023-12-21 18:52 Adhemerval Zanella
2023-09-28 17:51 Adhemerval Zanella
2023-02-09 19:47 Adhemerval Zanella
2022-10-28 17:40 Adhemerval Zanella
2022-10-04 12:58 Adhemerval Zanella

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).