mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
6778669: Patch from Red Hat -- fixes compilation errors
Some fixes which are required to build on recent GCCs. Reviewed-by: never, kvn
This commit is contained in:
parent
114da9bcfc
commit
d6cdfde9d9
20 changed files with 188 additions and 175 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* Copyright 2003-2009 Sun Microsystems, Inc. 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
|
||||
|
@ -306,7 +306,7 @@ void VMError::report(outputStream* st) {
|
|||
|
||||
strncpy(buf, file, buflen);
|
||||
if (len + 10 < buflen) {
|
||||
sprintf(buf + len, ":" SIZE_FORMAT, _lineno);
|
||||
sprintf(buf + len, ":%d", _lineno);
|
||||
}
|
||||
st->print(" (%s)", buf);
|
||||
} else {
|
||||
|
@ -420,7 +420,7 @@ void VMError::report(outputStream* st) {
|
|||
|
||||
if (fr.sp()) {
|
||||
st->print(", sp=" PTR_FORMAT, fr.sp());
|
||||
st->print(", free space=%dk",
|
||||
st->print(", free space=%" INTPTR_FORMAT "k",
|
||||
((intptr_t)fr.sp() - (intptr_t)stack_bottom) >> 10);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue