mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8037816: Fix for 8036122 breaks build with Xcode5/clang
Repaired or selectively disabled offending formats; future-proofed with additional checking Reviewed-by: kvn, jrose, stefank
This commit is contained in:
parent
563feb9091
commit
305ec3bd3f
293 changed files with 1285 additions and 913 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -2424,7 +2424,7 @@ void Compile::dump_asm(int *pcs, uint pc_limit) {
|
|||
starts_bundle = ' ';
|
||||
tty->print("\t");
|
||||
delay->format(_regalloc, tty);
|
||||
tty->print_cr("");
|
||||
tty->cr();
|
||||
delay = NULL;
|
||||
}
|
||||
|
||||
|
@ -2438,12 +2438,12 @@ void Compile::dump_asm(int *pcs, uint pc_limit) {
|
|||
if (pcs && n->_idx < pc_limit)
|
||||
tty->print_cr("%3.3x", pcs[n->_idx]);
|
||||
else
|
||||
tty->print_cr("");
|
||||
tty->cr();
|
||||
|
||||
assert(cut_short || delay == NULL, "no unconditional delay branch");
|
||||
|
||||
} // End of per-block dump
|
||||
tty->print_cr("");
|
||||
tty->cr();
|
||||
|
||||
if (cut_short) tty->print_cr("*** disassembly is cut short ***");
|
||||
}
|
||||
|
@ -3688,7 +3688,8 @@ void Compile::ConstantTable::emit(CodeBuffer& cb) {
|
|||
default: ShouldNotReachHere();
|
||||
}
|
||||
assert(constant_addr, "consts section too small");
|
||||
assert((constant_addr - _masm.code()->consts()->start()) == con.offset(), err_msg_res("must be: %d == %d", constant_addr - _masm.code()->consts()->start(), con.offset()));
|
||||
assert((constant_addr - _masm.code()->consts()->start()) == con.offset(),
|
||||
err_msg_res("must be: %d == %d", (int) (constant_addr - _masm.code()->consts()->start()), (int)(con.offset())));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3768,7 +3769,7 @@ void Compile::ConstantTable::fill_jump_table(CodeBuffer& cb, MachConstantNode* n
|
|||
|
||||
for (uint i = 0; i < n->outcnt(); i++) {
|
||||
address* constant_addr = &jump_table_base[i];
|
||||
assert(*constant_addr == (((address) n) + i), err_msg_res("all jump-table entries must contain adjusted node pointer: " INTPTR_FORMAT " == " INTPTR_FORMAT, *constant_addr, (((address) n) + i)));
|
||||
assert(*constant_addr == (((address) n) + i), err_msg_res("all jump-table entries must contain adjusted node pointer: " INTPTR_FORMAT " == " INTPTR_FORMAT, p2i(*constant_addr), p2i(((address) n) + i)));
|
||||
*constant_addr = cb.consts()->target(*labels.at(i), (address) constant_addr);
|
||||
cb.consts()->relocate((address) constant_addr, relocInfo::internal_word_type);
|
||||
}
|
||||
|
@ -3884,7 +3885,7 @@ void Compile::dump_inlining() {
|
|||
}
|
||||
if (do_print_inlining) {
|
||||
for (int i = 0; i < _print_inlining_list->length(); i++) {
|
||||
tty->print(_print_inlining_list->adr_at(i)->ss()->as_string());
|
||||
tty->print("%s", _print_inlining_list->adr_at(i)->ss()->as_string());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue