Mercurial > hg > truffle
comparison src/share/vm/utilities/globalDefinitions_gcc.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 | a61af66fc99e |
children | 0fbdb4381b99 |
comparison
equal
deleted
inserted
replaced
511:dabd8d202164 | 512:db4caa99ef11 |
---|---|
114 // same size as a pointer. | 114 // same size as a pointer. |
115 #ifdef LINUX | 115 #ifdef LINUX |
116 #ifdef _LP64 | 116 #ifdef _LP64 |
117 #define NULL_WORD 0L | 117 #define NULL_WORD 0L |
118 #else | 118 #else |
119 #define NULL_WORD 0 | 119 // Cast 0 to intptr_t rather than int32_t since they are not the same type |
120 // on platforms such as Mac OS X. | |
121 #define NULL_WORD ((intptr_t)0) | |
120 #endif | 122 #endif |
121 #else | 123 #else |
122 #define NULL_WORD NULL | 124 #define NULL_WORD NULL |
123 #endif | 125 #endif |
124 | 126 |