diff options
author | 2020-10-26 15:17:35 -0400 | |
---|---|---|
committer | 2020-10-31 23:48:51 +0100 | |
commit | 96e80ad214ced86c802d561946fa7da88c1595eb (patch) | |
tree | d74954589b84f9472b17f1677af24947e08cbd9a | |
parent | 25f2191ed2ff1abc963dde45503bce9c9d48d47e (diff) | |
download | buildroot-96e80ad214ced86c802d561946fa7da88c1595eb.tar.gz buildroot-96e80ad214ced86c802d561946fa7da88c1595eb.tar.bz2 |
package/gcc: re-enable gcc 8.x for PowerPC SPE
The GCC-7.x compiler series was the last to officially support PowerPC
SPE CPUs. Now that GCC-8.x is the default compiler used by Buildroot,
some defconfigs, notably the arcturus_ucp1020_defconfig and
freescale_p1025twr_defconfig ones started to fail building, as they
are PowerPC SPE platforms.
In fact, the GCC-8.x compiler series continues to support PowerPC SPE
CPU cores, but only as an --enable-obsoleted instruction set. This
patch enables the use of GCC-8.x and asserts the required option to
enable the PowerPC SPE instruction set.
This patch passes compilation and run tests with the
arcturus/ppc-ucp1020 board.
This patch should address a noted job failure on GitLab CI
https://gitlab.com/buildroot.org/buildroot/-/jobs/805461732
Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/805461732
Signed-off-by: Michael Durrant <mdurrant@ArcturusNetworks.com>
Signed-off-by: Oleksandr G Zhadan <Oleks@ArcturusNetworks.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r-- | package/gcc/Config.in.host | 3 | ||||
-rw-r--r-- | package/gcc/gcc.mk | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host index 74999c800b..4aa6d3725f 100644 --- a/package/gcc/Config.in.host +++ b/package/gcc/Config.in.host @@ -25,9 +25,6 @@ config BR2_GCC_VERSION_8_X depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_9 # Broken or unsupported architectures depends on !BR2_or1k - # powerpc spe support has been deprecated since gcc 8.x. - # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html - depends on !BR2_powerpc_SPE select BR2_TOOLCHAIN_GCC_AT_LEAST_8 config BR2_GCC_VERSION_9_X diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk index f372857916..beac27ede4 100644 --- a/package/gcc/gcc.mk +++ b/package/gcc/gcc.mk @@ -217,6 +217,7 @@ endif # Enable proper double/long double for SPE ABI ifeq ($(BR2_powerpc_SPE),y) HOST_GCC_COMMON_CONF_OPTS += \ + --enable-obsolete \ --enable-e500_double \ --with-long-double-128 endif |