Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9 / gcc / config / mips / android.h
blob32c539c8d396edefb5f8857b9586e2f37819dfc5
1 /* Target macros for mips*-*android* targets.
2 Copyright (C) 2014 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC 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 3, or (at your option)
9 any later version.
11 GCC 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.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 #undef DRIVER_SELF_SPECS
21 #define DRIVER_SELF_SPECS \
22 /* Make sure a -mips option is present. This helps us to pick \
23 the right multilib, and also makes the later specs easier \
24 to write. */ \
25 MIPS_ISA_LEVEL_SPEC, \
27 /* Infer the default float setting from -march. */ \
28 MIPS_ARCH_FLOAT_SPEC, \
30 /* Infer the -msynci setting from -march if not explicitly set. */ \
31 MIPS_ISA_SYNCI_SPEC, \
33 /* If no ABI option is specified, infer one from the ISA level \
34 or -mgp setting. */ \
35 "%{!mabi=*: %{" MIPS_32BIT_OPTION_SPEC ": -mabi=32;: -mabi=64}}", \
37 /* If no FP ABI option is specified, infer one from the \
38 ABI/ISA level unless there is a conflicting option. */ \
39 "%{!msoft-float: %{!msingle-float: %{!mfp*: %{!mmsa: %{mabi=32: %{" \
40 MIPS_FPXX_OPTION_SPEC ": -mfpxx}}}}}}", \
42 /* If no odd-spreg option is specified, infer one from the ISA. */ \
43 "%{!modd-spreg: %{mabi=32: %{mips32r6: -mno-odd-spreg}}}", \
45 /* Base SPECs. */ \
46 BASE_DRIVER_SELF_SPECS, \
48 /* Use the standard linux specs for everything else. */ \
49 LINUX_DRIVER_SELF_SPECS