[Bug c/58531] New: [4.7/4.8 Regression] Strange array element ordering with O1 flag

2013-09-25 Thread guillaume at eulerian dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: guillaume at eulerian dot com The 4.8.1 is compiling in reverse order elements of a static array with O flag >0. My attached test code output with -O0: Options: -Wall -O0 ./test-4.7

[Bug c/58531] [4.7/4.8 Regression] Strange array element ordering with O1 flag

2013-09-25 Thread guillaume at eulerian dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58531 --- Comment #1 from Guillaume --- Created attachment 30897 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30897&action=edit test.c / Makefile

[Bug c/58531] [4.7/4.8 Regression] Strange array element ordering with O1 flag

2013-09-25 Thread guillaume at eulerian dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58531 --- Comment #4 from Guillaume --- Ok i understand. I took a sad brain shortcut assuming a single block declaration was generating an (only possible) increasing address for each compound. This was working on all previous gcc version i used (as far