public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc/azanella/clang] math: Suppress clang -Wincompatible-library-redeclaration on s_llround
Date: Fri, 28 Oct 2022 17:40:54 +0000 (GMT)	[thread overview]
Message-ID: <20221028174102.7792A3858016@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=99cbd90852b01dd1b5c06b72b0fa1e0c9fb49fc3

commit 99cbd90852b01dd1b5c06b72b0fa1e0c9fb49fc3
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
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

             reply	other threads:[~2022-10-28 17:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-28 17:40 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-08-30 12:35 Adhemerval Zanella
2023-02-09 19:47 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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20221028174102.7792A3858016@sourceware.org \
    --to=azanella@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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).