[Bug c/40422] using optimization breaks code

2009-06-12 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2009-06-12 07:38 --- The testcase is buggy, fix_end(((unsigned int*)&i)[0]); etc. violates strict aliasing. Either compile with -fno-strict-aliasing, or better yet fix it to be valid C code. -- jakub at gcc dot gnu dot org changed:

[Bug c/40422] using optimization breaks code

2009-06-11 Thread yu_kalev at hotmail dot com
--- Comment #3 from yu_kalev at hotmail dot com 2009-06-12 06:57 --- Created an attachment (id=17987) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17987&action=view) the ver 4.3.0 generated assembler output under linux -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40422

[Bug c/40422] using optimization breaks code

2009-06-11 Thread yu_kalev at hotmail dot com
--- Comment #2 from yu_kalev at hotmail dot com 2009-06-12 06:56 --- Created an attachment (id=17986) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17986&action=view) assembler listing with O3 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40422

[Bug c/40422] using optimization breaks code

2009-06-11 Thread yu_kalev at hotmail dot com
--- Comment #1 from yu_kalev at hotmail dot com 2009-06-12 06:54 --- Created an attachment (id=17985) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17985&action=view) c source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40422