Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 ee6eb98
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/hotspot/cpu/x86/macroAssembler_x86.cpp
Expand Up @@ -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;
Expand All @@ -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];
Expand Down

1 comment on commit ee6eb98

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented on ee6eb98 Oct 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.