From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16003 invoked by alias); 12 Jul 2011 17:47:28 -0000 Received: (qmail 15991 invoked by uid 22791); 12 Jul 2011 17:47:26 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 Jul 2011 17:47:02 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6CHkngd011254 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 12 Jul 2011 13:46:49 -0400 Received: from anchor.twiddle.net (vpn-225-164.phx2.redhat.com [10.3.225.164]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p6CHkmfB022786; Tue, 12 Jul 2011 13:46:49 -0400 Message-ID: <4E1C8888.1000700@redhat.com> Date: Tue, 12 Jul 2011 18:03:00 -0000 From: Richard Henderson User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Thunderbird/3.1.10 MIME-Version: 1.0 To: Rainer Orth CC: gcc-patches@gcc.gnu.org, Paolo Bonzini , Ian Lance Taylor , "Joseph S. Myers" Subject: Re: CFT: [build] Move fp-bit support to toplevel libgcc References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2011-07/txt/msg00939.txt.bz2 On 07/12/2011 10:07 AM, Rainer Orth wrote: > Only a couple of special defines (like FLOAT_WORD_ORDER_MISMATCH, > QUIET_NAN_NEGATED) are moved to special t-* files in libgcc/config with > [FDT]PBIT_CFLAGS similar to e.g. LIBGCC_SYNC_CFLAGS. If it were > possible to have gcc define some __LIBGCC_* macro corresponding to them, > that would allow for further simplification. Only if this mechanism > couldn't handle the requirements have I resorted to introducing > libgcc_tm_file snippets to handle them. Re QUIET_NAN_NEGATED, it seems like we should be able to make use of the __builtin_nan("") function. Perhaps if (isnan (src)) { FLO_type ret = __builtin_nan(""); if (sign) ret = -ret; return ret; } ... assuming __builtin_nan gets re-defined in fp-bit for the type as appropriate. r~