OSDN Git Service

* config/mips/iris4.h (ASM_OUTPUT_ASCII): Rename local variables
[pf3gnuchains/gcc-fork.git] / gcc / config / mips / iris4.h
1 /* Definitions of target machine for GNU compiler.  Iris version 4.
2    Copyright (C) 1991, 1993, 1999, 2001 Free Software Foundation, Inc.
3
4 This file is part of GNU CC.
5
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING.  If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.  */
20
21 /* Profiling is supported via libprof1.a not -lc_p as in Irix 3.  */
22 #undef STARTFILE_SPEC
23 #define STARTFILE_SPEC \
24   "%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s libprof1.a%s}%{!p:crt1.o%s}}"
25
26 #undef LIB_SPEC
27 #define LIB_SPEC \
28   "%{!p:%{!pg:%{!static:%{!g*:-lc_s}}}}%{p:libprof1.a%s}%{pg:libprof1.a%s} -lc crtn.o%s"
29
30 /* Some assemblers have a bug that causes backslash escaped chars in .ascii
31    to be misassembled, so we just completely avoid it.  */
32 #undef ASM_OUTPUT_ASCII
33 #define ASM_OUTPUT_ASCII(FILE,PTR,LEN)                          \
34 do {                                                            \
35   const unsigned char *s_ = (const unsigned char *)(PTR);       \
36   unsigned len_ = (LEN);                                        \
37   unsigned i_;                                                  \
38   for (i_ = 0; i_ < len_; s_++, i_++)                           \
39     {                                                           \
40       if ((i_ % 8) == 0)                                        \
41         fputs ("\n\t.byte\t", (FILE));                          \
42       fprintf ((FILE), "%s0x%x", (i_%8?",":""), *s_);           \
43     }                                                           \
44   fputs ("\n", (FILE));                                         \
45 } while (0)