This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [Fwd: [Fwd: gdb 20000413 compile problem and strange SEGV problem]]


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]