[Dri-devel] Re: Inline assembly question

2001-03-31 Thread Mike A. Harris

On Sat, 31 Mar 2001, Greg Hughes wrote:

Inline assembly experts,

I've been palying with RedHat 7.1 Beta.  This ships with gcc 2.96.77,
which is much better than the 2.96 bundled with RedHat 7.0.  This
compiler can build the xc tree from the trunk, but it chokes trying to
build the mesa-3-5-branch.  It doesn't like the COPY_DWORDS macro in the
r128, radeon, and i810 directories.


#define COPY_DWORDS( j, vb, vertsize, v )   \
   __asm__ __volatile__( "rep ; movsl"  \
 : "=%c" (j), "=D" (vb) \
 : "0" (vertsize),  \
   "D" ((long)vb),  \
   "S" ((long)v)\
 : "esi" )

The error is:

  Can't find a register in class `SIREG' while reloading `asm'.

My question:  Is this a compiler defect, or is the compiler just being
more strict?

gcc-2.96-80.src.rpm is our latest.  I dunno if it changes
anything or not.  I'm inquiring about this internally and if i
find out anything I'll post it here.



-- 
Mike A. Harris  Shipping/mailing address:
OS Systems Engineer 190 Pittsburgh Ave., Sault Ste. Marie,
Red Hat Inc.Ontario, Canada, P6C 5B3
http://www.redhat.com   Phone: (705)949-2136



___
Dri-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dri-devel



Re: [Dri-devel] Re: Inline assembly question

2001-03-31 Thread Hetz Ben Hamo

URL??

The "rawhide" dir has disappeared from redhat's FTP sites

Hetz

On Sunday 01 April 2001 00:05, Mike A. Harris wrote:
 On Sat, 31 Mar 2001, Greg Hughes wrote:
 Inline assembly experts,
 
 I've been palying with RedHat 7.1 Beta.  This ships with gcc 2.96.77,
 which is much better than the 2.96 bundled with RedHat 7.0.  This
 compiler can build the xc tree from the trunk, but it chokes trying to
 build the mesa-3-5-branch.  It doesn't like the COPY_DWORDS macro in the
 r128, radeon, and i810 directories.
 
 
 #define COPY_DWORDS( j, vb, vertsize, v )   \
__asm__ __volatile__( "rep ; movsl"  \
 
  : "=%c" (j), "=D" (vb) \
  : "0" (vertsize),  \
 
"D" ((long)vb),  \
"S" ((long)v)\
 
  : "esi" )
 
 The error is:
 
   Can't find a register in class `SIREG' while reloading `asm'.
 
 My question:  Is this a compiler defect, or is the compiler just being
 more strict?

 gcc-2.96-80.src.rpm is our latest.  I dunno if it changes
 anything or not.  I'm inquiring about this internally and if i
 find out anything I'll post it here.

___
Dri-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dri-devel