--- Begin Message ---
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: 06 Mar 2002 21:12:47 -0300
- Subject: Re: GDB CVS won't build on OSF4.0's cc
- Organization: GCC Team, Red Hat
- References: <org0dofodw.fsf@guarana.lsd.ic.unicamp.br><or3d9ofncw.fsf@guarana.lsd.ic.unicamp.br><ory9rge7dc.fsf@guarana.lsd.ic.unicamp.br>
On May 29, 2001, Alexandre Oliva <aoliva@redhat.com> wrote:
> Another problem showed up while building gdbtk. gdb/defs.h #includes
> <stdarg.h>, but tcl/generic/tclInt.h #includes <varargs.h>, because
> HAS_STDARG is not defined.
> It turns out that the va_start macro defined in varargs.h ends up
> overriding that of stdarg.h, so we call va_start with the wrong number
> of arguments.
> Since GDB assumes the existence of stdarg.h, I suppose this patch
> would be acceptable. Ok to install?
This one seems to have never been acknowledged. Ok for 5.2 and
mainline?
Index: gdb/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* defs.h (HAS_STDARG): Define it.
Index: gdb/defs.h
===================================================================
RCS file: /cvs/src/src/gdb/defs.h,v
retrieving revision 1.50
diff -u -p -r1.50 defs.h
--- gdb/defs.h 2001/05/15 00:03:36 1.50
+++ gdb/defs.h 2001/05/29 11:10:38
@@ -54,6 +54,7 @@
#include "ansidecl.h"
#include <stdarg.h> /* for va_list */
+#define HAS_STDARG 1 /* Avoid varargs.h in tcl. */
#include "libiberty.h"
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
--- End Message ---