Include arm/aout.h, not arm/arm.h.
[official-gcc.git] / gcc / config / arm / riscix1-1.h
blob748638137cb72f1c4682ff5babffa7e9e74c48fa
1 /* Definitions of target machine for GNU compiler. ARM RISCiX 1.1x version.
2 Copyright (C) 1993, 1995 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 #ifndef CPP_SPEC
37 #define CPP_SPEC "%{m6:-D__arm6__} %{!ansi: -D_BSD_C}"
38 #endif
40 /* Riscix 1.1 doesn't have X/OPEN support, so only accept -mbsd (but ignore
41 it).
42 By not having -mxopen and -mno-symrename, we get warning messages,
43 but everything still compiles. */
44 /* None of these is actually used in cc1, so they modify bit 31 */
45 #define SUBTARGET_SWITCHES \
46 {"bsd", 0x80000000},
49 /* Run-time Target Specification. */
50 #define TARGET_VERSION \
51 fputs (" (ARM/RISCiX)", stderr);
53 /* This is used in ASM_FILE_START */
54 #define ARM_OS_NAME "RISCiX"
56 #ifdef riscos
57 #define TARGET_WHEN_DEBUGGING 3
58 #else
59 #define TARGET_WHEN_DEBUGGING 1
60 #endif
62 /* 'char' is signed by default on RISCiX, unsigned on RISCOS. */
63 #ifdef riscos
64 #define DEFAULT_SIGNED_CHAR 0
65 #else
66 #define DEFAULT_SIGNED_CHAR 1
67 #endif
69 /* Define this if the target system supports the function atexit form the
70 ANSI C standard. If this is not defined, and INIT_SECTION_ASM_OP is not
71 defined, a default exit function will be provided to support C++.
72 The man page only describes on_exit, but atexit is also there.
73 This seems to be missing in early versions. */
74 /*#define HAVE_ATEXIT 1 */
75 /* Some systems use __main in a way incompatible with its use in gcc, in these
76 cases use the macros NAME__MAIN to give a quoted symbol and SYMBOL__MAIN to
77 give the same symbol without quotes for an alternative entry point. You
78 must define both, or neither. */
79 #ifndef NAME__MAIN
80 #define NAME__MAIN "__gccmain"
81 #define SYMBOL__MAIN __gccmain
82 #endif
84 #include "arm/aout.h"
86 /* The native RISCiX assembler does not support stabs of any kind; because
87 the native assembler is not used by the compiler, Acorn didn't feel it was
88 necessary to put them in! */
90 #ifdef DBX_DEBUGGING_INFO
91 #undef DBX_DEBUGGING_INFO
92 #endif