public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: Alexandre Oliva <aoliva@redhat.com>
Cc: gdb-patches@sources.redhat.com, insight@sources.redhat.com
Subject: Re: GDB CVS won't build on OSF4.0's cc
Date: Wed, 06 Mar 2002 17:58:00 -0000	[thread overview]
Message-ID: <3C86C927.4070601@cygnus.com> (raw)
In-Reply-To: <orpu2hqlq8.fsf@free.redhat.lsd.ic.unicamp.br>

[-- Attachment #1: Type: text/plain, Size: 855 bytes --]

[added insight]

> 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?

I don't know that this belongs in defs.h (definitly not without a big 
comment explaining the history :-).  As you note, gdb doesn't include 
tclInt.h, only GDBTK.  I suspect gdbtk/generic/gdbtk.h or autoconf is 
better?

Andrew


[-- Attachment #2: mailbox-message://ac131313@movemail/fsf/gdb/patches#899876 --]
[-- Type: message/rfc822, Size: 4176 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 574 bytes --]

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?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2.1.2: gdb-has-stdarg.patch --]
[-- Type: text/x-patch, Size: 513 bytes --]

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"
 

[-- Attachment #2.1.3: Type: text/plain, Size: 289 bytes --]


-- 
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

       reply	other threads:[~2002-03-07  1:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <org0dofodw.fsf@guarana.lsd.ic.unicamp.br>
     [not found] ` <or3d9ofncw.fsf@guarana.lsd.ic.unicamp.br>
     [not found]   ` <ory9rge7dc.fsf@guarana.lsd.ic.unicamp.br>
     [not found]     ` <orpu2hqlq8.fsf@free.redhat.lsd.ic.unicamp.br>
2002-03-06 17:58       ` Andrew Cagney [this message]
2002-03-06 18:52         ` Alexandre Oliva
2002-03-13 11:19           ` Alexandre Oliva
2002-03-25  8:43           ` Alexandre Oliva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C86C927.4070601@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=aoliva@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=insight@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).