Add GCC-8 and make it default
cover Add GCC-8 and make it default
This patch series adds the needed recipes for gcc8 support and makes it default since SPE is relegated to obsoleted targets we disable it as well and switch qemu to not use it For rpi3/armv7ve there is conflict between -march and -mcpu therefore we select more common tuning which is specified by -march
The following changes since commit 760103cdaed3e820888d8984ec0b76cfc831d534:
nativesdk-rpm: Add wrappers for nativesdk support (2018-05-29 21:06:03 +0100)
are available in the Git repository at:
git://git.openembedded.org/openembedded-core-contrib gcc-8
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=gcc-8
Khem Raj (6):
gcc-runtime: Remove -mcpu=cortex-a7 when building for -march=armv7ve qemuppc/ppc7400: Drop disabling spe
gcc-8: Add recipes for 8.1 release
gcc-8: Disable libssp for non mingw targets
gcc-8: Disable float128 for ppc/musl
tcmode-default: Switch to gcc 8.0
meta/conf/distro/include/tcmode-default.inc | 2 +- meta/conf/machine/include/tune-ppc7400.inc | 2 +- meta/conf/machine/qemuppc.conf | 2 - meta/recipes-devtools/gcc/gcc-8.1.inc | 126 +++++++++ ...0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch | 42 +++ .../gcc/gcc-8.1/0002-c99-snprintf.patch | 28 ++ .../0003-gcc-poison-system-directories.patch | 192 +++++++++++++ .../gcc-8.1/0004-gcc-poison-dir-extend.patch | 39 +++ ...-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch | 73 +++++ .../gcc-8.1/0006-64-bit-multilib-hack.patch | 85 ++++++ .../gcc/gcc-8.1/0007-optional-libstdc.patch | 125 +++++++++ ...gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch | 59 ++++ .../gcc-8.1/0009-COLLECT_GCC_OPTIONS.patch | 38 +++ ...ts.h-in-B-instead-of-S-and-t-oe-in-B.patch | 96 +++++++ .../0011-fortran-cross-compile-hack.patch | 46 ++++ .../gcc/gcc-8.1/0012-cpp-honor-sysroot.patch | 54 ++++ .../0013-MIPS64-Default-to-N64-ABI.patch | 57 ++++ ...AMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch | 234 ++++++++++++++++ ...gcc-Fix-argument-list-too-long-error.patch | 40 +++ .../gcc/gcc-8.1/0016-Disable-sdt.patch | 113 ++++++++ .../gcc/gcc-8.1/0017-libtool.patch | 42 +++ ...s-fix-v4bx-to-linker-to-support-EABI.patch | 43 +++ ...-config-files-from-B-instead-of-usin.patch | 102 +++++++ ...ir-from-.la-which-usually-points-to-.patch | 31 +++ .../gcc/gcc-8.1/0021-export-CPP.patch | 53 ++++ ...ILIB_OSDIRNAMES-and-other-multilib-o.patch | 42 +++ ...e-target-gcc-headers-can-be-included.patch | 98 +++++++ ...ild-with-disable-dependency-tracking.patch | 54 ++++ ...t-directory-during-relink-if-inst_pr.patch | 38 +++ ...IR-replacement-instead-of-hardcoding.patch | 29 ++ ...27-aarch64-Add-support-for-musl-ldso.patch | 28 ++ ...-fix-libcc1-s-install-path-and-rpath.patch | 54 ++++ ...le-sysroot-support-for-nativesdk-gcc.patch | 213 +++++++++++++++ ...sroot-gcc-version-specific-dirs-with.patch | 102 +++++++ ...ous-_FOR_BUILD-and-related-variables.patch | 137 ++++++++++ ...032-nios2-Define-MUSL_DYNAMIC_LINKER.patch | 28 ++ ...d-to-link-commandline-for-musl-targe.patch | 87 ++++++ ...bgcc-Add-knob-to-use-ldbl-128-on-ppc.patch | 125 +++++++++ ...using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch | 29 ++ ...as-for-__cpu_indicator_init-instead-.patch | 86 ++++++ .../0037-sync-gcc-stddef.h-with-musl.patch | 91 ++++++ ...-fault-in-precompiled-header-generat.patch | 60 ++++ .../0039-Fix-for-testsuite-failure.patch | 258 ++++++++++++++++++ meta/recipes-devtools/gcc/gcc-common.inc | 2 +- .../gcc/gcc-cross-canadian_8.1.bb | 5 + .../gcc/gcc-cross-initial_8.1.bb | 2 + meta/recipes-devtools/gcc/gcc-cross_8.1.bb | 3 + .../gcc/gcc-crosssdk-initial_8.1.bb | 3 + meta/recipes-devtools/gcc/gcc-crosssdk_8.1.bb | 2 + meta/recipes-devtools/gcc/gcc-runtime.inc | 2 + meta/recipes-devtools/gcc/gcc-runtime_8.1.bb | 7 + .../gcc/gcc-sanitizers_8.1.bb | 2 + meta/recipes-devtools/gcc/gcc-source_8.1.bb | 4 + meta/recipes-devtools/gcc/gcc_8.1.bb | 10 + .../gcc/libgcc-initial_8.1.bb | 2 + meta/recipes-devtools/gcc/libgcc_8.1.bb | 2 + meta/recipes-devtools/gcc/libgfortran_8.1.bb | 3 + 57 files changed, 3327 insertions(+), 5 deletions(-) create mode 100644 meta/recipes-devtools/gcc/gcc-8.1.inc create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0002-c99-snprintf.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0003-gcc-poison-system-directories.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0004-gcc-poison-dir-extend.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0006-64-bit-multilib-hack.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0007-optional-libstdc.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0008-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0009-COLLECT_GCC_OPTIONS.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0010-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0011-fortran-cross-compile-hack.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0012-cpp-honor-sysroot.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0013-MIPS64-Default-to-N64-ABI.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0014-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0015-gcc-Fix-argument-list-too-long-error.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0016-Disable-sdt.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0017-libtool.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0018-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0019-Use-the-multilib-config-files-from-B-instead-of-usin.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0020-Avoid-using-libdir-from-.la-which-usually-points-to-.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0021-export-CPP.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0022-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0023-Ensure-target-gcc-headers-can-be-included.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0024-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0025-Don-t-search-host-directory-during-relink-if-inst_pr.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0026-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0027-aarch64-Add-support-for-musl-ldso.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0028-libcc1-fix-libcc1-s-install-path-and-rpath.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0029-handle-sysroot-support-for-nativesdk-gcc.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0030-Search-target-sysroot-gcc-version-specific-dirs-with.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0031-Fix-various-_FOR_BUILD-and-related-variables.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0032-nios2-Define-MUSL_DYNAMIC_LINKER.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0033-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0034-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0035-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0036-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0037-sync-gcc-stddef.h-with-musl.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0038-fix-segmentation-fault-in-precompiled-header-generat.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0039-Fix-for-testsuite-failure.patch create mode 100644 meta/recipes-devtools/gcc/gcc-cross-canadian_8.1.bb create mode 100644 meta/recipes-devtools/gcc/gcc-cross-initial_8.1.bb create mode 100644 meta/recipes-devtools/gcc/gcc-cross_8.1.bb create mode 100644 meta/recipes-devtools/gcc/gcc-crosssdk-initial_8.1.bb create mode 100644 meta/recipes-devtools/gcc/gcc-crosssdk_8.1.bb create mode 100644 meta/recipes-devtools/gcc/gcc-runtime_8.1.bb create mode 100644 meta/recipes-devtools/gcc/gcc-sanitizers_8.1.bb create mode 100644 meta/recipes-devtools/gcc/gcc-source_8.1.bb create mode 100644 meta/recipes-devtools/gcc/gcc_8.1.bb create mode 100644 meta/recipes-devtools/gcc/libgcc-initial_8.1.bb create mode 100644 meta/recipes-devtools/gcc/libgcc_8.1.bb create mode 100644 meta/recipes-devtools/gcc/libgfortran_8.1.bb
Signature · 1 line
2.17.0
PATCH 1/6 gcc-runtime: Remove -mcpu=cortex-a7 when building for -march=armv7ve
This fixes conflicts like
cc1: error: switch -mcpu=cortex-a7 conflicts with -march=armv7-a switch [-Werror]
--- meta/recipes-devtools/gcc/gcc-runtime.inc | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-devtools/gcc/gcc-runtime.inc +2 -0
@@ -14,6 +14,8 @@ EXTRA_OECONF_PATHS = "\ --with-build-sysroot=${STAGING_DIR_TARGET} \ " +TUNE_FEATURES_remove_armv7ve = "cortexa7" + EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu" RUNTIMELIBITM = "libitm"
Signature · 1 line
2.17.0
PATCH 2/6 qemuppc/ppc7400: Drop disabling spe
In reply to Khem Rajgcc8 has separated spe backend from usual rs6000 backend for ppc which means when we can non longer mix spe and non-spe configs for gcc machines as we use to be able to do until gcc7.
If we need to enable spe we will need *-*-*spe* in tuple which we already get for spe enabled tunes
--- meta/conf/machine/include/tune-ppc7400.inc | 2 +- meta/conf/machine/qemuppc.conf | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-)
meta/conf/machine/include/tune-ppc7400.inc +1 -1
@@ -3,7 +3,7 @@ DEFAULTTUNE ?= "ppc7400" require conf/machine/include/powerpc/arch-powerpc.inc TUNEVALID[ppc7400] = "Enable ppc7400 specific processor optimizations" -TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'ppc7400', ' -mcpu=7400 -mno-spe', '', d)}" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'ppc7400', ' -mcpu=7400', '', d)}" AVAILTUNES += "ppc7400" TUNE_FEATURES_tune-ppc7400 = "m32 fpu-hard ppc7400 altivec"
meta/conf/machine/qemuppc.conf +0 -2
@@ -5,8 +5,6 @@ require conf/machine/include/qemu.inc require conf/machine/include/tune-ppc7400.inc -TARGET_CC_KERNEL_ARCH = "-mno-spe" - KERNEL_IMAGETYPE = "vmlinux" SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyS1"
Signature · 1 line
2.17.0
PATCH 4/6 gcc-8: Disable libssp for non mingw targets
In reply to Khem Raj--- meta/recipes-devtools/gcc/gcc-8.1.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
meta/recipes-devtools/gcc/gcc-8.1.inc +4 -2
@@ -87,10 +87,12 @@ FORTRAN = "" JAVA = "" LTO = "--enable-lto" +SSP ?= "--disable-libssp" +SSP_mingw32 = "--enable-libssp" EXTRA_OECONF_BASE = "\ ${LTO} \ - --enable-libssp \ + ${SSP} \ --enable-libitm \ --disable-bootstrap \ --disable-libmudflap \
@@ -114,7 +116,7 @@ EXTRA_OECONF_INITIAL = "\ --disable-plugin \ --enable-decimal-float=no \ --without-isl \ - gcc_cv_libc_provides_ssp=yes \ + --disable-libssp \ " EXTRA_OECONF_PATHS = "\
Signature · 1 line
2.17.0
PATCH 3/6 gcc-8: Add recipes for 8.1 release
In reply to Khem Raj--- meta/recipes-devtools/gcc/gcc-8.1.inc | 124 +++++++++ ...0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch | 42 +++ .../gcc/gcc-8.1/0002-c99-snprintf.patch | 28 ++ .../0003-gcc-poison-system-directories.patch | 192 +++++++++++++ .../gcc-8.1/0004-gcc-poison-dir-extend.patch | 39 +++ ...-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch | 73 +++++ .../gcc-8.1/0006-64-bit-multilib-hack.patch | 85 ++++++ .../gcc/gcc-8.1/0007-optional-libstdc.patch | 125 +++++++++ ...gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch | 59 ++++ .../gcc-8.1/0009-COLLECT_GCC_OPTIONS.patch | 38 +++ ...ts.h-in-B-instead-of-S-and-t-oe-in-B.patch | 96 +++++++ .../0011-fortran-cross-compile-hack.patch | 46 ++++ .../gcc/gcc-8.1/0012-cpp-honor-sysroot.patch | 54 ++++ .../0013-MIPS64-Default-to-N64-ABI.patch | 57 ++++ ...AMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch | 234 ++++++++++++++++ ...gcc-Fix-argument-list-too-long-error.patch | 40 +++ .../gcc/gcc-8.1/0016-Disable-sdt.patch | 113 ++++++++ .../gcc/gcc-8.1/0017-libtool.patch | 42 +++ ...s-fix-v4bx-to-linker-to-support-EABI.patch | 43 +++ ...-config-files-from-B-instead-of-usin.patch | 102 +++++++ ...ir-from-.la-which-usually-points-to-.patch | 31 +++ .../gcc/gcc-8.1/0021-export-CPP.patch | 53 ++++ ...ILIB_OSDIRNAMES-and-other-multilib-o.patch | 42 +++ ...e-target-gcc-headers-can-be-included.patch | 98 +++++++ ...ild-with-disable-dependency-tracking.patch | 54 ++++ ...t-directory-during-relink-if-inst_pr.patch | 38 +++ ...IR-replacement-instead-of-hardcoding.patch | 29 ++ ...27-aarch64-Add-support-for-musl-ldso.patch | 28 ++ ...-fix-libcc1-s-install-path-and-rpath.patch | 54 ++++ ...le-sysroot-support-for-nativesdk-gcc.patch | 213 +++++++++++++++ ...sroot-gcc-version-specific-dirs-with.patch | 102 +++++++ ...ous-_FOR_BUILD-and-related-variables.patch | 137 ++++++++++ ...032-nios2-Define-MUSL_DYNAMIC_LINKER.patch | 28 ++ ...d-to-link-commandline-for-musl-targe.patch | 87 ++++++ ...bgcc-Add-knob-to-use-ldbl-128-on-ppc.patch | 125 +++++++++ ...using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch | 29 ++ ...as-for-__cpu_indicator_init-instead-.patch | 86 ++++++ .../0037-sync-gcc-stddef.h-with-musl.patch | 91 ++++++ ...-fault-in-precompiled-header-generat.patch | 60 ++++ .../0039-Fix-for-testsuite-failure.patch | 258 ++++++++++++++++++ .../gcc/gcc-cross-canadian_8.1.bb | 5 + .../gcc/gcc-cross-initial_8.1.bb | 2 + meta/recipes-devtools/gcc/gcc-cross_8.1.bb | 3 + .../gcc/gcc-crosssdk-initial_8.1.bb | 3 + meta/recipes-devtools/gcc/gcc-crosssdk_8.1.bb | 2 + meta/recipes-devtools/gcc/gcc-runtime_8.1.bb | 7 + .../gcc/gcc-sanitizers_8.1.bb | 2 + meta/recipes-devtools/gcc/gcc-source_8.1.bb | 4 + meta/recipes-devtools/gcc/gcc_8.1.bb | 10 + .../gcc/libgcc-initial_8.1.bb | 2 + meta/recipes-devtools/gcc/libgcc_8.1.bb | 2 + meta/recipes-devtools/gcc/libgfortran_8.1.bb | 3 + 52 files changed, 3320 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc-8.1.inc create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0002-c99-snprintf.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0003-gcc-poison-system-directories.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0004-gcc-poison-dir-extend.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0006-64-bit-multilib-hack.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0007-optional-libstdc.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0008-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0009-COLLECT_GCC_OPTIONS.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0010-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0011-fortran-cross-compile-hack.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0012-cpp-honor-sysroot.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0013-MIPS64-Default-to-N64-ABI.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0014-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0015-gcc-Fix-argument-list-too-long-error.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0016-Disable-sdt.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0017-libtool.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0018-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0019-Use-the-multilib-config-files-from-B-instead-of-usin.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0020-Avoid-using-libdir-from-.la-which-usually-points-to-.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0021-export-CPP.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0022-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0023-Ensure-target-gcc-headers-can-be-included.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0024-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0025-Don-t-search-host-directory-during-relink-if-inst_pr.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0026-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0027-aarch64-Add-support-for-musl-ldso.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0028-libcc1-fix-libcc1-s-install-path-and-rpath.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0029-handle-sysroot-support-for-nativesdk-gcc.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0030-Search-target-sysroot-gcc-version-specific-dirs-with.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0031-Fix-various-_FOR_BUILD-and-related-variables.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0032-nios2-Define-MUSL_DYNAMIC_LINKER.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0033-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0034-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0035-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0036-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0037-sync-gcc-stddef.h-with-musl.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0038-fix-segmentation-fault-in-precompiled-header-generat.patch create mode 100644 meta/recipes-devtools/gcc/gcc-8.1/0039-Fix-for-testsuite-failure.patch create mode 100644 meta/recipes-devtools/gcc/gcc-cross-canadian_8.1.bb create mode 100644 meta/recipes-devtools/gcc/gcc-cross-initial_8.1.bb create mode 100644 meta/recipes-devtools/gcc/gcc-cross_8.1.bb create mode 100644 meta/recipes-devtools/gcc/gcc-crosssdk-initial_8.1.bb create mode 100644 meta/recipes-devtools/gcc/gcc-crosssdk_8.1.bb create mode 100644 meta/recipes-devtools/gcc/gcc-runtime_8.1.bb create mode 100644 meta/recipes-devtools/gcc/gcc-sanitizers_8.1.bb create mode 100644 meta/recipes-devtools/gcc/gcc-source_8.1.bb create mode 100644 meta/recipes-devtools/gcc/gcc_8.1.bb create mode 100644 meta/recipes-devtools/gcc/libgcc-initial_8.1.bb create mode 100644 meta/recipes-devtools/gcc/libgcc_8.1.bb create mode 100644 meta/recipes-devtools/gcc/libgfortran_8.1.bb
meta/recipes-devtools/gcc/gcc-8.1.inc new file +124 -0
@@ -0,0 +1,124 @@ +require gcc-common.inc + +# Third digit in PV should be incremented after a minor release + +PV = "8.1.0" + +# BINV should be incremented to a revision after a minor gcc release + +BINV = "8.1.0" + +FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-8.1:${FILE_DIRNAME}/gcc-8.1/backport:" + +DEPENDS =+ "mpfr gmp libmpc zlib flex-native" +NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native" + +LICENSE = "GPL-3.0-with-GCC-exception & GPLv3" + +LIC_FILES_CHKSUM = "\ + file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ + file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \ + file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ + file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ + file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \ +" + +#RELEASE = "8.0.1-RC-20180427" +BASEURI ?= "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.xz" +#SRCREV = "f7cf798b73fd1a07098f9a490deec1e2a36e0bed" +#BASEURI ?= "git://github.com/gcc-mirror/gcc;branch=gcc-6-branch;protocol=git" +#BASEURI ?= "http://mirrors.concertpass.com/gcc/snapshots/${RELEASE}/gcc-${RELEASE}.tar.xz" + +SRC_URI = "\ + ${BASEURI} \ + file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \ + file://0002-c99-snprintf.patch \ + file://0003-gcc-poison-system-directories.patch \ + file://0004-gcc-poison-dir-extend.patch \ + file://0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch \ + file://0006-64-bit-multilib-hack.patch \ + file://0007-optional-libstdc.patch \ + file://0008-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch \ + file://0009-COLLECT_GCC_OPTIONS.patch \ + file://0010-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch \ + file://0011-fortran-cross-compile-hack.patch \ + file://0012-cpp-honor-sysroot.patch \ + file://0013-MIPS64-Default-to-N64-ABI.patch \ + file://0014-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch \ + file://0015-gcc-Fix-argument-list-too-long-error.patch \ + file://0016-Disable-sdt.patch \ + file://0017-libtool.patch \ + file://0018-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch \ + file://0019-Use-the-multilib-config-files-from-B-instead-of-usin.patch \ + file://0020-Avoid-using-libdir-from-.la-which-usually-points-to-.patch \ + file://0021-export-CPP.patch \ + file://0022-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch \ + file://0023-Ensure-target-gcc-headers-can-be-included.patch \ + file://0024-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch \ + file://0025-Don-t-search-host-directory-during-relink-if-inst_pr.patch \ + file://0026-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch \ + file://0027-aarch64-Add-support-for-musl-ldso.patch \ + file://0028-libcc1-fix-libcc1-s-install-path-and-rpath.patch \ + file://0029-handle-sysroot-support-for-nativesdk-gcc.patch \ + file://0030-Search-target-sysroot-gcc-version-specific-dirs-with.patch \ + file://0031-Fix-various-_FOR_BUILD-and-related-variables.patch \ + file://0032-nios2-Define-MUSL_DYNAMIC_LINKER.patch \ + file://0033-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch \ + file://0034-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch \ + file://0035-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch \ + file://0036-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch \ + file://0037-sync-gcc-stddef.h-with-musl.patch \ + file://0038-fix-segmentation-fault-in-precompiled-header-generat.patch \ + file://0039-Fix-for-testsuite-failure.patch \ + ${BACKPORTS} \ +" +BACKPORTS = "\ +" +SRC_URI[md5sum] = "65f7c65818dc540b3437605026d329fc" +SRC_URI[sha256sum] = "1d1866f992626e61349a1ccd0b8d5253816222cdc13390dcfaa74b093aa2b153" + +S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}" +#S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/git" +#S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${RELEASE}" +B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}" + +# Language Overrides +FORTRAN = "" +JAVA = "" + +LTO = "--enable-lto" + +EXTRA_OECONF_BASE = "\ + ${LTO} \ + --enable-libssp \ + --enable-libitm \ + --disable-bootstrap \ + --disable-libmudflap \ + --with-system-zlib \ + ${@'--with-linker-hash-style=${LINKER_HASH_STYLE}' if '${LINKER_HASH_STYLE}' else ''} \ + --enable-linker-build-id \ + --with-ppl=no \ + --with-cloog=no \ + --enable-checking=release \ + --enable-cheaders=c_global \ + --without-isl \ +" + +EXTRA_OECONF_INITIAL = "\ + --disable-libmudflap \ + --disable-libgomp \ + --disable-libitm \ + --disable-libquadmath \ + --with-system-zlib \ + --disable-lto \ + --disable-plugin \ + --enable-decimal-float=no \ + --without-isl \ + gcc_cv_libc_provides_ssp=yes \ +" + +EXTRA_OECONF_PATHS = "\ + --with-gxx-include-dir=/not/exist{target_includedir}/c++/${BINV} \ + --with-sysroot=/not/exist \ + --with-build-sysroot=${STAGING_DIR_TARGET} \ +"
meta/recipes-devtools/gcc/gcc-8.1/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch new file +42 -0
42 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0002-c99-snprintf.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 5fbfcf247ed6dd01263639daf0c9c3a291e2fd3a Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 08:49:03 +0400 +Subject: [PATCH 02/39] c99-snprintf + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending +--- + libstdc++-v3/include/c_std/cstdio | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libstdc++-v3/include/c_std/cstdio b/libstdc++-v3/include/c_std/cstdio +index 1b9571eaa8d..ad816be4fd1 100644 +--- a/libstdc++-v3/include/c_std/cstdio ++++ b/libstdc++-v3/include/c_std/cstdio +@@ -144,7 +144,7 @@ namespace std + using ::vsprintf; + } // namespace std + +-#if _GLIBCXX_USE_C99_STDIO ++#if _GLIBCXX_USE_C99_STDIO || defined(__UCLIBC__) + + #undef snprintf + #undef vfscanf +-- +2.17.0 +
meta/recipes-devtools/gcc/gcc-8.1/0003-gcc-poison-system-directories.patch new file +192 -0
192 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0004-gcc-poison-dir-extend.patch new file +39 -0
@@ -0,0 +1,39 @@ +From 97370eadcd10da5da529dfb734df56993ce24644 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:00:34 +0400 +Subject: [PATCH 04/39] gcc-poison-dir-extend + +Add /sw/include and /opt/include based on the original +zecke-no-host-includes.patch patch. The original patch checked for +/usr/include, /sw/include and /opt/include and then triggered a failure and +aborted. + +Instead, we add the two missing items to the current scan. If the user +wants this to be a failure, they can add "-Werror=poison-system-directories". + +Signed-off-by: Mark Hatle <[email protected]> +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending +--- + gcc/incpath.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/gcc/incpath.c b/gcc/incpath.c +index e3b7a21966f..9a457e02dd3 100644 +--- a/gcc/incpath.c ++++ b/gcc/incpath.c +@@ -404,7 +404,9 @@ merge_include_chains (const char *sysroot, cpp_reader *pfile, int verbose) + { + if ((!strncmp (p->name, "/usr/include", 12)) + || (!strncmp (p->name, "/usr/local/include", 18)) +- || (!strncmp (p->name, "/usr/X11R6/include", 18))) ++ || (!strncmp (p->name, "/usr/X11R6/include", 18)) ++ || (!strncmp (p->name, "/sw/include", 11)) ++ || (!strncmp (p->name, "/opt/include", 12))) + warning (OPT_Wpoison_system_directories, + "include location \"%s\" is unsafe for " + "cross-compilation", +-- +2.17.0 +
meta/recipes-devtools/gcc/gcc-8.1/0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch new file +73 -0
73 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0006-64-bit-multilib-hack.patch new file +85 -0
85 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0007-optional-libstdc.patch new file +125 -0
125 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0008-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch new file +59 -0
59 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0009-COLLECT_GCC_OPTIONS.patch new file +38 -0
@@ -0,0 +1,38 @@ +From e19d25847f08eeb5ef26a031fa5eff732bfd0d43 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:16:28 +0400 +Subject: [PATCH 09/39] COLLECT_GCC_OPTIONS + +This patch adds --sysroot into COLLECT_GCC_OPTIONS which is used to +invoke collect2. + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending +--- + gcc/gcc.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/gcc/gcc.c b/gcc/gcc.c +index 8cd27a5dad5..d355d65583a 100644 +--- a/gcc/gcc.c ++++ b/gcc/gcc.c +@@ -4677,6 +4677,15 @@ set_collect_gcc_options (void) + sizeof ("COLLECT_GCC_OPTIONS=") - 1); + + first_time = TRUE; ++#ifdef HAVE_LD_SYSROOT ++ if (target_system_root_changed && target_system_root) ++ { ++ obstack_grow (&collect_obstack, "'--sysroot=", sizeof("'--sysroot=")-1); ++ obstack_grow (&collect_obstack, target_system_root,strlen(target_system_root)); ++ obstack_grow (&collect_obstack, "'", 1); ++ first_time = FALSE; ++ } ++#endif + for (i = 0; (int) i < n_switches; i++) + { + const char *const *args; +-- +2.17.0 +
meta/recipes-devtools/gcc/gcc-8.1/0010-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch new file +96 -0
96 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0011-fortran-cross-compile-hack.patch new file +46 -0
46 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0012-cpp-honor-sysroot.patch new file +54 -0
54 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0013-MIPS64-Default-to-N64-ABI.patch new file +57 -0
57 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0014-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch new file +234 -0
234 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0015-gcc-Fix-argument-list-too-long-error.patch new file +40 -0
@@ -0,0 +1,40 @@ +From 2e75a14cd60227e036790184f0eb400abc3c870b Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:26:37 +0400 +Subject: [PATCH 15/39] gcc: Fix argument list too long error. + +There would be an "Argument list too long" error when the +build directory is longer than 200, this is caused by: + +headers=`echo $(PLUGIN_HEADERS) | tr ' ' '\012' | sort -u` + +The PLUGIN_HEADERS is too long before sort, so the "echo" can't handle +it, use the $(sort list) of GNU make which can handle the too long list +would fix the problem, the header would be short enough after sorted. +The "tr ' ' '\012'" was used for translating the space to "\n", the +$(sort list) doesn't need this. + +Signed-off-by: Robert Yang <[email protected]> +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending +--- + gcc/Makefile.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/Makefile.in b/gcc/Makefile.in +index 1367136bfac..71a8275c39f 100644 +--- a/gcc/Makefile.in ++++ b/gcc/Makefile.in +@@ -3538,7 +3538,7 @@ install-plugin: installdirs lang.install-plugin s-header-vars install-gengtype + # We keep the directory structure for files in config or c-family and .def + # files. All other files are flattened to a single directory. + $(mkinstalldirs) $(DESTDIR)$(plugin_includedir) +- headers=`echo $(PLUGIN_HEADERS) $$(cd $(srcdir); echo *.h *.def) | tr ' ' '\012' | sort -u`; \ ++ headers="$(sort $(PLUGIN_HEADERS) $$(cd $(srcdir); echo *.h *.def))"; \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`; \ + for file in $$headers; do \ + if [ -f $$file ] ; then \ +-- +2.17.0 +
meta/recipes-devtools/gcc/gcc-8.1/0016-Disable-sdt.patch new file +113 -0
113 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0017-libtool.patch new file +42 -0
42 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0018-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch new file +43 -0
43 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0019-Use-the-multilib-config-files-from-B-instead-of-usin.patch new file +102 -0
102 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0020-Avoid-using-libdir-from-.la-which-usually-points-to-.patch new file +31 -0
@@ -0,0 +1,31 @@ +From a7266111a5ba2d146c979e86ff84f6b807ca5fdc Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 20 Feb 2015 09:39:38 +0000 +Subject: [PATCH 20/39] Avoid using libdir from .la which usually points to a + host path + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Jonathan Liu <[email protected]> +Signed-off-by: Khem Raj <[email protected]> +--- + ltmain.sh | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/ltmain.sh b/ltmain.sh +index 0121fba707f..52bdbdb5f9c 100644 +--- a/ltmain.sh ++++ b/ltmain.sh +@@ -5628,6 +5628,9 @@ func_mode_link () + absdir="$abs_ladir" + libdir="$abs_ladir" + else ++ # Instead of using libdir from .la which usually points to a host path, ++ # use the path the .la is contained in. ++ libdir="$abs_ladir" + dir="$libdir" + absdir="$libdir" + fi +-- +2.17.0 +
meta/recipes-devtools/gcc/gcc-8.1/0021-export-CPP.patch new file +53 -0
53 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0022-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch new file +42 -0
42 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0023-Ensure-target-gcc-headers-can-be-included.patch new file +98 -0
98 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0024-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch new file +54 -0
54 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0025-Don-t-search-host-directory-during-relink-if-inst_pr.patch new file +38 -0
@@ -0,0 +1,38 @@ +From fd96c9b35c592f1bdd32bc5ae669157473e44063 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 3 Mar 2015 08:21:19 +0000 +Subject: [PATCH 25/39] Don't search host directory during "relink" if + $inst_prefix is provided + +http://lists.gnu.org/archive/html/libtool-patches/2011-01/msg00026.html + +Upstream-Status: Submitted + +Signed-off-by: Khem Raj <[email protected]> +--- + ltmain.sh | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/ltmain.sh b/ltmain.sh +index 52bdbdb5f9c..82bcec39f05 100644 +--- a/ltmain.sh ++++ b/ltmain.sh +@@ -6004,12 +6004,13 @@ func_mode_link () + fi + else + # We cannot seem to hardcode it, guess we'll fake it. ++ # Default if $libdir is not relative to the prefix: + add_dir="-L$libdir" +- # Try looking first in the location we're being installed to. ++ + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) +- add_dir="$add_dir -L$inst_prefix_dir$libdir" ++ add_dir="-L$inst_prefix_dir$libdir" + ;; + esac + fi +-- +2.17.0 +
meta/recipes-devtools/gcc/gcc-8.1/0026-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch new file +29 -0
@@ -0,0 +1,29 @@ +From c2e400afe8c514357859fca88af4d3e1fcbfe2ff Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 28 Apr 2015 23:15:27 -0700 +Subject: [PATCH 26/39] Use SYSTEMLIBS_DIR replacement instead of hardcoding + base_libdir + +Signed-off-by: Khem Raj <[email protected]> +--- +Upstream-Status: Pending + + gcc/config/aarch64/aarch64-linux.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h +index bf1327e98cc..64436183bc8 100644 +--- a/gcc/config/aarch64/aarch64-linux.h ++++ b/gcc/config/aarch64/aarch64-linux.h +@@ -21,7 +21,7 @@ + #ifndef GCC_AARCH64_LINUX_H + #define GCC_AARCH64_LINUX_H + +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" ++#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" + + #undef MUSL_DYNAMIC_LINKER + #define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" +-- +2.17.0 +
meta/recipes-devtools/gcc/gcc-8.1/0027-aarch64-Add-support-for-musl-ldso.patch new file +28 -0
@@ -0,0 +1,28 @@ +From a2cc175769fd8255750eaecae64e3d1f9c38d48f Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 28 Apr 2015 23:18:39 -0700 +Subject: [PATCH 27/39] aarch64: Add support for musl ldso + +Signed-off-by: Khem Raj <[email protected]> +--- +Upstream-Status: Pending + + gcc/config/aarch64/aarch64-linux.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h +index 64436183bc8..ba156676026 100644 +--- a/gcc/config/aarch64/aarch64-linux.h ++++ b/gcc/config/aarch64/aarch64-linux.h +@@ -24,7 +24,7 @@ + #define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" + + #undef MUSL_DYNAMIC_LINKER +-#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" ++#define MUSL_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" + + #undef ASAN_CC1_SPEC + #define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}" +-- +2.17.0 +
meta/recipes-devtools/gcc/gcc-8.1/0028-libcc1-fix-libcc1-s-install-path-and-rpath.patch new file +54 -0
54 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0029-handle-sysroot-support-for-nativesdk-gcc.patch new file +213 -0
213 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0030-Search-target-sysroot-gcc-version-specific-dirs-with.patch new file +102 -0
102 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0031-Fix-various-_FOR_BUILD-and-related-variables.patch new file +137 -0
137 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0032-nios2-Define-MUSL_DYNAMIC_LINKER.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 99f3e3b427996ac579d95e68440a0bd7af7ef0fc Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 2 Feb 2016 10:26:10 -0800 +Subject: [PATCH 32/39] nios2: Define MUSL_DYNAMIC_LINKER + +Signed-off-by: Marek Vasut <[email protected]> +Signed-off-by: Khem Raj <[email protected]> +--- +Upstream-Status: Pending + + gcc/config/nios2/linux.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/gcc/config/nios2/linux.h b/gcc/config/nios2/linux.h +index 4729105626d..36181eb7b85 100644 +--- a/gcc/config/nios2/linux.h ++++ b/gcc/config/nios2/linux.h +@@ -30,6 +30,7 @@ + #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" + + #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-nios2.so.1" ++#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-nios2.so.1" + + #undef LINK_SPEC + #define LINK_SPEC LINK_SPEC_ENDIAN \ +-- +2.17.0 +
meta/recipes-devtools/gcc/gcc-8.1/0033-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch new file +87 -0
87 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0034-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch new file +125 -0
125 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0035-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 775c7fafcbfebed2d4bd8a6a011f18f70f3b59d3 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 4 May 2016 21:11:34 -0700 +Subject: [PATCH 35/39] Link libgcc using LDFLAGS, not just SHLIB_LDFLAGS + +Upstream-Status: Pending + +Signed-off-by: Christopher Larson <[email protected]> +Signed-off-by: Khem Raj <[email protected]> +--- + libgcc/config/t-slibgcc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libgcc/config/t-slibgcc b/libgcc/config/t-slibgcc +index 7e60b621a2d..ea22ede3361 100644 +--- a/libgcc/config/t-slibgcc ++++ b/libgcc/config/t-slibgcc +@@ -32,7 +32,7 @@ SHLIB_INSTALL_SOLINK = $(LN_S) $(SHLIB_SONAME) \ + $(DESTDIR)$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK) + + SHLIB_LINK = $(CC) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ +- $(SHLIB_LDFLAGS) \ ++ $(LDFLAGS) $(SHLIB_LDFLAGS) \ + -o $(SHLIB_DIR)/$(SHLIB_SONAME).tmp @multilib_flags@ \ + $(SHLIB_OBJS) $(SHLIB_LC) && \ + rm -f $(SHLIB_DIR)/$(SHLIB_SOLINK) && \ +-- +2.17.0 +
meta/recipes-devtools/gcc/gcc-8.1/0036-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch new file +86 -0
86 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0037-sync-gcc-stddef.h-with-musl.patch new file +91 -0
91 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0038-fix-segmentation-fault-in-precompiled-header-generat.patch new file +60 -0
43 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-8.1/0039-Fix-for-testsuite-failure.patch new file +258 -0
258 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc-cross-canadian_8.1.bb new file +5 -0
Lines of this file are not shown. View the raw message.
meta/recipes-devtools/gcc/gcc-cross-initial_8.1.bb new file +2 -0
Lines of this file are not shown. View the raw message.
meta/recipes-devtools/gcc/gcc-cross_8.1.bb new file +3 -0
Lines of this file are not shown. View the raw message.
meta/recipes-devtools/gcc/gcc-crosssdk-initial_8.1.bb new file +3 -0
Lines of this file are not shown. View the raw message.
meta/recipes-devtools/gcc/gcc-crosssdk_8.1.bb new file +2 -0
Lines of this file are not shown. View the raw message.
meta/recipes-devtools/gcc/gcc-runtime_8.1.bb new file +7 -0
Lines of this file are not shown. View the raw message.
meta/recipes-devtools/gcc/gcc-sanitizers_8.1.bb new file +2 -0
Lines of this file are not shown. View the raw message.
meta/recipes-devtools/gcc/gcc-source_8.1.bb new file +4 -0
Lines of this file are not shown. View the raw message.
meta/recipes-devtools/gcc/gcc_8.1.bb new file +10 -0
Lines of this file are not shown. View the raw message.
meta/recipes-devtools/gcc/libgcc-initial_8.1.bb new file +2 -0
Lines of this file are not shown. View the raw message.
meta/recipes-devtools/gcc/libgcc_8.1.bb new file +2 -0
Lines of this file are not shown. View the raw message.
meta/recipes-devtools/gcc/libgfortran_8.1.bb new file +3 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.17.0
Part of the diff is not shown here. View the raw message.
PATCH 5/6 gcc-8: Disable float128 for ppc/musl
In reply to Khem Raj--- meta/recipes-devtools/gcc/gcc-common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/gcc/gcc-common.inc +1 -1
@@ -46,7 +46,7 @@ def get_long_double_setting(bb, d): if d.getVar('TRANSLATED_TARGET_ARCH') in [ 'powerpc', 'powerpc64' ] and d.getVar('TCLIBC') in [ 'glibc' ]: return "--with-long-double-128" else: - return "--without-long-double-128" + return "--without-long-double-128 libgcc_cv_powerpc_float128=no" return "" def get_gcc_multiarch_setting(bb, d):
Signature · 1 line
2.17.0
PATCH 6/6 tcmode-default: Switch to gcc 8.0
In reply to Khem Raj--- meta/conf/distro/include/tcmode-default.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/distro/include/tcmode-default.inc +1 -1
@@ -22,7 +22,7 @@ PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-initial = "${TCLIBC}-initial" PREFERRED_PROVIDER_virtual/nativesdk-${SDK_PREFIX}libc-initial ?= "nativesdk-glibc-initial" PREFERRED_PROVIDER_virtual/gettext ??= "gettext" -GCCVERSION ?= "7.%" +GCCVERSION ?= "8.%" SDKGCCVERSION ?= "${GCCVERSION}" BINUVERSION ?= "2.30%" GDBVERSION ?= "8.1%"
Signature · 1 line
2.17.0
Re: [PATCH 1/6] gcc-runtime: Remove -mcpu=cortex-a7 when building for -march=armv7ve
In reply to Khem RajQuoted 2 lines · Khem Raj
This fixes conflicts like
cc1: error: switch -mcpu=cortex-a7 conflicts with -march=armv7-a switch [-Werror]
Ross, this patch still seems to be living on in mut, even after the latest rebase. It should be dropped as the latest gcc8 patchset contained a better fix.
Quoted 27 lines
Signed-off-by Khem Raj <[email protected]>Signed-off-by Ross Burton <[email protected]>--- meta/recipes-devtools/gcc/gcc-runtime.inc | 2 ++ 1 file changed, 2 insertions(+)meta/recipes-devtools/gcc/gcc-runtime.inc +2
-1@@ -14,6 +14,8 @@ EXTRA_OECONF_PATHS = "\ --with-build-sysroot=${STAGING_DIR_TARGET} \ " +TUNE_FEATURES_remove_armv7ve = "cortexa7" + EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu" RUNTIMELIBITM = "libitm" --2.17.0
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core