diff options
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r-- | gcc/c-semantics.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c index 6da71b3e310..84000b9f853 100644 --- a/gcc/c-semantics.c +++ b/gcc/c-semantics.c @@ -170,19 +170,12 @@ finish_stmt_tree (t) tree build_stmt VPARAMS ((enum tree_code code, ...)) { -#ifndef ANSI_PROTOTYPES - enum tree_code code; -#endif - va_list p; register tree t; register int length; register int i; - VA_START (p, code); - -#ifndef ANSI_PROTOTYPES - code = va_arg (p, enum tree_code); -#endif + VA_OPEN (p, code); + VA_FIXEDARG (p, enum tree_code, code); t = make_node (code); length = TREE_CODE_LENGTH (code); @@ -191,7 +184,7 @@ build_stmt VPARAMS ((enum tree_code code, ...)) for (i = 0; i < length; i++) TREE_OPERAND (t, i) = va_arg (p, tree); - va_end (p); + VA_CLOSE (p); return t; } |