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 rtl-optimization/56776] New: valgrind errors within ira


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

             Bug #: 56776
           Summary: valgrind errors within ira
    Classification: Unclassified
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Joost.VandeVondele@mat.ethz.ch


The famously short Fortran program:

> cat test.f90 
END

yields errors in ira:

valgrind --tool=memcheck --trace-children=yes gfortran -c test.f90

==7625== Conditional jump or move depends on uninitialised value(s)
==7625==    at 0x882AF7: make_object_born(ira_object*) (sparseset.h:147)
==7625==    by 0x882C3A: mark_pseudo_regno_live(int) (ira-lives.c:294)
==7625==    by 0x883C34: process_bb_node_lives(ira_loop_tree_node*)
(ira-lives.c:1321)
==7625==    by 0x86D4A8: ira_traverse_loop_tree(bool, ira_loop_tree_node*, void
(*)(ira_loop_tree_node*), void (*)(ira_loop_tree_node*)) (ira-build.c:1604)
==7625==    by 0x884811: ira_create_allocno_live_ranges() (ira-lives.c:1595)
==7625==    by 0x86DD84: ira_build() (ira-build.c:3198)
==7625==    by 0x866792: rest_of_handle_ira() (ira.c:4473)
==7625==    by 0x8F0626: execute_one_pass(opt_pass*) (passes.c:2330)
==7625==    by 0x8F0A54: execute_pass_list(opt_pass*) (passes.c:2378)
==7625==    by 0x8F0A66: execute_pass_list(opt_pass*) (passes.c:2379)
==7625==    by 0x6C2637: expand_function(cgraph_node*) (cgraphunit.c:1640)
==7625==    by 0x6C4749: compile() (cgraphunit.c:1833)
==7625== 
==7625== Use of uninitialised value of size 8
==7625==    at 0x882C22: mark_pseudo_regno_live(int) (sparseset.h:147)
==7625==    by 0x883C34: process_bb_node_lives(ira_loop_tree_node*)
(ira-lives.c:1321)
==7625==    by 0x86D4A8: ira_traverse_loop_tree(bool, ira_loop_tree_node*, void
(*)(ira_loop_tree_node*), void (*)(ira_loop_tree_node*)) (ira-build.c:1604)
==7625==    by 0x884811: ira_create_allocno_live_ranges() (ira-lives.c:1595)
==7625==    by 0x86DD84: ira_build() (ira-build.c:3198)
==7625==    by 0x866792: rest_of_handle_ira() (ira.c:4473)
==7625==    by 0x8F0626: execute_one_pass(opt_pass*) (passes.c:2330)
==7625==    by 0x8F0A54: execute_pass_list(opt_pass*) (passes.c:2378)
==7625==    by 0x8F0A66: execute_pass_list(opt_pass*) (passes.c:2379)
==7625==    by 0x6C2637: expand_function(cgraph_node*) (cgraphunit.c:1640)
==7625==    by 0x6C4749: compile() (cgraphunit.c:1833)
==7625==    by 0x6C4A74: finalize_compilation_unit() (cgraphunit.c:2119)


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