http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49916
Summary: matrix-reorg optimization segmentation fault
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 24873
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24873
Source code to reproduce.
GCC 4.5.1, 4.5.2(.deb) and 4.6.0.
System: Ubuntu 11.04.
Compile options:
gcc -Wall -O3 -fwhole-program -fipa-matrix-reorg -fdump-ipa-matrix-reorg
-std=c99 double-2d-matrix.c
No errors or warnings when compiling. When running the program a segmentation
fault.
Valgrind was used to analyze memory the memory management and the memory write
A[1][0] was not allocated.
If the sizes of the matrix dimensions are changed the bug might disappear. It
seems a bit random.