Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 1 | From 21ba558abe074e7d49bdc931018ce2138e6e8eb5 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 977dc1a | 2019-02-06 16:01:43 -0500 | [diff] [blame] | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Tue, 18 Dec 2018 15:42:57 +0100 |
Wang Mingyu | 66b34c8 | 2020-05-23 02:23:08 +0800 | [diff] [blame] | 4 | Subject: [PATCH] Don't set up arch/instruction-set flags, we do that |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 5 | |
Wang Mingyu | 66b34c8 | 2020-05-23 02:23:08 +0800 | [diff] [blame] | 6 | ourselves |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 7 | |
| 8 | Upstream-Status: Inappropriate |
| 9 | Signed-off-by: Christopher Larson <chris_larson@mentor.com> |
Brad Bishop | 977dc1a | 2019-02-06 16:01:43 -0500 | [diff] [blame] | 10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 11 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 12 | --- |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 13 | tools/build/src/tools/gcc.jam | 153 ---------------------------------- |
| 14 | 1 file changed, 153 deletions(-) |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 15 | |
| 16 | diff --git a/tools/build/src/tools/gcc.jam b/tools/build/src/tools/gcc.jam |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 17 | index 726555369..5c5f8ba91 100644 |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 18 | --- a/tools/build/src/tools/gcc.jam |
| 19 | +++ b/tools/build/src/tools/gcc.jam |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 20 | @@ -1124,156 +1124,3 @@ local rule cpu-flags ( toolset variable : architecture : instruction-set + : |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 21 | <architecture>$(architecture)/<instruction-set>$(instruction-set) |
| 22 | : $(values) ; |
| 23 | } |
| 24 | - |
| 25 | - |
| 26 | -# Set architecture/instruction-set options. |
| 27 | -# |
| 28 | -# x86 and compatible |
| 29 | -# The 'native' option appeared in gcc 4.2 so we cannot safely use it as default. |
| 30 | -# Use i686 instead for 32-bit. |
| 31 | -toolset.flags gcc OPTIONS <architecture>x86/<address-model>32/<instruction-set> : -march=i686 ; |
| 32 | -cpu-flags gcc OPTIONS : x86 : native : -march=native ; |
| 33 | -cpu-flags gcc OPTIONS : x86 : i486 : -march=i486 ; |
| 34 | -cpu-flags gcc OPTIONS : x86 : i586 : -march=i586 ; |
| 35 | -cpu-flags gcc OPTIONS : x86 : i686 : -march=i686 ; |
| 36 | -cpu-flags gcc OPTIONS : x86 : pentium : -march=pentium ; |
| 37 | -cpu-flags gcc OPTIONS : x86 : pentium-mmx : -march=pentium-mmx ; |
| 38 | -cpu-flags gcc OPTIONS : x86 : pentiumpro : -march=pentiumpro ; |
| 39 | -cpu-flags gcc OPTIONS : x86 : pentium2 : -march=pentium2 ; |
| 40 | -cpu-flags gcc OPTIONS : x86 : pentium3 : -march=pentium3 ; |
| 41 | -cpu-flags gcc OPTIONS : x86 : pentium3m : -march=pentium3m ; |
| 42 | -cpu-flags gcc OPTIONS : x86 : pentium-m : -march=pentium-m ; |
| 43 | -cpu-flags gcc OPTIONS : x86 : pentium4 : -march=pentium4 ; |
| 44 | -cpu-flags gcc OPTIONS : x86 : pentium4m : -march=pentium4m ; |
| 45 | -cpu-flags gcc OPTIONS : x86 : prescott : -march=prescott ; |
| 46 | -cpu-flags gcc OPTIONS : x86 : nocona : -march=nocona ; |
| 47 | -cpu-flags gcc OPTIONS : x86 : core2 : -march=core2 ; |
| 48 | -cpu-flags gcc OPTIONS : x86 : conroe : -march=core2 ; |
| 49 | -cpu-flags gcc OPTIONS : x86 : conroe-xe : -march=core2 ; |
| 50 | -cpu-flags gcc OPTIONS : x86 : conroe-l : -march=core2 ; |
| 51 | -cpu-flags gcc OPTIONS : x86 : allendale : -march=core2 ; |
| 52 | -cpu-flags gcc OPTIONS : x86 : wolfdale : -march=core2 -msse4.1 ; |
| 53 | -cpu-flags gcc OPTIONS : x86 : merom : -march=core2 ; |
| 54 | -cpu-flags gcc OPTIONS : x86 : merom-xe : -march=core2 ; |
| 55 | -cpu-flags gcc OPTIONS : x86 : kentsfield : -march=core2 ; |
| 56 | -cpu-flags gcc OPTIONS : x86 : kentsfield-xe : -march=core2 ; |
| 57 | -cpu-flags gcc OPTIONS : x86 : yorksfield : -march=core2 ; |
| 58 | -cpu-flags gcc OPTIONS : x86 : penryn : -march=core2 ; |
| 59 | -cpu-flags gcc OPTIONS : x86 : corei7 : -march=corei7 ; |
| 60 | -cpu-flags gcc OPTIONS : x86 : nehalem : -march=corei7 ; |
| 61 | -cpu-flags gcc OPTIONS : x86 : corei7-avx : -march=corei7-avx ; |
| 62 | -cpu-flags gcc OPTIONS : x86 : sandy-bridge : -march=corei7-avx ; |
| 63 | -cpu-flags gcc OPTIONS : x86 : core-avx-i : -march=core-avx-i ; |
| 64 | -cpu-flags gcc OPTIONS : x86 : ivy-bridge : -march=core-avx-i ; |
| 65 | -cpu-flags gcc OPTIONS : x86 : haswell : -march=core-avx-i -mavx2 -mfma -mbmi -mbmi2 -mlzcnt ; |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 66 | -cpu-flags gcc OPTIONS : x86 : broadwell : -march=broadwell ; |
| 67 | -cpu-flags gcc OPTIONS : x86 : skylake : -march=skylake ; |
| 68 | -cpu-flags gcc OPTIONS : x86 : skylake-avx512 : -march=skylake-avx512 ; |
| 69 | -cpu-flags gcc OPTIONS : x86 : cannonlake : -march=skylake-avx512 -mavx512vbmi -mavx512ifma -msha ; |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 70 | -cpu-flags gcc OPTIONS : x86 : icelake-client : -march=icelake-client ; |
| 71 | -cpu-flags gcc OPTIONS : x86 : icelake-server : -march=icelake-server ; |
| 72 | -cpu-flags gcc OPTIONS : x86 : cascadelake : -march=skylake-avx512 -mavx512vnni ; |
| 73 | -cpu-flags gcc OPTIONS : x86 : cooperlake : -march=cooperlake ; |
| 74 | -cpu-flags gcc OPTIONS : x86 : tigerlake : -march=tigerlake ; |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 75 | -cpu-flags gcc OPTIONS : x86 : rocketlake : -march=rocketlake ; |
| 76 | -cpu-flags gcc OPTIONS : x86 : alderlake : -march=alderlake ; |
| 77 | -cpu-flags gcc OPTIONS : x86 : sapphirerapids : -march=sapphirerapids ; |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 78 | -cpu-flags gcc OPTIONS : x86 : k6 : -march=k6 ; |
| 79 | -cpu-flags gcc OPTIONS : x86 : k6-2 : -march=k6-2 ; |
| 80 | -cpu-flags gcc OPTIONS : x86 : k6-3 : -march=k6-3 ; |
| 81 | -cpu-flags gcc OPTIONS : x86 : athlon : -march=athlon ; |
| 82 | -cpu-flags gcc OPTIONS : x86 : athlon-tbird : -march=athlon-tbird ; |
| 83 | -cpu-flags gcc OPTIONS : x86 : athlon-4 : -march=athlon-4 ; |
| 84 | -cpu-flags gcc OPTIONS : x86 : athlon-xp : -march=athlon-xp ; |
| 85 | -cpu-flags gcc OPTIONS : x86 : athlon-mp : -march=athlon-mp ; |
| 86 | -## |
| 87 | -cpu-flags gcc OPTIONS : x86 : k8 : -march=k8 ; |
| 88 | -cpu-flags gcc OPTIONS : x86 : opteron : -march=opteron ; |
| 89 | -cpu-flags gcc OPTIONS : x86 : athlon64 : -march=athlon64 ; |
| 90 | -cpu-flags gcc OPTIONS : x86 : athlon-fx : -march=athlon-fx ; |
| 91 | -cpu-flags gcc OPTIONS : x86 : k8-sse3 : -march=k8-sse3 ; |
| 92 | -cpu-flags gcc OPTIONS : x86 : opteron-sse3 : -march=opteron-sse3 ; |
| 93 | -cpu-flags gcc OPTIONS : x86 : athlon64-sse3 : -march=athlon64-sse3 ; |
| 94 | -cpu-flags gcc OPTIONS : x86 : amdfam10 : -march=amdfam10 ; |
| 95 | -cpu-flags gcc OPTIONS : x86 : barcelona : -march=barcelona ; |
| 96 | -cpu-flags gcc OPTIONS : x86 : bdver1 : -march=bdver1 ; |
| 97 | -cpu-flags gcc OPTIONS : x86 : bdver2 : -march=bdver2 ; |
| 98 | -cpu-flags gcc OPTIONS : x86 : bdver3 : -march=bdver3 ; |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 99 | -cpu-flags gcc OPTIONS : x86 : bdver4 : -march=bdver4 ; |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 100 | -cpu-flags gcc OPTIONS : x86 : btver1 : -march=btver1 ; |
| 101 | -cpu-flags gcc OPTIONS : x86 : btver2 : -march=btver2 ; |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 102 | -cpu-flags gcc OPTIONS : x86 : znver1 : -march=znver1 ; |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 103 | -cpu-flags gcc OPTIONS : x86 : znver2 : -march=znver2 ; |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 104 | -cpu-flags gcc OPTIONS : x86 : znver3 : -march=znver3 ; |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 105 | -cpu-flags gcc OPTIONS : x86 : winchip-c6 : -march=winchip-c6 ; |
| 106 | -cpu-flags gcc OPTIONS : x86 : winchip2 : -march=winchip2 ; |
| 107 | -cpu-flags gcc OPTIONS : x86 : c3 : -march=c3 ; |
| 108 | -cpu-flags gcc OPTIONS : x86 : c3-2 : -march=c3-2 ; |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 109 | -cpu-flags gcc OPTIONS : x86 : c7 : -march=c7 ; |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 110 | -## |
| 111 | -cpu-flags gcc OPTIONS : x86 : atom : -march=atom ; |
| 112 | -# Sparc |
| 113 | -cpu-flags gcc OPTIONS : sparc : v7 : -mcpu=v7 : default ; |
| 114 | -cpu-flags gcc OPTIONS : sparc : cypress : -mcpu=cypress ; |
| 115 | -cpu-flags gcc OPTIONS : sparc : v8 : -mcpu=v8 ; |
| 116 | -cpu-flags gcc OPTIONS : sparc : supersparc : -mcpu=supersparc ; |
| 117 | -cpu-flags gcc OPTIONS : sparc : sparclite : -mcpu=sparclite ; |
| 118 | -cpu-flags gcc OPTIONS : sparc : hypersparc : -mcpu=hypersparc ; |
| 119 | -cpu-flags gcc OPTIONS : sparc : sparclite86x : -mcpu=sparclite86x ; |
| 120 | -cpu-flags gcc OPTIONS : sparc : f930 : -mcpu=f930 ; |
| 121 | -cpu-flags gcc OPTIONS : sparc : f934 : -mcpu=f934 ; |
| 122 | -cpu-flags gcc OPTIONS : sparc : sparclet : -mcpu=sparclet ; |
| 123 | -cpu-flags gcc OPTIONS : sparc : tsc701 : -mcpu=tsc701 ; |
| 124 | -cpu-flags gcc OPTIONS : sparc : v9 : -mcpu=v9 ; |
| 125 | -cpu-flags gcc OPTIONS : sparc : ultrasparc : -mcpu=ultrasparc ; |
| 126 | -cpu-flags gcc OPTIONS : sparc : ultrasparc3 : -mcpu=ultrasparc3 ; |
| 127 | -# RS/6000 & PowerPC |
| 128 | -cpu-flags gcc OPTIONS : power : 403 : -mcpu=403 ; |
| 129 | -cpu-flags gcc OPTIONS : power : 505 : -mcpu=505 ; |
| 130 | -cpu-flags gcc OPTIONS : power : 601 : -mcpu=601 ; |
| 131 | -cpu-flags gcc OPTIONS : power : 602 : -mcpu=602 ; |
| 132 | -cpu-flags gcc OPTIONS : power : 603 : -mcpu=603 ; |
| 133 | -cpu-flags gcc OPTIONS : power : 603e : -mcpu=603e ; |
| 134 | -cpu-flags gcc OPTIONS : power : 604 : -mcpu=604 ; |
| 135 | -cpu-flags gcc OPTIONS : power : 604e : -mcpu=604e ; |
| 136 | -cpu-flags gcc OPTIONS : power : 620 : -mcpu=620 ; |
| 137 | -cpu-flags gcc OPTIONS : power : 630 : -mcpu=630 ; |
| 138 | -cpu-flags gcc OPTIONS : power : 740 : -mcpu=740 ; |
| 139 | -cpu-flags gcc OPTIONS : power : 7400 : -mcpu=7400 ; |
| 140 | -cpu-flags gcc OPTIONS : power : 7450 : -mcpu=7450 ; |
| 141 | -cpu-flags gcc OPTIONS : power : 750 : -mcpu=750 ; |
| 142 | -cpu-flags gcc OPTIONS : power : 801 : -mcpu=801 ; |
| 143 | -cpu-flags gcc OPTIONS : power : 821 : -mcpu=821 ; |
| 144 | -cpu-flags gcc OPTIONS : power : 823 : -mcpu=823 ; |
| 145 | -cpu-flags gcc OPTIONS : power : 860 : -mcpu=860 ; |
| 146 | -cpu-flags gcc OPTIONS : power : 970 : -mcpu=970 ; |
| 147 | -cpu-flags gcc OPTIONS : power : 8540 : -mcpu=8540 ; |
| 148 | -cpu-flags gcc OPTIONS : power : power : -mcpu=power ; |
| 149 | -cpu-flags gcc OPTIONS : power : power2 : -mcpu=power2 ; |
| 150 | -cpu-flags gcc OPTIONS : power : power3 : -mcpu=power3 ; |
| 151 | -cpu-flags gcc OPTIONS : power : power4 : -mcpu=power4 ; |
| 152 | -cpu-flags gcc OPTIONS : power : power5 : -mcpu=power5 ; |
| 153 | -cpu-flags gcc OPTIONS : power : powerpc : -mcpu=powerpc ; |
| 154 | -cpu-flags gcc OPTIONS : power : powerpc64 : -mcpu=powerpc64 ; |
| 155 | -cpu-flags gcc OPTIONS : power : rios : -mcpu=rios ; |
| 156 | -cpu-flags gcc OPTIONS : power : rios1 : -mcpu=rios1 ; |
| 157 | -cpu-flags gcc OPTIONS : power : rios2 : -mcpu=rios2 ; |
| 158 | -cpu-flags gcc OPTIONS : power : rsc : -mcpu=rsc ; |
| 159 | -cpu-flags gcc OPTIONS : power : rs64a : -mcpu=rs64 ; |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 160 | -cpu-flags gcc OPTIONS : s390x : z196 : -march=z196 ; |
| 161 | -cpu-flags gcc OPTIONS : s390x : zEC12 : -march=zEC12 ; |
| 162 | -cpu-flags gcc OPTIONS : s390x : z13 : -march=z13 ; |
| 163 | -cpu-flags gcc OPTIONS : s390x : z14 : -march=z14 ; |
Wang Mingyu | 66b34c8 | 2020-05-23 02:23:08 +0800 | [diff] [blame] | 164 | -cpu-flags gcc OPTIONS : s390x : z15 : -march=z15 ; |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 165 | -# ARM |
| 166 | -cpu-flags gcc OPTIONS : arm : cortex-a9+vfpv3 : -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard ; |
| 167 | -cpu-flags gcc OPTIONS : arm : cortex-a53 : -mcpu=cortex-a53 ; |
| 168 | -cpu-flags gcc OPTIONS : arm : cortex-r5 : -mcpu=cortex-r5 ; |
| 169 | -cpu-flags gcc OPTIONS : arm : cortex-r5+vfpv3-d16 : -mcpu=cortex-r5 -mfpu=vfpv3-d16 -mfloat-abi=hard ; |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 170 | -# AIX variant of RS/6000 & PowerPC |
| 171 | -toolset.flags gcc AROPTIONS <address-model>64/<target-os>aix : "-X64" ; |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 172 | - |
| 173 | -# Enable response file control |
| 174 | -toolset.flags gcc RESPONSE_FILE_SUB <response-file>auto : a ; |
| 175 | -toolset.flags gcc RESPONSE_FILE_SUB <response-file>file : f ; |
| 176 | -toolset.flags gcc RESPONSE_FILE_SUB <response-file>contents : c ; |