Import final gcc2 snapshot (990109)
[official-gcc.git] / gcc / config / mips / news5.h
bloba776064d193048978a4096e3ea56c640e7d10b25
1 /* Definitions of target machine for GNU compiler.
2 Sony RISC NEWS (mips) System V version.
3 Copyright (C) 1992 Free Software Foundation, Inc.
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_SYSV
24 #define CPP_PREDEFINES "\
25 -Dmips -Dunix -Dhost_mips -Dsony -Dsonyrisc -DMIPSEB -DSYSTYPE_SYSV \
26 -Asystem(unix) -Asystem(svr3) -Acpu(mips) -Amachine(mips)"
28 #define MD_STARTFILE_PREFIX "/usr/ccs/lib/"
30 #define LIB_SPEC "\
31 %{ZBSD43: -L/usr/ucblib -lucb -lresolv -lsocket -lnsl} \
32 -nocount %{p:-lprof1} %{pg:-lprof1} -lc crtn.o%s values-Xt.o%s"
34 #define STARTFILE_SPEC "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:-nocount crt1.o%s -count}}"
36 #define MACHINE_TYPE "Sony RISC NEWS (SVR4 mips)"
38 #define NO_LIB_PROTOTYPE
40 #define NO_DOLLAR_IN_LABEL
42 #define NM_FLAGS "-Bp"
44 /* Generate calls to memcpy, etc., not bcopy, etc. */
45 #define TARGET_MEM_FUNCTIONS
47 /* Mips System V.4 doesn't have a getpagesize() function needed by the
48 trampoline code, so use the POSIX sysconf function to get it.
49 This is only done when compiling the trampoline code. */
51 #ifdef L_trampoline
52 #include <sys/param.h>
53 #include <unistd.h>
55 #ifdef _SC_PAGE_SIZE
56 #define getpagesize() sysconf(_SC_PAGE_SIZE)
58 #else /* older rev of OS */
59 #define getpagesize() (NBPC)
60 #endif /* !_SC_PAGE_SIZE */
61 #endif /* L_trampoline */