lynx.h revision 90075
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) 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 19the Free Software Foundation, 59 Temple Place - Suite 330, 20Boston, MA 02111-1307, USA. */ 21 22/* Definitions we want to override with those from rs6000.h: */ 23#undef LIB_SPEC 24#undef PTRDIFF_TYPE 25#undef WCHAR_TYPE 26#undef WCHAR_TYPE_SIZE 27#undef ASM_FILE_START 28#undef EXTRA_SECTIONS 29#undef READONLY_DATA_SECTION 30#undef EXTRA_SECTION_FUNCTIONS 31#undef SELECT_RTX_SECTION 32#undef SELECT_SECTION 33#undef USER_LABEL_PREFIX 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 40#undef SDB_DEBUGGING_INFO 41#undef DBX_DEBUGGING_INFO 42#undef PREFERRED_DEBUGGING_TYPE 43 44#undef FUNCTION_PROFILER 45 46#include <rs6000/rs6000.h> 47 48/* Print subsidiary information on the compiler version in use. */ 49#define TARGET_VERSION fprintf (stderr, " (LynxOS-RS/6000)"); 50 51/* LynxOS has signed chars, regardless of what most R/S 6000 systems do */ 52#undef DEFAULT_SIGNED_CHAR 53#define DEFAULT_SIGNED_CHAR 1 54 55#undef CPP_PREDEFINES 56#define CPP_PREDEFINES "-Acpu=rs6000 -Amachine=rs6000 -Asystem=lynx -Asystem=unix -DLynx -D_IBMR2 -Dunix -Drs6000 -Dlynx -DLYNX" 57 58#undef LINK_SPEC 59#define LINK_SPEC "-T0x10001000 -H0x1000 -D0x20000000 -btextro -bhalt:4 -bnodelcsect -bnso -bro -bnoglink %{v} %{b*}" 60 61#undef LIB_SPEC 62#define LIB_SPEC "%{mthreads:-L/lib/thread/} \ 63 %{msystem-v:-lc_v -lm.v} \ 64 %{!msystem-v:%{mposix:-lc_p} -lc -lm}" 65 66#undef STARTFILE_SPEC 67#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 69#undef ENDFILE_SPEC 70 71/* This can become more refined as we have more powerpc options. */ 72#undef ASM_SPEC 73#define ASM_SPEC "-u %(asm_cpu)" 74 75#undef SUBTARGET_SWITCHES 76#define SUBTARGET_SWITCHES \ 77 {"threads", MASK_THREADS}, \ 78 {"posix", MASK_POSIX}, \ 79 {"system-v", MASK_SYSTEM_V}, 80 81#undef SUBTARGET_OVERRIDE_OPTIONS 82#define SUBTARGET_OVERRIDE_OPTIONS \ 83do { \ 84 if (TARGET_SYSTEM_V && profile_flag) \ 85 warning ("-msystem-v and -p are incompatible"); \ 86 if (TARGET_SYSTEM_V && TARGET_THREADS) \ 87 warning ("-msystem-v and -mthreads are incompatible"); \ 88} while (0) 89 90/* For collect2 */ 91#define OBJECT_FORMAT_NONE 92#undef OBJECT_FORMAT_COFF 93#undef OBJECT_FORMAT_ROSE 94#undef MD_EXEC_PREFIX 95#undef REAL_LD_FILE_NAME 96#undef REAL_STRIP_FILE_NAME 97 98/* LynxOS doesn't have mcount. */ 99#undef FUNCTION_PROFILER 100#define FUNCTION_PROFILER(file, profile_label_no) 101