aboutsummaryrefslogtreecommitdiff
path: root/gcc/calls.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@gcc.gnu.org>2001-08-28 06:55:48 +0200
committerAndreas Jaeger <aj@gcc.gnu.org>2001-08-28 06:55:48 +0200
commit79e8ec0eb26d501071212a040332a9336ae1b3c5 (patch)
treeae1cdd68d97bedc6d90accdf935007abc21d003c /gcc/calls.c
parentc23bb84bd333c756c82c53c076befae20804b6cb (diff)
downloadgcc-79e8ec0eb26d501071212a040332a9336ae1b3c5.zip
gcc-79e8ec0eb26d501071212a040332a9336ae1b3c5.tar.gz
gcc-79e8ec0eb26d501071212a040332a9336ae1b3c5.tar.bz2
(forgot in last checkin)
Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout. From-SVN: r45223
Diffstat (limited to 'gcc/calls.c')
-rw-r--r--gcc/calls.c49
1 files changed, 13 insertions, 36 deletions
diff --git a/gcc/calls.c b/gcc/calls.c
index 27adf14..275ca1d 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -4203,26 +4203,15 @@ void
emit_library_call VPARAMS((rtx orgfun, enum libcall_type fn_type,
enum machine_mode outmode, int nargs, ...))
{
-#ifndef ANSI_PROTOTYPES
- rtx orgfun;
- int fn_type;
- enum machine_mode outmode;
- int nargs;
-#endif
- va_list p;
-
- VA_START (p, nargs);
-
-#ifndef ANSI_PROTOTYPES
- orgfun = va_arg (p, rtx);
- fn_type = va_arg (p, int);
- outmode = va_arg (p, enum machine_mode);
- nargs = va_arg (p, int);
-#endif
+ VA_OPEN (p, nargs);
+ VA_FIXEDARG (p, rtx, orgfun);
+ VA_FIXEDARG (p, int, fn_type);
+ VA_FIXEDARG (p, enum machine_mode, outmode);
+ VA_FIXEDARG (p, int, nargs);
emit_library_call_value_1 (0, orgfun, NULL_RTX, fn_type, outmode, nargs, p);
- va_end (p);
+ VA_CLOSE (p);
}
/* Like emit_library_call except that an extra argument, VALUE,
@@ -4238,28 +4227,16 @@ emit_library_call_value VPARAMS((rtx orgfun, rtx value,
enum libcall_type fn_type,
enum machine_mode outmode, int nargs, ...))
{
-#ifndef ANSI_PROTOTYPES
- rtx orgfun;
- rtx value;
- int fn_type;
- enum machine_mode outmode;
- int nargs;
-#endif
- va_list p;
-
- VA_START (p, nargs);
-
-#ifndef ANSI_PROTOTYPES
- orgfun = va_arg (p, rtx);
- value = va_arg (p, rtx);
- fn_type = va_arg (p, int);
- outmode = va_arg (p, enum machine_mode);
- nargs = va_arg (p, int);
-#endif
+ VA_OPEN (p, nargs);
+ VA_FIXEDARG (p, rtx, orgfun);
+ VA_FIXEDARG (p, rtx, value);
+ VA_FIXEDARG (p, int, fn_type);
+ VA_FIXEDARG (p, enum machine_mode, outmode);
+ VA_FIXEDARG (p, int, nargs);
value = emit_library_call_value_1 (1, orgfun, value, fn_type, outmode, nargs, p);
- va_end (p);
+ VA_CLOSE (p);
return value;
}