eabisim.h revision 117395
190075Sobrien/* Support for GCC on simulated PowerPC systems targeted to embedded ELF 290075Sobrien systems. 390075Sobrien Copyright (C) 1995, 1996, 2000 Free Software Foundation, Inc. 490075Sobrien Contributed by Cygnus Support. 590075Sobrien 690075SobrienThis file is part of GNU CC. 790075Sobrien 890075SobrienGNU CC is free software; you can redistribute it and/or modify 990075Sobrienit under the terms of the GNU General Public License as published by 1090075Sobrienthe Free Software Foundation; either version 2, or (at your option) 1190075Sobrienany later version. 1290075Sobrien 1390075SobrienGNU CC is distributed in the hope that it will be useful, 1490075Sobrienbut WITHOUT ANY WARRANTY; without even the implied warranty of 1590075SobrienMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1690075SobrienGNU General Public License for more details. 1790075Sobrien 1890075SobrienYou should have received a copy of the GNU General Public License 1990075Sobrienalong with GNU CC; see the file COPYING. If not, write to 2090075Sobrienthe Free Software Foundation, 59 Temple Place - Suite 330, 2190075SobrienBoston, MA 02111-1307, USA. */ 2290075Sobrien 2390075Sobrien#undef TARGET_VERSION 2490075Sobrien#define TARGET_VERSION fprintf (stderr, " (PowerPC Simulated)"); 2590075Sobrien 26117395Skan#undef TARGET_OS_CPP_BUILTINS 27117395Skan#define TARGET_OS_CPP_BUILTINS() \ 28117395Skan do \ 29117395Skan { \ 30117395Skan builtin_define_std ("PPC"); \ 31117395Skan builtin_define ("__embedded__"); \ 32117395Skan builtin_define ("__simulator__"); \ 33117395Skan builtin_assert ("system=embedded"); \ 34117395Skan builtin_assert ("system=simulator"); \ 35117395Skan builtin_assert ("cpu=powerpc"); \ 36117395Skan builtin_assert ("machine=powerpc"); \ 37117395Skan } \ 38117395Skan while (0) 3990075Sobrien 4090075Sobrien/* Make the simulator the default */ 4190075Sobrien#undef LIB_DEFAULT_SPEC 4290075Sobrien#define LIB_DEFAULT_SPEC "%(lib_sim)" 4390075Sobrien 4490075Sobrien#undef STARTFILE_DEFAULT_SPEC 4590075Sobrien#define STARTFILE_DEFAULT_SPEC "%(startfile_sim)" 4690075Sobrien 4790075Sobrien#undef ENDFILE_DEFAULT_SPEC 4890075Sobrien#define ENDFILE_DEFAULT_SPEC "%(endfile_sim)" 4990075Sobrien 5090075Sobrien#undef LINK_START_DEFAULT_SPEC 5190075Sobrien#define LINK_START_DEFAULT_SPEC "%(link_start_sim)" 5290075Sobrien 5390075Sobrien#undef LINK_OS_DEFAULT_SPEC 5490075Sobrien#define LINK_OS_DEFAULT_SPEC "%(link_os_sim)" 55