diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/moxie/moxie.h | 3 | ||||
-rw-r--r-- | gcc/config/moxie/sfp-machine.h | 5 |
3 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d25a5d06033..50f17b78fa1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-06-20 Anthony Green <green@moxielogic.com> + + * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define. + * config/moxie/moxie.h (LOAD_EXTEND_OP): Define. + 2009-06-20 Richard Guenther <rguenther@suse.de> * tree-ssa-structalias.c (find_func_aliases): For memset use diff --git a/gcc/config/moxie/moxie.h b/gcc/config/moxie/moxie.h index e63190978f0..73a1a5101e0 100644 --- a/gcc/config/moxie/moxie.h +++ b/gcc/config/moxie/moxie.h @@ -518,6 +518,9 @@ do \ #define MOVE_MAX 4 #define TRULY_NOOP_TRUNCATION(op,ip) 1 +/* All load operations zero extend. */ +#define LOAD_EXTEND_OP(MEM) ZERO_EXTEND + #define RETURN_POPS_ARGS(FUNDECL, FUNTYPE, STACK_SIZE) 0 /* A C expression that is nonzero if X is a legitimate constant for diff --git a/gcc/config/moxie/sfp-machine.h b/gcc/config/moxie/sfp-machine.h index 57f515e9fc6..98f9f1bf491 100644 --- a/gcc/config/moxie/sfp-machine.h +++ b/gcc/config/moxie/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) \ |