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

            Bug ID: 65023
           Summary: valgrind error in process_bb_lives
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com

Created attachment 34730
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34730&action=edit
C source code

The attached code does the following with trunk dated 20150211 with
flag -O2

$ valgrind --suppressions=/home/dcb/valgrind/suppressions -q
--trace-children=yes /home/dcb/gcc/results/bin/gcc -c  -O2 bug187.c
==3804== Use of uninitialised value of size 8
==3804==    at 0x9BAE07: process_bb_lives(basic_block_def*, int&, bool)
(lra-lives.c:936)
==3804==    by 0x9BBFE2: lra_create_live_ranges_1(bool, bool)
(lra-lives.c:1290)
==3804==    by 0x9BC89F: lra_create_live_ranges(bool, bool) (lra-lives.c:1355)
==3804==    by 0x9A368F: lra(_IO_FILE*) (lra.c:2315)
==3804==    by 0x961CB9: do_reload (ira.c:5418)
==3804==    by 0x961CB9: (anonymous namespace)::pass_reload::execute(function*)
(ira.c:5589)
==3804==    by 0xA310D2: execute_one_pass(opt_pass*) (passes.c:2328)
==3804==    by 0xA31535: execute_pass_list_1(opt_pass*) (passes.c:2380)
==3804==    by 0xA31547: execute_pass_list_1(opt_pass*) (passes.c:2381)
==3804==    by 0xA31588: execute_pass_list(function*, opt_pass*)
(passes.c:2391)
==3804==    by 0x73FDCB: cgraph_node::expand() (cgraphunit.c:1865)
==3804==    by 0x741598: expand_all_functions (cgraphunit.c:2001)
==3804==    by 0x741598: symbol_table::compile() (cgraphunit.c:2354)
==3804==    by 0x743097: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2431)
==3804== 

lra-lives.c:936 is

         if ((REG_NOTE_KIND (link) == REG_DEAD

Reply via email to