* function.c (pass_by_reference): True for all variable sized types.

From-SVN: r84829
This commit is contained in:
Richard Henderson 2004-07-16 13:34:12 -07:00 committed by Richard Henderson
parent 7eacb691bb
commit d58247a321
2 changed files with 6 additions and 3 deletions

View File

@ -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.

View File

@ -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;
}