[MPlayer-users] [BUG] asm uses too many registers in swscale_template.c?

Pandora mplayer at synx.dyndns.org
Sun Jun 19 06:58:01 CEST 2005


Hello, I was trying out the nifty new gcc compiler (version 3.4.4,
SSP, PIE) when I discovered that mplayer wouldn't compile!  This is
the error I ran across:

swscale_template.c: In function `swScale_MMX2':
swscale_template.c:2522: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
swscale_template.c:2522: error: can't find a register in class `GENERAL_REGS' while reloading `asm'

I did some looking into it, and apparantly some registers are
'reserved' for use outside of inline assembly code.  The compiler
tries to account for people using them inside the code, but when it
runs out of registers well... it chokes.  *points above*  I got CVS
just today, don't know if the problem has been reported already.
Someone on IRC said to post it to the mailing list though.

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=127699
If this is any help, page down to what Richard Henderson says.  That's
all the information I could find on this problem, sorry for being so
asm clueless.  ^.^()  

There's a thing in the gcc manual on GENERAL_REGS, but I didn't
understand what it was saying...
http://www.sunsite.ualberta.ca/Documentation/Gnu/gcc-3.0.2/html_node/gcc_256.html

I don't think the 3.4.4 documentation on that is out yet, or at least
not for free on the Internet.  ^.^




More information about the MPlayer-users mailing list