Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.
/ jdk18u Public archive

Commit 4b0818c

Browse files
author
Harold Seigel
committedMar 29, 2022
8278381: [GCC 11] Address::make_raw() does not initialize rspec
Backport-of: 4f594e6a28ad85d46d3252fb960f1c116f414899
1 parent 3d289c1 commit 4b0818c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/hotspot/cpu/arm/assembler_arm_32.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
// Convert the raw encoding form into the form expected by the
4747
// constructor for Address.
4848
Address Address::make_raw(int base, int index, int scale, int disp, relocInfo::relocType disp_reloc) {
49-
RelocationHolder rspec;
49+
RelocationHolder rspec = RelocationHolder::none;
5050
if (disp_reloc != relocInfo::none) {
5151
rspec = Relocation::spec_simple(disp_reloc);
5252
}

‎src/hotspot/cpu/x86/assembler_x86.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Address::Address(address loc, RelocationHolder spec) {
186186
// Address. An index of 4 (rsp) corresponds to having no index, so convert
187187
// that to noreg for the Address constructor.
188188
Address Address::make_raw(int base, int index, int scale, int disp, relocInfo::relocType disp_reloc) {
189-
RelocationHolder rspec;
189+
RelocationHolder rspec = RelocationHolder::none;
190190
if (disp_reloc != relocInfo::none) {
191191
rspec = Relocation::spec_simple(disp_reloc);
192192
}

0 commit comments

Comments
 (0)