summaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/eabisim.h
diff options
context:
space:
mode:
authorkraai <kraai@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-10 00:33:52 +0000
committerkraai <kraai@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-10 00:33:52 +0000
commit5b2c8acb27e7823b7b34a19da0747e49a53a2a08 (patch)
tree6facea888c34905af12eb1791c9d5008e4f91e14 /gcc/config/rs6000/eabisim.h
parentabcf0552f3ee8b3876f50b8eeb1ab8efc10568da (diff)
downloadgcc-5b2c8acb27e7823b7b34a19da0747e49a53a2a08.tar.gz
* config/rs6000/aix.h: Convert CPP_PREDEFINES to
TARGET_OS_CPP_BUILTINS. * config/rs6000/aix31.h: Likewise. * config/rs6000/aix41.h: Likewise. * config/rs6000/aix43.h: Likewise. * config/rs6000/aix51.h: Likewise. * config/rs6000/beos.h: Likewise. * config/rs6000/darwin.h: Likewise. * config/rs6000/eabi.h: Likewise. * config/rs6000/eabisim.h: Likewise. * config/rs6000/linux.h: Likewise. * config/rs6000/linux64.h: Likewise. * config/rs6000/lynx.h: Likewise. * config/rs6000/mach.h: Likewise. * config/rs6000/rtems.h: Likewise. * config/rs6000/sysv4.h: Likewise. * config/rs6000/vxppc.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55356 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/eabisim.h')
-rw-r--r--gcc/config/rs6000/eabisim.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/gcc/config/rs6000/eabisim.h b/gcc/config/rs6000/eabisim.h
index 92e09575f97..00f710e5cb4 100644
--- a/gcc/config/rs6000/eabisim.h
+++ b/gcc/config/rs6000/eabisim.h
@@ -23,9 +23,19 @@ Boston, MA 02111-1307, USA. */
#undef TARGET_VERSION
#define TARGET_VERSION fprintf (stderr, " (PowerPC Simulated)");
-#undef CPP_PREDEFINES
-#define CPP_PREDEFINES \
- "-DPPC -D__embedded__ -D__simulator__ -Asystem=embedded -Asystem=simulator -Acpu=powerpc -Amachine=powerpc"
+#undef TARGET_OS_CPP_BUILTINS
+#define TARGET_OS_CPP_BUILTINS() \
+ do \
+ { \
+ builtin_define_std ("PPC"); \
+ builtin_define ("__embedded__"); \
+ builtin_define ("__simulator__"); \
+ builtin_assert ("system=embedded"); \
+ builtin_assert ("system=simulator"); \
+ builtin_assert ("cpu=powerpc"); \
+ builtin_assert ("machine=powerpc"); \
+ } \
+ while (0)
/* Make the simulator the default */
#undef LIB_DEFAULT_SPEC