public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
From: David Edelsohn <dje.gcc@gmail.com>
To: GCC Patches <gcc-patches@gcc.gnu.org>,
	"libstdc++" <libstdc++@gcc.gnu.org>
Subject: [PATCH] AIX os_defines.h update for math.h overloads
Date: Thu, 22 Jul 2021 11:25:05 -0400	[thread overview]
Message-ID: <CAGWvnym7dr2hpyXzoa_x6wNy=vSxPcJY0+Cx4E50-tLYTxBVqQ@mail.gmail.com> (raw)

    AIX math.h provides C++ overloaded inlined math functions, which should
    not be present for G++. The definitions have been guaded by
    __COMPATMATH__, but that macro had other uses in IBM xlC++. A new
    macro has been introduced with the sole purpose of guarding the functions.
    This patch updates libstdc++ os_defines.h to define the additional macro.
    The earlier macro definition is retained to guard the functions in the
    math.h header of earlier AIX releases.

Bootstrapped on powerpc-ibm-aix7.2.3.0

    libstdc++-v3/ChangeLog:

            * config/os/aix/os_defines.h
(__LIBC_NO_CPP_MATH_OVERLOADS__): Define.

diff --git a/libstdc++-v3/config/os/aix/os_defines.h
b/libstdc++-v3/config/os/aix/os_defines.h
index 723a6533319..265e2941d1a 100644
--- a/libstdc++-v3/config/os/aix/os_defines.h
+++ b/libstdc++-v3/config/os/aix/os_defines.h
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-3.0-or-later WITH GCC-exception-3.1
 // Specific definitions for AIX  -*- C++ -*-

 // Copyright (C) 2000-2021 Free Software Foundation, Inc.
@@ -48,6 +49,10 @@
 #define __COMPATMATH__
 #endif

+#ifndef __LIBC_NO_CPP_MATH_OVERLOADS__
+#define __LIBC_NO_CPP_MATH_OVERLOADS__
+#endif
+
 // No support for referencing weak symbols without a definition.
 #define _GLIBCXX_USE_WEAK_REF 0

                 reply	other threads:[~2021-07-22 15:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAGWvnym7dr2hpyXzoa_x6wNy=vSxPcJY0+Cx4E50-tLYTxBVqQ@mail.gmail.com' \
    --to=dje.gcc@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=libstdc++@gcc.gnu.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).