From: Kazu Hirata Date: Wed, 11 Jun 2003 12:05:04 +0000 (+0000) Subject: h8300.h (RETURN_IN_MEMORY): Accept DImode if !TARGET_H8300. X-Git-Tag: releases/gcc-3.4.0~5951 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf874806a6c277bc1e61131f94645db282915dc3;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1575492b6a31..7a495fa43a63 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h index f57c0a1fb66b..90143eb9b5f8 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