[MPlayer-users] libavcodec (mplayer-current) fails to compile with no optimizations

D Richard Felker III dalias at aerifal.cx
Mon Dec 6 07:01:36 CET 2004


On Sun, Dec 05, 2004 at 11:30:08PM -0500, Nilmoni Deb wrote:
> 
> In config.mak, if I remove any -O flag in:
> 
> OPTFLAGS = -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -W -Wall
> -Wno-unused-parameter -O -g  -D_REENTRANT -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 $(EXTRA_INC)
> 
> then gcc-3.4.1 (linux mandrake 10.1 official) gives this error:
> 
> In file included from libpostproc/postprocess.c:655:
> 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: In function `dering_MMX2':
> libpostproc/postprocess_template.c:1186: error: can't find a register in
> class `GENERAL_REGS' while reloading `asm'
> make[1]: *** [libpostproc/postprocess.o] Error 1
> make[1]: Leaving directory `/home/ndeb/MPlayer-20041107/libavcodec'
> 
> If I add the -O (or -O2, -O4 etc.) back then compilation succeeds.
> 
> thanks
> - Nil

yes, is there a point? why are you telling us this?
1. configure says not to complain to us if you change cflags to
anything but the default
2. it's known that gcc inline asm does not work with optimizations
disabled. this applies to basically any program. if you insist on
disabling optimization, disable the asm (mmx, etc.) too. but there is
no legitimate reason ever to disable optimizations.

rich




More information about the MPlayer-users mailing list