From patchwork Fri Mar 2 15:07:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 880581 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-474179-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="d4dQVN0L"; 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 3ztCMp1TLJz9s4k for ; Sat, 3 Mar 2018 02:07:33 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:reply-to:mime-version :content-type; q=dns; s=default; b=jjKuBMG6OxKHXOqttYzZudlKpoIAd mgW+++vmkpeqFYUirFNo1/bBu3xd9JAsq7MR8Yw17KFwAkbrHRUh32/nCkUD/jCy zQgGkw6BylGIlp8aoNVdyuh/iPSw42Feu88rmPoF0iolQGwf4cTuxOZHoRgiHs0a Y5i3CoLPNHIdmA= 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:date :from:to:cc:subject:message-id:reply-to:mime-version :content-type; s=default; bh=t5AsTRFz/SigXCXp/VlcXUWroi0=; b=d4d QVN0L04TOCqmguPwj3iZw+xckqzUMoirW1aXFCyZyUptlJbKVSyhTMAmOQtzoey6 vL6Bg7xYkN8sCPHtzpABDpJHlWdB04ryi0d2kYviWaplW4jm2789k9FRllcOZkXK aUF8qXfrTzNPUAbO+7UnepPbHxw2EqCjUAt9b65k= Received: (qmail 28803 invoked by alias); 2 Mar 2018 15:07:26 -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 28787 invoked by uid 89); 2 Mar 2018 15:07:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx3-rdu2.redhat.com (HELO mx1.redhat.com) (66.187.233.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 02 Mar 2018 15:07:24 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9BF5F40267CA; Fri, 2 Mar 2018 15:07:18 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-204-85.brq.redhat.com [10.40.204.85]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 503D12156601; Fri, 2 Mar 2018 15:07:17 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id w22F7FSm031801; Fri, 2 Mar 2018 16:07:16 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id w22F7Eg5030514; Fri, 2 Mar 2018 16:07:14 +0100 Date: Fri, 2 Mar 2018 16:07:14 +0100 From: Jakub Jelinek To: John David Anglin , Jeff Law Cc: gcc-patches@gcc.gnu.org, Marc Glisse Subject: [PATCH] Predefine __SIZEOF_FLOAT128__ on hppa hpux (PR target/56540) Message-ID: <20180302150714.GF5867@tucnak> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) X-IsSubscribed: yes Hi! Similarly to the ia64 patch, on hppa __float128 seems to be conditionally provided (guarded with HPUX_LONG_DOUBLE_LIBRARY), so this patch also conditionally predefines __SIZEOF_FLOAT128__. Ok for trunk? 2018-03-02 Jakub Jelinek PR target/56540 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Predefine __SIZEOF_128__ macro if HPUX_LONG_DOUBLE_LIBRARY. Jakub --- gcc/config/pa/pa.h.jj 2018-01-17 11:54:19.035804335 +0100 +++ gcc/config/pa/pa.h 2018-03-02 15:34:11.080879742 +0100 @@ -177,6 +177,8 @@ do { \ builtin_define("_PA_RISC1_1"); \ else \ builtin_define("_PA_RISC1_0"); \ + if (HPUX_LONG_DOUBLE_LIBRARY) \ + builtin_define("__SIZEOF_FLOAT128__=16"); \ } while (0) /* An old set of OS defines for various BSD-like systems. */