+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.
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;
}