8133625: src/share/vm/opto/compile.hpp:96: error: integer constant is too large for ‘long’ type

Wrap constant causing the failure into into CONST64(). Update comments.

Reviewed-by: kvn
This commit is contained in:
Zoltan Majo 2015-08-19 11:59:00 +02:00
parent 6d858b63cb
commit 0d7ee212ea
5 changed files with 6 additions and 6 deletions

View file

@ -93,7 +93,7 @@ class NodeCloneInfo {
public:
void set_idx(node_idx_t idx) {
_idx_clone_orig = _idx_clone_orig & 0xFFFFFFFF00000000 | idx;
_idx_clone_orig = _idx_clone_orig & CONST64(0xFFFFFFFF00000000) | idx;
}
node_idx_t idx() const { return (node_idx_t)(_idx_clone_orig & 0xFFFFFFFF); }

View file

@ -161,7 +161,7 @@ typedef uint64_t julong;
//----------------------------------------------------------------------------------------------------
// Constant for jlong (specifying an long long canstant is C++ compiler specific)
// Constant for jlong (specifying a long long constant is C++ compiler specific)
// Build a 64bit integer constant
#define CONST64(x) (x ## LL)

View file

@ -178,7 +178,7 @@ typedef unsigned long long julong;
//----------------------------------------------------------------------------------------------------
// Constant for jlong (specifying an long long constant is C++ compiler specific)
// Constant for jlong (specifying a long long constant is C++ compiler specific)
// Build a 64bit integer constant
#define CONST64(x) (x ## LL)

View file

@ -148,9 +148,9 @@ inline int g_isfinite(jfloat f) { return _finite(f); }
inline int g_isfinite(jdouble f) { return _finite(f); }
//----------------------------------------------------------------------------------------------------
// Constant for jlong (specifying an long long constant is C++ compiler specific)
// Constant for jlong (specifying a long long constant is C++ compiler specific)
// Build a 64bit integer constant on with Visual C++
// Build a 64bit integer constant with Visual C++
#define CONST64(x) (x ## i64)
#define UCONST64(x) (x ## ui64)

View file

@ -108,7 +108,7 @@ typedef uint64_t julong;
//----------------------------------------------------------------------------------------------------
// Constant for jlong (specifying an long long canstant is C++ compiler specific)
// Constant for jlong (specifying a long long constant is C++ compiler specific)
// Build a 64bit integer constant
#define CONST64(x) (x ## LL)