[MPlayer-dev-eng] [Patch] swscale on gcc4+amd64

Guillaume POIRIER poirierg at gmail.com
Sat Jun 18 22:29:00 CEST 2005


Hi,

On 6/18/05, Michael Niedermayer <michaelni at gmx.at> wrote:
> Hi
> 
> On Saturday 18 June 2005 13:28, Guillaume POIRIER wrote:
> > Hi,
> >
> > On 6/18/05, Jindrich Makovicka <makovick at kmlinux.fjfi.cvut.cz> wrote:
> > > Guillaume POIRIER wrote:
> > > > Ok, tested on AMD-64 with gcc-3.3, 3.4 and 4.0 with success.
> > > >
> > > > May someone try this patch on a ia-32 machine, with a least gcc-2.95?
> > >
> > > gcc-2.95 -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -O4
> > > -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer
> > > -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> > > -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> > > -D_GNU_SOURCE  -c -o libpostproc/postprocess.o libpostproc/postprocess.c
> > > In file included from libpostproc/postprocess.c:655:
> > > libpostproc/postprocess_template.c: In function `postProcess_MMX2':
> > > libpostproc/postprocess_template.c:3646: Invalid `asm' statement:
> > > libpostproc/postprocess_template.c:3646: fixed or forbidden register 0
> > > (ax) was spilled for class GENERAL_REGS.
> >
> > Ok, so I guess this fix is not optimal as it produces more spilling
> > that previously.
> >
> > According to lu_zero, here's what gcc-3.4 has to say:
> >
> > libpostproc/postprocess_template.c:3627: error: can't find a register
> > in class `GENERAL_REGS' while reloading `asm'
> > not enough registers...
> > libpostproc/postprocess_template.c: In function `postProcess_MMX2':
> > libpostproc/postprocess_template.c:2901: warning: use of memory input
> > without lvalue in asm operand 4 is deprecated
> > libpostproc/postprocess_template.c:2901: warning: use of memory input
> > without lvalue in asm operand 4 is deprecated
> > libpostproc/postprocess_template.c:3627: error: can't find a register
> > in class `GENERAL_REGS' while reloading `asm'
> >
> > What to do now?
> 
> write mpcc (mplayer c compiler)

That's a thought. I'll do that right after I win the lottery or
inherit from a Texan uncle, and hire Richard to do it (well, maybe I'd
have to sequester him in a room with no net, but well...)

Meanwhile, since I'm just a human like you guys, I committed the only
the AMD-64 part of the patch. I'll try to find a better solution for
the libavcodec part)


Regards,
Guillaume
-- 
I should have invented the tape recorder,
that way people would have more quotes of
me to put at the bottom of their e-mails
-- Benjamin Franklin




More information about the MPlayer-dev-eng mailing list