aboutsummaryrefslogtreecommitdiff
path: root/gcc/calls.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-01-05 07:38:47 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2001-01-05 07:38:47 +0000
commit97fc4caf7d18cd4aaa2a31a55c68b4a4ec7deb36 (patch)
treefc67cb4461acbc1d54a42438d9eee1c7e9e9a151 /gcc/calls.c
parentffc5c6a98441d8e1abe6cdc0d2a93591e21191d7 (diff)
downloadgcc-97fc4caf7d18cd4aaa2a31a55c68b4a4ec7deb36.zip
gcc-97fc4caf7d18cd4aaa2a31a55c68b4a4ec7deb36.tar.gz
gcc-97fc4caf7d18cd4aaa2a31a55c68b4a4ec7deb36.tar.bz2
calls.c (emit_library_call_value_1): Support INIT_CUMULATIVE_LIBCALL_ARGS.
* calls.c (emit_library_call_value_1): Support INIT_CUMULATIVE_LIBCALL_ARGS. * tm.texi (INIT_CUMULATIVE_LIBCALL_ARGS): Document it. From-SVN: r38706
Diffstat (limited to 'gcc/calls.c')
-rw-r--r--gcc/calls.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/calls.c b/gcc/calls.c
index 95ff8b1..ab6c5bb 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -1,6 +1,6 @@
/* Convert function calls to rtl insns, for GNU C compiler.
Copyright (C) 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998
- 1999, 2000 Free Software Foundation, Inc.
+ 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -3589,7 +3589,11 @@ emit_library_call_value_1 (retval, orgfun, value, fn_type, outmode, nargs, p)
argvec = (struct arg *) alloca ((nargs + 1) * sizeof (struct arg));
memset ((char *) argvec, 0, (nargs + 1) * sizeof (struct arg));
+#ifdef INIT_CUMULATIVE_LIBCALL_ARGS
+ INIT_CUMULATIVE_LIBCALL_ARGS (args_so_far, outmode, fun);
+#else
INIT_CUMULATIVE_ARGS (args_so_far, NULL_TREE, fun, 0);
+#endif
args_size.constant = 0;
args_size.var = 0;