Merged with mainline at revision 126229.
[official-gcc.git] / gcc / config / mips / elfoabi.h
bloba6cffe101e788236212dd6030ff6b6aaed54542d
1 /* Target macros for mips*-elf targets that selected between o32 and o64
2 based on the target architecture.
3 Copyright (C) 1994, 1997, 1999, 2000, 2002, 2003, 2004
4 Free Software Foundation, Inc.
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
13 GCC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING. If not, write to
20 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA. */
23 #define DRIVER_SELF_SPECS \
24 /* Infer a -mips option from a -march option. This makes \
25 -march pick the right multilib, and also makes the later \
26 specs easier to write. */ \
27 MIPS_ISA_LEVEL_SPEC, \
29 /* If no architecture option is specified, force the default to \
30 be listed explicitly. This too makes later specs easier to \
31 write. */ \
32 "%{" MIPS_ISA_LEVEL_OPTION_SPEC ":;: -" MULTILIB_ISA_DEFAULT "}", \
34 /* If no ABI option is specified, infer one from the ISA level \
35 or -mgp setting. */ \
36 "%{!mabi=*: %{mips1|mips2|mips32*|mgp32: -mabi=32;: -mabi=o64}}", \
38 /* Remove a redundant -mfp64 for -mabi=o64; we want the !mfp64 \
39 multilibs. There's no need to check whether the architecture \
40 is 64-bit; cc1 will complain if it isn't. */ \
41 "%{mabi=o64: %<mfp64}"