This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [Fwd: [Fwd: gdb 20000413 compile problem and strange SEGV problem]]
- To: Tim Mooney <mooney at dogbert dot cc dot ndsu dot nodak dot edu>, GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: Re: [Fwd: [Fwd: gdb 20000413 compile problem and strange SEGV problem]]
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 27 Apr 2000 09:44:52 +1000
- Organization: Cygnus Solutions
- References: <39014F1B.47DB6E05@cygnus.com>
Andrew Cagney wrote:
>
> By ``object'' did you mean a warning or an error?
>
> > I downloaded gdb+dejagnu-20000413.tar.bz2 and encountered one problem building
> > it with the Compaq compiler: the compiler objected to comparisons between
> > {current,debug}_target.to_rcmd and tcomplain (which was being case to (void
> > *)). I'm not sure why the cast to (void *) is there at all, but my first
> > thought was to try casting tcomplain to be a pointer to a function,
> > and that worked. This is the patch I used:
>
> Your change makes sense. It was cast to (void*) since the functions
> to_rcmd() and tcomplain() were not type incompatible. The compaq
> compiler is more picky about such things.
FYI,
I've just checked and GDB-5.0 build on an ``OSF1 V4.0 464 alpha'' using
both GCC and the native CC. I'll assume that these were compiler
warnings rather than fatal compiler errors. Consequently the cleanups
should get merged into the trunk but not the GDB-5.0 branch.
Andrew