diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-02-06 05:55:07 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-02-06 05:55:07 +0000 |
commit | 78bc94a2a8a20a2c3443d42b04cd4d8486f2ed41 (patch) | |
tree | 747192e9ce04e2e116aa37e5fc0323f98c4339f1 /gcc/config/mcore | |
parent | d8c2bed3d823707b2b725344b272ae02011b89ed (diff) | |
download | gcc-78bc94a2a8a20a2c3443d42b04cd4d8486f2ed41.zip gcc-78bc94a2a8a20a2c3443d42b04cd4d8486f2ed41.tar.gz gcc-78bc94a2a8a20a2c3443d42b04cd4d8486f2ed41.tar.bz2 |
arc.c (arc_return_in_memory): Check the return value of int_size_in_bytes against -1.
* config/arc/arc.c (arc_return_in_memory): Check the return
value of int_size_in_bytes against -1. Don't check
TREE_ADDRESSABLE.
* config/avr/avr.c (avr_return_in_memory): Check the return
value of int_size_in_bytes against -1.
* config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
* config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
Likewise.
* config/mcore/mcore.c (mcore_return_in_memory): Likewise.
* config/stormy16/stormy16.c (xstormy16_return_in_memory):
Likewise.
From-SVN: r77377
Diffstat (limited to 'gcc/config/mcore')
-rw-r--r-- | gcc/config/mcore/mcore.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/mcore/mcore.c b/gcc/config/mcore/mcore.c index 58a4762..8f2036c 100644 --- a/gcc/config/mcore/mcore.c +++ b/gcc/config/mcore/mcore.c @@ -3466,5 +3466,6 @@ mcore_external_libcall (rtx fun) static bool mcore_return_in_memory (tree type, tree fntype ATTRIBUTE_UNUSED) { - return int_size_in_bytes (type) > 2 * UNITS_PER_WORD; + HOST_WIDE_INT size = int_size_in_bytes (type); + return (size == -1 || size > 2 * UNITS_PER_WORD); } |