Skip to content

Commit 2a92fe2

Browse files
authored
Rollup merge of #41080 - cuviper:generic-powerpc, r=alexcrichton
dist-powerpc-linux: use a pure 32-bit CPU profile With `-mcpu=power4`, code might use instructions like `fcfid`, excluding older CPUs like the PowerPC G4, which apparently some users would like to use. The generic `-mcpu=powerpc` should stick to pure 32-bit PowerPC instructions. Fixes rust-lang/cargo#3852.
2 parents a2c0326 + 608e8fe commit 2a92fe2

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

src/ci/docker/README.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -152,18 +152,13 @@ For targets: `powerpc-unknown-linux-gnu`
152152
- Path and misc options > Patches origin = Bundled, then local
153153
- Path and misc options > Local patch directory = /tmp/patches
154154
- Target options > Target Architecture = powerpc
155-
- Target options > Emit assembly for CPU = power4 -- (+)
156-
- Target options > Tune for CPU = power6 -- (+)
155+
- Target options > Emit assembly for CPU = powerpc -- pure 32-bit PowerPC
157156
- Operating System > Target OS = linux
158157
- Operating System > Linux kernel version = 2.6.32.68 -- ~RHEL6 kernel
159158
- C-library > glibc version = 2.12.2 -- ~RHEL6 glibc
160159
- C compiler > gcc version = 4.9.3
161-
- C compiler > Core gcc extra config = --with-cpu-32=power4 --with-cpu=default32 -- (+)
162-
- C compiler > gcc extra config = --with-cpu-32=power4 --with-cpu=default32 -- (+)
163160
- C compiler > C++ = ENABLE -- to cross compile LLVM
164161

165-
(+) These CPU options match the configuration of the toolchains in RHEL6.
166-
167162
## `powerpc64-linux-gnu.config`
168163

169164
For targets: `powerpc64-unknown-linux-gnu`

src/ci/docker/dist-powerpc-linux/powerpc-linux-gnu.config

+4-4
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ CT_ARCH_SUPPORTS_WITH_FLOAT=y
101101
CT_ARCH_DEFAULT_BE=y
102102
CT_ARCH_DEFAULT_32=y
103103
CT_ARCH_ABI=""
104-
CT_ARCH_CPU="power4"
105-
CT_ARCH_TUNE="power6"
104+
CT_ARCH_CPU="powerpc"
105+
CT_ARCH_TUNE=""
106106
CT_ARCH_BE=y
107107
# CT_ARCH_LE is not set
108108
CT_ARCH_32=y
@@ -391,8 +391,8 @@ CT_CC_GCC_HAS_LIBSANITIZER=y
391391
CT_CC_GCC_VERSION="4.9.3"
392392
# CT_CC_LANG_FORTRAN is not set
393393
CT_CC_GCC_ENABLE_CXX_FLAGS=""
394-
CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY="--with-cpu-32=power4 --with-cpu=default32"
395-
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--with-cpu-32=power4 --with-cpu=default32"
394+
CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY=""
395+
CT_CC_GCC_EXTRA_CONFIG_ARRAY=""
396396
CT_CC_GCC_EXTRA_ENV_ARRAY=""
397397
CT_CC_GCC_STATIC_LIBSTDCXX=y
398398
# CT_CC_GCC_SYSTEM_ZLIB is not set

0 commit comments

Comments
 (0)