1 /* Definitions of MIPS sub target machine for GNU compiler.
2 Toshiba r3900. You should include mips.h after this.
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).
8 This file is part of GNU CC.
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)
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.
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. */
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}}"
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}}} "
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}}"
46 #define MIPS_CPU_STRING_DEFAULT "R3900"
47 #define MIPS_ISA_DEFAULT 1
49 #define MULTILIB_DEFAULTS { MULTILIB_ENDIAN_DEFAULT, "msoft-float" }
51 /* We use the MIPS EABI by default. */
52 #define MIPS_ABI_DEFAULT ABI_EABI
57 #define DWARF2_DEBUGGING_INFO
58 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
60 /* For the 'preferred' cases ("gN" and "ggdbN") we need to tell the
61 gnu assembler not to generate debugging information. */
63 #define SUBTARGET_ASM_DEBUGGING_SPEC "\
65 %{g:-g0} %{g0:-g0} %{g1:-g0} %{g2:-g0} %{g3:-g0} \
66 %{ggdb:-g0} %{ggdb0:-g0} %{ggdb1:-g0} %{ggdb2:-g0} %{ggdb3:-g0} \
68 %{gstabs:-g} %{gstabs0:-g0} %{gstabs1:-g1} %{gstabs2:-g2} %{gstabs3:-g3} \
69 %{gstabs+:-g} %{gstabs+0:-g0} %{gstabs+1:-g1} %{gstabs+2:-g2} %{gstabs+3:-g3} \
70 %{gcoff:-g} %{gcoff0:-g0} %{gcoff1:-g1} %{gcoff2:-g2} %{gcoff3:-g3}"