Subject: Re: Recap on PR 29689
To: segv <segv@netctl.net>
From: segv <segv@netctl.net>
List: port-sparc64
Date: 08/18/2005 01:29:12
On Thu, 18 Aug 2005 00:48:57 +0100
segv <segv@netctl.net> wrote:
> sparc.o.tmp /opt/xsrc/xfree/xc/extras/Mesa/src/mesa/sparc/sparc.c: In function
> `_mesa_init_sparc_glapi_relocs': /opt/xsrc/xfree/xc/extras/Mesa/src/mesa/sparc/sparc.c:167:
> warning: right shift count >= width of
> type /opt/xsrc/xfree/xc/extras/Mesa/src/mesa/sparc/sparc.c:170: warning: right
> shift count >= width of type *** [sparc.o] Error code 1 1 error
OK, looking at sparc.c file, it seems that '__sparc_v9__' macro gets defined,
when it shouldn't, so it assumes 'unsigned long' are 64-bit datatypes
What I don't understand is how passing '-mcpu=ultrasparc' to gcc, triggers the
above macro being defined??
PS The build was run with './build.sh -m sparc ...'