https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127397
Bug ID: 127397
Summary: [16/17 Regression] valgrind "Conditional jump or move
depends on uninitialised value(s)" in
ira_hard_reg_set_intersection_p (ira-int.h:1458)
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Target: riscv64-unknown-linux-gnu
Created attachment 65589
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65589&action=edit
reduced testcase
Compiler output:
$ riscv64-unknown-linux-gnu-gcc -march=rv64gcvh -mabi=lp64d testcase.c -c
-wrapper valgrind,-q,--track-origins=yes
==3826126== Conditional jump or move depends on uninitialised value(s)
==3826126== at 0x1780000: ira_hard_reg_set_intersection_p (ira-int.h:1458)
==3826126== by 0x1780000: fast_allocation (ira-color.cc:5379)
==3826126== by 0x1780000: ira_color() (ira-color.cc:5439)
==3826126== by 0x176442C: ira (ira.cc:5930)
==3826126== by 0x176442C: (anonymous
namespace)::pass_ira::execute(function*) (ira.cc:6241)
==3826126== by 0x18A1F4F: execute_one_pass(opt_pass*) (passes.cc:2646)
==3826126== by 0x18A286F: execute_pass_list_1(opt_pass*) (passes.cc:2757)
==3826126== by 0x18A2881: execute_pass_list_1(opt_pass*) (passes.cc:2758)
==3826126== by 0x18A28A8: execute_pass_list(function*, opt_pass*)
(passes.cc:2768)
==3826126== by 0x13F5658: expand (cgraphunit.cc:1874)
==3826126== by 0x13F5658: cgraph_node::expand() (cgraphunit.cc:1827)
==3826126== by 0x13F6EDF: output_in_order (cgraphunit.cc:2225)
==3826126== by 0x13F6EDF: symbol_table::compile() [clone .part.0]
(cgraphunit.cc:2432)
==3826126== by 0x13F9E72: compile (cgraphunit.cc:2345)
==3826126== by 0x13F9E72: symbol_table::finalize_compilation_unit()
(cgraphunit.cc:2626)
==3826126== by 0x1A06FF3: compile_file() (toplev.cc:482)
==3826126== by 0x118D49F: do_compile (toplev.cc:2228)
==3826126== by 0x118D49F: toplev::main(int, char**) (toplev.cc:2396)
==3826126== by 0x118F6EA: main (main.cc:39)
==3826126== Uninitialised value was created by a stack allocation
==3826126== at 0x177F490: ira_color() (ira-color.cc:5422)
==3826126==