From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by sourceware.org (Postfix) with ESMTPS id 2BE32385801A; Thu, 22 Jul 2021 15:25:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2BE32385801A Received: by mail-lf1-x142.google.com with SMTP id u13so9057176lfs.11; Thu, 22 Jul 2021 08:25:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=L7+npdLHjqVSUMlugJfClz0pEUU3+ba+LLC8ic790qM=; b=Y2jo54RsQa+Z1KLZiZIZcseL8uUISmEU4jznLbq2929216UGetG67GsfpwFBEIJ1g/ /VqcBj9xqeKnTUm+eppLCdyUC9OB70TCUHKAPgO7ZwJm4WM4U7wEWMbS+V4kJbOsxqLG brNGTuHhsbBFYoqkiGvHbNtstkrpkU8r4KSdklk9lLzLm67MjmrVi+XibbEn+6X03zhh PVf2q0ayksLij/zIey0Fvn+zSrQmm0LfVpwbw7YhhIQO7kHeNeSa6FFmIvPvKOPvA0L6 uFMeGT63PAfRLpu4prWOEbYE9FUKGX2v4vmV0JhId/u1urfm9HFgqN2CwkA7xKx5Zfb0 GdJw== X-Gm-Message-State: AOAM5336LTvcRmKmiCGUAKT7DrJ8L6TgB1v85UY8aCEHjjcIEt6Lolkx hGR+8B179wSmkq3Yifc1yA3+cRM7bOhc0YWhJviSydDfPeTMIlUpa+Q= X-Google-Smtp-Source: ABdhPJx4jmqzBxenBUCcqo0DMKwoq5bf8aSpAOGT5PDwBbjoNt3s40i1vTpmIOkY2Jyn52ypPlT7NxX1YwuBeookEA8= X-Received: by 2002:a05:6512:3a8c:: with SMTP id q12mr69088lfu.334.1626967516376; Thu, 22 Jul 2021 08:25:16 -0700 (PDT) MIME-Version: 1.0 From: David Edelsohn Date: Thu, 22 Jul 2021 11:25:05 -0400 Message-ID: Subject: [PATCH] AIX os_defines.h update for math.h overloads To: GCC Patches , "libstdc++" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jul 2021 15:25:21 -0000 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