[Bug c/42522] [m68k] Wrong code generated with -O2/-O3

ami_stuff at o2 dot pl gcc-bugzilla@gcc.gnu.org
Mon Dec 28 20:39:00 GMT 2009



------- Comment #3 from ami_stuff at o2 dot pl  2009-12-28 20:38 -------
No, asm code looks the same like with -O2 option:

_flv_probe:
        clr.l d0
        rts
        .even


Here are GCC's options which I used (should be included in the first post):

$ make_68k_v45
/bin/ffmpeg13_play/version.sh "/bin/ffmpeg13_play" version.h
/usr/local/amiga/bin/m68k-amigaos-gcc-4.5.0.exe -V 4.5.0 -DHAVE_AV_CONFIG_H -I.
-I"/bin/ffmpeg13_play" --save-temps -S -D_ISOC99_SOURCE
-D_POSIX_C_SOURCE=200112
 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DHAVE_BIGENDIAN=1 -m68060 -std=c99
-fno-common -fomit-frame-pointer -Wdeclaration-after-statement -Wall
-Wno-switch
 -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual
-Wwrite-s
trings -Wundef -O2 -S -fno-math-errno       -MMD -MF libavformat/flvdec.d -MT
li
bavformat/flvdec.o -c -o libavformat/flvdec.o libavformat/flvdec.c


$ m68k-amigaos-gcc -V 4.5.0 -v
Using built-in specs.
COLLECT_GCC=m68k-amigaos-gcc-4.5.0
COLLECT_LTO_WRAPPER=/usr/local/amiga/libexec/gcc/m68k-amigaos/4.5.0/lto-wrapper.
exe
Target: m68k-amigaos
Configured with: /bernd/gcc4/configure --target=m68k-amigaos --with-cpu=m68040
-
-prefix=/usr/local/amiga
Thread model: single
gcc version 4.5.0 20091224 (experimental) (GCC)


-- 

ami_stuff at o2 dot pl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |major
          Component|target                      |c


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42522



More information about the Gcc-bugs mailing list