rtems.h revision 132718
190075Sobrien/* Definitions for rtems targeting a PowerPC using elf. 2110611Skan Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 390075Sobrien Contributed by Joel Sherrill (joel@OARcorp.com). 490075Sobrien 5132718Skan This file is part of GCC. 690075Sobrien 7132718Skan GCC is free software; you can redistribute it and/or modify it 8132718Skan under the terms of the GNU General Public License as published 9132718Skan by the Free Software Foundation; either version 2, or (at your 10132718Skan option) any later version. 1190075Sobrien 12132718Skan GCC is distributed in the hope that it will be useful, but WITHOUT 13132718Skan ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14132718Skan or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 15132718Skan License for more details. 1690075Sobrien 17132718Skan You should have received a copy of the GNU General Public License 18132718Skan along with GCC; see the file COPYING. If not, write to the 19132718Skan Free Software Foundation, 59 Temple Place - Suite 330, Boston, 20132718Skan MA 02111-1307, USA. */ 2190075Sobrien 2290075Sobrien/* Specify predefined symbols in preprocessor. */ 2390075Sobrien 24117395Skan#undef TARGET_OS_CPP_BUILTINS 25117395Skan#define TARGET_OS_CPP_BUILTINS() \ 26117395Skan do \ 27117395Skan { \ 28117395Skan builtin_define_std ("PPC"); \ 29117395Skan builtin_define ("__rtems__"); \ 30117395Skan builtin_assert ("system=rtems"); \ 31117395Skan builtin_assert ("cpu=powerpc"); \ 32117395Skan builtin_assert ("machine=powerpc"); \ 33132718Skan TARGET_OS_SYSV_CPP_BUILTINS (); \ 34117395Skan } \ 35117395Skan while (0) 36110611Skan 37110611Skan#undef CPP_OS_DEFAULT_SPEC 38110611Skan#define CPP_OS_DEFAULT_SPEC "%(cpp_os_rtems)" 39