[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pcc-list
Subject:    Re: wrong typedef for bittypes when building target i386 on x86_64
From:       Anders Magnusson <ragge () ludd ! ltu ! se>
Date:       2008-10-16 20:54:48
Message-ID: 48F7AA18.9080606 () ludd ! ltu ! se
[Download RAW message or body]

Jeremy C. Reed wrote:
> Building target i386 on x86_64 host failed with:
> 
> cd ccom; make all  
> gcc  -DPCC_DEBUG -DGCC_COMPAT -Dos_netbsd -I. -I. -I../..  -I../../mip 
> -I../../arch/i386 -Dmach_i386 -I../../os/netbsd -g -O2  -Wall 
> -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wsign-compare -Werror 
> -c -o regs.o ../../mip/regs.c
> cc1: warnings being treated as errors
> ../../mip/regs.c: In function 'dce':
> ../../mip/regs.c:1274: warning: passing argument 2 of 'deldead' from 
> incompatible pointer type
> *** Error code 1
> 
> Code has:
> 
> 	static int
> 	deldead(NODE *p, int *lives)
> 
> But lives is
>         bittype *lives;
> 
> and bittype is defined in ./cc/ccom/external.h as
> 
> 	typedef long bittype;
> 
> (Also the same source file has other "lives" which is a struct.)
> 
Doh!  It must have been some blackout for me that made me check in that.
Fixed now, thanks.

-- Ragge
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic