Mercurial > hg > graal-jvmci-8
comparison src/share/vm/utilities/globalDefinitions_sparcWorks.hpp @ 512:db4caa99ef11
6787106: Hotspot 32 bit build fails on platforms having different definitions for intptr_t & int32_t
Summary: Avoid casting between int32_t and intptr_t specifically for MasmAssembler::movptr in 32 bit platforms.
Reviewed-by: jrose, kvn
author | xlu |
---|---|
date | Wed, 24 Dec 2008 13:06:09 -0800 |
parents | d1605aabd0a1 |
children | 0fbdb4381b99 |
comparison
equal
deleted
inserted
replaced
511:dabd8d202164 | 512:db4caa99ef11 |
---|---|
113 // same size as a pointer. | 113 // same size as a pointer. |
114 #ifdef LINUX | 114 #ifdef LINUX |
115 #ifdef _LP64 | 115 #ifdef _LP64 |
116 #define NULL_WORD 0L | 116 #define NULL_WORD 0L |
117 #else | 117 #else |
118 #define NULL_WORD 0 | 118 // Cast 0 to intptr_t rather than int32_t since they are not the same type |
119 // on some platforms. | |
120 #define NULL_WORD ((intptr_t)0) | |
119 #endif | 121 #endif |
120 #else | 122 #else |
121 #define NULL_WORD NULL | 123 #define NULL_WORD NULL |
122 #endif | 124 #endif |
123 | 125 |