* function.c (pass_by_reference): True for all variable sized types.
From-SVN: r84829
This commit is contained in:
parent
7eacb691bb
commit
d58247a321
@ -1,3 +1,7 @@
|
||||
2004-07-16 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* function.c (pass_by_reference): True for all variable sized types.
|
||||
|
||||
2004-07-16 Sebastian Pop <pop@cri.ensmp.fr>
|
||||
|
||||
* Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
|
||||
|
@ -2039,9 +2039,8 @@ pass_by_reference (CUMULATIVE_ARGS *ca, enum machine_mode mode,
|
||||
if (TREE_ADDRESSABLE (type))
|
||||
return true;
|
||||
|
||||
/* If an object's size is dependent on itself, there's no way
|
||||
to *not* pass by reference. */
|
||||
if (CONTAINS_PLACEHOLDER_P (TYPE_SIZE (type)))
|
||||
/* GCC post 3.4 passes *all* variable sized types by reference. */
|
||||
if (!TYPE_SIZE (type) || TREE_CODE (TYPE_SIZE (type)) != INTEGER_CST)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user