Module Name: src
Committed By: matt
Date: Tue Jan 18 00:19:28 UTC 2011
Modified Files:
src/gnu/dist/gcc4/gcc/config/rs6000: netbsd.h
Log Message:
Enable E500 (mpc85xx) support in GCC.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h
diff -u src/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h:1.3 src/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h:1.4
--- src/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h:1.3 Sat May 13 10:38:33 2006
+++ src/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h Tue Jan 18 00:19:28 2011
@@ -121,6 +121,13 @@
#undef TARGET_DEFAULT
#define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS | MASK_STRICT_ALIGN)
+#undef TARGET_E500
+#undef TARGET_E500_SINGLE
+#undef TARGET_E500_DOUBLE
+#define TARGET_E500 (rs6000_cpu == PROCESSOR_PPC8540)
+#define TARGET_E500_SINGLE (TARGET_HARD_FLOAT && rs6000_float_gprs == 1)
+#define TARGET_E500_DOUBLE (TARGET_HARD_FLOAT && rs6000_float_gprs == 2)
+
/* Attempt to enable execute permissions on the stack. */
#define TRANSFER_FROM_TRAMPOLINE NETBSD_ENABLE_EXECUTE_STACK
#ifdef L_trampoline