From patchwork Thu Jul 22 15:25:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Edelsohn X-Patchwork-Id: 1508761 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=MFH/r4ZE; dkim-atps=neutral Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GVxBS73w2z9sXN for ; Fri, 23 Jul 2021 01:26:39 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3570B3896C1B for ; Thu, 22 Jul 2021 15:26:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3570B3896C1B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1626967597; bh=L7+npdLHjqVSUMlugJfClz0pEUU3+ba+LLC8ic790qM=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=MFH/r4ZEehmkKjKP+ErmKn0NZnaSrQfc9cHH+KnnwLkX2CSvs//I+3aUr2SJHdrjc XoJevmnB80bPjSSYsWOEsRU3xTm7/MyBGk8BdzhXr6oUhdeJDwXvj+NR9f+i//BtCQ et+xOhkheCrV9MuF2lD8RPnK5YYRIkzkTPRYOQag= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org 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 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++" 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: David Edelsohn via Gcc-patches From: David Edelsohn Reply-To: David Edelsohn Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" 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