1 /* Configuration file for ARM BPABI targets.
3 Free Software Foundation, Inc.
4 Contributed by CodeSourcery, LLC
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published
10 by the Free Software Foundation; either version 2, or (at your
11 option) any later version.
13 GCC is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
16 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, 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
23 /* Use the AAPCS ABI by default. */
24 #define ARM_DEFAULT_ABI ARM_ABI_AAPCS
26 /* Assume that AAPCS ABIs should adhere to the full BPABI. */
27 #define TARGET_BPABI (TARGET_AAPCS_BASED)
29 /* The ARM BPABI functions return a boolean; they use no special
30 calling convention. */
31 #define FLOAT_LIB_COMPARE_RETURNS_BOOL(MODE, COMPARISON) TARGET_BPABI
33 /* Do not generate calls to any of the standard GCC functions in
34 libgcc when generating BPABI code. */
35 #define TARGET_LIBGCC_LIBFUNCS !TARGET_BPABI
37 /* The BPABI integer comparision routines return { -1, 0, 1 }. */
38 #define TARGET_LIB_INT_CMP_BIASED !TARGET_BPABI
40 /* The generic link spec in elf.h does not support shared libraries. */
42 #define LINK_SPEC "%{mbig-endian:-EB} %{mlittle-endian:-EL} " \
43 "%{static:-Bstatic} %{shared:-shared} %{symbolic:-Bsymbolic} " \
46 #if defined (__thumb__) && !defined (__THUMB_INTERWORD)
47 #define RENAME_LIBRARY_SET ".thumb_set"
49 #define RENAME_LIBRARY_SET ".set"
52 /* Make __aeabi_AEABI_NAME an alias for __GCC_NAME. */
53 #define RENAME_LIBRARY(GCC_NAME, AEABI_NAME) \
54 __asm__ (".globl\t__aeabi_" #AEABI_NAME "\n" \
55 RENAME_LIBRARY_SET "\t__aeabi_" #AEABI_NAME \
56 ", __" #GCC_NAME "\n");
58 /* Give some libgcc functions an additional __aeabi name. */
60 #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (muldi3, lmul)
63 #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (muldi3, lmul)
66 #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixdfdi, d2lz)
69 #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixunsdfdi, d2ulz)
72 #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixsfdi, f2lz)
75 #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixunssfdi, f2ulz)
78 #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (floatdidf, l2d)
81 #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (floatdisf, l2f)