OSDN Git Service

dummy import to prevent merge lossage
[pf3gnuchains/gcc-fork.git] / gcc / config / mips / svr3-5.h
1 /* Definitions of target machine for GNU compiler. 
2    MIPS RISC-OS 5.0 System V version.
3    Copyright (C) 1991, 1998 Free Software Foundation, Inc.
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 #define MIPS_SYSV
23
24 #define CPP_PREDEFINES "\
25 -Dmips -Dunix -Dhost_mips -DMIPSEB -DR3000 -DSYSTYPE_SYSV \
26 -D_mips -D_unix -D_host_mips -D_MIPSEB -D_R3000 -D_SYSTYPE_SYSV \
27 -Asystem(unix) -Asystem(svr3) -Acpu(mips) -Amachine(mips)"
28
29 #define STANDARD_INCLUDE_DIR "/sysv/usr/include"
30
31 #define LINK_SPEC "\
32 %{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} \
33 %{bestGnum} %{shared} %{non_shared} \
34 %{call_shared} %{no_archive} %{exact_version} \
35 %{!shared: %{!non_shared: %{!call_shared: -non_shared}}} \
36 -systype /sysv/ "
37                     
38 #define LIB_SPEC "%{p:-lprof1} %{pg:-lprof1} -lc crtn.o%s"
39
40 #define STARTFILE_SPEC "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt1.o%s}}"
41
42 #define MACHINE_TYPE "RISC-OS System V Mips"
43
44 /* Override defaults for finding the MIPS tools.  */
45 #define MD_STARTFILE_PREFIX "/sysv/usr/lib/cmplrs/cc/"
46 #define MD_EXEC_PREFIX "/sysv/usr/lib/cmplrs/cc/"
47
48 /* Mips System V doesn't have a getpagesize() function needed by the
49    trampoline code, so use the POSIX sysconf function to get it.
50    This is only done when compiling the trampoline code.  */
51
52 #ifdef  L_trampoline
53 #include <sys/param.h>
54 #include <unistd.h>
55
56 /* In at least 5.0 and 5.01, there is no _SC_PAGE_SIZE macro, only a
57    _SC_PAGESIZE macro.  */
58 #ifdef _SC_PAGESIZE
59 #define _SC_PAGE_SIZE _SC_PAGESIZE
60 #endif
61
62 #ifdef _SC_PAGE_SIZE
63 #define getpagesize()   sysconf(_SC_PAGE_SIZE)
64
65 #else                           /* older rev of OS */
66 #define getpagesize()   (NBPC)
67 #endif /* !_SC_PAGE_SIZE */
68 #endif /*  L_trampoline */
69
70 /* Generate calls to memcpy, etc., not bcopy, etc.  */
71 #define TARGET_MEM_FUNCTIONS
72
73 #include "mips/mips.h"
74
75 /* Some assemblers have a bug that causes backslash escaped chars in .ascii
76    to be misassembled, so we just completely avoid it.  */
77 #undef ASM_OUTPUT_ASCII
78 #define ASM_OUTPUT_ASCII(FILE,PTR,LEN)                  \
79 do {                                                    \
80   unsigned char *s;                                     \
81   int i;                                                \
82   for (i = 0, s = (unsigned char *)(PTR); i < (LEN); s++, i++)  \
83     {                                                   \
84       if ((i % 8) == 0)                                 \
85         fputs ("\n\t.byte\t", (FILE));                  \
86       fprintf ((FILE), "%s0x%x", (i%8?",":""), (unsigned)*s); \
87     }                                                   \
88   fputs ("\n", (FILE));                                 \
89 } while (0)