Minor fix-ups for PowerPC defines

This commit is contained in:
Sergey Fedorov 2023-11-25 15:44:16 +08:00
parent c815c760da
commit 68db54545e
2 changed files with 2 additions and 2 deletions

View File

@ -370,7 +370,7 @@ class AssignAttributeStartEnd {
#if defined(HAVE___ATTRIBUTE__)
# if (defined(__i386__) || defined(__x86_64__))
# define CACHELINE_ALIGNED __attribute__((aligned(64)))
# elif (defined(__PPC__) || defined(__PPC64__))
# elif (defined(__PPC__) || defined(__PPC64__) || defined(__ppc__) || defined(__ppc64__))
# define CACHELINE_ALIGNED __attribute__((aligned(16)))
# elif (defined(__arm__))
# define CACHELINE_ALIGNED __attribute__((aligned(64)))

View File

@ -96,7 +96,7 @@ void StacktracePowerPCDummyFunction() { __asm__ volatile(""); }
// Do not put globals below.
// Load instruction used on top-of-stack get.
#if defined(__PPC64__) || defined(__LP64__)
#if defined(__PPC64__) || defined(__ppc64__) || defined(__LP64__)
# define LOAD "ld"
#else
# define LOAD "lwz"