From 3704a9a149b53f47e453e219cbcc0a45046ff49d Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 28 May 2000 17:43:00 +0000 Subject: [PATCH] Added defaults for PPC_ABI and PPC_ASM so every PowerPC does not have to define them to their default value. The default values reflect the ABI and Assembly format of the current GNU tools. --- c/src/exec/score/cpu/powerpc/shared/ppc.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/c/src/exec/score/cpu/powerpc/shared/ppc.h b/c/src/exec/score/cpu/powerpc/shared/ppc.h index b7d8c4fffb..e959b0ae05 100644 --- a/c/src/exec/score/cpu/powerpc/shared/ppc.h +++ b/c/src/exec/score/cpu/powerpc/shared/ppc.h @@ -281,6 +281,14 @@ extern "C" { */ #define PPC_ABI_EABI 3 +/* + * Default to the EABI used by current GNU tools + */ + +#ifndef PPC_ABI +#define PPC_ABI PPC_ABI_EABI +#endif + #if (PPC_ABI == PPC_ABI_POWEROPEN) #define PPC_STACK_ALIGNMENT 8 #elif (PPC_ABI == PPC_ABI_GCC27) @@ -309,6 +317,14 @@ extern "C" { #define PPC_ASM_ELF 0 #define PPC_ASM_XCOFF 1 +/* + * Default to the assembler format used by the current GNU tools. + */ + +#ifndef PPC_ASM +#define PPC_ASM PPC_ASM_ELF +#endif + /* * Use the default debug scheme defined in the architectural specification * if another model has not been specified.