OSDN Git Service

* config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
[pf3gnuchains/gcc-fork.git] / gcc / config / arm / riscix1-1.h
1 /* Definitions of target machine for GNU compiler.  ARM RISCiX 1.1x version.
2    Copyright (C) 1993, 1995, 1997, 1999 Free Software Foundation, Inc.
3    Contributed by Richard Earnshaw (rwe11@cl.cam.ac.uk), based on original
4               work by Pieter `Tiggr' Schoenmakers (rcpieter@win.tue.nl)
5               and Martin Simmons (@harleqn.co.uk).
6
7 This file is part of GNU CC.
8
9 GNU CC is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
12 any later version.
13
14 GNU CC is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with GNU CC; see the file COPYING.  If not, write to
21 the Free Software Foundation, 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA.  */
23
24 /* RISCiX 1.1x is basically the same as 1.2x except that it doesn't have
25    symrename or atexit. */
26
27 /* Translation to find startup files.  On RISCiX boxes, gcrt0.o is in
28    /usr/lib.  */
29 #define STARTFILE_SPEC  \
30   "%{pg:/usr/lib/gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}"
31
32 #ifndef CPP_PREDEFINES
33 #define CPP_PREDEFINES  "-Darm -Driscix -Dunix -Asystem=unix -Acpu=arm -Amachine=arm"
34 #endif
35
36 /* Riscix 1.1 doesn't have X/OPEN support, so only accept -mbsd (but ignore
37    it).  
38    By not having -mxopen and -mno-symrename, we get warning messages,
39    but everything still compiles.  */
40 /* None of these is actually used in cc1, so they modify bit 31 */
41 #define SUBTARGET_SWITCHES \
42 {"bsd", 0x80000000, ""}, 
43     
44
45 /* Run-time Target Specification.  */
46 #define TARGET_VERSION  \
47   fputs (" (ARM/RISCiX)", stderr);
48
49 /* This is used in ASM_FILE_START */
50 #define ARM_OS_NAME "RISCiX"
51
52 #ifdef riscos
53 #define TARGET_WHEN_DEBUGGING  3
54 #else
55 #define TARGET_WHEN_DEBUGGING  1
56 #endif
57
58 /* 'char' is signed by default on RISCiX, unsigned on RISCOS.  */
59 #ifdef riscos
60 #define DEFAULT_SIGNED_CHAR  0
61 #else
62 #define DEFAULT_SIGNED_CHAR  1
63 #endif
64
65 /* Define this if the target system lacks the function atexit from the
66    ANSI C standard.  If this is defined, and ON_EXIT is not
67    defined, a default exit function will be provided to support C++.  
68    The man page only describes on_exit, but atexit is also there.  
69    This seems to be missing in early versions.
70
71    FIXME Should we define ON_EXIT here?  */
72 #define NEED_ATEXIT
73
74 /* Some systems use __main in a way incompatible with its use in gcc, in these
75    cases use the macros NAME__MAIN to give a quoted symbol and SYMBOL__MAIN to
76    give the same symbol without quotes for an alternative entry point.  You
77    must define both, or neither. */
78 #ifndef NAME__MAIN
79 #define NAME__MAIN "__gccmain"
80 #define SYMBOL__MAIN __gccmain
81 #endif
82
83 /* Override the normal default CPU */
84 #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm2
85
86 /* r10 is reserved by RISCiX  */
87 #define SUBTARGET_CONDITIONAL_REGISTER_USAGE    \
88   fixed_regs[10] = 1;                           \
89   call_used_regs[10] = 1;
90
91
92 #include "arm/aout.h"
93
94 #undef CPP_SPEC
95 #define CPP_SPEC "\
96 %(cpp_cpu_arch) %(cpp_apcs_pc) %(cpp_float) %{!ansi: -D_BSD_C} \
97 "
98
99
100 /* The native RISCiX assembler does not support stabs of any kind; because
101    the native assembler is not used by the compiler, Acorn didn't feel it was
102    necessary to put them in!  */
103
104 #ifdef DBX_DEBUGGING_INFO
105 #undef DBX_DEBUGGING_INFO
106 #endif