Annotation of gcc/config/rs6000/eabisim.h, revision 1.1.1.1

1.1       root        1: /* Support for GCC on simulated PowerPC systems targeted to embedded ELF
                      2:    systems.
                      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/eabi.h"
                     24: 
                     25: /* Right now, the simulator doesn't handle floating point, so disable it
                     26:    by default.  */
                     27: #undef TARGET_DEFAULT
                     28: #define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS | MASK_SOFT_FLOAT)
                     29: 
                     30: #undef TARGET_VERSION
                     31: #define TARGET_VERSION fprintf (stderr, " (PowerPC Simulated)");
                     32: 
                     33: #undef CPP_PREDEFINES
                     34: #define CPP_PREDEFINES \
                     35:   "-DPPC -D__embedded__ -D__simulator__ -Asystem(embedded) -Asystem(simulator) -Acpu(powerpc) -Amachine(powerpc)"
                     36: 
                     37: #undef CPP_SPEC
                     38: #define CPP_SPEC "\
                     39: %{posix: -D_POSIX_SOURCE} \
                     40: %{mrelocatable: -D_RELOCATABLE} \
                     41: %{mcall-sysv: -D_CALL_SYSV} %{mcall-aix: -D_CALL_AIX} %{!mcall-sysv: %{!mcall-aix: -D_CALL_SYSV}} \
                     42: %{!mhard-float: -D_SOFT_FLOAT} \
                     43: %{mlittle: -D_LITTLE_ENDIAN -Amachine(littleendian)} \
                     44: %{mlittle-endian: -D_LITTLE_ENDIAN -Amachine(littleendian)} \
                     45: %{!mlittle: %{!mlittle-endian: -D_BIG_ENDIAN -Amachine(bigendian)}} \
                     46: %{!mcpu*: \
                     47:   %{mpower: %{!mpower2: -D_ARCH_PWR}} \
                     48:   %{mpower2: -D_ARCH_PWR2} \
                     49:   %{mpowerpc*: -D_ARCH_PPC} \
                     50:   %{mno-powerpc: %{!mpower: %{!mpower2: -D_ARCH_COM}}} \
                     51:   %{!mno-powerpc: -D_ARCH_PPC}} \
                     52: %{mcpu=common: -D_ARCH_COM} \
                     53: %{mcpu=power: -D_ARCH_PWR} \
                     54: %{mcpu=powerpc: -D_ARCH_PPC} \
                     55: %{mcpu=rios: -D_ARCH_PWR} \
                     56: %{mcpu=rios1: -D_ARCH_PWR} \
                     57: %{mcpu=rios2: -D_ARCH_PWR2} \
                     58: %{mcpu=rsc: -D_ARCH_PWR} \
                     59: %{mcpu=rsc1: -D_ARCH_PWR} \
                     60: %{mcpu=403: -D_ARCH_PPC} \
                     61: %{mcpu=601: -D_ARCH_PPC -D_ARCH_PWR} \
                     62: %{mcpu=603: -D_ARCH_PPC} \
                     63: %{mcpu=604: -D_ARCH_PPC}"
                     64: 
                     65: /* Use the simulator crt0 and libgloss/newlib libraries */
                     66: #undef  STARTFILE_SPEC
                     67: #define        STARTFILE_SPEC "sim-crt0.o%s"
                     68: 
                     69: #undef LIB_SPEC
                     70: #define        LIB_SPEC "-lsim -lc -lsim"
                     71: 
                     72: #undef LIBGCC_SPEC
                     73: #define        LIBGCC_SPEC "libgcc.a%s"
                     74: 
                     75: #undef ENDFILE_SPEC
                     76: #define        ENDFILE_SPEC ""

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.