function.c (assign_parm_find_data_types): Call FUNCTION_ARG_PASS_BY_REFERENCE only...
authorAlexandre Oliva <aoliva@redhat.com>
Wed, 7 Jul 2004 23:02:22 +0000 (23:02 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 7 Jul 2004 23:02:22 +0000 (23:02 +0000)
* function.c (assign_parm_find_data_types): Call
FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.

From-SVN: r84241

gcc/ChangeLog
gcc/function.c

index 6031eee93985bd75f30025c5f7d26bbd8506b488..33be083356c737ca1cf2dac5d34cc1c6cbaf1608 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 bb2afd918f3f99ed0e2e046ea651d17621fead25..67784652b53e5fc0195fcc1cbad8bea3d52eade3 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;