[MPlayer-dev-eng] [PATCH] gcc 4.4.0 and liba52 internal

Diego Biurrun diego at biurrun.de
Sun May 10 13:59:58 CEST 2009


On Sun, May 10, 2009 at 12:55:49PM +0900, KO Myung-Hun wrote:
> 
> This patch fixes the error as the attachment when compiling liba52
> internal version with gcc 4.4.0 with -O4.
> 
> We can avoid the error using -O2 instead of -O4.

Reducing the optimization level is not a good solution.

> gcc -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=i486 -mtune=generic -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I.   -Ilibdvdread4 -I/usr/include/freetype2   -c -o liba52/imdct.o liba52/imdct.c
> In file included from liba52/imdct.c:728:
> liba52/imdct_3dnow.h: In function 'T.30':
> liba52/imdct_3dnow.h:289: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'

This generally indicates a bug in gcc.  I think you should submit it to
the gcc devs and hope they won't ignore you.

Diego



More information about the MPlayer-dev-eng mailing list