OSDN Git Service

* sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Apr 2002 21:26:17 +0000 (21:26 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Apr 2002 21:26:17 +0000 (21:26 +0000)
values in memory.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52731 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sh/sh.h

index e70a847..6252446 100644 (file)
@@ -1,3 +1,8 @@
+Wed Apr 24 21:20:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
+       values in memory.
+
 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
 
        * attribs.c (c_common_attribute_table): Move table and handlers
index 0f9345c..d234045 100644 (file)
@@ -973,7 +973,7 @@ extern char sh_additional_register_names[ADDREGNAMES_SIZE] \
 #define RETURN_IN_MEMORY(TYPE) \
   (TARGET_SH5 \
    ? ((TYPE_MODE (TYPE) == BLKmode \
-       ? int_size_in_bytes (TYPE) \
+       ? (unsigned HOST_WIDE_INT) int_size_in_bytes (TYPE) \
        : GET_MODE_SIZE (TYPE_MODE (TYPE))) > 8) \
    : (TYPE_MODE (TYPE) == BLKmode \
       || TARGET_HITACHI && TREE_CODE (TYPE) == RECORD_TYPE))