From cf874806a6c277bc1e61131f94645db282915dc3 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 11 Jun 2003 12:05:04 +0000 Subject: h8300.h (RETURN_IN_MEMORY): Accept DImode if !TARGET_H8300. * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if !TARGET_H8300. From-SVN: r67759 --- gcc/ChangeLog | 5 +++++ gcc/config/h8300/h8300.h | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1575492..7a495fa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2003-06-11 Kazu Hirata + * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if + !TARGET_H8300. + +2003-06-11 Kazu Hirata + * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl. * config/h8300/h8300.h (MASK_RTL_DUMP): Remove. (TARGET_RTL_DUMP): Likewise. diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h index f57c0a1..90143eb 100644 --- a/gcc/config/h8300/h8300.h +++ b/gcc/config/h8300/h8300.h @@ -635,8 +635,9 @@ enum reg_class { #define STRUCT_VALUE 0 /* Return true if X should be returned in memory. */ -#define RETURN_IN_MEMORY(X) \ - (TYPE_MODE (X) == BLKmode || GET_MODE_SIZE (TYPE_MODE (X)) > 4) +#define RETURN_IN_MEMORY(X) \ + (TYPE_MODE (X) == BLKmode \ + || GET_MODE_SIZE (TYPE_MODE (X)) > (TARGET_H8300 ? 4 : 8)) /* When defined, the compiler allows registers explicitly used in the rtl to be used as spill registers but prevents the compiler from -- cgit v1.1