summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>1996-05-09 01:04:06 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>1996-05-09 01:04:06 +0000
commit79f1a380bc1c82fc255eefebc786aeebf8c44f09 (patch)
tree5ab406618c183e58e8ce0f38716e705e51a5fb60 /gcc/function.c
parent78e1ca3ba3b946f7cb72e33e26f5b9fa9ee67b92 (diff)
downloadgcc-79f1a380bc1c82fc255eefebc786aeebf8c44f09.tar.gz
* function.c (aggregate_value_p): Return 1 if TREE_ADDRESSABLE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11957 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 0af5a69d38c..395cbf7f9ec 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -3192,6 +3192,10 @@ aggregate_value_p (exp)
if (RETURN_IN_MEMORY (type))
return 1;
+ /* Types that are TREE_ADDRESSABLE must be contructed in memory,
+ and thus can't be returned in registers. */
+ if (TREE_ADDRESSABLE (type))
+ return 1;
if (flag_pcc_struct_return && AGGREGATE_TYPE_P (type))
return 1;
/* Make sure we have suitable call-clobbered regs to return