Mercurial > hg > truffle
diff src/share/vm/utilities/macros.hpp @ 14390:0f03ff49c720
8016491: PPC64 (part 2): Clean up PPC defines.
Summary: Distinguish PPC, PPC64 and PPC32. PPC should guard code needed on any PPC system. PPC32 and PPC64 should guard code needed in a port for the ppc64 or ppc32 instruction set.
Reviewed-by: kvn
author | goetz |
---|---|
date | Wed, 19 Jun 2013 12:29:30 +0200 |
parents | db9981fd3124 |
children | b5c8a61d7fa0 |
line wrap: on
line diff
--- a/src/share/vm/utilities/macros.hpp Wed Jun 19 12:15:50 2013 +0200 +++ b/src/share/vm/utilities/macros.hpp Wed Jun 19 12:29:30 2013 +0200 @@ -340,14 +340,34 @@ #define NOT_SPARC(code) code #endif -#ifdef PPC +#if defined(PPC32) || defined(PPC64) +#ifndef PPC +#define PPC +#endif #define PPC_ONLY(code) code #define NOT_PPC(code) #else +#undef PPC #define PPC_ONLY(code) #define NOT_PPC(code) code #endif +#ifdef PPC32 +#define PPC32_ONLY(code) code +#define NOT_PPC32(code) +#else +#define PPC32_ONLY(code) +#define NOT_PPC32(code) code +#endif + +#ifdef PPC64 +#define PPC64_ONLY(code) code +#define NOT_PPC64(code) +#else +#define PPC64_ONLY(code) +#define NOT_PPC64(code) code +#endif + #ifdef E500V2 #define E500V2_ONLY(code) code #define NOT_E500V2(code)