This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/49916] New: matrix-reorg optimization segmentation fault


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]