summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-07 23:02:22 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-07 23:02:22 +0000
commit21a26a5c7d8c9ebea377768ac64b5374fab1a99e (patch)
treebdcd93cc875cb932d1358bff1476d9b946d84cb4 /gcc/function.c
parentf1272d07af073b873523b7a4f809d702de218f02 (diff)
downloadgcc-21a26a5c7d8c9ebea377768ac64b5374fab1a99e.tar.gz
* function.c (assign_parm_find_data_types): Call
FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84241 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c
index bb2afd918f3..67784652b53 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -2246,8 +2246,11 @@ assign_parm_find_data_types (struct assign_parm_data_all *all, tree parm,
the machine requires these objects be passed that way. */
if (CONTAINS_PLACEHOLDER_P (TYPE_SIZE (passed_type))
|| TREE_ADDRESSABLE (passed_type)
+#ifdef FUNCTION_ARG_PASS_BY_REFERENCE
|| FUNCTION_ARG_PASS_BY_REFERENCE (all->args_so_far, passed_mode,
- passed_type, data->named_arg))
+ passed_type, data->named_arg)
+#endif
+ )
{
passed_type = nominal_type = build_pointer_type (passed_type);
data->passed_pointer = true;