This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/49916] New: matrix-reorg optimization segmentation fault
- From: "nbjensen at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 30 Jul 2011 19:33:18 +0000
- Subject: [Bug tree-optimization/49916] New: matrix-reorg optimization segmentation fault
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: nbjensen@gmail.com
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.