]> gcc.gnu.org Git - gcc.git/blame - gcc/config/rs6000/lynx.h
(USER_LABEL_PREFIX): Undefine.
[gcc.git] / gcc / config / rs6000 / lynx.h
CommitLineData
ac57a943 1/* Definitions for Rs6000 running LynxOS.
cf27b467 2 Copyright (C) 1995, 1996 Free Software Foundation, Inc.
ac57a943
DE
3 Contributed by David Henkel-Wallace, Cygnus Support (gumby@cygnus.com)
4
5This file is part of GNU CC.
6
7GNU CC is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2, or (at your option)
10any later version.
11
12GNU CC is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU CC; see the file COPYING. If not, write to
c15c9075
RK
19the Free Software Foundation, 59 Temple Place - Suite 330,
20Boston, MA 02111-1307, USA. */
ac57a943 21
f17dfa93 22#include <lynx.h>
ac57a943
DE
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
264f070a 35#undef USER_LABEL_PREFIX
ac57a943
DE
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
41#undef ASM_OUTPUT_CONSTRUCTOR
42#undef ASM_OUTPUT_DESTRUCTOR
43#undef CTORS_SECTION_FUNCTION
44#undef DTORS_SECTION_FUNCTION
45
46#undef SDB_DEBUGGING_INFO
47#undef DBX_DEBUGGING_INFO
48#undef PREFERRED_DEBUGGING_TYPE
49
50#undef FUNCTION_PROFILER
51
f17dfa93 52#include <rs6000/rs6000.h>
ac57a943
DE
53
54/* LynxOS has signed chars, regardless of what most R/S 6000 systems do */
55#undef DEFAULT_SIGNED_CHAR
56#define DEFAULT_SIGNED_CHAR 1
57
58#undef CPP_PREDEFINES
59#define CPP_PREDEFINES "-Acpu(rs6000) -Amachine(rs6000) -Asystem(lynx) -Asystem(unix) -DLynx -D_IBMR2 -Dunix -Drs6000 -Dlynx -DLYNX"
60
61#undef LINK_SPEC
62#define LINK_SPEC "-T0x10001000 -H0x1000 -D0x20000000 -btextro -bhalt:4 -bnodelcsect -bnso -bro -bnoglink %{v} %{b*}"
63
64#undef LIB_SPEC
65#define LIB_SPEC "%{mthreads:-L/lib/thread/} \
66 %{msystem-v:-lc_v -lm.v} \
67 %{!msystem-v:%{mposix:-lc_p} -lc -lm}"
68
69#undef STARTFILE_SPEC
70#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}}}"
71
72#undef ENDFILE_SPEC
73
74/* This can become more refined as we have more powerpc options. */
75#undef ASM_SPEC
841faeed 76#define ASM_SPEC "-u %(asm_cpu)"
ac57a943
DE
77
78#undef SUBTARGET_SWITCHES
79#define SUBTARGET_SWITCHES \
80 {"threads", MASK_THREADS}, \
81 {"posix", MASK_POSIX}, \
82 {"system-v", MASK_SYSTEM_V},
83
84#undef SUBTARGET_OVERRIDE_OPTIONS
85#define SUBTARGET_OVERRIDE_OPTIONS \
86do { \
87 if (TARGET_SYSTEM_V && profile_flag) \
88 warning ("-msystem-v and -p are incompatible"); \
89 if (TARGET_SYSTEM_V && TARGET_THREADS) \
90 warning ("-msystem-v and -mthreads are incompatible"); \
91} while (0)
92
93/* For collect2 */
94#define OBJECT_FORMAT_NONE
95#undef OBJECT_FORMAT_COFF
96#undef OBJECT_FORMAT_ROSE
97#undef MD_EXEC_PREFIX
98#undef REAL_LD_FILE_NAME
99#undef REAL_NM_FILE_NAME
100#undef REAL_STRIP_FILE_NAME
101
102/* LynxOS doesn't have mcount. */
103#undef FUNCTION_PROFILER
104#define FUNCTION_PROFILER(file, profile_label_no)
This page took 0.132956 seconds and 5 git commands to generate.