[FFmpeg-devel] Remove some optimizations from Makefile

ami_stuff ami_stuff
Sun Aug 2 18:11:25 CEST 2009


>> b) GCC 4.4.1 ICEs on "libavcodec/mpegvideo.o" because of
>> "-funswitch-loops". Without this flag there is no ICE at all.

> 4.4.1 works for me.

I just found out that this ICE happens only with -m68060 flag (SVN-r18880).

Try this:

OPTFLAGS= -mnobitfield -m68060 -std=c99  -Wdeclaration-after-statement -Wdisabled-optimization -fno-math-errno
          -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-common
          -fomit-frame-pointer -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings
          -Wundef -s -O3

> > I agree, as long as binary is faster, I don't care about size, bug
> > when it's slower...
> 
> Are you measuring speed on real hardware this time?  Emulators don't count.

I measured slowdown only on the emulator. I have no real hardware here, so I must
send binaries to tester and wait for the results. Anyway, slowdown which I measured
happens only with H264 decoder, so I can switch unswitch-loops manually off and 
have no problem with that.

> Have you reported the issue to gcc devs?  (Yeah, I know...)

Yes, problem with ICE is reported.




More information about the ffmpeg-devel mailing list