diff options
author | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-27 06:48:43 +0000 |
---|---|---|
committer | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-27 06:48:43 +0000 |
commit | 0903457a8fbc337677e7fa52c4f44934263f4447 (patch) | |
tree | 58234e1acd4f13f4f073a6ad3b59cad11faacb33 /gcc/emit-rtl.c | |
parent | 512c9137754387fc3bcd18ac7f4bf63cda0c006a (diff) | |
download | gcc-0903457a8fbc337677e7fa52c4f44934263f4447.tar.gz |
* emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
* errors.c: Likewise.
* final.c: Likewise.
* dwarf2asm.c: Likewise.
* doprint.c (checkit): Likewise.
* diagnostic.c: Likewise.
* collect2.c: Likewise.
* calls.c: Likewise.
* c-semantics.c (build_stmt): Likewise.
* c-format.c (status_warning): Likewise.
* c-errors.c (pedwarn_c99): Likewise.
* builtins.c (validate_arglist): Likewise.
* config/pj/pj.c (pj_printf): Likewise.
* fix-header.c: Likewise.
* gcc.c: Likewise.
* gcov.c (fnotice): Likewise.
* gensupport.c (message_with_line): Likewise.
* mips-tfile.c: Likewise.
* protoize.c (notice): Likewise.
* read-rtl.c (fatal_with_file_and_line): Likewise.
* rtl-error.c: Likewise.
* tradcpp.c: Likewise.
* tree.c: Likewise.
* cp/tree.c (build_min_nt): Likewise.
(build_min): Likewise.
* cp/lex.c: Likewise.
* cp/errfn.c: Likewise.
* cp/rtti.c (create_pseudo_type_info): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45185 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index b41de83ddad..379bfb6b809 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -424,21 +424,13 @@ gen_lowpart_SUBREG (mode, reg) rtx gen_rtx VPARAMS ((enum rtx_code code, enum machine_mode mode, ...)) { -#ifndef ANSI_PROTOTYPES - enum rtx_code code; - enum machine_mode mode; -#endif - va_list p; register int i; /* Array indices... */ register const char *fmt; /* Current rtx's format... */ register rtx rt_val; /* RTX to return to caller... */ - VA_START (p, mode); - -#ifndef ANSI_PROTOTYPES - code = va_arg (p, enum rtx_code); - mode = va_arg (p, enum machine_mode); -#endif + VA_OPEN (p, mode); + VA_FIXEDARG (p, enum rtx_code, code); + VA_FIXEDARG (p, enum machine_mode, mode); switch (code) { @@ -511,7 +503,7 @@ gen_rtx VPARAMS ((enum rtx_code code, enum machine_mode mode, ...)) break; } - va_end (p); + VA_CLOSE (p); return rt_val; } @@ -525,18 +517,11 @@ gen_rtx VPARAMS ((enum rtx_code code, enum machine_mode mode, ...)) rtvec gen_rtvec VPARAMS ((int n, ...)) { -#ifndef ANSI_PROTOTYPES - int n; -#endif int i; - va_list p; rtx *vector; - VA_START (p, n); - -#ifndef ANSI_PROTOTYPES - n = va_arg (p, int); -#endif + VA_OPEN (p, n); + VA_FIXEDARG (p, int, n); if (n == 0) return NULL_RTVEC; /* Don't allocate an empty rtvec... */ @@ -545,7 +530,7 @@ gen_rtvec VPARAMS ((int n, ...)) for (i = 0; i < n; i++) vector[i] = va_arg (p, rtx); - va_end (p); + VA_CLOSE (p); return gen_rtvec_v (n, vector); } |