summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-05-28 17:43:00 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-05-28 17:43:00 +0000
commit3704a9a149b53f47e453e219cbcc0a45046ff49d (patch)
treeec3c8d8d2f2ee95e7dbca14c78d4f1b4bb9d5d7d
parentRemoved warning by adding return NULL. (diff)
downloadrtems-3704a9a149b53f47e453e219cbcc0a45046ff49d.tar.bz2
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.
-rw-r--r--c/src/exec/score/cpu/powerpc/shared/ppc.h16
1 files changed, 16 insertions, 0 deletions
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)
@@ -310,6 +318,14 @@ extern "C" {
#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.
*/