rtems.h revision 117395
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 590075SobrienThis file is part of GNU CC. 690075Sobrien 790075SobrienGNU CC is free software; you can redistribute it and/or modify 890075Sobrienit under the terms of the GNU General Public License as published by 990075Sobrienthe Free Software Foundation; either version 2, or (at your option) 1090075Sobrienany later version. 1190075Sobrien 1290075SobrienGNU CC is distributed in the hope that it will be useful, 1390075Sobrienbut WITHOUT ANY WARRANTY; without even the implied warranty of 1490075SobrienMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1590075SobrienGNU General Public License for more details. 1690075Sobrien 1790075SobrienYou should have received a copy of the GNU General Public License 1890075Sobrienalong with GNU CC; see the file COPYING. If not, write to 1990075Sobrienthe Free Software Foundation, 59 Temple Place - Suite 330, 2090075SobrienBoston, 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"); \ 33117395Skan } \ 34117395Skan while (0) 35110611Skan 36110611Skan#undef CPP_OS_DEFAULT_SPEC 37110611Skan#define CPP_OS_DEFAULT_SPEC "%(cpp_os_rtems)" 38