]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/rs6000/lynx.h
Use <xxx> in #include.
[thirdparty/gcc.git] / gcc / config / rs6000 / lynx.h
1 /* Definitions for Rs6000 running LynxOS.
2 Copyright (C) 1995 Free Software Foundation, Inc.
3 Contributed by David Henkel-Wallace, Cygnus Support (gumby@cygnus.com)
4
5 This file is part of GNU CC.
6
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING. If not, write to
19 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
20
21 #include <lynx.h>
22
23 /* Definitions we want to override with those from rs6000.h: */
24 #undef LIB_SPEC
25 #undef PTRDIFF_TYPE
26 #undef WCHAR_TYPE
27 #undef WCHAR_TYPE_SIZE
28 #undef ASM_FILE_START
29 #undef EXTRA_SECTIONS
30 #undef READONLY_DATA_SECTION
31 #undef EXTRA_SECTION_FUNCTIONS
32 #undef SELECT_RTX_SECTION
33 #undef SELECT_SECTION
34 #undef ASM_OUTPUT_LABELREF
35 #undef ASM_OUTPUT_INTERNAL_LABEL
36 #undef ASM_GENERATE_INTERNAL_LABEL
37 #undef ASM_OUTPUT_COMMON
38 #undef ASM_OUTPUT_LOCAL
39 #undef ASM_OUTPUT_CONSTRUCTOR
40 #undef ASM_OUTPUT_DESTRUCTOR
41 #undef CTORS_SECTION_FUNCTION
42 #undef DTORS_SECTION_FUNCTION
43
44 #undef SDB_DEBUGGING_INFO
45 #undef DBX_DEBUGGING_INFO
46 #undef PREFERRED_DEBUGGING_TYPE
47
48 #undef FUNCTION_PROFILER
49
50 #include <rs6000/rs6000.h>
51
52 /* LynxOS has signed chars, regardless of what most R/S 6000 systems do */
53 #undef DEFAULT_SIGNED_CHAR
54 #define DEFAULT_SIGNED_CHAR 1
55
56 #undef CPP_PREDEFINES
57 #define CPP_PREDEFINES "-Acpu(rs6000) -Amachine(rs6000) -Asystem(lynx) -Asystem(unix) -DLynx -D_IBMR2 -Dunix -Drs6000 -Dlynx -DLYNX"
58
59 #undef LINK_SPEC
60 #define LINK_SPEC "-T0x10001000 -H0x1000 -D0x20000000 -btextro -bhalt:4 -bnodelcsect -bnso -bro -bnoglink %{v} %{b*}"
61
62 #undef LIB_SPEC
63 #define LIB_SPEC "%{mthreads:-L/lib/thread/} \
64 %{msystem-v:-lc_v -lm.v} \
65 %{!msystem-v:%{mposix:-lc_p} -lc -lm}"
66
67 #undef STARTFILE_SPEC
68 #define STARTFILE_SPEC "%{p:%{mthreads:thread/pinit.o%s}%{!mthreads:pinit.o%s}}%{!p:%{msystem-v:vinit.o%s -e_start}%{!msystem-v:%{mthreads:thread/init.o%s}%{!mthreads:init.o%s}}}"
69
70 #undef ENDFILE_SPEC
71
72 /* This can become more refined as we have more powerpc options. */
73 #undef ASM_SPEC
74 #define ASM_SPEC "-u %{m601:-m601} %{power*:-m601}"
75
76 #undef SUBTARGET_SWITCHES
77 #define SUBTARGET_SWITCHES \
78 {"threads", MASK_THREADS}, \
79 {"posix", MASK_POSIX}, \
80 {"system-v", MASK_SYSTEM_V},
81
82 #undef SUBTARGET_OVERRIDE_OPTIONS
83 #define SUBTARGET_OVERRIDE_OPTIONS \
84 do { \
85 if (TARGET_SYSTEM_V && profile_flag) \
86 warning ("-msystem-v and -p are incompatible"); \
87 if (TARGET_SYSTEM_V && TARGET_THREADS) \
88 warning ("-msystem-v and -mthreads are incompatible"); \
89 } while (0)
90
91 /* For collect2 */
92 #define OBJECT_FORMAT_NONE
93 #undef OBJECT_FORMAT_COFF
94 #undef OBJECT_FORMAT_ROSE
95 #undef MD_EXEC_PREFIX
96 #undef REAL_LD_FILE_NAME
97 #undef REAL_NM_FILE_NAME
98 #undef REAL_STRIP_FILE_NAME
99
100 /* LynxOS doesn't have mcount. */
101 #undef FUNCTION_PROFILER
102 #define FUNCTION_PROFILER(file, profile_label_no)