]>
Commit | Line | Data |
---|---|---|
8ac7fdcb NF |
1 | /* 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 | #if defined (__thumb__) | |
24 | #define RENAME_LIBRARY_SET ".thumb_set" | |
25 | #else | |
26 | #define RENAME_LIBRARY_SET ".set" | |
27 | #endif | |
28 | ||
29 | /* Make __aeabi_AEABI_NAME an alias for __GCC_NAME. */ | |
30 | #define RENAME_LIBRARY(GCC_NAME, AEABI_NAME) \ | |
31 | __asm__ (".globl\t__aeabi_" #AEABI_NAME "\n" \ | |
32 | RENAME_LIBRARY_SET "\t__aeabi_" #AEABI_NAME \ | |
33 | ", __" #GCC_NAME "\n"); | |
34 | ||
35 | /* Give some libgcc functions an additional __aeabi name. */ | |
36 | #ifdef L_muldi3 | |
37 | #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (muldi3, lmul) | |
38 | #endif | |
39 | #ifdef L_muldi3 | |
40 | #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (muldi3, lmul) | |
41 | #endif | |
42 | #ifdef L_fixdfdi | |
43 | #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixdfdi, d2lz) \ | |
44 | extern DWtype __fixdfdi (DFtype) __attribute__((pcs("aapcs"))); \ | |
45 | extern UDWtype __fixunsdfdi (DFtype) __asm__("__aeabi_d2ulz") __attribute__((pcs("aapcs"))); | |
46 | #endif | |
47 | #ifdef L_fixunsdfdi | |
48 | #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixunsdfdi, d2ulz) \ | |
49 | extern UDWtype __fixunsdfdi (DFtype) __attribute__((pcs("aapcs"))); | |
50 | #endif | |
51 | #ifdef L_fixsfdi | |
52 | #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixsfdi, f2lz) \ | |
53 | extern DWtype __fixsfdi (SFtype) __attribute__((pcs("aapcs"))); \ | |
54 | extern UDWtype __fixunssfdi (SFtype) __asm__("__aeabi_f2ulz") __attribute__((pcs("aapcs"))); | |
55 | #endif | |
56 | #ifdef L_fixunssfdi | |
57 | #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixunssfdi, f2ulz) \ | |
58 | extern UDWtype __fixunssfdi (SFtype) __attribute__((pcs("aapcs"))); | |
59 | #endif | |
60 | #ifdef L_floatdidf | |
61 | #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (floatdidf, l2d) | |
62 | #endif | |
63 | #ifdef L_floatdisf | |
64 | #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (floatdisf, l2f) | |
65 | #endif | |
66 | ||
67 | /* These renames are needed on ARMv6M. Other targets get them from | |
68 | assembly routines. */ | |
69 | #ifdef L_fixunsdfsi | |
70 | #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixunsdfsi, d2uiz) | |
71 | #endif | |
72 | #ifdef L_fixunssfsi | |
73 | #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixunssfsi, f2uiz) | |
74 | #endif | |
75 | #ifdef L_floatundidf | |
76 | #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (floatundidf, ul2d) | |
77 | #endif | |
78 | #ifdef L_floatundisf | |
79 | #define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (floatundisf, ul2f) | |
80 | #endif |