diff options
Diffstat (limited to 'gcc/calls.c')
-rw-r--r-- | gcc/calls.c | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/gcc/calls.c b/gcc/calls.c index 70883ee3835..5b4fbc9b94f 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -4171,18 +4171,14 @@ emit_library_call_value_1 (retval, orgfun, value, fn_type, outmode, nargs, p) or other LCT_ value for other types of library calls. */ void -emit_library_call VPARAMS((rtx orgfun, enum libcall_type fn_type, - enum machine_mode outmode, int nargs, ...)) +emit_library_call (rtx orgfun, enum libcall_type fn_type, + enum machine_mode outmode, int nargs, ...) { - 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); - + va_list p; + + va_start (p, nargs); emit_library_call_value_1 (0, orgfun, NULL_RTX, fn_type, outmode, nargs, p); - - VA_CLOSE (p); + va_end (p); } /* Like emit_library_call except that an extra argument, VALUE, @@ -4194,23 +4190,17 @@ emit_library_call VPARAMS((rtx orgfun, enum libcall_type fn_type, If VALUE is nonzero, VALUE is returned. */ rtx -emit_library_call_value VPARAMS((rtx orgfun, rtx value, - enum libcall_type fn_type, - enum machine_mode outmode, int nargs, ...)) +emit_library_call_value (rtx orgfun, rtx value, + enum libcall_type fn_type, + enum machine_mode outmode, int nargs, ...) { rtx result; + va_list p; - 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); - + va_start (p, nargs); result = emit_library_call_value_1 (1, orgfun, value, fn_type, outmode, nargs, p); - - VA_CLOSE (p); + va_end (p); return result; } |