(CPP_SPEC): Rewrite using new sub-components.
[official-gcc.git] / gcc / config / arm / riscix1-1.h
blob3718635430d58dadf975ea41870b0b7f6e41ad43
1 /* Definitions of target machine for GNU compiler. ARM RISCiX 1.1x version.
2 Copyright (C) 1993, 1995, 1997 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).
7 This file is part of GNU CC.
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.
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.
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. */
24 /* RISCiX 1.1x is basically the same as 1.2x except that it doesn't have
25 symrename or atexit. */
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}}"
32 #ifndef CPP_PREDEFINES
33 #define CPP_PREDEFINES "-Darm -Driscix -Dunix -Asystem(unix) -Acpu(arm) -Amachine(arm)"
34 #endif
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},
45 /* Run-time Target Specification. */
46 #define TARGET_VERSION \
47 fputs (" (ARM/RISCiX)", stderr);
49 /* This is used in ASM_FILE_START */
50 #define ARM_OS_NAME "RISCiX"
52 #ifdef riscos
53 #define TARGET_WHEN_DEBUGGING 3
54 #else
55 #define TARGET_WHEN_DEBUGGING 1
56 #endif
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
65 /* Define this if the target system supports the function atexit form the
66 ANSI C standard. If this is not defined, and INIT_SECTION_ASM_OP 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 /*#define HAVE_ATEXIT 1 */
71 /* Some systems use __main in a way incompatible with its use in gcc, in these
72 cases use the macros NAME__MAIN to give a quoted symbol and SYMBOL__MAIN to
73 give the same symbol without quotes for an alternative entry point. You
74 must define both, or neither. */
75 #ifndef NAME__MAIN
76 #define NAME__MAIN "__gccmain"
77 #define SYMBOL__MAIN __gccmain
78 #endif
80 /* Override the normal default CPU */
81 #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm2
83 #include "arm/aout.h"
85 #undef CPP_SPEC
86 #define CPP_SPEC "\
87 %(cpp_cpu_arch) %(cpp_apcs_pc) %(cpp_float) %{!ansi: -D_BSD_C} \
91 /* The native RISCiX assembler does not support stabs of any kind; because
92 the native assembler is not used by the compiler, Acorn didn't feel it was
93 necessary to put them in! */
95 #ifdef DBX_DEBUGGING_INFO
96 #undef DBX_DEBUGGING_INFO
97 #endif