Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/arm/t-rmprofile @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 # Copyright (C) 2016-2017 Free Software Foundation, Inc. | |
2 # | |
3 # This file is part of GCC. | |
4 # | |
5 # GCC is free software; you can redistribute it and/or modify | |
6 # it under the terms of the GNU General Public License as published by | |
7 # the Free Software Foundation; either version 3, or (at your option) | |
8 # any later version. | |
9 # | |
10 # GCC is distributed in the hope that it will be useful, | |
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 # GNU General Public License for more details. | |
14 # | |
15 # You should have received a copy of the GNU General Public License | |
16 # along with GCC; see the file COPYING3. If not see | |
17 # <http://www.gnu.org/licenses/>. | |
18 | |
19 # This is a target makefile fragment that attempts to get | |
20 # multilibs built for the range of CPU's, FPU's and ABI's that | |
21 # are relevant for the ARM architecture. It should not be used in | |
22 # conjunction with another make file fragment and assumes --with-arch, | |
23 # --with-cpu, --with-fpu, --with-float, --with-mode have their default | |
24 # values during the configure step. We enforce this during the | |
25 # top-level configury. | |
26 | |
27 | |
28 # Arch and FPU variants to build libraries with | |
29 | |
30 MULTI_ARCH_OPTS_RM = march=armv6s-m/march=armv7-m/march=armv7e-m/march=armv7e-m+fp/march=armv7e-m+fp.dp/march=armv8-m.base/march=armv8-m.main/march=armv8-m.main+fp/march=armv8-m.main+fp.dp | |
31 MULTI_ARCH_DIRS_RM = v6-m v7-m v7e-m v7e-m+fp v7e-m+dp v8-m.base v8-m.main v8-m.main+fp v8-m.main+dp | |
32 | |
33 # Base M-profile (no fp) | |
34 MULTILIB_REQUIRED += mthumb/march=armv6s-m/mfloat-abi=soft | |
35 MULTILIB_REQUIRED += mthumb/march=armv7-m/mfloat-abi=soft | |
36 MULTILIB_REQUIRED += mthumb/march=armv7e-m/mfloat-abi=soft | |
37 MULTILIB_REQUIRED += mthumb/march=armv8-m.base/mfloat-abi=soft | |
38 MULTILIB_REQUIRED += mthumb/march=armv8-m.main/mfloat-abi=soft | |
39 | |
40 # ARMv7e-M with FP (single and double precision variants) | |
41 MULTILIB_REQUIRED += mthumb/march=armv7e-m+fp/mfloat-abi=hard | |
42 MULTILIB_REQUIRED += mthumb/march=armv7e-m+fp/mfloat-abi=softfp | |
43 MULTILIB_REQUIRED += mthumb/march=armv7e-m+fp.dp/mfloat-abi=hard | |
44 MULTILIB_REQUIRED += mthumb/march=armv7e-m+fp.dp/mfloat-abi=softfp | |
45 | |
46 # ARMv8-M with FP (single and double precision variants) | |
47 MULTILIB_REQUIRED += mthumb/march=armv8-m.main+fp/mfloat-abi=hard | |
48 MULTILIB_REQUIRED += mthumb/march=armv8-m.main+fp/mfloat-abi=softfp | |
49 MULTILIB_REQUIRED += mthumb/march=armv8-m.main+fp.dp/mfloat-abi=hard | |
50 MULTILIB_REQUIRED += mthumb/march=armv8-m.main+fp.dp/mfloat-abi=softfp | |
51 | |
52 | |
53 | |
54 # Arch Matches | |
55 MULTILIB_MATCHES += march?armv6s-m=march?armv6-m | |
56 | |
57 # Map all v8-m.main+dsp FP variants down the the variant without DSP. | |
58 MULTILIB_MATCHES += march?armv8-m.main=march?armv8-m.main+dsp \ | |
59 $(foreach FP, +fp +fp.dp, \ | |
60 march?armv8-m.main$(FP)=march?armv8-m.main+dsp$(FP)) | |
61 | |
62 # For single-precision only fpv5, use the base fp libraries | |
63 MULTILIB_MATCHES += march?armv7e-m+fp=march?armv7e-m+fpv5 | |
64 | |
65 # Softfp but no FP. Use the soft-float libraries. | |
66 MULTILIB_REUSE += $(foreach ARCH, armv6s-m armv7-m armv7e-m armv8-m\.base armv8-m\.main, \ | |
67 mthumb/march.$(ARCH)/mfloat-abi.soft=mthumb/march.$(ARCH)/mfloat-abi.softfp) | |
68 |