Current gcc trunk with the proposed graphite merge
(http://gcc.gnu.org/ml/gcc-patches/2010-08/msg00080.html) still ICEs the
compiler when the gcc.c-torture/execute/20000412-4.c testcase is compiled with
-fgraphite-identity. The error appears as...

gcc-4 20000412-4.c -w -O2 -fgraphite-identity -lm -o 20000412-4.x2
20000412-4.c: In function ‘main’:
20000412-4.c:17:7: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

and backtraces as...


gdb /sw/lib/gcc4.6/libexec/gcc/x86_64-apple-darwin10.4.0/4.6.0/cc1
GNU gdb 6.3.50-20050815 (Apple version gdb-1469) (Wed May  5 04:36:56 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared
libraries ............. done

(gdb) r -quiet -v -D__DYNAMIC__ 20000412-4.c -fPIC -quiet -dumpbase
20000412-4.c -mmacosx-version-min=10.6.4 -mtune=generic -auxbase 20000412-4 -O2
-w -version -fgraphite-identity -o
/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//ccuOxnFJ.s
Starting program:
/sw/lib/gcc4.6/libexec/gcc/x86_64-apple-darwin10.4.0/4.6.0/cc1 -quiet -v
-D__DYNAMIC__ 20000412-4.c -fPIC -quiet -dumpbase 20000412-4.c
-mmacosx-version-min=10.6.4 -mtune=generic -auxbase 20000412-4 -O2 -w -version
-fgraphite-identity -o
/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//ccuOxnFJ.s
Reading symbols for shared libraries .++++++++++++..... done
GNU C (GCC) version 4.6.0 20100807 (experimental) (x86_64-apple-darwin10.4.0)
        compiled by GNU C version 4.6.0 20100807 (experimental), GMP version
4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/sw/lib/gcc4.6/lib/gcc/x86_64-apple-darwin10.4.0/4.6.0/../../../../x86_64-apple-darwin10.4.0/include"
#include "..." search starts here:
#include <...> search starts here:
 /sw/lib/gcc4.6/lib/gcc/x86_64-apple-darwin10.4.0/4.6.0/include
 /sw/lib/gcc4.6/include
 /sw/lib/gcc4.6/lib/gcc/x86_64-apple-darwin10.4.0/4.6.0/include-fixed
 /usr/include
 /System/Library/Frameworks
 /Library/Frameworks
End of search list.
GNU C (GCC) version 4.6.0 20100807 (experimental) (x86_64-apple-darwin10.4.0)
        compiled by GNU C version 4.6.0 20100807 (experimental), GMP version
4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 51323d20c79050973b53377b407f3f68

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
is_gimple_reg (t=0x0) at ../../gcc-4.6-20100807/gcc/gimple.c:2861
2861      if (TREE_CODE (t) == SSA_NAME)
(gdb) bt
#0  is_gimple_reg (t=0x0) at ../../gcc-4.6-20100807/gcc/gimple.c:2861
#1  0x00000001004bcde9 in rewrite_cross_bb_scalar_deps_out_of_ssa (scop=<value
temporarily unavailable, due to optimizations>) at
../../gcc-4.6-20100807/gcc/graphite-sese-to-poly.c:2468
#2  0x0000000100495645 in graphite_transform_loops () at
../../gcc-4.6-20100807/gcc/graphite.c:291
#3  0x000000010074121a in graphite_transforms () at
../../gcc-4.6-20100807/gcc/tree-ssa-loop.c:296
#4  0x0000000100582786 in execute_one_pass (pass=0x100c74260) at
../../gcc-4.6-20100807/gcc/passes.c:1567
#5  0x0000000100582a5d in execute_pass_list (pass=0x100c74260) at
../../gcc-4.6-20100807/gcc/passes.c:1622
#6  0x0000000100582a6f in execute_pass_list (pass=0x100c742c0) at
../../gcc-4.6-20100807/gcc/passes.c:1623
#7  0x0000000100582a6f in execute_pass_list (pass=0x100c74560) at
../../gcc-4.6-20100807/gcc/passes.c:1623
#8  0x0000000100582a6f in execute_pass_list (pass=0x100c73700) at
../../gcc-4.6-20100807/gcc/passes.c:1623
#9  0x00000001006af1fc in tree_rest_of_compilation (fndecl=0x141e2b000) at
../../gcc-4.6-20100807/gcc/tree-optimize.c:452
#10 0x00000001008819fd in cgraph_expand_function (node=0x141e2a158) at
../../gcc-4.6-20100807/gcc/cgraphunit.c:1643
#11 0x0000000100884caa in cgraph_optimize () at
../../gcc-4.6-20100807/gcc/cgraphunit.c:1722
#12 0x000000010088533a in cgraph_finalize_compilation_unit () at
../../gcc-4.6-20100807/gcc/cgraphunit.c:1185
#13 0x000000010001cf05 in c_write_global_declarations () at
../../gcc-4.6-20100807/gcc/c-decl.c:9698
#14 0x000000010064145e in toplev_main (argc=19, argv=0x7fff5fbfef28) at
../../gcc-4.6-20100807/gcc/toplev.c:983
#15 0x0000000100001914 in start ()
(gdb)


-- 
           Summary: gcc.c-torture/execute/20000412-4.c ICEs with -fgraphite-
                    identity
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: howarth at nitro dot med dot uc dot edu
 GCC build triplet: x86_64-apple-darwin10
  GCC host triplet: x86_64-apple-darwin10
GCC target triplet: x86_64-apple-darwin10


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

Reply via email to