Subject: Re: Recap on PR 29689
To: matthew green <mrg@eterna.com.au>
From: segv <segv@netctl.net>
List: port-sparc64
Date: 08/18/2005 03:24:49
On Thu, 18 Aug 2005 11:24:09 +1000
matthew green <mrg@eterna.com.au> wrote:

> 
>    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
> 
> well, __sparc_v9__ macro means "sparc64 cpu" not "64 bit code". that
> what __arch64__ is for.  __sparc_v9__ means you can use v9 instruction.
> i guess the code needs to be fixed.
>    

OK, I ran  

find . -exec grep -Hn -e '__sparc_v9__' {} \;

in xsrc/xfree, most files that test for '__sparc_v9__' macro are under
xsrc/xfree/xc/extras/Mesa If they assume that __sparc_v9__ implies __arch64__
then the fix could be as easy as changing one macro to the other But then I
don't know much about XFree86 and it's build system, so I could be wrong...