Import final gcc2 snapshot (990109)
[official-gcc.git] / gcc / config / mips / mips-5.h
blobf8b0941b03511c793718de9dbf4add3df57aa117
1 /* Definitions of target machine for GNU compiler. MIPS RISC-OS 5.0
2 default 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 LINK_SPEC "\
23 %{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} \
24 %{bestGnum} %{shared} %{non_shared} \
25 %{call_shared} %{no_archive} %{exact_version} \
26 %{!shared: %{!non_shared: %{!call_shared: -non_shared}}}"
28 #define STARTFILE_SPEC "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt1.o%s crtn.o%s}}"
30 #include "mips/mips.h"
32 /* Some assemblers have a bug that causes backslash escaped chars in .ascii
33 to be misassembled, so we just completely avoid it. */
34 #undef ASM_OUTPUT_ASCII
35 #define ASM_OUTPUT_ASCII(FILE,PTR,LEN) \
36 do { \
37 unsigned char *s; \
38 int i; \
39 for (i = 0, s = (unsigned char *)(PTR); i < (LEN); s++, i++) \
40 { \
41 if ((i % 8) == 0) \
42 fputs ("\n\t.byte\t", (FILE)); \
43 fprintf ((FILE), "%s0x%x", (i%8?",":""), (unsigned)*s); \
44 } \
45 fputs ("\n", (FILE)); \
46 } while (0)