Replace occurrences of #elif with #if...#endif.
[official-gcc.git] / gcc / config / rs6000 / lynx.h
blob8b755fc905688de26b43407030c2ea43d2b499b8
1 /* Definitions for Rs6000 running LynxOS.
2 Copyright (C) 1995, 1996, 2000 Free Software Foundation, Inc.
3 Contributed by David Henkel-Wallace, Cygnus Support (gumby@cygnus.com)
5 This file is part of GNU CC.
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.
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.
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, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 #include <lynx.h>
24 /* Definitions we want to override with those from rs6000.h: */
25 #undef LIB_SPEC
26 #undef PTRDIFF_TYPE
27 #undef WCHAR_TYPE
28 #undef WCHAR_TYPE_SIZE
29 #undef ASM_FILE_START
30 #undef EXTRA_SECTIONS
31 #undef READONLY_DATA_SECTION
32 #undef EXTRA_SECTION_FUNCTIONS
33 #undef SELECT_RTX_SECTION
34 #undef SELECT_SECTION
35 #undef USER_LABEL_PREFIX
36 #undef ASM_OUTPUT_LABELREF
37 #undef ASM_OUTPUT_INTERNAL_LABEL
38 #undef ASM_GENERATE_INTERNAL_LABEL
39 #undef ASM_OUTPUT_COMMON
40 #undef ASM_OUTPUT_LOCAL
42 #undef SDB_DEBUGGING_INFO
43 #undef DBX_DEBUGGING_INFO
44 #undef PREFERRED_DEBUGGING_TYPE
46 #undef FUNCTION_PROFILER
48 #include <rs6000/rs6000.h>
50 /* LynxOS has signed chars, regardless of what most R/S 6000 systems do */
51 #undef DEFAULT_SIGNED_CHAR
52 #define DEFAULT_SIGNED_CHAR 1
54 #undef CPP_PREDEFINES
55 #define CPP_PREDEFINES "-Acpu=rs6000 -Amachine=rs6000 -Asystem=lynx -Asystem=unix -DLynx -D_IBMR2 -Dunix -Drs6000 -Dlynx -DLYNX"
57 #undef LINK_SPEC
58 #define LINK_SPEC "-T0x10001000 -H0x1000 -D0x20000000 -btextro -bhalt:4 -bnodelcsect -bnso -bro -bnoglink %{v} %{b*}"
60 #undef LIB_SPEC
61 #define LIB_SPEC "%{mthreads:-L/lib/thread/} \
62 %{msystem-v:-lc_v -lm.v} \
63 %{!msystem-v:%{mposix:-lc_p} -lc -lm}"
65 #undef STARTFILE_SPEC
66 #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}}}"
68 #undef ENDFILE_SPEC
70 /* This can become more refined as we have more powerpc options. */
71 #undef ASM_SPEC
72 #define ASM_SPEC "-u %(asm_cpu)"
74 #undef SUBTARGET_SWITCHES
75 #define SUBTARGET_SWITCHES \
76 {"threads", MASK_THREADS}, \
77 {"posix", MASK_POSIX}, \
78 {"system-v", MASK_SYSTEM_V},
80 #undef SUBTARGET_OVERRIDE_OPTIONS
81 #define SUBTARGET_OVERRIDE_OPTIONS \
82 do { \
83 if (TARGET_SYSTEM_V && profile_flag) \
84 warning ("-msystem-v and -p are incompatible"); \
85 if (TARGET_SYSTEM_V && TARGET_THREADS) \
86 warning ("-msystem-v and -mthreads are incompatible"); \
87 } while (0)
89 /* For collect2 */
90 #define OBJECT_FORMAT_NONE
91 #undef OBJECT_FORMAT_COFF
92 #undef OBJECT_FORMAT_ROSE
93 #undef MD_EXEC_PREFIX
94 #undef REAL_LD_FILE_NAME
95 #undef REAL_STRIP_FILE_NAME
97 /* LynxOS doesn't have mcount. */
98 #undef FUNCTION_PROFILER
99 #define FUNCTION_PROFILER(file, profile_label_no)