OSDN Git Service

* function.c (assign_parm_find_data_types): Call
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Jul 2004 23:02:22 +0000 (23:02 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Jul 2004 23:02:22 +0000 (23:02 +0000)
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

gcc/ChangeLog
gcc/function.c

index 6031eee..33be083 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
+
+       * function.c (assign_parm_find_data_types): Call
+       FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
+
 2004-07-07  Steven Bosscher  <stevenb@suse.de>
 
        * tree-cfg.c (group_case_labels): Remove case labels that have
index bb2afd9..6778465 100644 (file)
@@ -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;