Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8254072: AArch64: Get rid of --disable-warnings-as-errors on Windows+ARM64 build #530

Closed
Closed
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
435ca8a
./src/hotspot/cpu/aarch64/nativeInst_aarch64.hpp(658): warning C4334:…
lewurm Oct 6, 2020
204f411
./src/hotspot/cpu/aarch64/register_aarch64.hpp(371): warning C4146: u…
lewurm Oct 6, 2020
61911e7
./src/hotspot/cpu/aarch64/assembler_aarch64.hpp(220): warning C4334: …
lewurm Oct 6, 2020
6fa7b77
./src/hotspot/cpu/aarch64/assembler_aarch64.hpp(448): warning C4554: …
lewurm Oct 6, 2020
547b31f
./src/hotspot/cpu/aarch64/frame_aarch64.cpp(686): warning C4477: 'pri…
lewurm Oct 6, 2020
6a09fc6
./src/hotspot/cpu/aarch64/frame_aarch64.cpp(716): warning C4146: unar…
lewurm Oct 6, 2020
4135f1e
./src/hotspot/cpu/aarch64/immediate_aarch64.cpp(72): warning C4146: u…
lewurm Oct 6, 2020
ca97b0c
./src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp(1837): warning C…
lewurm Oct 6, 2020
256e71e
./src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp(2756): warning C…
lewurm Oct 6, 2020
26b5043
./src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp(2901): warning C…
lewurm Oct 6, 2020
ae1dc32
./src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp(1527): warning C4…
lewurm Oct 6, 2020
e551791
./src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp(2472): warning C4…
lewurm Oct 6, 2020
3005749
./src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp(1312): warning C4…
lewurm Oct 6, 2020
3e92e29
./src/hotspot/cpu/aarch64/templateInterpreterGenerator_aarch64.cpp(11…
lewurm Oct 6, 2020
e01e72a
msvc: disable unary minus warning for unsigned types
lewurm Oct 8, 2020
53fb290
Revert changes for "warning C4146: unary minus operator applied to un…
lewurm Oct 8, 2020
b136018
./src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp(1441): warning C4…
lewurm Oct 8, 2020
a081dfb
Merge remote-tracking branch 'upstream/master' into 8254072-fix-windo…
lewurm Oct 8, 2020
bb433f8
Merge remote-tracking branch 'upstream/master' into 8254072-fix-windo…
lewurm Oct 15, 2020
32e922d
disable warning only for hotspot
lewurm Oct 15, 2020
7378519
add assert
lewurm Oct 15, 2020
901bbd4
uppercase suffix
lewurm Oct 15, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion make/hotspot/lib/CompileJvm.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ DISABLED_WARNINGS_clang := tautological-compare \

DISABLED_WARNINGS_xlc := tautological-compare shift-negative-value

DISABLED_WARNINGS_microsoft := 4100 4127 4201 4244 4291 4351 \
DISABLED_WARNINGS_microsoft := 4100 4127 4146 4201 4244 4291 4351 \
4511 4512 4514 4624 4996

################################################################################
Expand Down
6 changes: 3 additions & 3 deletions src/hotspot/cpu/aarch64/assembler_aarch64.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class Instruction_aarch64 {

static void patch(address a, int msb, int lsb, uint64_t val) {
int nbits = msb - lsb + 1;
guarantee(val < (1U << nbits), "Field too big for insn");
guarantee(val < (1ULL << nbits), "Field too big for insn");
assert_cond(msb >= lsb);
unsigned mask = (1U << nbits) - 1;
val <<= lsb;
Expand Down Expand Up @@ -445,8 +445,8 @@ class Address {
}

Register base() const {
guarantee((_mode == base_plus_offset | _mode == base_plus_offset_reg
| _mode == post | _mode == post_reg),
guarantee((_mode == base_plus_offset || _mode == base_plus_offset_reg
|| _mode == post || _mode == post_reg),
"wrong mode");
return _base;
}
Expand Down
11 changes: 6 additions & 5 deletions src/hotspot/cpu/aarch64/frame_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -662,11 +662,12 @@ intptr_t* frame::real_fp() const {

#undef DESCRIBE_FP_OFFSET

#define DESCRIBE_FP_OFFSET(name) \
{ \
uintptr_t *p = (uintptr_t *)fp; \
printf("0x%016lx 0x%016lx %s\n", (uintptr_t)(p + frame::name##_offset), \
p[frame::name##_offset], #name); \
#define DESCRIBE_FP_OFFSET(name) \
{ \
uintptr_t *p = (uintptr_t *)fp; \
printf(INTPTR_FORMAT " " INTPTR_FORMAT " %s\n", \
(uintptr_t)(p + frame::name##_offset), \
p[frame::name##_offset], #name); \
}

static THREAD_LOCAL uintptr_t nextfp;
Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1828,7 +1828,7 @@ bool MacroAssembler::try_merge_ldst(Register rt, const Address &adr, size_t size
return true;
} else {
assert(size_in_bytes == 8 || size_in_bytes == 4, "only 8 bytes or 4 bytes load/store is supported.");
const unsigned mask = size_in_bytes - 1;
const uint64_t mask = size_in_bytes - 1;
if (adr.getMode() == Address::base_plus_offset &&
(adr.offset() & mask) == 0) { // only supports base_plus_offset.
code()->set_last_insn(pc());
Expand Down Expand Up @@ -2892,7 +2892,7 @@ void MacroAssembler::merge_ldst(Register rt,
// Overwrite previous generated binary.
code_section()->set_end(prev);

const int sz = prev_ldst->size_in_bytes();
const size_t sz = prev_ldst->size_in_bytes();
assert(sz == 8 || sz == 4, "only supports 64/32bit merging.");
if (!is_store) {
BLOCK_COMMENT("merged ldr pair");
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/cpu/aarch64/nativeInst_aarch64.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ class NativeLdSt : public NativeInstruction {
return 0;
}
}
size_t size_in_bytes() { return 1 << size(); }
size_t size_in_bytes() { return 1ull << size(); }
lewurm marked this conversation as resolved.
Show resolved Hide resolved
bool is_not_pre_post_index() { return (is_ldst_ur() || is_ldst_unsigned_offset()); }
bool is_load() {
assert(Instruction_aarch64::extract(uint_at(0), 23, 22) == 0b01 ||
Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,7 @@ nmethod* SharedRuntime::generate_native_wrapper(MacroAssembler* masm,

// Generate stack overflow check
if (UseStackBanging) {
__ bang_stack_with_offset(StackOverflow::stack_shadow_zone_size());
__ bang_stack_with_offset((int)StackOverflow::stack_shadow_zone_size());
} else {
Unimplemented();
}
Expand Down Expand Up @@ -2479,7 +2479,7 @@ void SharedRuntime::generate_deopt_blob() {
__ sub(sp, sp, r19);

// Push interpreter frames in a loop
__ mov(rscratch1, (address)0xDEADDEAD); // Make a recognizable pattern
__ mov(rscratch1, (uint64_t)0xDEADDEAD); // Make a recognizable pattern
__ mov(rscratch2, rscratch1);
Label loop;
__ bind(loop);
Expand Down
12 changes: 6 additions & 6 deletions src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1305,14 +1305,14 @@ class StubGenerator: public StubCodeGenerator {

// Scan over array at a for count oops, verifying each one.
// Preserves a and count, clobbers rscratch1 and rscratch2.
void verify_oop_array (size_t size, Register a, Register count, Register temp) {
void verify_oop_array (int size, Register a, Register count, Register temp) {
Label loop, end;
__ mov(rscratch1, a);
__ mov(rscratch2, zr);
__ bind(loop);
__ cmp(rscratch2, count);
__ br(Assembler::HS, end);
if (size == (size_t)wordSize) {
if (size == wordSize) {
__ ldr(temp, Address(a, rscratch2, Address::lsl(exact_log2(size))));
__ verify_oop(temp);
} else {
Expand Down Expand Up @@ -1343,7 +1343,7 @@ class StubGenerator: public StubCodeGenerator {
// disjoint_int_copy_entry is set to the no-overlap entry point
// used by generate_conjoint_int_oop_copy().
//
address generate_disjoint_copy(size_t size, bool aligned, bool is_oop, address *entry,
address generate_disjoint_copy(int size, bool aligned, bool is_oop, address *entry,
const char *name, bool dest_uninitialized = false) {
Register s = c_rarg0, d = c_rarg1, count = c_rarg2;
RegSet saved_reg = RegSet::of(s, d, count);
Expand Down Expand Up @@ -1409,7 +1409,7 @@ class StubGenerator: public StubCodeGenerator {
// the hardware handle it. The two dwords within qwords that span
// cache line boundaries will still be loaded and stored atomicly.
//
address generate_conjoint_copy(size_t size, bool aligned, bool is_oop, address nooverlap_target,
address generate_conjoint_copy(int size, bool aligned, bool is_oop, address nooverlap_target,
address *entry, const char *name,
bool dest_uninitialized = false) {
Register s = c_rarg0, d = c_rarg1, count = c_rarg2;
Expand Down Expand Up @@ -1660,7 +1660,7 @@ class StubGenerator: public StubCodeGenerator {
address generate_disjoint_oop_copy(bool aligned, address *entry,
const char *name, bool dest_uninitialized) {
const bool is_oop = true;
const size_t size = UseCompressedOops ? sizeof (jint) : sizeof (jlong);
const int size = UseCompressedOops ? sizeof (jint) : sizeof (jlong);
return generate_disjoint_copy(size, aligned, is_oop, entry, name, dest_uninitialized);
}

Expand All @@ -1678,7 +1678,7 @@ class StubGenerator: public StubCodeGenerator {
address nooverlap_target, address *entry,
const char *name, bool dest_uninitialized) {
const bool is_oop = true;
const size_t size = UseCompressedOops ? sizeof (jint) : sizeof (jlong);
const int size = UseCompressedOops ? sizeof (jint) : sizeof (jlong);
return generate_conjoint_copy(size, aligned, is_oop, nooverlap_target, entry,
name, dest_uninitialized);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ void TemplateInterpreterGenerator::bang_stack_shadow_pages(bool native_call) {
// an interpreter frame with greater than a page of locals, so each page
// needs to be checked. Only true for non-native.
if (UseStackBanging) {
const int n_shadow_pages = StackOverflow::stack_shadow_zone_size() / os::vm_page_size();
const int n_shadow_pages = (int)(StackOverflow::stack_shadow_zone_size() / os::vm_page_size());
const int start_page = native_call ? n_shadow_pages : 1;
const int page_size = os::vm_page_size();
for (int pages = start_page; pages <= n_shadow_pages ; pages++) {
Expand Down