projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dabb37
)
* function.c (aggregate_value_p): Return 1 if TREE_ADDRESSABLE.
author
Doug Evans
<dje@gnu.org>
Thu, 9 May 1996 01:04:06 +0000
(
01:04
+0000)
committer
Doug Evans
<dje@gnu.org>
Thu, 9 May 1996 01:04:06 +0000
(
01:04
+0000)
From-SVN: r11957
gcc/function.c
patch
|
blob
|
history
diff --git
a/gcc/function.c
b/gcc/function.c
index
0af5a69
..
395cbf7
100644
(file)
--- 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