--- Comment #1 from wvangulik at xs4all dot nl 2009-04-03 08:48 ---
Created an attachment (id=17580)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17580&action=view)
C file showing bug
compile using:
gcc -S -funroll-loops -0[0123s] main.c
--
http://gcc.gnu.org/bugzilla/show_b
--- Comment #2 from hp at gcc dot gnu dot org 2009-04-06 17:16 ---
It'd be nice to know if -fno-tree-reassoc helped here.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39621
--- Comment #3 from wvangulik at xs4all dot nl 2009-04-07 07:55 ---
(In reply to comment #2)
> It'd be nice to know if -fno-tree-reassoc helped here.
>
Yes that solves the problem. I tried for -O[123s] (x86 and avr).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39621