[Bug c/43009] New: segmentation fault with -O3 when accessing byte-aligned array as dwords

2010-02-09 Thread ajk dot xyz at gmail dot com
array as dwords Product: gcc Version: 4.4.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ajk dot xyz at gmail dot com http

[Bug c/43009] segmentation fault with -O3 when accessing byte-aligned array as dwords

2010-02-09 Thread ajk dot xyz at gmail dot com
--- Comment #1 from ajk dot xyz at gmail dot com 2010-02-09 15:48 --- Created an attachment (id=19828) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19828action=view) the preprocessed file (*.i*) that triggers the bug -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43009

[Bug c/43009] segmentation fault with -O3 when accessing byte-aligned array as dwords

2010-02-09 Thread ajk dot xyz at gmail dot com
--- Comment #2 from ajk dot xyz at gmail dot com 2010-02-09 15:52 --- Created an attachment (id=19829) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19829action=view) output for: gcc -v -save-temps -Wall -Werror -O3 2.c -o 2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43009

[Bug c/43009] segmentation fault with -O3 when accessing byte-aligned array as dwords

2010-02-09 Thread ajk dot xyz at gmail dot com
--- Comment #4 from ajk dot xyz at gmail dot com 2010-02-09 16:47 --- (In reply to comment #3) Your pointer isn't properly aligned to be accessed via uint32_t*. And should it? If 'yes', then why GCC generates working code for that source without optimization or with -O2 ? Or even