summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1996-05-09 01:04:06 +0000
committerDoug Evans <dje@gnu.org>1996-05-09 01:04:06 +0000
commit49a2e5b2f7c8519c45de0bb772268b2e95d99469 (patch)
tree5ab406618c183e58e8ce0f38716e705e51a5fb60 /gcc/function.c
parent4dabb3791dfe9db2483914aaff3ee79f9cc74bbf (diff)
downloadgcc-49a2e5b2f7c8519c45de0bb772268b2e95d99469.tar.gz
* function.c (aggregate_value_p): Return 1 if TREE_ADDRESSABLE.
From-SVN: r11957
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