1 |
734 |
jeremybenn |
/* Configuration file for ARM BPABI targets, library renames.
|
2 |
|
|
Copyright (C) 2010
|
3 |
|
|
Free Software Foundation, Inc.
|
4 |
|
|
Contributed by CodeSourcery, LLC
|
5 |
|
|
|
6 |
|
|
This file is part of GCC.
|
7 |
|
|
|
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 3, or (at your
|
11 |
|
|
option) any later version.
|
12 |
|
|
|
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.
|
17 |
|
|
|
18 |
|
|
You should have received a copy of the GNU General Public License and
|
19 |
|
|
a copy of the GCC Runtime Library Exception along with this program;
|
20 |
|
|
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
21 |
|
|
<http://www.gnu.org/licenses/>. */
|
22 |
|
|
|
23 |
|
|
/* Make __aeabi_AEABI_NAME an alias for __GCC_NAME. */
|
24 |
|
|
#define RENAME_LIBRARY(GCC_NAME, AEABI_NAME) \
|
25 |
|
|
typeof (__##GCC_NAME) __aeabi_##AEABI_NAME \
|
26 |
|
|
__attribute__((alias ("__" #GCC_NAME)));
|
27 |
|
|
|
28 |
|
|
/* Give some libgcc functions an additional __aeabi name. */
|
29 |
|
|
#ifdef L_muldi3
|
30 |
|
|
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (muldi3, lmul)
|
31 |
|
|
#endif
|
32 |
|
|
#ifdef L_muldi3
|
33 |
|
|
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (muldi3, lmul)
|
34 |
|
|
#endif
|
35 |
|
|
#ifdef L_fixdfdi
|
36 |
|
|
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixdfdi, d2lz) \
|
37 |
|
|
extern DWtype __fixdfdi (DFtype) __attribute__((pcs("aapcs"))); \
|
38 |
|
|
extern UDWtype __fixunsdfdi (DFtype) __asm__("__aeabi_d2ulz") __attribute__((pcs("aapcs")));
|
39 |
|
|
#endif
|
40 |
|
|
#ifdef L_fixunsdfdi
|
41 |
|
|
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixunsdfdi, d2ulz) \
|
42 |
|
|
extern UDWtype __fixunsdfdi (DFtype) __attribute__((pcs("aapcs")));
|
43 |
|
|
#endif
|
44 |
|
|
#ifdef L_fixsfdi
|
45 |
|
|
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixsfdi, f2lz) \
|
46 |
|
|
extern DWtype __fixsfdi (SFtype) __attribute__((pcs("aapcs"))); \
|
47 |
|
|
extern UDWtype __fixunssfdi (SFtype) __asm__("__aeabi_f2ulz") __attribute__((pcs("aapcs")));
|
48 |
|
|
#endif
|
49 |
|
|
#ifdef L_fixunssfdi
|
50 |
|
|
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixunssfdi, f2ulz) \
|
51 |
|
|
extern UDWtype __fixunssfdi (SFtype) __attribute__((pcs("aapcs")));
|
52 |
|
|
#endif
|
53 |
|
|
#ifdef L_floatdidf
|
54 |
|
|
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (floatdidf, l2d)
|
55 |
|
|
#endif
|
56 |
|
|
#ifdef L_floatdisf
|
57 |
|
|
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (floatdisf, l2f)
|
58 |
|
|
#endif
|
59 |
|
|
|
60 |
|
|
/* These renames are needed on ARMv6M. Other targets get them from
|
61 |
|
|
assembly routines. */
|
62 |
|
|
#ifdef L_fixunsdfsi
|
63 |
|
|
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixunsdfsi, d2uiz)
|
64 |
|
|
#endif
|
65 |
|
|
#ifdef L_fixunssfsi
|
66 |
|
|
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixunssfsi, f2uiz)
|
67 |
|
|
#endif
|
68 |
|
|
#ifdef L_floatundidf
|
69 |
|
|
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (floatundidf, ul2d)
|
70 |
|
|
#endif
|
71 |
|
|
#ifdef L_floatundisf
|
72 |
|
|
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (floatundisf, ul2f)
|
73 |
|
|
#endif
|
74 |
|
|
|
75 |
|
|
/* For ARM bpabi, we only want to use a "__gnu_" prefix for the fixed-point
|
76 |
|
|
helper functions - not everything in libgcc - in the interests of
|
77 |
|
|
maintaining backward compatibility. */
|
78 |
|
|
#define LIBGCC2_FIXEDBIT_GNU_PREFIX
|