[PATCH 2/4] arch: add missing predefines for PPC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The macros __PPC, _ARCH_PPC & _ARCH_PPC64 are predefined by
GCC for powperpc (well, it seems __PPC isn't anymore but
it was, at least on my old tolchain for ppc32).

So, do the same here too.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 lib.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib.c b/lib.c
index 28ca49c7c..f0b546889 100644
--- a/lib.c
+++ b/lib.c
@@ -1574,12 +1574,15 @@ static void predefined_macros(void)
 		predefine("__powerpc64__", 1, "1");
 		predefine("__ppc64__", 1, "1");
 		predefine("__PPC64__", 1, "1");
+		predefine("_ARCH_PPC64", 1, "1");
 		/* fall-through */
 	case MACH_PPC32:
 		predefine("__powerpc__", 1, "1");
 		predefine("__powerpc", 1, "1");
 		predefine("__ppc__", 1, "1");
 		predefine("__PPC__", 1, "1");
+		predefine("__PPC", 1, "1");
+		predefine("_ARCH_PPC", 1, "1");
 		if (arch_big_endian)
 			predefine("_BIG_ENDIAN", 1, "1");
 		break;
-- 
2.24.0




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux