From 02d353cfc901c7d7f57376029ef89ca1a043043b Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Tue, 19 Feb 2008 08:14:10 +0100 Subject: [PATCH] sfp-machine.h (__gcc_CMPtype): New typedef. * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef. (CMPtype): Define as __gcc_CMPtype. * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef. (CMPtype): Define as __gcc_CMPtype. From-SVN: r132413 --- gcc/ChangeLog | 7 +++++++ gcc/config/i386/sfp-machine.h | 3 ++- gcc/config/rs6000/sfp-machine.h | 5 +++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7201027a803..3a23574f768 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2008-02-19 Uros Bizjak + + * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef. + (CMPtype): Define as __gcc_CMPtype. + * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef. + (CMPtype): Define as __gcc_CMPtype. + 2008-02-19 Hans-Peter Nilsson Support valgrind 3.3 for --enable-checking=valgrind. diff --git a/gcc/config/i386/sfp-machine.h b/gcc/config/i386/sfp-machine.h index b7625c0ed3c..190e3cb0e81 100644 --- a/gcc/config/i386/sfp-machine.h +++ b/gcc/config/i386/sfp-machine.h @@ -10,7 +10,8 @@ typedef unsigned int UTItype __attribute__ ((mode (TI))); /* The type of the result of a floating point comparison. This must match `__libgcc_cmp_return__' in GCC for the target. */ -#define CMPtype long +typedef int __gcc_CMPtype __attribute__ ((mode (__libgcc_cmp_return__))); +#define CMPtype __gcc_CMPtype #define _FP_MUL_MEAT_Q(R,X,Y) \ _FP_MUL_MEAT_2_wide(_FP_WFRACBITS_Q,R,X,Y,umul_ppmm) diff --git a/gcc/config/rs6000/sfp-machine.h b/gcc/config/rs6000/sfp-machine.h index 29173e235dc..a0d1631bbb8 100644 --- a/gcc/config/rs6000/sfp-machine.h +++ b/gcc/config/rs6000/sfp-machine.h @@ -3,6 +3,11 @@ #define _FP_WS_TYPE signed long #define _FP_I_TYPE long +/* The type of the result of a floating point comparison. This must + match `__libgcc_cmp_return__' in GCC for the target. */ +typedef int __gcc_CMPtype __attribute__ ((mode (__libgcc_cmp_return__))); +#define CMPtype __gcc_CMPtype + #define _FP_MUL_MEAT_S(R,X,Y) \ _FP_MUL_MEAT_1_wide(_FP_WFRACBITS_S,R,X,Y,umul_ppmm) #define _FP_MUL_MEAT_D(R,X,Y) \