[8833] | 1 | /* Target definitions for GNU compiler for a little endian PowerPC |
---|
| 2 | running System V.4 |
---|
| 3 | Copyright (C) 1995, Free Software Foundation, Inc. |
---|
| 4 | Contributed by Cygnus Support. |
---|
| 5 | |
---|
| 6 | This file is part of GNU CC. |
---|
| 7 | |
---|
| 8 | GNU CC is free software; you can redistribute it and/or modify |
---|
| 9 | it under the terms of the GNU General Public License as published by |
---|
| 10 | the Free Software Foundation; either version 2, or (at your option) |
---|
| 11 | any later version. |
---|
| 12 | |
---|
| 13 | GNU CC is distributed in the hope that it will be useful, |
---|
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 16 | GNU General Public License for more details. |
---|
| 17 | |
---|
| 18 | You should have received a copy of the GNU General Public License |
---|
| 19 | along with GNU CC; see the file COPYING. If not, write to |
---|
| 20 | the Free Software Foundation, 59 Temple Place - Suite 330, |
---|
| 21 | Boston, MA 02111-1307, USA. */ |
---|
| 22 | |
---|
| 23 | #include "rs6000/sysv4.h" |
---|
| 24 | |
---|
| 25 | #undef TARGET_DEFAULT |
---|
| 26 | #define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS | MASK_LITTLE_ENDIAN) |
---|
| 27 | |
---|
| 28 | #undef CPP_SPEC |
---|
| 29 | #define CPP_SPEC "\ |
---|
| 30 | %{posix: -D_POSIX_SOURCE} \ |
---|
| 31 | %{mrelocatable: -D_RELOCATABLE} \ |
---|
| 32 | %{mcall-sysv: -D_CALL_SYSV} %{mcall-aix: -D_CALL_AIX} %{!mcall-sysv: %{!mcall-aix: -D_CALL_SYSV}} \ |
---|
| 33 | %{msoft-float: -D_SOFT_FLOAT} %{mcpu=403: -D_SOFT_FLOAT} \ |
---|
| 34 | %{mbig: -D_BIG_ENDIAN -Amachine(bigendian)} \ |
---|
| 35 | %{mbig-endian: -D_BIG_ENDIAN -Amachine(bigendian)} \ |
---|
| 36 | %{!mbig: %{!mbig-endian: -D_LITTLE_ENDIAN -Amachine(littleendian)}} \ |
---|
| 37 | %{!mcpu*: \ |
---|
| 38 | %{mpower: %{!mpower2: -D_ARCH_PWR}} \ |
---|
| 39 | %{mpower2: -D_ARCH_PWR2} \ |
---|
| 40 | %{mpowerpc*: -D_ARCH_PPC} \ |
---|
| 41 | %{mno-powerpc: %{!mpower: %{!mpower2: -D_ARCH_COM}}} \ |
---|
| 42 | %{!mno-powerpc: -D_ARCH_PPC}} \ |
---|
| 43 | %{mcpu=common: -D_ARCH_COM} \ |
---|
| 44 | %{mcpu=power: -D_ARCH_PWR} \ |
---|
| 45 | %{mcpu=powerpc: -D_ARCH_PPC} \ |
---|
| 46 | %{mcpu=rios: -D_ARCH_PWR} \ |
---|
| 47 | %{mcpu=rios1: -D_ARCH_PWR} \ |
---|
| 48 | %{mcpu=rios2: -D_ARCH_PWR2} \ |
---|
| 49 | %{mcpu=rsc: -D_ARCH_PWR} \ |
---|
| 50 | %{mcpu=rsc1: -D_ARCH_PWR} \ |
---|
| 51 | %{mcpu=403: -D_ARCH_PPC} \ |
---|
| 52 | %{mcpu=601: -D_ARCH_PPC -D_ARCH_PWR} \ |
---|
| 53 | %{mcpu=603: -D_ARCH_PPC} \ |
---|
| 54 | %{mcpu=604: -D_ARCH_PPC}" |
---|