From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 91478 invoked by alias); 11 Feb 2020 18:28:04 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 91469 invoked by uid 89); 11 Feb 2020 18:28:04 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: gate.crashing.org Received: from gate.crashing.org (HELO gate.crashing.org) (63.228.1.57) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 11 Feb 2020 18:28:03 +0000 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 01BIS0gV011553; Tue, 11 Feb 2020 12:28:00 -0600 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 01BIS0cN011552; Tue, 11 Feb 2020 12:28:00 -0600 Date: Tue, 11 Feb 2020 18:28:00 -0000 From: Segher Boessenkool To: will schmidt Cc: gcc-patches@gcc.gnu.org, David Edelsohn Subject: Re: [PATCH] Add ppc_ieee128_ok target-supports proc Message-ID: <20200211182800.GY22482@gate.crashing.org> References: <192d0b37e3b4eb47d0c9eab58a6f359cbf130453.camel@vnet.ibm.com> <20200211034133.GS22482@gate.crashing.org> <4c09df60d57b6d85040bb6f29e3ffc4309336264.camel@vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4c09df60d57b6d85040bb6f29e3ffc4309336264.camel@vnet.ibm.com> User-Agent: Mutt/1.4.2.3i X-IsSubscribed: yes X-SW-Source: 2020-02/txt/msg00668.txt.bz2 Hi! On Tue, Feb 11, 2020 at 12:10:50PM -0600, will schmidt wrote: > +# See if the __ieee128 keyword is understood. > +proc check_effective_target_ppc_ieee128_ok { } { > + return [check_cached_effective_target ppc_ieee128_ok { > + # disable on AIX. > + if { [istarget *-*-aix*] } { > + expr 0 > + } else { > + set options "-mfloat128" > + check_runtime_nocache ppc_ieee128_ok { > + int main() > + { > + __ieee128 a; > + return 0; > + } > + } $options > + } > + }] > +} It would be better if you didn't need to special-case AIX here, if the actual test would figure out it cannot do __ieee128 on AIX. But, okay for trunk. Thanks! Segher