[Ffmpeg-devel] [BUG] Compilation failure when using --disable-opts

Reimar Döffinger Reimar.Doeffinger
Thu Mar 8 23:18:51 CET 2007


Hello,
[...]
On Thu, Mar 08, 2007 at 10:42:34PM +0100, Michael Niedermayer wrote:
> On Thu, Mar 08, 2007 at 09:46:33PM +0100, Panagiotis Issaris wrote:
> > With -O0 or without -Ox flag (which is what is used when --enable-opts
> > is passed to configure) the testapp compiles fine in either case.
> > 
> > So, with the flags used for the compilation of cabac.c, the testapp
> > compiles fine.
> 
> compiles yes, works no
> 
> try
> int main() {
>     volatile int i=0;
>     asm volatile (
>         "xorl %%ebp, %%ebp"
>     ::: "%ebp");
>     return i;
> }
> 
> this will crash with -O0 and without -fomit-frame-pointer

Isn't the (semi-) official gcc statement still that -O0 is and always
will be broken? Was some time ago, but IIRC on SPARC it would miscompile even
some ordinary C code involving syscalls...

Greetings,
Reimar D?ffinger




More information about the ffmpeg-devel mailing list