From fe3f4effe9ec65b94f109091cda5ecb9b1e8c639 Mon Sep 17 00:00:00 2001 From: mmitchel Date: Fri, 1 Oct 1999 07:03:06 +0000 Subject: [PATCH] * iris6.h (BUILD_VA_LIST_TYPE): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29751 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/config/mips/iris6.h | 6 ++++++ gcc/testsuite/g++.old-deja/g++.other/vaarg1.C | 14 ++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.other/vaarg1.C diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d867659d248..36249eb28ba 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Thu Sep 30 23:04:41 1999 Mark P. Mitchell + + * iris6.h (BUILD_VA_LIST_TYPE): Define. + Thu Sep 30 18:44:50 1999 Franz Sirl * rs6000.c (rs6000_build_va_list): Create a TYPE_DECL node diff --git a/gcc/config/mips/iris6.h b/gcc/config/mips/iris6.h index 47d4ea85d39..62160febb0f 100644 --- a/gcc/config/mips/iris6.h +++ b/gcc/config/mips/iris6.h @@ -438,6 +438,12 @@ do \ } \ while (0) +/* Define the `__builtin_va_list' type for the ABI. On Irix6, this + type is `char *'. */ +#undef BUILD_VA_LIST_TYPE +#define BUILD_VA_LIST_TYPE(VALIST) \ + (VALIST) = build_pointer_type (char_type_node) + /* Output the size directive for a decl in rest_of_decl_compilation in the case where we did not do so before the initializer. Once we find the error_mark_node, we know that the value of diff --git a/gcc/testsuite/g++.old-deja/g++.other/vaarg1.C b/gcc/testsuite/g++.old-deja/g++.other/vaarg1.C new file mode 100644 index 00000000000..d58104ce2ae --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/vaarg1.C @@ -0,0 +1,14 @@ +// Build don't link: +// Origin: Mark Mitchell + +#include +#include + +void f (int i, ...) +{ + va_list ap; + + va_start (ap, i); + vprintf ("test", ap); + va_end (ap); +} -- 2.11.4.GIT