aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/misc.c')
-rw-r--r--gcc/ada/misc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ada/misc.c b/gcc/ada/misc.c
index 60232bf5997..45f069d32fb 100644
--- a/gcc/ada/misc.c
+++ b/gcc/ada/misc.c
@@ -7,7 +7,7 @@
* C Implementation File *
* *
* *
- * Copyright (C) 1992-2002 Free Software Foundation, Inc. *
+ * Copyright (C) 1992-2003 Free Software Foundation, Inc. *
* *
* GNAT is free software; you can redistribute it and/or modify it under *
* terms of the GNU General Public License as published by the Free Soft- *
@@ -59,6 +59,7 @@
#include "tm_p.h"
#include "langhooks.h"
#include "langhooks-def.h"
+#include "target.h"
#include "ada.h"
#include "types.h"
@@ -796,7 +797,7 @@ default_pass_by_ref (gnu_type)
|| FUNCTION_ARG_PASS_BY_REFERENCE (cum, TYPE_MODE (gnu_type),
gnu_type, 1)
#endif
- || RETURN_IN_MEMORY (gnu_type)
+ || targetm.calls.return_in_memory (gnu_type, NULL_TREE)
|| (AGGREGATE_TYPE_P (gnu_type)
&& (! host_integerp (TYPE_SIZE (gnu_type), 1)
|| 0 < compare_tree_int (TYPE_SIZE (gnu_type),