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

Michael Niedermayer michaelni at gmx.at
Sat Jun 18 16:29:12 CEST 2005


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)

-- 
Michael




More information about the MPlayer-dev-eng mailing list