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/cp/rtti.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/cp/rtti.c')
-rw-r--r-- | gcc/cp/rtti.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index 89fa5a3db7d..6cdac79ac6a 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -1154,11 +1154,6 @@ create_real_tinfo_var (target_type, name, type, init, non_public) static tree create_pseudo_type_info VPARAMS((const char *real_name, int ident, ...)) { -#ifndef ANSI_PROTOTYPES - char const *real_name; - int ident; -#endif - va_list ap; tree real_type, pseudo_type; char *pseudo_name; tree vtable_decl; @@ -1166,12 +1161,10 @@ create_pseudo_type_info VPARAMS((const char *real_name, int ident, ...)) tree fields[10]; tree field_decl; tree result; - - VA_START (ap, ident); -#ifndef ANSI_PROTOTYPES - real_name = va_arg (ap, char const *); - ident = va_arg (ap, int); -#endif + + VA_OPEN (ap, ident); + VA_FIXEDARG (ap, const char *, real_name); + VA_FIXEDARG (ap, int, ident); /* Generate the pseudo type name. */ pseudo_name = (char *)alloca (strlen (real_name) + 30); @@ -1205,8 +1198,8 @@ create_pseudo_type_info VPARAMS((const char *real_name, int ident, ...)) pseudo_type = make_aggr_type (RECORD_TYPE); finish_builtin_type (pseudo_type, pseudo_name, fields, ix, ptr_type_node); TYPE_HAS_CONSTRUCTOR (pseudo_type) = 1; - va_end (ap); - + VA_CLOSE (ap); + result = tree_cons (NULL_TREE, NULL_TREE, NULL_TREE); TINFO_VTABLE_DECL (result) = vtable_decl; TINFO_PSEUDO_TYPE (result) = pseudo_type; |