From patchwork Sun Feb 20 22:13:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 83765 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 321B0B7190 for ; Mon, 21 Feb 2011 09:13:55 +1100 (EST) Received: (qmail 29360 invoked by alias); 20 Feb 2011 22:13:53 -0000 Received: (qmail 29351 invoked by uid 22791); 20 Feb 2011 22:13:52 -0000 X-SWARE-Spam-Status: No, hits=-6.4 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; Sun, 20 Feb 2011 22:13:40 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p1KMDdSn012406 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 20 Feb 2011 17:13:39 -0500 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [10.16.42.4]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p1KMDc7d005112 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 20 Feb 2011 17:13:38 -0500 Received: from tyan-ft48-01.lab.bos.redhat.com (localhost.localdomain [127.0.0.1]) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4) with ESMTP id p1KMDb9k017950 for ; Sun, 20 Feb 2011 23:13:37 +0100 Received: (from jakub@localhost) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4/Submit) id p1KMDbl4017948 for gcc-patches@gcc.gnu.org; Sun, 20 Feb 2011 23:13:37 +0100 Date: Sun, 20 Feb 2011 23:13:37 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] (re)define NAN in quadmath (PR bootstrap/47827) Message-ID: <20110220221337.GT30899@tyan-ft48-01.lab.bos.redhat.com> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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 Hi! Apparently Solaris either doesn't have C99-ish math.h or at least doesn't have it by default nor with AC_USE_SYSTEM_EXTENSIONS macros. Anyway, we know we are compiled by GCC (which we heavily rely on with __float128 etc.), so we can provide our own definition. Committed to trunk. 2011-02-20 Jakub Jelinek PR bootstrap/47827 * printf/quadmath-printf.h (NAN): Redefine to __builtin_nanf (""). Jakub --- libquadmath/printf/quadmath-printf.h.jj 2011-02-17 18:33:32.000000000 +0100 +++ libquadmath/printf/quadmath-printf.h 2011-02-20 22:52:08.754670648 +0100 @@ -181,3 +181,6 @@ __quadmath_do_putc (struct __quadmath_pr #undef _itoa #define _itoa __quadmath_itoa + +#undef NAN +#define NAN __builtin_nanf ("")