]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/rs6000/eabisim.h
aix.h: Convert CPP_PREDEFINES to TARGET_OS_CPP_BUILTINS.
[thirdparty/gcc.git] / gcc / config / rs6000 / eabisim.h
CommitLineData
ad2b9119
RK
1/* Support for GCC on simulated PowerPC systems targeted to embedded ELF
2 systems.
b26e3a82 3 Copyright (C) 1995, 1996, 2000 Free Software Foundation, Inc.
ad2b9119
RK
4 Contributed by Cygnus Support.
5
6This file is part of GNU CC.
7
8GNU CC is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 2, or (at your option)
11any later version.
12
13GNU CC is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with GNU CC; see the file COPYING. If not, write to
20the Free Software Foundation, 59 Temple Place - Suite 330,
21Boston, MA 02111-1307, USA. */
22
ad2b9119
RK
23#undef TARGET_VERSION
24#define TARGET_VERSION fprintf (stderr, " (PowerPC Simulated)");
25
7990b46f
MK
26#undef TARGET_OS_CPP_BUILTINS
27#define TARGET_OS_CPP_BUILTINS() \
28 do \
29 { \
30 builtin_define_std ("PPC"); \
31 builtin_define ("__embedded__"); \
32 builtin_define ("__simulator__"); \
33 builtin_assert ("system=embedded"); \
34 builtin_assert ("system=simulator"); \
35 builtin_assert ("cpu=powerpc"); \
36 builtin_assert ("machine=powerpc"); \
37 } \
38 while (0)
ad2b9119 39
c81bebd7
MM
40/* Make the simulator the default */
41#undef LIB_DEFAULT_SPEC
0bc25b2b 42#define LIB_DEFAULT_SPEC "%(lib_sim)"
c81bebd7
MM
43
44#undef STARTFILE_DEFAULT_SPEC
0bc25b2b 45#define STARTFILE_DEFAULT_SPEC "%(startfile_sim)"
c81bebd7
MM
46
47#undef ENDFILE_DEFAULT_SPEC
0bc25b2b 48#define ENDFILE_DEFAULT_SPEC "%(endfile_sim)"
c81bebd7
MM
49
50#undef LINK_START_DEFAULT_SPEC
0bc25b2b 51#define LINK_START_DEFAULT_SPEC "%(link_start_sim)"
fba29a8c
MM
52
53#undef LINK_OS_DEFAULT_SPEC
54#define LINK_OS_DEFAULT_SPEC "%(link_os_sim)"