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 middle-end/45231] New: gcc.c-torture/compile/941014-2.c ICEs with -fgraphite-identity


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/compile/941014-2.c testcase is compiled with
-fgraphite-identity. The error appears as...

gcc-4 -O3 -fomit-frame-pointer -w -c -m32 -fgraphite-identity -o 941014-2.o
941014-2.c
941014-2.c: In function ?f?:
941014-2.c:2:1: 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 in gdb 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 -fpreprocessed 941014-2.i -fPIC -quiet -dumpbase 941014-2.c
-mmacosx-version-min=10.6.4 -m32 -mtune=generic -auxbase-strip 941014-2.o -O3
-w -version -fomit-frame-pointer -fgraphite-identity -o 941014-2.s
Starting program:
/sw/lib/gcc4.6/libexec/gcc/x86_64-apple-darwin10.4.0/4.6.0/cc1 -fpreprocessed
941014-2.i -fPIC -quiet -dumpbase 941014-2.c -mmacosx-version-min=10.6.4 -m32
-mtune=generic -auxbase-strip 941014-2.o -O3 -w -version -fomit-frame-pointer
-fgraphite-identity -o 941014-2.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
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: 0x0000000000000061
gsi_for_stmt (stmt=0x141de9de0) at gimple.h:245
245       return (!(bb->flags & BB_RTL) && bb->il.gimple) ? bb->il.gimple->seq
: NULL;
(gdb) bt
#0  gsi_for_stmt (stmt=0x141de9de0) at gimple.h:245
#1  0x00000001004b5d7e in insert_out_of_ssa_copy (res=0x141e0bd38, var=<value
temporarily unavailable, due to optimizations>, after_stmt=0x141de9de0) at
../../gcc-4.6-20100807/gcc/graphite-sese-to-poly.c:2130
#2  0x00000001004b6630 in rewrite_phi_out_of_ssa (psi=0x7fff5fbfeae0) at
../../gcc-4.6-20100807/gcc/graphite-sese-to-poly.c:2328
#3  0x00000001004bc499 in rewrite_reductions_out_of_ssa (scop=<value
temporarily unavailable, due to optimizations>) at
../../gcc-4.6-20100807/gcc/graphite-sese-to-poly.c:2403
#4  0x000000010049563d in graphite_transform_loops () at
../../gcc-4.6-20100807/gcc/graphite.c:290
#5  0x000000010074121a in graphite_transforms () at
../../gcc-4.6-20100807/gcc/tree-ssa-loop.c:296
#6  0x0000000100582786 in execute_one_pass (pass=0x100c74260) at
../../gcc-4.6-20100807/gcc/passes.c:1567
#7  0x0000000100582a5d in execute_pass_list (pass=0x100c74260) at
../../gcc-4.6-20100807/gcc/passes.c:1622
#8  0x0000000100582a6f in execute_pass_list (pass=0x100c742c0) at
../../gcc-4.6-20100807/gcc/passes.c:1623
#9  0x0000000100582a6f in execute_pass_list (pass=0x100c74560) at
../../gcc-4.6-20100807/gcc/passes.c:1623
#10 0x0000000100582a6f in execute_pass_list (pass=0x100c73700) at
../../gcc-4.6-20100807/gcc/passes.c:1623
#11 0x00000001006af1fc in tree_rest_of_compilation (fndecl=0x141e19000) at
../../gcc-4.6-20100807/gcc/tree-optimize.c:452
#12 0x00000001008819fd in cgraph_expand_function (node=0x141e1d000) at
../../gcc-4.6-20100807/gcc/cgraphunit.c:1643
#13 0x0000000100884caa in cgraph_optimize () at
../../gcc-4.6-20100807/gcc/cgraphunit.c:1722
#14 0x000000010088533a in cgraph_finalize_compilation_unit () at
../../gcc-4.6-20100807/gcc/cgraphunit.c:1185
#15 0x000000010001cf05 in c_write_global_declarations () at
../../gcc-4.6-20100807/gcc/c-decl.c:9698
#16 0x000000010064145e in toplev_main (argc=19, argv=0x7fff5fbfef68) at
../../gcc-4.6-20100807/gcc/toplev.c:983
#17 0x0000000100001914 in start ()


-- 
           Summary: gcc.c-torture/compile/941014-2.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=45231


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