OSDN Git Service

* config.gcc: Set default for xmake_file at top, not bottom.
[pf3gnuchains/gcc-fork.git] / gcc / config / mips / r3900.h
1 /* Definitions of MIPS sub target machine for GNU compiler. 
2    Toshiba r3900.  You should include mips.h after this.
3
4    Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
5    Free Software Foundation, Inc.
6    Contributed by Gavin Koch (gavin@cygnus.com).
7
8 This file is part of GNU CC.
9
10 GNU CC is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2, or (at your option)
13 any later version.
14
15 GNU CC is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with GNU CC; see the file COPYING.  If not, write to
22 the Free Software Foundation, 59 Temple Place - Suite 330,
23 Boston, MA 02111-1307, USA.  */
24
25 #define SUBTARGET_CPP_SPEC "\
26 %{!mabi=32: %{!mabi=n32: %{!mabi=64: -D__mips_eabi}}} \
27 %{!msingle-float:-D__mips_soft_float} \
28 %{mhard-float:%e-mhard-float not supported.} \
29 %{msingle-float:%{msoft-float: \
30   %e-msingle-float and -msoft-float can not both be specified.}}"
31
32 /* The following is needed because -mips3 and -mips4 set gp64 which in
33    combination with abi=eabi, causes long64 to be set. */
34 #define SUBTARGET_CPP_SIZE_SPEC "\
35 %{mips3:-D__SIZE_TYPE__=long\\ unsigned\\ int -D__PTRDIFF_TYPE__=long\\ int} \
36 %{mips4:-D__SIZE_TYPE__=long\\ unsigned\\ int -D__PTRDIFF_TYPE__=long\\ int} \
37 %{!mips3:%{!mips4:%{!m4650:\
38   -D__SIZE_TYPE__=unsigned\\ int -D__PTRDIFF_TYPE__=int}}} "
39
40 /* by default (if not mips-something-else) produce code for the r3900 */
41 #define SUBTARGET_CC1_SPEC "\
42 %{mhard-float:%e-mhard-float not supported.} \
43 %{msingle-float:%{msoft-float: \
44   %e-msingle-float and -msoft-float can not both be specified.}}"
45
46 #define TARGET_DEFAULT (MASK_SOFT_FLOAT | MASK_MIPS3900)
47 #define MIPS_CPU_STRING_DEFAULT "R3900"
48 #define MIPS_ISA_DEFAULT 1
49
50 #define MULTILIB_DEFAULTS { MULTILIB_ENDIAN_DEFAULT, "msoft-float" }
51
52 /* We use the MIPS EABI by default.  */
53 #define MIPS_ABI_DEFAULT ABI_EABI
54
55
56 /* Debugging */
57
58 #define DWARF2_DEBUGGING_INFO
59 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
60
61 /* For the 'preferred' cases ("gN" and "ggdbN") we need to tell the 
62    gnu assembler not to generate debugging information. */
63    
64 #define SUBTARGET_ASM_DEBUGGING_SPEC "\
65 %{!mmips-as: \
66   %{g:-g0} %{g0:-g0} %{g1:-g0} %{g2:-g0} %{g3:-g0} \
67   %{ggdb:-g0} %{ggdb0:-g0} %{ggdb1:-g0} %{ggdb2:-g0} %{ggdb3:-g0} \
68   %{gdwarf-2*:-g0}} \
69 %{gstabs:-g} %{gstabs0:-g0} %{gstabs1:-g1} %{gstabs2:-g2} %{gstabs3:-g3} \
70 %{gstabs+:-g} %{gstabs+0:-g0} %{gstabs+1:-g1} %{gstabs+2:-g2} %{gstabs+3:-g3} \
71 %{gcoff:-g} %{gcoff0:-g0} %{gcoff1:-g1} %{gcoff2:-g2} %{gcoff3:-g3}"
72
73 /* eof */