]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/rs6000/lynx.h
remove -mcpu=rs6000
[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, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
21
22 #include <lynx.h>
23
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 ASM_OUTPUT_LABELREF
36 #undef ASM_OUTPUT_INTERNAL_LABEL
37 #undef ASM_GENERATE_INTERNAL_LABEL
38 #undef ASM_OUTPUT_COMMON
39 #undef ASM_OUTPUT_LOCAL
40 #undef ASM_OUTPUT_CONSTRUCTOR
41 #undef ASM_OUTPUT_DESTRUCTOR
42 #undef CTORS_SECTION_FUNCTION
43 #undef DTORS_SECTION_FUNCTION
44
45 #undef SDB_DEBUGGING_INFO
46 #undef DBX_DEBUGGING_INFO
47 #undef PREFERRED_DEBUGGING_TYPE
48
49 #undef FUNCTION_PROFILER
50
51 #include <rs6000/rs6000.h>
52
53 /* LynxOS has signed chars, regardless of what most R/S 6000 systems do */
54 #undef DEFAULT_SIGNED_CHAR
55 #define DEFAULT_SIGNED_CHAR 1
56
57 #undef CPP_PREDEFINES
58 #define CPP_PREDEFINES "-Acpu(rs6000) -Amachine(rs6000) -Asystem(lynx) -Asystem(unix) -DLynx -D_IBMR2 -Dunix -Drs6000 -Dlynx -DLYNX"
59
60 #undef LINK_SPEC
61 #define LINK_SPEC "-T0x10001000 -H0x1000 -D0x20000000 -btextro -bhalt:4 -bnodelcsect -bnso -bro -bnoglink %{v} %{b*}"
62
63 #undef LIB_SPEC
64 #define LIB_SPEC "%{mthreads:-L/lib/thread/} \
65 %{msystem-v:-lc_v -lm.v} \
66 %{!msystem-v:%{mposix:-lc_p} -lc -lm}"
67
68 #undef STARTFILE_SPEC
69 #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}}}"
70
71 #undef ENDFILE_SPEC
72
73 /* This can become more refined as we have more powerpc options. */
74 #undef ASM_SPEC
75 #define ASM_SPEC "\
76 -u \
77 %{!mcpu*: \
78 %{mpower2: -mpwrx} \
79 %{mpowerpc*: %{!mpower: -mppc}} \
80 %{mno-powerpc: %{!mpower: %{!mpower2: -mcom}}} \
81 %{mno-powerpc: %{mpower: %{!mpower2: -mpwr}}} \
82 %{!mno-powerpc: %{mpower: -m601}} \
83 %{!mno-powerpc: %{!mpower: -mppc}}} \
84 %{mcpu=common: -mcom} \
85 %{mcpu=power: -mpwr} \
86 %{mcpu=power2: -mpwrx} \
87 %{mcpu=powerpc: -mppc} \
88 %{mcpu=rios: -mpwr} \
89 %{mcpu=rios1: -mpwr} \
90 %{mcpu=rios2: -mpwrx} \
91 %{mcpu=rsc: -mpwr} \
92 %{mcpu=rsc1: -mpwr} \
93 %{mcpu=403: -mppc} \
94 %{mcpu=601: -m601} \
95 %{mcpu=602: -mppc} \
96 %{mcpu=603: -mppc} \
97 %{mcpu=603e: -mppc} \
98 %{mcpu=604: -mppc} \
99 %{mcpu=620: -mppc}"
100
101 #undef SUBTARGET_SWITCHES
102 #define SUBTARGET_SWITCHES \
103 {"threads", MASK_THREADS}, \
104 {"posix", MASK_POSIX}, \
105 {"system-v", MASK_SYSTEM_V},
106
107 #undef SUBTARGET_OVERRIDE_OPTIONS
108 #define SUBTARGET_OVERRIDE_OPTIONS \
109 do { \
110 if (TARGET_SYSTEM_V && profile_flag) \
111 warning ("-msystem-v and -p are incompatible"); \
112 if (TARGET_SYSTEM_V && TARGET_THREADS) \
113 warning ("-msystem-v and -mthreads are incompatible"); \
114 } while (0)
115
116 /* For collect2 */
117 #define OBJECT_FORMAT_NONE
118 #undef OBJECT_FORMAT_COFF
119 #undef OBJECT_FORMAT_ROSE
120 #undef MD_EXEC_PREFIX
121 #undef REAL_LD_FILE_NAME
122 #undef REAL_NM_FILE_NAME
123 #undef REAL_STRIP_FILE_NAME
124
125 /* LynxOS doesn't have mcount. */
126 #undef FUNCTION_PROFILER
127 #define FUNCTION_PROFILER(file, profile_label_no)