From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24941 invoked by alias); 15 Feb 2008 17:41:28 -0000 Received: (qmail 24931 invoked by uid 22791); 15 Feb 2008 17:41:27 -0000 X-Spam-Check-By: sourceware.org Received: from fg-out-1718.google.com (HELO fg-out-1718.google.com) (72.14.220.157) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 15 Feb 2008 17:41:08 +0000 Received: by fg-out-1718.google.com with SMTP id d23so491045fga.28 for ; Fri, 15 Feb 2008 09:41:05 -0800 (PST) Received: by 10.86.98.18 with SMTP id v18mr2747096fgb.43.1203097265668; Fri, 15 Feb 2008 09:41:05 -0800 (PST) Received: from ?194.249.3.33? ( [194.249.3.33]) by mx.google.com with ESMTPS id e11sm4826278fga.5.2008.02.15.09.41.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 15 Feb 2008 09:41:04 -0800 (PST) Message-ID: <47B5CEA1.4040101@gmail.com> Date: Fri, 15 Feb 2008 18:30:00 -0000 From: Uros Bizjak User-Agent: Thunderbird 1.5.0.7 (X11/20061008) MIME-Version: 1.0 To: GCC Patches Subject: [PATCH, i386]: Committed: Define CMPtype as typedef using libgcc_cmp_return mode. Content-Type: multipart/mixed; boundary="------------010002040904070503010705" 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: 2008-02/txt/msg00577.txt.bz2 This is a multi-part message in MIME format. --------------010002040904070503010705 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 381 Hello! This obvious patch somehow slipped through the cracks. [The patch also fixes a few cosmetic issues in sfp-machine.c.] 2008-02-15 Uros Bizjak * config/i386/sfp-machine.h (CMPtype): Define as typedef using libgcc_cmp_return mode. Patch was bootstrapped and regression tested on x86_64-pc-linux-gnu, committed to SVN mainline. Uros. --------------010002040904070503010705 Content-Type: text/plain; name="p.diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="p.diff.txt" Content-length: 1450 Index: config/i386/sfp-machine.h =================================================================== --- config/i386/sfp-machine.h (revision 132345) +++ config/i386/sfp-machine.h (working copy) @@ -3,15 +3,16 @@ #define _FP_WS_TYPE signed long #define _FP_I_TYPE long -typedef int TItype __attribute__((mode(TI))); -typedef unsigned int UTItype __attribute__((mode(TI))); +typedef int TItype __attribute__ ((mode (TI))); +typedef unsigned int UTItype __attribute__ ((mode (TI))); -#define TI_BITS (__CHAR_BIT__ * (int)sizeof(TItype)) +#define TI_BITS (__CHAR_BIT__ * (int)sizeof(TItype)) -/* The type of the result of a floating point comparison. - This must match `word_mode' in GCC for the target. */ -#define CMPtype long +/* The type of the result of a floating point comparison. This must + match `__libgcc_cmp_return__' in GCC for the target. */ +typedef int CMPtype __attribute__ ((mode (__libgcc_cmp_return__))); + #define _FP_MUL_MEAT_Q(R,X,Y) \ _FP_MUL_MEAT_2_wide(_FP_WFRACBITS_Q,R,X,Y,umul_ppmm) @@ -30,8 +31,7 @@ /* Here is something Intel misdesigned: the specs don't define the case where we have two NaNs with same mantissas, but - different sign. Different operations pick up different NaNs. - */ + different sign. Different operations pick up different NaNs. */ #define _FP_CHOOSENAN(fs, wc, R, X, Y, OP) \ do { \ if (_FP_FRAC_GT_##wc(X, Y) \ --------------010002040904070503010705--