From patchwork Wed Aug 8 08:52:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Huber X-Patchwork-Id: 954845 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-483372-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=embedded-brains.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="lBvZURmh"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41llXK6K2Lz9s1c for ; Wed, 8 Aug 2018 18:53:04 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; q=dns; s=default; b=gmmHVzKzG+hO iiuu9EDiQxCi4A+kfFk+xM6kGAiuEKypYn/XBaUa4diU067xq7iBP5gpChEUDrfo WnQCmRYSsuOcz2j0AzfLcKg9cEJ+AYIUXiGhBW8JdfAC2ZNf5t+Aq7vBodsNi2hM XJefdQjz81vFfKp7nIt1mF9rtFNwPS8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; s=default; bh=nMWQ181y89L6dvixBn 8SzvEKclA=; b=lBvZURmhS659tgkXE9ff+BHHCnShe8rXA2griyO50vbWjSoD42 O9WrcwXuZwJumHZyVVGxuLLoIP9v2cdPBvnxyAhwx25kF9YqZvp9Y+9Ovaeklw1p RU6p5WvvIwug4ePd/6g+9SmNSYKaek2UnzNOYsN61V9LEkbeqbCKKFs6Q= Received: (qmail 77389 invoked by alias); 8 Aug 2018 08:52:49 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 77371 invoked by uid 89); 8 Aug 2018 08:52:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-24.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: dedi548.your-server.de Received: from dedi548.your-server.de (HELO dedi548.your-server.de) (85.10.215.148) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 08 Aug 2018 08:52:44 +0000 Received: from [78.46.172.2] (helo=sslproxy05.your-server.de) by dedi548.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2) (envelope-from ) id 1fnKCv-0004pE-FY; Wed, 08 Aug 2018 10:52:41 +0200 Received: from [82.135.62.35] (helo=mail.embedded-brains.de) by sslproxy05.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1fnKCv-0002cM-A5; Wed, 08 Aug 2018 10:52:41 +0200 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 2023E2A1685; Wed, 8 Aug 2018 10:53:05 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id fzhySJ4qs8qi; Wed, 8 Aug 2018 10:53:03 +0200 (CEST) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id EB4FE2A1686; Wed, 8 Aug 2018 10:53:02 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id inWlp90y8cUt; Wed, 8 Aug 2018 10:53:02 +0200 (CEST) Received: from linux-diu0.suse (unknown [192.168.96.149]) by mail.embedded-brains.de (Postfix) with ESMTP id CB3D32A1685; Wed, 8 Aug 2018 10:53:02 +0200 (CEST) From: Sebastian Huber To: gcc-patches@gcc.gnu.org Cc: libstdc++@gcc.gnu.org Subject: [PATCH] libstdc++-v3: Have aligned_alloc() on Newlib Date: Wed, 8 Aug 2018 10:52:38 +0200 Message-Id: <20180808085238.28201-1-sebastian.huber@embedded-brains.de> X-IsSubscribed: yes While building for Newlib, some configure checks must be hard coded. The aligned_alloc() is supported since 2015 in Newlib. libstdc++-v3 PR target/85904 * configure.ac): Define HAVE_ALIGNED_ALLOC if building for Newlib. * configure: Regnerate. --- libstdc++-v3/configure | 2 ++ libstdc++-v3/configure.ac | 1 + 2 files changed, 3 insertions(+) diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index d33081d544c..53803b7e599 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -28967,6 +28967,8 @@ else $as_echo "#define HAVE_TANHF 1" >>confdefs.h + $as_echo "#define HAVE_ALIGNED_ALLOC 1" >>confdefs.h + $as_echo "#define HAVE_ICONV 1" >>confdefs.h $as_echo "#define HAVE_MEMALIGN 1" >>confdefs.h diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac index 332af3706d3..e15228dde5e 100644 --- a/libstdc++-v3/configure.ac +++ b/libstdc++-v3/configure.ac @@ -330,6 +330,7 @@ else AC_DEFINE(HAVE_TANF) AC_DEFINE(HAVE_TANHF) + AC_DEFINE(HAVE_ALIGNED_ALLOC) AC_DEFINE(HAVE_ICONV) AC_DEFINE(HAVE_MEMALIGN) else