http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47593

           Summary: gcc.dg/torture/pta-ptrarith-2.c execution tests fail
                    with -fgraphite-identity
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: howa...@nitro.med.uc.edu


The gcc.dg/torture/pta-ptrarith-2.c execution test all when compiled at -O1 or
higher with -fgraphite-identity...

For the testcase compiled with...

/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/xgcc
-B/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110202/gcc/testsuite/gcc.dg/torture/pta-ptrarith-2.c
-O1 -g -fdump-tree-alias -fgraphite-identity -lm -m32 -o ./pta-ptrarith-2.exe

this crash appears as...

28      if (bar () != 1)
(gdb) s
bar () at
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110202/gcc/testsuite/gcc.dg/torture/pta-ptrarith-2.c:12
12    {
(gdb) 
23      return ***(int ***)p;
(gdb) 

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x00001f59 in bar () at
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110202/gcc/testsuite/gcc.dg/torture/pta-ptrarith-2.c:23
23      return ***(int ***)p;

Reply via email to