Mercurial > hg > CbC > CbC_gcc
annotate gcc/config/arm/t-arm-elf @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | f6334be47118 |
children | 84e7813d76e9 |
rev | line source |
---|---|
111 | 1 # Copyright (C) 1998-2017 Free Software Foundation, Inc. |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
2 # |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
3 # This file is part of GCC. |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
4 # |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
5 # GCC is free software; you can redistribute it and/or modify |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
6 # it under the terms of the GNU General Public License as published by |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
7 # the Free Software Foundation; either version 3, or (at your option) |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
8 # any later version. |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
9 # |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
10 # GCC is distributed in the hope that it will be useful, |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
13 # GNU General Public License for more details. |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
14 # |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
15 # You should have received a copy of the GNU General Public License |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
16 # along with GCC; see the file COPYING3. If not see |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
17 # <http://www.gnu.org/licenses/>. |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
18 |
111 | 19 # Build a very basic set of libraries that should cater for most cases. |
20 | |
21 # Single-precision floating-point is NOT supported; we don't build a | |
22 # suitable library for that. Use the rm-profile config in that case. | |
23 | |
24 # PART 1 - Useful groups of options | |
25 | |
26 dp_fpus := vfp vfpv2 vfpv3 vfpv3-fp16 vfpv3-d16 vfpv3-d16-fp16 \ | |
27 neon neon-vfpv3 neon-fp16 vfpv4 neon-vfpv4 vfpv4-d16 \ | |
28 fpv5-d16 fp-armv8 neon-fp-armv8 crypto-neon-fp-armv8 \ | |
29 vfp3 | |
30 | |
31 sp_fpus := vfpv3xd vfpv3xd-fp16 fpv4-sp-d16 fpv5-sp-d16 | |
32 | |
33 v7a_fps := vfpv3 vfpv3-fp16 vfpv4 simd neon-fp16 neon-vfpv4 | |
34 v7ve_fps := vfpv3-d16 vfpv3 vfpv3-d16-fp16 vfpv3-fp16 vfpv4 neon \ | |
35 neon-fp16 simd | |
0 | 36 |
111 | 37 # Not all these permutations exist for all architecture variants, but |
38 # it seems to work ok. | |
39 v8_fps := simd fp16 crypto fp16+crypto | |
40 | |
41 # We don't do anything special with these. Pre-v4t probably doesn't work. | |
42 all_early_nofp := armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5t | |
43 | |
44 all_early_arch := armv5e armv5tej armv6 armv6j armv6k armv6z armv6kz \ | |
45 armv6zk armv6t2 iwmmxt iwmmxt2 | |
46 | |
47 all_v7_a_r := armv7-a armv7ve armv7-r | |
48 | |
49 all_v8_archs := armv8-a armv8-a+crc armv8.1-a armv8.2-a | |
50 | |
51 # No floating point variants, require thumb1 softfp | |
52 all_nofp_t := armv6-m armv6s-m armv8-m.base | |
53 | |
54 all_nofp_t2 := armv7-m | |
55 | |
56 all_sp_only := armv7e-m armv8-m.main | |
57 | |
58 MULTILIB_OPTIONS = | |
59 MULTILIB_DIRNAMES = | |
0 | 60 MULTILIB_EXCEPTIONS = |
61 MULTILIB_MATCHES = | |
111 | 62 MULTILIB_REUSE = |
0 | 63 |
111 | 64 # PART 2 - multilib build rules |
65 | |
66 MULTILIB_OPTIONS += marm/mthumb | |
67 MULTILIB_DIRNAMES += arm thumb | |
68 | |
69 MULTILIB_OPTIONS += mfpu=auto | |
70 MULTILIB_DIRNAMES += autofp | |
71 | |
72 MULTILIB_OPTIONS += march=armv5te+fp/march=armv7+fp | |
73 MULTILIB_DIRNAMES += v5te v7 | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
74 |
111 | 75 MULTILIB_OPTIONS += mfloat-abi=hard |
76 MULTILIB_DIRNAMES += fpu | |
77 | |
78 # Build a total of 4 library variants (base options plus the following): | |
79 MULTILIB_REQUIRED += mthumb | |
80 MULTILIB_REQUIRED += marm/mfpu=auto/march=armv5te+fp/mfloat-abi=hard | |
81 MULTILIB_REQUIRED += mthumb/mfpu=auto/march=armv7+fp/mfloat-abi=hard | |
0 | 82 |
111 | 83 # PART 3 - Match rules |
84 | |
85 # Map all supported FPUs onto mfpu=auto | |
86 MULTILIB_MATCHES += $(foreach FPU, $(dp_fpus), \ | |
87 mfpu?auto=mfpu?$(FPU)) | |
88 | |
89 MULTILIB_MATCHES += march?armv5te+fp=march?armv5te | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
90 |
111 | 91 MULTILIB_MATCHES += $(foreach ARCH, $(all_early_arch), \ |
92 march?armv5te+fp=march?$(ARCH) \ | |
93 march?armv5te+fp=march?$(ARCH)+fp) | |
94 | |
95 MULTILIB_MATCHES += march?armv7+fp=march?armv7 | |
96 | |
97 MULTILIB_MATCHES += $(foreach FPARCH, $(v7a_fps), \ | |
98 march?armv7+fp=march?armv7-a+$(FPARCH)) | |
99 | |
100 MULTILIB_MATCHES += $(foreach FPARCH, $(v7ve_fps), \ | |
101 march?armv7+fp=march?armv7ve+$(FPARCH)) | |
102 | |
103 MULTILIB_MATCHES += $(foreach ARCH, $(all_v7_a_r), \ | |
104 march?armv7+fp=march?$(ARCH) \ | |
105 march?armv7+fp=march?$(ARCH)+fp) | |
0 | 106 |
111 | 107 MULTILIB_MATCHES += $(foreach ARCH, $(all_v8_archs), \ |
108 march?armv7+fp=march?$(ARCH) \ | |
109 $(foreach FPARCH, $(v8_fps), \ | |
110 march?armv7+fp=march?$(ARCH)+$(FPARCH))) | |
0 | 111 |
111 | 112 MULTILIB_MATCHES += $(foreach ARCH, armv7e-m armv8-m.mainline, \ |
113 march?armv7+fp=march?$(ARCH)+fp.dp) | |
0 | 114 |
111 | 115 # PART 4 - Reuse rules |
0 | 116 |
111 | 117 MULTILIB_REUSE += mthumb=mthumb/mfpu.auto |
118 MULTILIB_REUSE += mthumb=mthumb/mfpu.auto/march.armv5te+fp | |
119 MULTILIB_REUSE += mthumb=mthumb/march.armv5te+fp | |
120 MULTILIB_REUSE += marm/mfpu.auto/march.armv5te+fp/mfloat-abi.hard=marm/march.armv5te+fp/mfloat-abi.hard | |
121 MULTILIB_REUSE += marm/mfpu.auto/march.armv5te+fp/mfloat-abi.hard=march.armv5te+fp/mfloat-abi.hard | |
122 MULTILIB_REUSE += marm/mfpu.auto/march.armv5te+fp/mfloat-abi.hard=mfpu.auto/march.armv5te+fp/mfloat-abi.hard | |
123 MULTILIB_REUSE += mthumb/mfpu.auto/march.armv7+fp/mfloat-abi.hard=mthumb/march.armv7+fp/mfloat-abi.hard | |
124 MULTILIB_REUSE += mthumb/mfpu.auto/march.armv7+fp/mfloat-abi.hard=mfpu.auto/march.armv7+fp/mfloat-abi.hard | |
125 MULTILIB_REUSE += mthumb/mfpu.auto/march.armv7+fp/mfloat-abi.hard=march.armv7+fp/mfloat-abi.hard |