aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2004-07-07 23:02:22 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2004-07-07 23:02:22 +0000
commit6b70713d28225fdc091b442a68bdae8908588a15 (patch)
treebdcd93cc875cb932d1358bff1476d9b946d84cb4 /gcc/function.c
parentf83295c890d23aae6028e4af01bd7c396ade2f3e (diff)
downloadgcc-6b70713d28225fdc091b442a68bdae8908588a15.zip
gcc-6b70713d28225fdc091b442a68bdae8908588a15.tar.gz
gcc-6b70713d28225fdc091b442a68bdae8908588a15.tar.bz2
function.c (assign_parm_find_data_types): Call FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
* function.c (assign_parm_find_data_types): Call FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined. From-SVN: r84241
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 bb2afd9..6778465 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;