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

2009-12-31 Thread nospamname at web dot de
--- Comment #9 from nospamname at web dot de 2009-12-31 13:35 --- I compile now with a m68k-elf Compiler and do the small testcode i post above.The Problem is same on m68k-elf Compiler too. other CPU as -m68000 fail with -O3 or -O2 So can this Report Reopen and maybe another can check

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

2009-12-31 Thread mikpe at it dot uu dot se
--- Comment #10 from mikpe at it dot uu dot se 2009-12-31 17:01 --- Created an attachment (id=19431) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19431action=view) simpler test case I'm attaching a reduced test case that triggers wrong-code for m68k-elf with gcc-4.5-20091224,

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

2009-12-29 Thread schwab at linux-m68k dot org
--- Comment #7 from schwab at linux-m68k dot org 2009-12-29 11:58 --- Please report that to the provider of your inofficial builds. Neither m68k-amigaos nor m68k-atari-mint are supported by the official sources. -- schwab at linux-m68k dot org changed: What|Removed

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

2009-12-29 Thread nospamname at web dot de
--- Comment #8 from nospamname at web dot de 2009-12-29 18:52 --- I have now find out with cflag -m68000 work with -O3. But it work not with -m68020 or -m68040 or -m68060 Here is a standalone testcode and output with -S - struct test{ long dummy; unsigned long buf; }; struct

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

2009-12-28 Thread ami_stuff at o2 dot pl
--- Comment #1 from ami_stuff at o2 dot pl 2009-12-28 20:17 --- Created an attachment (id=19401) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19401action=view) preprocessed files + asm output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42522

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

2009-12-28 Thread ami_stuff at o2 dot pl
--- 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

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

2009-12-28 Thread schwab at linux-m68k dot org
--- Comment #4 from schwab at linux-m68k dot org 2009-12-28 23:30 --- Works for me with 4.5.0 20091228. -- schwab at linux-m68k dot org changed: What|Removed |Added

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

2009-12-28 Thread ami_stuff at o2 dot pl
--- Comment #5 from ami_stuff at o2 dot pl 2009-12-28 23:38 --- I found which optimization doesn't work correctly on my config: -O2 (Unknown format): _flv_probe: clr.l d0 rts .even -O2 -fno-cse-follow-jumps (works OK): _flv_probe: move.l 4(sp),a0

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

2009-12-28 Thread ami_stuff at o2 dot pl
--- Comment #6 from ami_stuff at o2 dot pl 2009-12-29 01:20 --- Works for me with 4.5.0 20091228. How's that possible? What about GCC 4.4 branch? I just checked with ATARI GCC 4.4.2 m68k compiler and got the same result: /usr/local/cross-mint/bin/m68k-atari-mint-gcc -c -S flvdec_O2.i