Skip to content
Permalink
Browse files
8254995: [x86] ControlWord::print(), rc/pc variables might not be ini…
…tialized

Reviewed-by: kvn
  • Loading branch information
shipilev committed Oct 20, 2020
1 parent e577c8c commit ee6eb9860e9d1326dd62dff52b0d67a94e66a7ab
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/hotspot/cpu/x86/macroAssembler_x86.cpp
@@ -4084,6 +4084,9 @@ class ControlWord {
case 1: rc = "round down"; break;
case 2: rc = "round up "; break;
case 3: rc = "chop "; break;
default:
rc = NULL; // silence compiler warnings
fatal("Unknown rounding control: %d", rounding_control());
};
// precision control
const char* pc;
@@ -4092,6 +4095,9 @@ class ControlWord {
case 1: pc = "reserved"; break;
case 2: pc = "53 bits "; break;
case 3: pc = "64 bits "; break;
default:
pc = NULL; // silence compiler warnings
fatal("Unknown precision control: %d", precision_control());
};
// flags
char f[9];

1 comment on commit ee6eb98

@bridgekeeper

This comment has been minimized.

Copy link

@bridgekeeper bridgekeeper bot commented on ee6eb98 Oct 20, 2020

Please sign in to comment.