From patchwork Sat Jun 16 14:32:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 165293 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 CA0A6B70D0 for ; Sun, 17 Jun 2012 00:33:17 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1340461999; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=APA3fEMgKB8aDf3rcagsr0PxUKw=; b=glYz0MF8ii7qgr7 2JuJmX78txxQNbRAOkfyZkhu9UgIc5f35pCRZ4yY3CP/DxK6yqSFAwuYIeURICrn JoyYwlnJNHTj5G33JAE4jf+fYdBioZm5DFDGBy7JNbftBY2js3X4Lea1aY5Y3/7a vEgzsLf59tahrIjjpny9AH+I/yDQ= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type:Content-Transfer-Encoding:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=Xm//3JUWMe81VTO26rTvEJdu5PjXwQ4m1AgJ+5r25Ctq7d+Q8DrAJNMMIgeHsW c9E3bumATOHcDrfAjox6jsek1S6pDFzN/HHs3Si0L3rN5XdNHYdfLEBacLuWZDHz lHtnbNqcfHSUi+p1fka/moRn2nHKk/pu1I7YuF9B/ZTms=; Received: (qmail 11017 invoked by alias); 16 Jun 2012 14:33:14 -0000 Received: (qmail 11004 invoked by uid 22791); 16 Jun 2012 14:33:13 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, FROM_12LTRDOM, KHOP_RCVD_UNTRUST, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL, SARE_SUB_ENC_UTF8 X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 16 Jun 2012 14:33:00 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1Sfu3f-0000Ts-01 from Thomas_Schwinge@mentor.com ; Sat, 16 Jun 2012 07:32:59 -0700 Received: from feldtkeller.schwinge.homeip.net ([172.30.72.5]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 16 Jun 2012 15:32:57 +0100 From: Thomas Schwinge To: decimalfp@intel.com, gcc-patches@gcc.gnu.org Cc: hongjiu.lu@intel.com Subject: =?UTF-8?q?=5BPATCH=5D=20Decimal=20Floating-Point=20=28libbid=29=20for=20GNU/Hurd?= Date: Sat, 16 Jun 2012 16:32:44 +0200 Message-Id: <1339857164-4566-1-git-send-email-thomas@codesourcery.com> MIME-Version: 1.0 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! Intel folks, the bid_functions.h change is for you, that one plus the other changes are for GCC. libgcc/config/libbid/ * bid_functions.h: Check for __GLIBC__ additionally to LINUX when defining format specifiers. config/ * dfp.m4 (enable_decimal_float): Enable for i?86*-*-gnu*. gcc/ * configure: Regenerate. libdecnumber/ * configure: Regenerate. libgcc/ * configure: Regenerate. OK to check in? Grüße, Thomas --- config/dfp.m4 | 1 + gcc/configure | 5 +++-- libdecnumber/configure | 1 + libgcc/config/libbid/bid_functions.h | 4 ++-- libgcc/configure | 1 + 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/config/dfp.m4 b/config/dfp.m4 index cc778b1..e971db4 100644 --- a/config/dfp.m4 +++ b/config/dfp.m4 @@ -21,6 +21,7 @@ Valid choices are 'yes', 'bid', 'dpd', and 'no'.]) ;; [ case $1 in powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ + i?86*-*-gnu* | \ i?86*-*-mingw* | x86_64*-*-mingw* | \ i?86*-*-cygwin*) enable_decimal_float=yes diff --git a/gcc/configure b/gcc/configure index 1fdf0af..3fea751 100755 --- a/gcc/configure +++ b/gcc/configure @@ -7053,6 +7053,7 @@ else case $target in powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ + i?86*-*-gnu* | \ i?86*-*-mingw* | x86_64*-*-mingw* | \ i?86*-*-cygwin*) enable_decimal_float=yes @@ -17971,7 +17972,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 17974 "configure" +#line 17975 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -18077,7 +18078,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 18080 "configure" +#line 18081 "configure" #include "confdefs.h" #if HAVE_DLFCN_H diff --git a/libdecnumber/configure b/libdecnumber/configure index 2b58684..0466371 100755 --- a/libdecnumber/configure +++ b/libdecnumber/configure @@ -4611,6 +4611,7 @@ else case $target in powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ + i?86*-*-gnu* | \ i?86*-*-mingw* | x86_64*-*-mingw* | \ i?86*-*-cygwin*) enable_decimal_float=yes diff --git a/libgcc/config/libbid/bid_functions.h b/libgcc/config/libbid/bid_functions.h index 579370a..abb27b9 100644 --- a/libgcc/config/libbid/bid_functions.h +++ b/libgcc/config/libbid/bid_functions.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2007, 2009 Free Software Foundation, Inc. +/* Copyright (C) 2007, 2009, 2011 Free Software Foundation, Inc. This file is part of GCC. @@ -124,7 +124,7 @@ ALIGN (16) #define DENORMAL_MODE 0x00000100 #define INVALID_MODE 0x00000080 -#if defined LINUX || defined SUNOS +#if defined LINUX || defined __GLIBC__ || defined SUNOS #define LX16 "%016llx" #define LX "%llx" #define LD4 "%4llu" diff --git a/libgcc/configure b/libgcc/configure index a226f81..e645378 100644 --- a/libgcc/configure +++ b/libgcc/configure @@ -4075,6 +4075,7 @@ else case $host in powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ + i?86*-*-gnu* | \ i?86*-*-mingw* | x86_64*-*-mingw* | \ i?86*-*-cygwin*) enable_decimal_float=yes