FSF GCC merge 02/23/03
[official-gcc.git] / gcc / config / mips / sni-svr4.h
blobf912759a16ba699f566668c2587693a54766358b
1 /* Definitions of target machine for GNU compiler. SNI SINIX version.
2 Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
3 Contributed by Marco Walther (Marco.Walther@mch.sni.de).
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 #define MIPS_SVR4
24 #define TARGET_OS_CPP_BUILTINS() \
25 do { \
26 builtin_define_std ("host_mips"); \
27 builtin_define_std ("SYSTYPE_SVR4"); \
28 builtin_define_std ("unix"); \
29 builtin_define_std ("mips"); \
30 builtin_define_std ("sinix"); \
31 builtin_define_std ("SNI"); \
32 builtin_assert ("system=unix"); \
33 builtin_assert ("system=svr4"); \
34 builtin_assert ("machine=mips"); \
35 } while (0)
37 #define LINK_SPEC "\
38 %{G*} \
39 %{!mgas: \
40 %{dy} %{dn}}"
42 #define LIB_SPEC "\
43 %{p:-lprof1} \
44 %{!p:%{pg:-lprof1} \
45 %{!pg:-L/usr/ccs/lib/ -lc /usr/ccs/lib/crtn.o%s}}"
47 #define STARTFILE_SPEC "\
48 %{pg:gcrt0.o%s} \
49 %{!pg:%{p:mcrt0.o%s} \
50 %{!p:/usr/ccs/lib/crt1.o /usr/ccs/lib/crti.o /usr/ccs/lib/values-Xt.o%s}}"
52 /* Mips System V.4 doesn't have a getpagesize() function needed by the
53 trampoline code, so use the POSIX sysconf function to get it.
54 This is only done when compiling the trampoline code. */
56 #ifdef L_trampoline
57 #include <unistd.h>
59 #define getpagesize() sysconf(_SC_PAGE_SIZE)
60 #endif /* L_trampoline */
62 #define OBJECT_FORMAT_ELF
64 #define TARGET_DEFAULT MASK_ABICALLS
65 #define ABICALLS_ASM_OP "\t.option pic2"
67 #define MACHINE_TYPE "SNI running SINIX 5.42"
69 #define MIPS_DEFAULT_GVALUE 0
71 #define NM_FLAGS "-p"
73 #define ASM_GLOBAL ".rdata\n\t\t.globl\t"
75 #include "mips/mips.h"
77 /* We do not want to run mips-tfile! */
78 #undef ASM_FINAL_SPEC
80 #undef OBJECT_FORMAT_COFF
82 /* We don't support debugging info for now. */
83 #undef DBX_DEBUGGING_INFO
84 #undef SDB_DEBUGGING_INFO
85 #undef MIPS_DEBUGGING_INFO
86 #undef PREFERRED_DEBUGGING_TYPE
88 #define DWARF2_UNWIND_INFO 0