I'm seeing the following segfault with current trunk.  This also happens
with trunk from 20070720, but compiles fine with trunk from 20070616.

(sid)25752:[EMAIL PROTECTED]: ~] /usr/lib/gcc-snapshot/bin/gcc -c -O3
freecell-solver-state.c
freecell-solver-state.c: In function 'freecell_solver_canonize_state':
freecell-solver-state.c:21: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


(gdb) run -O3 ~/freecell-solver-state.c
Starting program: /home/tbm/tmp/gcc/gcc-4.3-20070821-r127666/gcc/cc1 -O3
~/freecell-solver-state.c
 fcs_card_compare freecell_solver_canonize_state
Analyzing compilation unit
Performing interprocedural optimizations
 <visibility> <early_local_cleanups> <inline> <static-var> <pure-const>
<type-escape-var>Assembling fu
nctions:
 fcs_card_compare freecell_solver_canonize_state
Program received signal SIGSEGV, Segmentation fault.
build_classic_dist_vector_1 (ddr=0xf324c0, ddr_a=0xf3cb40, ddr_b=0xf57c60,
dist_v=0x2af788c2fd00,
    init_b=0x7fff2292be57 "[EMAIL PROTECTED]", index_carry=0x7fff2292be50)
    at gcc/tree-data-ref.c:2717
2717          if (chrec_contains_undetermined (SUB_DISTANCE (subscript)))
(gdb) where
#0  build_classic_dist_vector_1 (ddr=0xf324c0, ddr_a=0xf3cb40, ddr_b=0xf57c60,
    dist_v=0x2af788c2fd00, init_b=0x7fff2292be57 "[EMAIL PROTECTED]",
index_carry=0x7fff2292be50)
    at gcc/tree-data-ref.c:2717
#1  0x00000000006d0230 in subscript_dependence_tester (ddr=0xf324c0,
loop_nest=0x2af788d28140)
    at gcc/tree-data-ref.c:3019
#2  0x00000000006d13fc in compute_all_dependences (datarefs=0xf2e1e0,
    dependence_relations=0x7fff2292c158, loop_nest=0xf2e2b0,
compute_self_and_rr=1 '\001')
    at gcc/tree-data-ref.c:3827
#3  0x00000000006d207c in compute_data_dependences_for_loop
(loop=0x2af788d28140,
    compute_self_and_read_read_dependences=1 '\001', datarefs=0x7fff2292c160,
    dependence_relations=0x7fff2292c158) at gcc/tree-data-ref.c:4139
#4  0x0000000000a42ec0 in tree_predictive_commoning ()
    at gcc/tree-predcom.c:2487
#5  0x000000000077be37 in run_tree_predictive_commoning ()
    at gcc/tree-ssa-loop.c:183
#6  0x0000000000629227 in execute_one_pass (pass=0xe87940) at gcc/passes.c:1108
#7  0x00000000006293ec in execute_pass_list (pass=0xe87940)
    at gcc/passes.c:1161
#8  0x00000000006293fe in execute_pass_list (pass=0xe877c0)
    at gcc/passes.c:1162
#9  0x00000000006293fe in execute_pass_list (pass=0xe86c20)
    at gcc/passes.c:1162
#10 0x00000000006fd2bf in tree_rest_of_compilation (fndecl=0x2af788d0cd00)
    at gcc/tree-optimize.c:405
#11 0x00000000008656c0 in cgraph_expand_function (node=0x2af788d0ce00)
    at gcc/cgraphunit.c:1077
#12 0x0000000000866ea5 in cgraph_optimize () at gcc/cgraphunit.c:1146
#13 0x0000000000414af0 in c_write_global_declarations () at gcc/c-decl.c:8072
#14 0x00000000006a30f3 in toplev_main (argc=<value optimized out>, argv=<value
optimized out>)
    at gcc/toplev.c:1058
#15 0x00002af788831b44 in __libc_start_main () from /lib/libc.so.6
#16 0x0000000000404449 in _start ()
(gdb)


-- 
           Summary: [4.3 Regression] Segfault in build_classic_dist_vector_1
                    in gcc/tree-data-ref.c
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at cyrius dot com


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

Reply via email to