GDB CVS won't build on OSF4.0's cc

Alexandre Oliva aoliva@redhat.com
Wed Mar 6 16:36:00 GMT 2002


On Jun 11, 2001, Elena Zannoni <ezannoni@cygnus.com> wrote:

> Alexandre Oliva writes:
>> On Jun  6, 2001, Elena Zannoni <ezannoni@cygnus.com> wrote:
>> 
>> > Alex, no. Sorry, but we are trying to get rid of PTR in the
>> > gdb sources [as Kevin pointed out in another message].
>> 
>> Sorry.
>> 
>> > Could you 'revert' these changes by changing the definitions to 
>> > use void * and deleting the prototypes when they are not needed (everyone
>> > of these can go, except for free_elfinfo, I think).
>> 
>> Fixed as follows.  Not tested on all relevant architectures.  I'd do
>> that after next Monday's GCC snapshot, since I've been building GDB
>> along with GDB lately.  Ok to install?

> Yes, but with the memset calls changes, i.e. remove the casts.

>> Index: gdb/ChangeLog
>> from  Alexandre Oliva  <aoliva@redhat.com>
>> 
>> * coffread.c: Remove redundant static declarations.  Replace
>> occurrences of `PTR' with `void *'.
>> * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.

Ok, here's an updated patch, that applies cleanly into mainline and
5.2 branch, and that adds two more PTR->void* fixes that slipped in
after my original clean-up.  Oh, and that removes the (void *) casts
in memset calls that I had introduced in my previous patch.  Ok to
install in 5.2 and mainline?  With this and the other 2 patches I
posted today (for gdb/defs.h and expect), gdb 5.2 builds successfully
with OSF 4.0's cc.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-PTR-static-cleanup.patch
Type: text/x-patch
Size: 19841 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20020306/56b82a0b/attachment.bin>
-------------- next part --------------

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


More information about the Gdb-patches mailing list