Skip to content

Commit ee6eb98

Browse files
committedOct 20, 2020
8254995: [x86] ControlWord::print(), rc/pc variables might not be initialized
Reviewed-by: kvn
1 parent e577c8c commit ee6eb98

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

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

+6
Original file line numberDiff line numberDiff line change
@@ -4084,6 +4084,9 @@ class ControlWord {
40844084
case 1: rc = "round down"; break;
40854085
case 2: rc = "round up "; break;
40864086
case 3: rc = "chop "; break;
4087+
default:
4088+
rc = NULL; // silence compiler warnings
4089+
fatal("Unknown rounding control: %d", rounding_control());
40874090
};
40884091
// precision control
40894092
const char* pc;
@@ -4092,6 +4095,9 @@ class ControlWord {
40924095
case 1: pc = "reserved"; break;
40934096
case 2: pc = "53 bits "; break;
40944097
case 3: pc = "64 bits "; break;
4098+
default:
4099+
pc = NULL; // silence compiler warnings
4100+
fatal("Unknown precision control: %d", precision_control());
40954101
};
40964102
// flags
40974103
char f[9];

0 commit comments

Comments
 (0)
Please sign in to comment.