[Bug other/63504] New: [5 Regression] Issues found by --enable-checking=valgrind

trippels at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Oct 10 06:34:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63504

            Bug ID: 63504
           Summary: [5 Regression] Issues found by
                    --enable-checking=valgrind
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org

(Ordered by first occurrence in log.)

1)
==53187== Use of uninitialised value of size 8
==53187==    at 0x102929D0: find_slot_with_hash (hash-table.h:860)
==53187==    by 0x102929D0: optimize_location_lists_1(die_struct*,
hash_table<loc_list_hasher, xcallocator, false>*) [clone .isra.249]
(dwarf2out.c:24142)
==53187==    by 0x102927A3: optimize_location_lists_1(die_struct*,
hash_table<loc_list_hasher, xcallocator, false>*) [clone .isra.249]
(dwarf2out.c:24149)
==53187==    by 0x102927A3: optimize_location_lists_1(die_struct*,
hash_table<loc_list_hasher, xcallocator, false>*) [clone .isra.249]
(dwarf2out.c:24149)
==53187==    by 0x102927A3: optimize_location_lists_1(die_struct*,
hash_table<loc_list_hasher, xcallocator, false>*) [clone .isra.249]
(dwarf2out.c:24149)
==53187==    by 0x102B6E8F: optimize_location_lists (dwarf2out.c:24192)
==53187==    by 0x102B6E8F: dwarf2out_finish(char const*) (dwarf2out.c:24453)
==53187==    by 0x1058A43F: compile_file() (toplev.c:602)
==53187==    by 0x1058C7AF: do_compile (toplev.c:1946)
==53187==    by 0x1058C7AF: toplev_main(int, char**) (toplev.c:2022)
==53187==    by 0x100E131F: main (main.c:36)
==53187==  Uninitialised value was created by a stack allocation
==53187==    at 0x102B8A70: generic_wide_int<wide_int_storage>&
generic_wide_int<wide_int_storage>::operator=<std::pair<rtx_def*, machine_mode>
>(std::pair<rtx_def*, machine_mode> const&) (wide-int.h:861)
==53187== 
==53187== Use of uninitialised value of size 8
==53187==    at 0x10293100: optimize_location_lists_1(die_struct*,
hash_table<loc_list_hasher, xcallocator, false>*) [clone .isra.249]
(dwarf2out.c:24144)
==53187==    by 0x102927A3: optimize_location_lists_1(die_struct*,
hash_table<loc_list_hasher, xcallocator, false>*) [clone .isra.249]
(dwarf2out.c:24149)
==53187==    by 0x102927A3: optimize_location_lists_1(die_struct*,
hash_table<loc_list_hasher, xcallocator, false>*) [clone .isra.249]
(dwarf2out.c:24149)
==53187==    by 0x102927A3: optimize_location_lists_1(die_struct*,
hash_table<loc_list_hasher, xcallocator, false>*) [clone .isra.249]
(dwarf2out.c:24149)
==53187==    by 0x102B6E8F: optimize_location_lists (dwarf2out.c:24192)
==53187==    by 0x102B6E8F: dwarf2out_finish(char const*) (dwarf2out.c:24453)
==53187==    by 0x1058A43F: compile_file() (toplev.c:602)
==53187==    by 0x1058C7AF: do_compile (toplev.c:1946)
==53187==    by 0x1058C7AF: toplev_main(int, char**) (toplev.c:2022)
==53187==    by 0x100E131F: main (main.c:36)
==53187==  Uninitialised value was created by a stack allocation
==53187==    at 0x102B8A70: generic_wide_int<wide_int_storage>&
generic_wide_int<wide_int_storage>::operator=<std::pair<rtx_def*, machine_mode>
>(std::pair<rtx_def*, machine_mode> const&) (wide-int.h:861)
==53187== 

variation:==18094== Use of uninitialised value of size 8
==18094==    at 0x102929D0: find_slot_with_hash (hash-table.h:860)
==18094==    by 0x102929D0: optimize_location_lists_1(die_struct*,
hash_table<loc_list_hasher, xcallocator, false>*) [clone .isra.249]
(dwarf2out.c:24142)
==18094==    by 0x102927A3: optimize_location_lists_1(die_struct*,
hash_table<loc_list_hasher, xcallocator, false>*) [clone .isra.249]
(dwarf2out.c:24149)
==18094==    by 0x102927A3: optimize_location_lists_1(die_struct*,
hash_table<loc_list_hasher, xcallocator, false>*) [clone .isra.249]
(dwarf2out.c:24149)
==18094==    by 0x102927A3: optimize_location_lists_1(die_struct*,
hash_table<loc_list_hasher, xcallocator, false>*) [clone .isra.249]
(dwarf2out.c:24149)
==18094==    by 0x102927A3: optimize_location_lists_1(die_struct*,
hash_table<loc_list_hasher, xcallocator, false>*) [clone .isra.249]
(dwarf2out.c:24149)
==18094==    by 0x102B6E8F: optimize_location_lists (dwarf2out.c:24192)
==18094==    by 0x102B6E8F: dwarf2out_finish(char const*) (dwarf2out.c:24453)
==18094==    by 0x1058A43F: compile_file() (toplev.c:602)
==18094==    by 0x1058C7AF: do_compile (toplev.c:1946)
==18094==    by 0x1058C7AF: toplev_main(int, char**) (toplev.c:2022)
==18094==    by 0x100E131F: main (main.c:36)
==18094==  Uninitialised value was created by a client request
==18094==    at 0x101B1898: pool_alloc(alloc_pool_def*) (alloc-pool.c:298)
==18094==    by 0x103F727F: ira_create_allocno(int, bool, ira_loop_tree_node*)
(ira-build.c:495)
==18094==    by 0x103F7793: create_insn_allocnos(rtx_def*, rtx_def*, bool)
(ira-build.c:1882)
==18094==    by 0x103F7BEB: create_bb_allocnos (ira-build.c:1948)
==18094==    by 0x103F7BEB: create_loop_tree_node_allocnos(ira_loop_tree_node*)
(ira-build.c:1994)
==18094==    by 0x103FC36B: ira_traverse_loop_tree(bool, ira_loop_tree_node*,
void (*)(ira_loop_tree_node*), void (*)(ira_loop_tree_node*))
(ira-build.c:1829)
==18094==    by 0x103FC153: ira_traverse_loop_tree(bool, ira_loop_tree_node*,
void (*)(ira_loop_tree_node*), void (*)(ira_loop_tree_node*))
(ira-build.c:1847)
==18094==    by 0x103FC153: ira_traverse_loop_tree(bool, ira_loop_tree_node*,
void (*)(ira_loop_tree_node*), void (*)(ira_loop_tree_node*))
(ira-build.c:1847)
==18094==    by 0x103FCDB7: create_allocnos (ira-build.c:2091)
==18094==    by 0x103FCDB7: ira_build() (ira-build.c:3449)
==18094==    by 0x103F2B17: ira (ira.c:5166)
==18094==    by 0x103F2B17: (anonymous namespace)::pass_ira::execute(function*)
(ira.c:5431)
==18094==    by 0x104B5DC7: execute_one_pass(opt_pass*) (passes.c:2151)
==18094==    by 0x104B6463: execute_pass_list_1(opt_pass*) (passes.c:2203)
==18094==    by 0x104B647B: execute_pass_list_1(opt_pass*) (passes.c:2204)
==18094== 
==18094== Use of uninitialised value of size 8
==18094==    at 0x10293100: optimize_location_lists_1(die_struct*,
hash_table<loc_list_hasher, xcallocator, false>*) [clone .isra.249]
(dwarf2out.c:24144)
==18094==    by 0x102927A3: optimize_location_lists_1(die_struct*,
hash_table<loc_list_hasher, xcallocator, false>*) [clone .isra.249]
(dwarf2out.c:24149)
==18094==    by 0x102927A3: optimize_location_lists_1(die_struct*,
hash_table<loc_list_hasher, xcallocator, false>*) [clone .isra.249]
(dwarf2out.c:24149)
==18094==    by 0x102927A3: optimize_location_lists_1(die_struct*,
hash_table<loc_list_hasher, xcallocator, false>*) [clone .isra.249]
(dwarf2out.c:24149)
==18094==    by 0x102927A3: optimize_location_lists_1(die_struct*,
hash_table<loc_list_hasher, xcallocator, false>*) [clone .isra.249]
(dwarf2out.c:24149)
==18094==    by 0x102B6E8F: optimize_location_lists (dwarf2out.c:24192)
==18094==    by 0x102B6E8F: dwarf2out_finish(char const*) (dwarf2out.c:24453)
==18094==    by 0x1058A43F: compile_file() (toplev.c:602)
==18094==    by 0x1058C7AF: do_compile (toplev.c:1946)
==18094==    by 0x1058C7AF: toplev_main(int, char**) (toplev.c:2022)
==18094==    by 0x100E131F: main (main.c:36)
==18094==  Uninitialised value was created by a client request
==18094==    at 0x101B1898: pool_alloc(alloc_pool_def*) (alloc-pool.c:298)
==18094==    by 0x103F727F: ira_create_allocno(int, bool, ira_loop_tree_node*)
(ira-build.c:495)
==18094==    by 0x103F7793: create_insn_allocnos(rtx_def*, rtx_def*, bool)
(ira-build.c:1882)
==18094==    by 0x103F7BEB: create_bb_allocnos (ira-build.c:1948)
==18094==    by 0x103F7BEB: create_loop_tree_node_allocnos(ira_loop_tree_node*)
(ira-build.c:1994)
==18094==    by 0x103FC36B: ira_traverse_loop_tree(bool, ira_loop_tree_node*,
void (*)(ira_loop_tree_node*), void (*)(ira_loop_tree_node*))
(ira-build.c:1829)
==18094==    by 0x103FC153: ira_traverse_loop_tree(bool, ira_loop_tree_node*,
void (*)(ira_loop_tree_node*), void (*)(ira_loop_tree_node*))
(ira-build.c:1847)
==18094==    by 0x103FC153: ira_traverse_loop_tree(bool, ira_loop_tree_node*,
void (*)(ira_loop_tree_node*), void (*)(ira_loop_tree_node*))
(ira-build.c:1847)
==18094==    by 0x103FCDB7: create_allocnos (ira-build.c:2091)
==18094==    by 0x103FCDB7: ira_build() (ira-build.c:3449)
==18094==    by 0x103F2B17: ira (ira.c:5166)
==18094==    by 0x103F2B17: (anonymous namespace)::pass_ira::execute(function*)
(ira.c:5431)
==18094==    by 0x104B5DC7: execute_one_pass(opt_pass*) (passes.c:2151)
==18094==    by 0x104B6463: execute_pass_list_1(opt_pass*) (passes.c:2203)
==18094==    by 0x104B647B: execute_pass_list_1(opt_pass*) (passes.c:2204)
==18094== 

2)==24993== Conditional jump or move depends on uninitialised value(s)
==24993==    at 0x1080E8CC: divmod_internal_2 (wide-int.cc:1623)
==24993==    by 0x1080E8CC: wi::divmod_internal(long*, unsigned int*, long*,
long const*, unsigned int, unsigned int, long const*, unsigned int, unsigned
int, signop_e, bool*
) (wide-int.cc:1823)
==24993==    by 0x103132C7: div_trunc<const tree_node*,
generic_wide_int<wide_int_storage> > (wide-int.h:2506)
==24993==    by 0x103132C7: int_const_binop_1(tree_code, tree_node const*,
tree_node const*, int) (fold-const.c:1038)
==24993==    by 0x1079BC6F: vrp_int_const_binop(tree_code, tree_node*,
tree_node*) (tree-vrp.c:1934)
==24993==    by 0x1079C2EB:
extract_range_from_multiplicative_op_1(value_range_d*, tree_code,
value_range_d*, value_range_d*) (tree-vrp.c:2218)
==24993==    by 0x107A06CF: extract_range_from_binary_expr_1(value_range_d*,
tree_code, tree_node*, value_range_d*, value_range_d*) (tree-vrp.c:3117)
==24993==    by 0x1079FCC7: extract_range_from_binary_expr_1(value_range_d*,
tree_code, tree_node*, value_range_d*, value_range_d*) (tree-vrp.c:2397)
==24993==    by 0x107A2E57: extract_range_from_binary_expr(value_range_d*,
tree_code, tree_node*, tree_node*, tree_node*) (tree-vrp.c:3293)
==24993==    by 0x107A6373: extract_range_from_assignment(value_range_d*,
gimple_statement_base*) (tree-vrp.c:4003)
==24993==    by 0x107A8227: vrp_visit_assignment_or_call (tree-vrp.c:6920)
==24993==    by 0x107A8227: vrp_visit_stmt(gimple_statement_base*, edge_def**,
tree_node**) (tree-vrp.c:7731)
==24993==    by 0x106DEC97: simulate_stmt(gimple_statement_base*)
(tree-ssa-propagate.c:331)
==24993==    by 0x106E153F: simulate_block (tree-ssa-propagate.c:454)
==24993==    by 0x106E153F: ssa_propagate(ssa_prop_result
(*)(gimple_statement_base*, edge_def**, tree_node**), ssa_prop_result
(*)(gimple_statement_base*)) (tree-ssa-propaga
te.c:871)
==24993==    by 0x107B063F: execute_vrp (tree-vrp.c:9994)
==24993==    by 0x107B063F: (anonymous namespace)::pass_vrp::execute(function*)
(tree-vrp.c:10074)
==24993==  Uninitialised value was created by a stack allocation
==24993==    at 0x1080E418: wi::divmod_internal(long*, unsigned int*, long*,
long const*, unsigned int, unsigned int, long const*, unsigned int, unsigned
int, signop_e, bool*
) (wide-int.cc:1683)
==24993== 
==24993== Conditional jump or move depends on uninitialised value(s)
==24993==    at 0x1080E8E4: divmod_internal_2 (wide-int.cc:1623)
==24993==    by 0x1080E8E4: wi::divmod_internal(long*, unsigned int*, long*,
long const*, unsigned int, unsigned int, long const*, unsigned int, unsigned
int, signop_e, bool*
) (wide-int.cc:1823)
==24993==    by 0x103132C7: div_trunc<const tree_node*,
generic_wide_int<wide_int_storage> > (wide-int.h:2506)
==24993==    by 0x103132C7: int_const_binop_1(tree_code, tree_node const*,
tree_node const*, int) (fold-const.c:1038)
==24993==    by 0x1079BC6F: vrp_int_const_binop(tree_code, tree_node*,
tree_node*) (tree-vrp.c:1934)
==24993==    by 0x1079C2EB:
extract_range_from_multiplicative_op_1(value_range_d*, tree_code,
value_range_d*, value_range_d*) (tree-vrp.c:2218)
==24993==    by 0x107A06CF: extract_range_from_binary_expr_1(value_range_d*,
tree_code, tree_node*, value_range_d*, value_range_d*) (tree-vrp.c:3117)
==24993==    by 0x1079FCC7: extract_range_from_binary_expr_1(value_range_d*,
tree_code, tree_node*, value_range_d*, value_range_d*) (tree-vrp.c:2397)
==24993==    by 0x107A2E57: extract_range_from_binary_expr(value_range_d*,
tree_code, tree_node*, tree_node*, tree_node*) (tree-vrp.c:3293)
==24993==    by 0x107A6373: extract_range_from_assignment(value_range_d*,
gimple_statement_base*) (tree-vrp.c:4003)
==24993==    by 0x107A8227: vrp_visit_assignment_or_call (tree-vrp.c:6920)
==24993==    by 0x107A8227: vrp_visit_stmt(gimple_statement_base*, edge_def**,
tree_node**) (tree-vrp.c:7731)
==24993==    by 0x106DEC97: simulate_stmt(gimple_statement_base*)
(tree-ssa-propagate.c:331)
==24993==    by 0x106E153F: simulate_block (tree-ssa-propagate.c:454)
==24993==    by 0x106E153F: ssa_propagate(ssa_prop_result
(*)(gimple_statement_base*, edge_def**, tree_node**), ssa_prop_result
(*)(gimple_statement_base*)) (tree-ssa-propagate.c:871)
==24993==    by 0x107B063F: execute_vrp (tree-vrp.c:9994)
==24993==    by 0x107B063F: (anonymous namespace)::pass_vrp::execute(function*)
(tree-vrp.c:10074)
==24993==  Uninitialised value was created by a stack allocation
==24993==    at 0x1080E418: wi::divmod_internal(long*, unsigned int*, long*,
long const*, unsigned int, unsigned int, long const*, unsigned int, unsigned
int, signop_e, bool*) (wide-int.cc:1683)
==24993== 
==24993== Conditional jump or move depends on uninitialised value(s)
==24993==    at 0x1080E964: divmod_internal_2 (wide-int.cc:1645)
==24993==    by 0x1080E964: wi::divmod_internal(long*, unsigned int*, long*,
long const*, unsigned int, unsigned int, long const*, unsigned int, unsigned
int, signop_e, bool*) (wide-int.cc:1823)
==24993==    by 0x103132C7: div_trunc<const tree_node*,
generic_wide_int<wide_int_storage> > (wide-int.h:2506)
==24993==    by 0x103132C7: int_const_binop_1(tree_code, tree_node const*,
tree_node const*, int) (fold-const.c:1038)
==24993==    by 0x1079BC6F: vrp_int_const_binop(tree_code, tree_node*,
tree_node*) (tree-vrp.c:1934)
==24993==    by 0x1079C2EB:
extract_range_from_multiplicative_op_1(value_range_d*, tree_code,
value_range_d*, value_range_d*) (tree-vrp.c:2218)
==24993==    by 0x107A06CF: extract_range_from_binary_expr_1(value_range_d*,
tree_code, tree_node*, value_range_d*, value_range_d*) (tree-vrp.c:3117)
==24993==    by 0x1079FCC7: extract_range_from_binary_expr_1(value_range_d*,
tree_code, tree_node*, value_range_d*, value_range_d*) (tree-vrp.c:2397)
==24993==    by 0x107A2E57: extract_range_from_binary_expr(value_range_d*,
tree_code, tree_node*, tree_node*, tree_node*) (tree-vrp.c:3293)
==24993==    by 0x107A6373: extract_range_from_assignment(value_range_d*,
gimple_statement_base*) (tree-vrp.c:4003)
==24993==    by 0x107A8227: vrp_visit_assignment_or_call (tree-vrp.c:6920)
==24993==    by 0x107A8227: vrp_visit_stmt(gimple_statement_base*, edge_def**,
tree_node**) (tree-vrp.c:7731)
==24993==    by 0x106DEC97: simulate_stmt(gimple_statement_base*)
(tree-ssa-propagate.c:331)
==24993==    by 0x106E153F: simulate_block (tree-ssa-propagate.c:454)
==24993==    by 0x106E153F: ssa_propagate(ssa_prop_result
(*)(gimple_statement_base*, edge_def**, tree_node**), ssa_prop_result
(*)(gimple_statement_base*)) (tree-ssa-propagate.c:871)
==24993==    by 0x107B063F: execute_vrp (tree-vrp.c:9994)
==24993==    by 0x107B063F: (anonymous namespace)::pass_vrp::execute(function*)
(tree-vrp.c:10074)
==24993==  Uninitialised value was created by a stack allocation
==24993==    at 0x1080E418: wi::divmod_internal(long*, unsigned int*, long*,
long const*, unsigned int, unsigned int, long const*, unsigned int, unsigned
int, signop_e, bool*) (wide-int.cc:1683)
==24993== 
==24993== Conditional jump or move depends on uninitialised value(s)
==24993==    at 0x10809E8C: canonize(long*, unsigned int, unsigned int)
(wide-int.cc:109)
==24993==    by 0x1080E9DB: wi::divmod_internal(long*, unsigned int*, long*,
long const*, unsigned int, unsigned int, long const*, unsigned int, unsigned
int, signop_e, bool*) (wide-int.cc:1829)
==24993==    by 0x1079BC6F: vrp_int_const_binop(tree_code, tree_node*,
tree_node*) (tree-vrp.c:1934)
==24993==    by 0x1079C2EB:
extract_range_from_multiplicative_op_1(value_range_d*, tree_code,
value_range_d*, value_range_d*) (tree-vrp.c:2218)
==24993==    by 0x107A06CF: extract_range_from_binary_expr_1(value_range_d*,
tree_code, tree_node*, value_range_d*, value_range_d*) (tree-vrp.c:3117)
==24993==    by 0x1079FCC7: extract_range_from_binary_expr_1(value_range_d*,
tree_code, tree_node*, value_range_d*, value_range_d*) (tree-vrp.c:2397)
==24993==    by 0x107A2E57: extract_range_from_binary_expr(value_range_d*,
tree_code, tree_node*, tree_node*, tree_node*) (tree-vrp.c:3293)
==24993==    by 0x107A6373: extract_range_from_assignment(value_range_d*,
gimple_statement_base*) (tree-vrp.c:4003)
==24993==    by 0x107A8227: vrp_visit_assignment_or_call (tree-vrp.c:6920)
==24993==    by 0x107A8227: vrp_visit_stmt(gimple_statement_base*, edge_def**,
tree_node**) (tree-vrp.c:7731)
==24993==    by 0x106DEC97: simulate_stmt(gimple_statement_base*)
(tree-ssa-propagate.c:331)
==24993==    by 0x106E153F: simulate_block (tree-ssa-propagate.c:454)
==24993==    by 0x106E153F: ssa_propagate(ssa_prop_result
(*)(gimple_statement_base*, edge_def**, tree_node**), ssa_prop_result
(*)(gimple_statement_base*)) (tree-ssa-propagate.c:871)
==24993==    by 0x107B063F: execute_vrp (tree-vrp.c:9994)
==24993==    by 0x107B063F: (anonymous namespace)::pass_vrp::execute(function*)
(tree-vrp.c:10074)
==24993==  Uninitialised value was created by a stack allocation
==24993==    at 0x1080E418: wi::divmod_internal(long*, unsigned int*, long*,
long const*, unsigned int, unsigned int, long const*, unsigned int, unsigned
int, signop_e, bool*) (wide-int.cc:1683)
==24993== 
==24993== Conditional jump or move depends on uninitialised value(s)
==24993==    at 0x107CA644: force_fit_type(tree_node*,
generic_wide_int<wide_int_ref_storage<false> > const&, int, bool) (tree.c:1223)
==24993==    by 0x103135A7: int_const_binop_1(tree_code, tree_node const*,
tree_node const*, int) (fold-const.c:1098)
==24993==    by 0x1079BC6F: vrp_int_const_binop(tree_code, tree_node*,
tree_node*) (tree-vrp.c:1934)
==24993==    by 0x1079C2EB:
extract_range_from_multiplicative_op_1(value_range_d*, tree_code,
value_range_d*, value_range_d*) (tree-vrp.c:2218)
==24993==    by 0x107A06CF: extract_range_from_binary_expr_1(value_range_d*,
tree_code, tree_node*, value_range_d*, value_range_d*) (tree-vrp.c:3117)
==24993==    by 0x1079FCC7: extract_range_from_binary_expr_1(value_range_d*,
tree_code, tree_node*, value_range_d*, value_range_d*) (tree-vrp.c:2397)
==24993==    by 0x107A2E57: extract_range_from_binary_expr(value_range_d*,
tree_code, tree_node*, tree_node*, tree_node*) (tree-vrp.c:3293)
==24993==    by 0x107A6373: extract_range_from_assignment(value_range_d*,
gimple_statement_base*) (tree-vrp.c:4003)
==24993==    by 0x107A8227: vrp_visit_assignment_or_call (tree-vrp.c:6920)
==24993==    by 0x107A8227: vrp_visit_stmt(gimple_statement_base*, edge_def**,
tree_node**) (tree-vrp.c:7731)
==24993==    by 0x106DEC97: simulate_stmt(gimple_statement_base*)
(tree-ssa-propagate.c:331)
==24993==    by 0x106E153F: simulate_block (tree-ssa-propagate.c:454)
==24993==    by 0x106E153F: ssa_propagate(ssa_prop_result
(*)(gimple_statement_base*, edge_def**, tree_node**), ssa_prop_result
(*)(gimple_statement_base*)) (tree-ssa-propagate.c:871)
==24993==    by 0x107B063F: execute_vrp (tree-vrp.c:9994)
==24993==    by 0x107B063F: (anonymous namespace)::pass_vrp::execute(function*)
(tree-vrp.c:10074)
==24993==  Uninitialised value was created by a stack allocation
==24993==    at 0x1080E418: wi::divmod_internal(long*, unsigned int*, long*,
long const*, unsigned int, unsigned int, long const*, unsigned int, unsigned
int, signop_e, bool*) (wide-int.cc:1683)
...

3)
==25128== Invalid read of size 4
==25128==    at 0x10A41D6C: get_last_value_validate(rtx_def**, rtx_insn*, int,
int) (combine.c:12629)
==25128==    by 0x10A41B97: get_last_value_validate(rtx_def**, rtx_insn*, int,
int) (combine.c:12688)
==25128==    by 0x10A42BF7: record_value_for_reg(rtx_def*, rtx_insn*, rtx_def*)
(combine.c:12300)
==25128==    by 0x1051F41F: note_stores(rtx_def const*, void (*)(rtx_def*,
rtx_def const*, void*), void*) (rtlanal.c:1606)
==25128==    by 0x10A4320F: record_dead_and_set_regs(rtx_insn*)
(combine.c:12432)
==25128==    by 0x10A5D3FB: combine_instructions (combine.c:1473)
==25128==    by 0x10A5D3FB: rest_of_handle_combine (combine.c:13902)
==25128==    by 0x10A5D3FB: (anonymous
namespace)::pass_combine::execute(function*) (combine.c:13945)
==25128==    by 0x104B5DC7: execute_one_pass(opt_pass*) (passes.c:2151)
==25128==    by 0x104B6463: execute_pass_list_1(opt_pass*) (passes.c:2203)
==25128==    by 0x104B647B: execute_pass_list_1(opt_pass*) (passes.c:2204)
==25128==    by 0x104B64FB: execute_pass_list(function*, opt_pass*)
(passes.c:2214)
==25128==    by 0x102236F7: cgraph_node::expand() (cgraphunit.c:1735)
==25128==    by 0x10224CC7: expand_all_functions (cgraphunit.c:1871)
==25128==    by 0x10224CC7: symbol_table::compile() (cgraphunit.c:2206)
==25128==  Address 0xd35cef8 is 0 bytes after a block of size 2,152 alloc'd
==25128==    at 0x402924C: malloc (vg_replace_malloc.c:296)
==25128==    by 0x10BA2E73: xmalloc (xmalloc.c:147)
==25128==    by 0x104F4823: regstat_init_n_sets_and_refs() (regstat.c:60)
==25128==    by 0x10A5C7A3: rest_of_handle_combine (combine.c:13899)
==25128==    by 0x10A5C7A3: (anonymous
namespace)::pass_combine::execute(function*) (combine.c:13945)
==25128==    by 0x104B5DC7: execute_one_pass(opt_pass*) (passes.c:2151)
==25128==    by 0x104B6463: execute_pass_list_1(opt_pass*) (passes.c:2203)
==25128==    by 0x104B647B: execute_pass_list_1(opt_pass*) (passes.c:2204)
==25128==    by 0x104B64FB: execute_pass_list(function*, opt_pass*)
(passes.c:2214)
==25128==    by 0x102236F7: cgraph_node::expand() (cgraphunit.c:1735)
==25128==    by 0x10224CC7: expand_all_functions (cgraphunit.c:1871)
==25128==    by 0x10224CC7: symbol_table::compile() (cgraphunit.c:2206)
==25128==    by 0x10226533: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2283)
==25128==    by 0x100F78A3: c_write_global_declarations() (c-decl.c:10623)
==25128==



More information about the Gcc-bugs mailing list