summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.2.inc115
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.2/0034-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch465
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.2/0041-ARC-fix-spec-gen.patch44
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3.inc111
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch)14
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0002-gcc-poison-system-directories.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0003-gcc-poison-system-directories.patch)39
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch)10
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0004-64-bit-multilib-hack.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0006-64-bit-multilib-hack.patch)6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0005-optional-libstdc.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0007-optional-libstdc.patch)18
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0008-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch)10
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0007-COLLECT_GCC_OPTIONS.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0009-COLLECT_GCC_OPTIONS.patch)6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0008-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0010-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch)10
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0009-fortran-cross-compile-hack.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0011-fortran-cross-compile-hack.patch)6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0010-cpp-honor-sysroot.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0012-cpp-honor-sysroot.patch)6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0011-MIPS64-Default-to-N64-ABI.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0013-MIPS64-Default-to-N64-ABI.patch)10
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0012-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0014-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch)28
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0013-gcc-Fix-argument-list-too-long-error.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0015-gcc-Fix-argument-list-too-long-error.patch)6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0014-Disable-sdt.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0016-Disable-sdt.patch)16
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0015-libtool.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0017-libtool.patch)6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0016-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0018-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch)6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0017-Use-the-multilib-config-files-from-B-instead-of-usin.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0019-Use-the-multilib-config-files-from-B-instead-of-usin.patch)10
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0018-Avoid-using-libdir-from-.la-which-usually-points-to-.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0020-Avoid-using-libdir-from-.la-which-usually-points-to-.patch)6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0019-export-CPP.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0021-export-CPP.patch)8
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0020-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0022-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch)6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0021-Ensure-target-gcc-headers-can-be-included.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0023-Ensure-target-gcc-headers-can-be-included.patch)42
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0022-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0024-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch)6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0023-Don-t-search-host-directory-during-relink-if-inst_pr.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0025-Don-t-search-host-directory-during-relink-if-inst_pr.patch)6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0024-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0026-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch)11
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0025-aarch64-Add-support-for-musl-ldso.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0027-aarch64-Add-support-for-musl-ldso.patch)10
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0026-libcc1-fix-libcc1-s-install-path-and-rpath.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0028-libcc1-fix-libcc1-s-install-path-and-rpath.patch)6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0027-handle-sysroot-support-for-nativesdk-gcc.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0029-handle-sysroot-support-for-nativesdk-gcc.patch)6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0028-Search-target-sysroot-gcc-version-specific-dirs-with.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0030-Search-target-sysroot-gcc-version-specific-dirs-with.patch)6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0029-Fix-various-_FOR_BUILD-and-related-variables.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0031-Fix-various-_FOR_BUILD-and-related-variables.patch)16
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0030-nios2-Define-MUSL_DYNAMIC_LINKER.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0032-nios2-Define-MUSL_DYNAMIC_LINKER.patch)10
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0031-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0033-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch)10
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0032-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch125
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0033-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0035-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch)6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0034-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0036-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch)19
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0035-sync-gcc-stddef.h-with-musl.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0037-sync-gcc-stddef.h-with-musl.patch)10
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0036-fix-segmentation-fault-in-precompiled-header-generat.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0038-fix-segmentation-fault-in-precompiled-header-generat.patch)6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0037-Fix-for-testsuite-failure.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0039-Fix-for-testsuite-failure.patch)6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0038-Re-introduce-spe-commandline-options.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0040-Re-introduce-spe-commandline-options.patch)6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0039-riscv-Disable-multilib-for-OE.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0043-riscv-Disable-multilib-for-OE.patch)6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.3/0040-powerpc-powerpc64-Add-support-for-musl-ldso.patch (renamed from meta/recipes-devtools/gcc/gcc-8.2/0042-powerpc-powerpc64-Add-support-for-musl-ldso.patch)12
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross-canadian_8.3.bb (renamed from meta/recipes-devtools/gcc/gcc-cross-canadian_8.2.bb)0
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross_8.3.bb (renamed from meta/recipes-devtools/gcc/gcc-cross_8.2.bb)0
-rw-r--r--meta/recipes-devtools/gcc/gcc-crosssdk_8.3.bb (renamed from meta/recipes-devtools/gcc/gcc-crosssdk_8.2.bb)0
-rw-r--r--meta/recipes-devtools/gcc/gcc-runtime_8.3.bb (renamed from meta/recipes-devtools/gcc/gcc-runtime_8.2.bb)0
-rw-r--r--meta/recipes-devtools/gcc/gcc-sanitizers_8.3.bb (renamed from meta/recipes-devtools/gcc/gcc-sanitizers_8.2.bb)0
-rw-r--r--meta/recipes-devtools/gcc/gcc-source_8.3.bb (renamed from meta/recipes-devtools/gcc/gcc-source_8.2.bb)0
-rw-r--r--meta/recipes-devtools/gcc/gcc_8.3.bb (renamed from meta/recipes-devtools/gcc/gcc_8.2.bb)0
-rw-r--r--meta/recipes-devtools/gcc/libgcc-initial_8.3.bb (renamed from meta/recipes-devtools/gcc/libgcc-initial_8.2.bb)0
-rw-r--r--meta/recipes-devtools/gcc/libgcc_8.3.bb (renamed from meta/recipes-devtools/gcc/libgcc_8.2.bb)0
-rw-r--r--meta/recipes-devtools/gcc/libgfortran_8.3.bb (renamed from meta/recipes-devtools/gcc/libgfortran_8.2.bb)0
54 files changed, 464 insertions, 823 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-8.2.inc b/meta/recipes-devtools/gcc/gcc-8.2.inc
deleted file mode 100644
index b21c605e81..0000000000
--- a/meta/recipes-devtools/gcc/gcc-8.2.inc
+++ /dev/null
@@ -1,115 +0,0 @@
1require gcc-common.inc
2
3# Third digit in PV should be incremented after a minor release
4
5PV = "8.2.0"
6
7# BINV should be incremented to a revision after a minor gcc release
8
9BINV = "8.2.0"
10
11FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-8.2:${FILE_DIRNAME}/gcc-8.2/backport:"
12
13DEPENDS =+ "mpfr gmp libmpc zlib flex-native"
14NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native"
15
16LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
17
18LIC_FILES_CHKSUM = "\
19 file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
20 file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \
21 file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \
22 file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
23 file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \
24"
25
26#RELEASE = "8.0.1-RC-20180427"
27BASEURI ?= "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.xz"
28#SRCREV = "f7cf798b73fd1a07098f9a490deec1e2a36e0bed"
29#BASEURI ?= "git://github.com/gcc-mirror/gcc;branch=gcc-6-branch;protocol=git"
30#BASEURI ?= "http://mirrors.concertpass.com/gcc/snapshots/${RELEASE}/gcc-${RELEASE}.tar.xz"
31
32SRC_URI = "\
33 ${BASEURI} \
34 file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \
35 file://0003-gcc-poison-system-directories.patch \
36 file://0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch \
37 file://0006-64-bit-multilib-hack.patch \
38 file://0007-optional-libstdc.patch \
39 file://0008-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch \
40 file://0009-COLLECT_GCC_OPTIONS.patch \
41 file://0010-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch \
42 file://0011-fortran-cross-compile-hack.patch \
43 file://0012-cpp-honor-sysroot.patch \
44 file://0013-MIPS64-Default-to-N64-ABI.patch \
45 file://0014-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch \
46 file://0015-gcc-Fix-argument-list-too-long-error.patch \
47 file://0016-Disable-sdt.patch \
48 file://0017-libtool.patch \
49 file://0018-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch \
50 file://0019-Use-the-multilib-config-files-from-B-instead-of-usin.patch \
51 file://0020-Avoid-using-libdir-from-.la-which-usually-points-to-.patch \
52 file://0021-export-CPP.patch \
53 file://0022-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch \
54 file://0023-Ensure-target-gcc-headers-can-be-included.patch \
55 file://0024-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch \
56 file://0025-Don-t-search-host-directory-during-relink-if-inst_pr.patch \
57 file://0026-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch \
58 file://0027-aarch64-Add-support-for-musl-ldso.patch \
59 file://0028-libcc1-fix-libcc1-s-install-path-and-rpath.patch \
60 file://0029-handle-sysroot-support-for-nativesdk-gcc.patch \
61 file://0030-Search-target-sysroot-gcc-version-specific-dirs-with.patch \
62 file://0031-Fix-various-_FOR_BUILD-and-related-variables.patch \
63 file://0032-nios2-Define-MUSL_DYNAMIC_LINKER.patch \
64 file://0033-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch \
65 file://0034-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch \
66 file://0035-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch \
67 file://0036-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch \
68 file://0037-sync-gcc-stddef.h-with-musl.patch \
69 file://0038-fix-segmentation-fault-in-precompiled-header-generat.patch \
70 file://0039-Fix-for-testsuite-failure.patch \
71 file://0040-Re-introduce-spe-commandline-options.patch \
72 file://0041-ARC-fix-spec-gen.patch \
73 file://0042-powerpc-powerpc64-Add-support-for-musl-ldso.patch \
74 file://0043-riscv-Disable-multilib-for-OE.patch \
75 ${BACKPORTS} \
76"
77BACKPORTS = "\
78"
79SRC_URI[md5sum] = "4ab282f414676496483b3e1793d07862"
80SRC_URI[sha256sum] = "196c3c04ba2613f893283977e6011b2345d1cd1af9abeac58e916b1aab3e0080"
81
82S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}"
83#S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/git"
84#S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${RELEASE}"
85B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}"
86
87# Language Overrides
88FORTRAN = ""
89JAVA = ""
90
91LTO = "--enable-lto"
92SSP ?= "--disable-libssp"
93SSP_mingw32 = "--enable-libssp"
94
95EXTRA_OECONF_BASE = "\
96 ${LTO} \
97 ${SSP} \
98 --enable-libitm \
99 --disable-bootstrap \
100 --disable-libmudflap \
101 --with-system-zlib \
102 ${@'--with-linker-hash-style=${LINKER_HASH_STYLE}' if '${LINKER_HASH_STYLE}' else ''} \
103 --enable-linker-build-id \
104 --with-ppl=no \
105 --with-cloog=no \
106 --enable-checking=release \
107 --enable-cheaders=c_global \
108 --without-isl \
109"
110
111EXTRA_OECONF_PATHS = "\
112 --with-gxx-include-dir=/not/exist{target_includedir}/c++/${BINV} \
113 --with-sysroot=/not/exist \
114 --with-build-sysroot=${STAGING_DIR_TARGET} \
115"
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0034-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch b/meta/recipes-devtools/gcc/gcc-8.2/0034-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch
deleted file mode 100644
index 391cda71d7..0000000000
--- a/meta/recipes-devtools/gcc/gcc-8.2/0034-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch
+++ /dev/null
@@ -1,465 +0,0 @@
1From faf35e26740461fe1a1da5433d5a0169a663e3b5 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Apr 2016 20:03:28 +0000
4Subject: [PATCH 34/39] libgcc: Add knob to use ldbl-128 on ppc
5
6musl does not support ldbl 128 so we can not assume
7that linux as a whole supports ldbl-128 bits, instead
8act upon configure option passed to gcc and assume no
9on musl and yes otherwise if no option is passed since
10default behaviour is to assume ldbl128 it does not
11change the defaults
12
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15Upstream-Status: Pending
16
17 libgcc/Makefile.in | 1 +
18 libgcc/config/rs6000/t-linux | 5 ++++-
19 libgcc/configure | 18 ++++++++++++++++++
20 libgcc/configure.ac | 12 ++++++++++++
21 4 files changed, 35 insertions(+), 1 deletion(-)
22 mode change 100644 => 100755 libgcc/configure
23
24diff --git a/libgcc/Makefile.in b/libgcc/Makefile.in
25index dd8cee99fd3..b5f478af382 100644
26--- a/libgcc/Makefile.in
27+++ b/libgcc/Makefile.in
28@@ -48,6 +48,7 @@ unwind_header = @unwind_header@
29 md_unwind_header = @md_unwind_header@
30 sfp_machine_header = @sfp_machine_header@
31 thread_header = @thread_header@
32+with_ldbl128 = @with_ldbl128@
33
34 host_noncanonical = @host_noncanonical@
35 real_host_noncanonical = @real_host_noncanonical@
36diff --git a/libgcc/config/rs6000/t-linux b/libgcc/config/rs6000/t-linux
37index 4f6d4c4a4d2..c50dd94a2da 100644
38--- a/libgcc/config/rs6000/t-linux
39+++ b/libgcc/config/rs6000/t-linux
40@@ -1,3 +1,9 @@
41 SHLIB_MAPFILES += $(srcdir)/config/rs6000/libgcc-glibc.ver
42
43-HOST_LIBGCC2_CFLAGS += -mlong-double-128 -mno-minimal-toc
44+ifeq ($(with_ldbl128),yes)
45+HOST_LIBGCC2_CFLAGS += -mlong-double-128
46+else
47+# We do not want to build ibm-ldouble.c.
48+LIB2ADD := $(filter-out %ibm-ldouble.c, $(LIB2ADD))
49+endif
50+HOST_LIBGCC2_CFLAGS += -mno-minimal-toc
51diff --git a/libgcc/config/rs6000/fixtfdi.c b/libgcc/config/rs6000/fixtfdi.c
52--- a/libgcc/config/rs6000/fixtfdi.c 1969-12-31 19:00:00.000000000 -0500
53+++ b/libgcc/config/rs6000/fixtfdi.c 2018-12-12 17:54:50.110755540 -0500
54@@ -0,0 +1,42 @@
55+/* Software floating-point emulation.
56+ Convert a to 64bit signed integer
57+ Copyright (C) 1997-2016 Free Software Foundation, Inc.
58+ This file is part of the GNU C Library.
59+ Contributed by Richard Henderson (rth@cygnus.com) and
60+ Jakub Jelinek (jj@ultra.linux.cz).
61+
62+ The GNU C Library is free software; you can redistribute it and/or
63+ modify it under the terms of the GNU Lesser General Public
64+ License as published by the Free Software Foundation; either
65+ version 2.1 of the License, or (at your option) any later version.
66+
67+ In addition to the permissions in the GNU Lesser General Public
68+ License, the Free Software Foundation gives you unlimited
69+ permission to link the compiled version of this file into
70+ combinations with other programs, and to distribute those
71+ combinations without any restriction coming from the use of this
72+ file. (The Lesser General Public License restrictions do apply in
73+ other respects; for example, they cover modification of the file,
74+ and distribution when not linked into a combine executable.)
75+
76+ The GNU C Library is distributed in the hope that it will be useful,
77+ but WITHOUT ANY WARRANTY; without even the implied warranty of
78+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
79+ Lesser General Public License for more details.
80+
81+ You should have received a copy of the GNU Lesser General Public
82+ License along with the GNU C Library; if not, see
83+ <http://www.gnu.org/licenses/>. */
84+
85+#ifdef _ARCH_PPC64
86+#include "soft-fp.h"
87+#include "quad-float128.h"
88+
89+DItype
90+__fixtfdi (TFtype a)
91+{
92+ if (a < 0)
93+ return - __fixunstfdi (-a);
94+ return __fixunstfdi (a);
95+}
96+#endif
97diff --git a/libgcc/config/rs6000/fixunstfdi.c b/libgcc/config/rs6000/fixunstfdi.c
98--- a/libgcc/config/rs6000/fixunstfdi.c 1969-12-31 19:00:00.000000000 -0500
99+++ b/libgcc/config/rs6000/fixunstfdi.c 2018-12-12 17:56:06.141654537 -0500
100@@ -0,0 +1,58 @@
101+/* Software floating-point emulation.
102+ Convert a to 64bit unsigned integer
103+ Copyright (C) 1997-2016 Free Software Foundation, Inc.
104+ This file is part of the GNU C Library.
105+ Contributed by Richard Henderson (rth@cygnus.com) and
106+ Jakub Jelinek (jj@ultra.linux.cz).
107+
108+ The GNU C Library is free software; you can redistribute it and/or
109+ modify it under the terms of the GNU Lesser General Public
110+ License as published by the Free Software Foundation; either
111+ version 2.1 of the License, or (at your option) any later version.
112+
113+ In addition to the permissions in the GNU Lesser General Public
114+ License, the Free Software Foundation gives you unlimited
115+ permission to link the compiled version of this file into
116+ combinations with other programs, and to distribute those
117+ combinations without any restriction coming from the use of this
118+ file. (The Lesser General Public License restrictions do apply in
119+ other respects; for example, they cover modification of the file,
120+ and distribution when not linked into a combine executable.)
121+
122+ The GNU C Library is distributed in the hope that it will be useful,
123+ but WITHOUT ANY WARRANTY; without even the implied warranty of
124+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
125+ Lesser General Public License for more details.
126+
127+ You should have received a copy of the GNU Lesser General Public
128+ License along with the GNU C Library; if not, see
129+ <http://www.gnu.org/licenses/>. */
130+
131+#ifdef _ARCH_PPC64
132+#include "soft-fp.h"
133+#include "quad-float128.h"
134+
135+DItype
136+__fixunstfdi (TFtype a)
137+{
138+ if (a < 0)
139+ return 0;
140+
141+ /* Compute high word of result, as a flonum. */
142+ const TFtype b = (a / (((UDItype) 1) << (sizeof (SItype) * 8)));
143+ /* Convert that to fixed (but not to DItype!),
144+ and shift it into the high word. */
145+ UDItype v = (USItype) b;
146+ v <<= (sizeof (SItype) * 8);
147+ /* Remove high part from the TFtype, leaving the low part as flonum. */
148+ a -= (TFtype) v;
149+ /* Convert that to fixed (but not to DItype!) and add it in.
150+ Sometimes A comes out negative. This is significant, since
151+ A has more bits than a long int does. */
152+ if (a < 0)
153+ v -= (USItype) (-a);
154+ else
155+ v += (USItype) a;
156+ return v;
157+}
158+#endif
159diff --git a/libgcc/config/rs6000/floatditf.c b/libgcc/config/rs6000/floatditf.c
160--- a/libgcc/config/rs6000/floatditf.c 1969-12-31 19:00:00.000000000 -0500
161+++ b/libgcc/config/rs6000/floatditf.c 2018-12-12 17:57:55.852953553 -0500
162@@ -0,0 +1,47 @@
163+/* Software floating-point emulation.
164+ Convert a 64bit signed integer to IEEE quad
165+ Copyright (C) 1997-2016 Free Software Foundation, Inc.
166+ This file is part of the GNU C Library.
167+ Contributed by Richard Henderson (rth@cygnus.com) and
168+ Jakub Jelinek (jj@ultra.linux.cz).
169+
170+ The GNU C Library is free software; you can redistribute it and/or
171+ modify it under the terms of the GNU Lesser General Public
172+ License as published by the Free Software Foundation; either
173+ version 2.1 of the License, or (at your option) any later version.
174+
175+ In addition to the permissions in the GNU Lesser General Public
176+ License, the Free Software Foundation gives you unlimited
177+ permission to link the compiled version of this file into
178+ combinations with other programs, and to distribute those
179+ combinations without any restriction coming from the use of this
180+ file. (The Lesser General Public License restrictions do apply in
181+ other respects; for example, they cover modification of the file,
182+ and distribution when not linked into a combine executable.)
183+
184+ The GNU C Library is distributed in the hope that it will be useful,
185+ but WITHOUT ANY WARRANTY; without even the implied warranty of
186+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
187+ Lesser General Public License for more details.
188+
189+ You should have received a copy of the GNU Lesser General Public
190+ License along with the GNU C Library; if not, see
191+ <http://www.gnu.org/licenses/>. */
192+
193+#ifdef _ARCH_PPC64
194+#include "soft-fp.h"
195+#include "double.h"
196+#include "quad-float128.h"
197+
198+TFtype
199+__floatditf (DItype u)
200+{
201+ DFtype dh, dl;
202+
203+ dh = (SItype) (u >> (sizeof (SItype) * 8));
204+ dh *= 2.0 * (((UDItype) 1) << ((sizeof (SItype) * 8) - 1));
205+ dl = (USItype) (u & ((((UDItype) 1) << (sizeof (SItype) * 8)) - 1));
206+
207+ return (TFtype) dh + (TFtype) dl;
208+}
209+#endif
210diff --git a/libgcc/config/rs6000/floatunditf.c b/libgcc/config/rs6000/floatunditf.c
211--- a/libgcc/config/rs6000/floatunditf.c 1969-12-31 19:00:00.000000000 -0500
212+++ b/libgcc/config/rs6000/floatunditf.c 2018-12-12 17:57:15.262473574 -0500
213@@ -0,0 +1,47 @@
214+/* Software floating-point emulation.
215+ Convert a 64bit unsigned integer to IEEE quad
216+ Copyright (C) 1997-2016 Free Software Foundation, Inc.
217+ This file is part of the GNU C Library.
218+ Contributed by Richard Henderson (rth@cygnus.com) and
219+ Jakub Jelinek (jj@ultra.linux.cz).
220+
221+ The GNU C Library is free software; you can redistribute it and/or
222+ modify it under the terms of the GNU Lesser General Public
223+ License as published by the Free Software Foundation; either
224+ version 2.1 of the License, or (at your option) any later version.
225+
226+ In addition to the permissions in the GNU Lesser General Public
227+ License, the Free Software Foundation gives you unlimited
228+ permission to link the compiled version of this file into
229+ combinations with other programs, and to distribute those
230+ combinations without any restriction coming from the use of this
231+ file. (The Lesser General Public License restrictions do apply in
232+ other respects; for example, they cover modification of the file,
233+ and distribution when not linked into a combine executable.)
234+
235+ The GNU C Library is distributed in the hope that it will be useful,
236+ but WITHOUT ANY WARRANTY; without even the implied warranty of
237+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
238+ Lesser General Public License for more details.
239+
240+ You should have received a copy of the GNU Lesser General Public
241+ License along with the GNU C Library; if not, see
242+ <http://www.gnu.org/licenses/>. */
243+
244+#ifdef _ARCH_PPC64
245+#include "soft-fp.h"
246+#include "double.h"
247+#include "quad-float128.h"
248+
249+TFtype
250+__floatunditf (UDItype u)
251+{
252+ DFtype dh, dl;
253+
254+ dh = (USItype) (u >> (sizeof (SItype) * 8));
255+ dh *= 2.0 * (((UDItype) 1) << ((sizeof (SItype) * 8) - 1));
256+ dl = (USItype) (u & ((((UDItype) 1) << (sizeof (SItype) * 8)) - 1));
257+
258+ return (TFtype) dh + (TFtype) dl;
259+}
260+#endif
261diff --git a/libgcc/config/rs6000/ppc64-fp.c b/libgcc/config/rs6000/ppc64-fp.c
262--- a/libgcc/config/rs6000/ppc64-fp.c 2018-12-12 17:53:49.540038500 -0500
263+++ b/libgcc/config/rs6000/ppc64-fp.c 2018-12-12 17:49:51.897235314 -0500
264@@ -25,34 +25,21 @@
265 <http://www.gnu.org/licenses/>. */
266
267 #if defined(__powerpc64__) || defined (__64BIT__) || defined(__ppc64__)
268-#define TMODES
269 #include "fp-bit.h"
270
271-extern DItype __fixtfdi (TFtype);
272 extern DItype __fixdfdi (DFtype);
273 extern DItype __fixsfdi (SFtype);
274 extern USItype __fixunsdfsi (DFtype);
275 extern USItype __fixunssfsi (SFtype);
276-extern TFtype __floatditf (DItype);
277-extern TFtype __floatunditf (UDItype);
278 extern DFtype __floatdidf (DItype);
279 extern DFtype __floatundidf (UDItype);
280 extern SFtype __floatdisf (DItype);
281 extern SFtype __floatundisf (UDItype);
282-extern DItype __fixunstfdi (TFtype);
283
284 static DItype local_fixunssfdi (SFtype);
285 static DItype local_fixunsdfdi (DFtype);
286
287 DItype
288-__fixtfdi (TFtype a)
289-{
290- if (a < 0)
291- return - __fixunstfdi (-a);
292- return __fixunstfdi (a);
293-}
294-
295-DItype
296 __fixdfdi (DFtype a)
297 {
298 if (a < 0)
299@@ -86,30 +73,6 @@
300 return (SItype) a;
301 }
302
303-TFtype
304-__floatditf (DItype u)
305-{
306- DFtype dh, dl;
307-
308- dh = (SItype) (u >> (sizeof (SItype) * 8));
309- dh *= 2.0 * (((UDItype) 1) << ((sizeof (SItype) * 8) - 1));
310- dl = (USItype) (u & ((((UDItype) 1) << (sizeof (SItype) * 8)) - 1));
311-
312- return (TFtype) dh + (TFtype) dl;
313-}
314-
315-TFtype
316-__floatunditf (UDItype u)
317-{
318- DFtype dh, dl;
319-
320- dh = (USItype) (u >> (sizeof (SItype) * 8));
321- dh *= 2.0 * (((UDItype) 1) << ((sizeof (SItype) * 8) - 1));
322- dl = (USItype) (u & ((((UDItype) 1) << (sizeof (SItype) * 8)) - 1));
323-
324- return (TFtype) dh + (TFtype) dl;
325-}
326-
327 DFtype
328 __floatdidf (DItype u)
329 {
330@@ -183,30 +146,6 @@
331 return (SFtype) f;
332 }
333
334-DItype
335-__fixunstfdi (TFtype a)
336-{
337- if (a < 0)
338- return 0;
339-
340- /* Compute high word of result, as a flonum. */
341- const TFtype b = (a / (((UDItype) 1) << (sizeof (SItype) * 8)));
342- /* Convert that to fixed (but not to DItype!),
343- and shift it into the high word. */
344- UDItype v = (USItype) b;
345- v <<= (sizeof (SItype) * 8);
346- /* Remove high part from the TFtype, leaving the low part as flonum. */
347- a -= (TFtype) v;
348- /* Convert that to fixed (but not to DItype!) and add it in.
349- Sometimes A comes out negative. This is significant, since
350- A has more bits than a long int does. */
351- if (a < 0)
352- v -= (USItype) (-a);
353- else
354- v += (USItype) a;
355- return v;
356-}
357-
358 /* This version is needed to prevent recursion; fixunsdfdi in libgcc
359 calls fixdfdi, which in turn calls calls fixunsdfdi. */
360
361diff --git a/libgcc/config/rs6000/quad-float128.h b/libgcc/config/rs6000/quad-float128.h
362--- a/libgcc/config/rs6000/quad-float128.h 2018-12-12 17:53:49.540038500 -0500
363+++ b/libgcc/config/rs6000/quad-float128.h 2018-12-12 17:30:19.423468244 -0500
364@@ -104,6 +104,11 @@
365 extern UTItype_ppc __fixunskfti (TFtype);
366 extern TFtype __floattikf (TItype_ppc);
367 extern TFtype __floatuntikf (UTItype_ppc);
368+
369+extern DItype_ppc __fixtfdi (TFtype);
370+extern DItype_ppc __fixunstfdi (TFtype);
371+extern TFtype __floatditf (DItype_ppc);
372+extern TFtype __floatunditf (UDItype_ppc);
373 #endif
374
375 /* Functions using the ISA 3.0 hardware support. If the code is compiled with
376diff --git a/libgcc/config/rs6000/t-float128 b/libgcc/config/rs6000/t-float128
377--- a/libgcc/config/rs6000/t-float128 2018-12-12 17:53:49.540038500 -0500
378+++ b/libgcc/config/rs6000/t-float128 2018-12-12 17:45:12.233937136 -0500
379@@ -24,6 +24,7 @@
380
381 # New functions for software emulation
382 fp128_ppc_funcs = floattikf floatuntikf fixkfti fixunskfti \
383+ floatditf floatunditf fixtfdi fixunstfdi \
384 extendkftf2-sw trunctfkf2-sw \
385 sfp-exceptions _mulkc3 _divkc3 _powikf2
386
387
388diff --git a/libgcc/configure b/libgcc/configure
389old mode 100644
390new mode 100755
391index b2f3f870844..ed806587c17
392--- a/libgcc/configure
393+++ b/libgcc/configure
394@@ -619,6 +619,7 @@ build_vendor
395 build_cpu
396 build
397 with_aix_soname
398+with_ldbl128
399 enable_vtable_verify
400 enable_shared
401 libgcc_topdir
402@@ -668,6 +669,7 @@ with_cross_host
403 with_ld
404 enable_shared
405 enable_vtable_verify
406+with_long_double_128
407 with_aix_soname
408 enable_version_specific_runtime_libs
409 with_slibdir
410@@ -1329,6 +1331,7 @@ Optional Packages:
411 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
412 --with-cross-host=HOST Configuring with a cross compiler
413 --with-ld arrange to use the specified ld (full pathname)
414+ --with-long-double-128 use 128-bit long double by default
415 --with-aix-soname=aix|svr4|both
416 shared library versioning (aka "SONAME") variant to
417 provide on AIX
418@@ -2213,6 +2216,21 @@ fi
419
420
421
422+# Check whether --with-long-double-128 was given.
423+if test "${with_long_double_128+set}" = set; then :
424+ withval=$with_long_double_128; with_ldbl128="$with_long_double_128"
425+else
426+ case "${host}" in
427+ power*-*-musl*)
428+ with_ldbl128="no";;
429+ *) with_ldbl128="yes";;
430+ esac
431+
432+fi
433+
434+
435+
436+
437 # Check whether --with-aix-soname was given.
438 if test "${with_aix_soname+set}" = set; then :
439 withval=$with_aix_soname; case "${host}:${enable_shared}" in
440diff --git a/libgcc/configure.ac b/libgcc/configure.ac
441index b59aa746afc..42220a263c5 100644
442--- a/libgcc/configure.ac
443+++ b/libgcc/configure.ac
444@@ -78,6 +78,18 @@ AC_ARG_ENABLE(vtable-verify,
445 [enable_vtable_verify=no])
446 AC_SUBST(enable_vtable_verify)
447
448+AC_ARG_WITH(long-double-128,
449+[AS_HELP_STRING([--with-long-double-128],
450+ [use 128-bit long double by default])],
451+ with_ldbl128="$with_long_double_128",
452+[case "${host}" in
453+ power*-*-musl*)
454+ with_ldbl128="no";;
455+ *) with_ldbl128="yes";;
456+ esac
457+])
458+AC_SUBST(with_ldbl128)
459+
460 AC_ARG_WITH(aix-soname,
461 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
462 [shared library versioning (aka "SONAME") variant to provide on AIX])],
463--
4642.17.0
465
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0041-ARC-fix-spec-gen.patch b/meta/recipes-devtools/gcc/gcc-8.2/0041-ARC-fix-spec-gen.patch
deleted file mode 100644
index cbd5e41ab1..0000000000
--- a/meta/recipes-devtools/gcc/gcc-8.2/0041-ARC-fix-spec-gen.patch
+++ /dev/null
@@ -1,44 +0,0 @@
1From 892142379c6b99fe8c3ebdfe0b79e2a435228c1d Mon Sep 17 00:00:00 2001
2From: claziss <claziss@138bc75d-0d04-0410-961f-82ee72b054a4>
3Date: Mon, 17 Sep 2018 08:52:10 +0000
4Subject: [PATCH] [ARC] Update LINK_EH_SPEC linker spec.
5
6With no trailing space in LINK_EH_SPEC linker spec gets generated as:
7------------------------>8---------------------
8%{!r:--build-id} --eh-frame-hdr%{h*} ...
9------------------------>8---------------------
10
11or even worse if hash style is added:
12------------------------>8---------------------
13%{!r:--build-id} --eh-frame-hdr--hash-style=sysv %{h*} ...
14------------------------>8---------------------
15
16Now if that spec is really used by LD then it fails inevitably
17saying that it doesn't know option "--eh-frame-hdr--hash-style=sysv".
18
192018-09-17 Alexey Brodkin <abrodkin@synopsys.com>
20
21 * config/arc/linux.h (LINK_EH_SPEC): Add missing space.
22
23git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264361 138bc75d-0d04-0410-961f-82ee72b054a4
24
25Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
26
27Upstream-Status: Backport[https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=892142379c6b]
28---
29 gcc/config/arc/linux.h | 2 +-
30 1 files changed, 1 insertions(+), 1 deletion(-)
31
32diff --git a/gcc/config/arc/linux.h b/gcc/config/arc/linux.h
33index 96d548eae341..62ebe4de0fc7 100644
34--- a/gcc/config/arc/linux.h
35+++ b/gcc/config/arc/linux.h
36@@ -98,7 +98,7 @@ along with GCC; see the file COPYING3. If not see
37 Signalize that because we have fde-glibc, we don't need all C shared libs
38 linked against -lgcc_s. */
39 #undef LINK_EH_SPEC
40-#define LINK_EH_SPEC "--eh-frame-hdr"
41+#define LINK_EH_SPEC "--eh-frame-hdr "
42 #endif
43
44 #undef SUBTARGET_CPP_SPEC
diff --git a/meta/recipes-devtools/gcc/gcc-8.3.inc b/meta/recipes-devtools/gcc/gcc-8.3.inc
new file mode 100644
index 0000000000..f7bf257fa6
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-8.3.inc
@@ -0,0 +1,111 @@
1require gcc-common.inc
2
3# Third digit in PV should be incremented after a minor release
4
5PV = "8.3.0"
6
7# BINV should be incremented to a revision after a minor gcc release
8
9BINV = "8.3.0"
10
11FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-8.3:"
12
13DEPENDS =+ "mpfr gmp libmpc zlib flex-native"
14NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native"
15
16LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
17
18LIC_FILES_CHKSUM = "\
19 file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
20 file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \
21 file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \
22 file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
23 file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \
24"
25
26#RELEASE = "8.0.1-RC-20180427"
27BASEURI ?= "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.xz"
28#SRCREV = "f7cf798b73fd1a07098f9a490deec1e2a36e0bed"
29#BASEURI ?= "git://github.com/gcc-mirror/gcc;branch=gcc-6-branch;protocol=git"
30#BASEURI ?= "http://mirrors.concertpass.com/gcc/snapshots/${RELEASE}/gcc-${RELEASE}.tar.xz"
31
32SRC_URI = "\
33 ${BASEURI} \
34 file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \
35 file://0002-gcc-poison-system-directories.patch \
36 file://0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch \
37 file://0004-64-bit-multilib-hack.patch \
38 file://0005-optional-libstdc.patch \
39 file://0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch \
40 file://0007-COLLECT_GCC_OPTIONS.patch \
41 file://0008-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch \
42 file://0009-fortran-cross-compile-hack.patch \
43 file://0010-cpp-honor-sysroot.patch \
44 file://0011-MIPS64-Default-to-N64-ABI.patch \
45 file://0012-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch \
46 file://0013-gcc-Fix-argument-list-too-long-error.patch \
47 file://0014-Disable-sdt.patch \
48 file://0015-libtool.patch \
49 file://0016-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch \
50 file://0017-Use-the-multilib-config-files-from-B-instead-of-usin.patch \
51 file://0018-Avoid-using-libdir-from-.la-which-usually-points-to-.patch \
52 file://0019-export-CPP.patch \
53 file://0020-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch \
54 file://0021-Ensure-target-gcc-headers-can-be-included.patch \
55 file://0022-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch \
56 file://0023-Don-t-search-host-directory-during-relink-if-inst_pr.patch \
57 file://0024-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch \
58 file://0025-aarch64-Add-support-for-musl-ldso.patch \
59 file://0026-libcc1-fix-libcc1-s-install-path-and-rpath.patch \
60 file://0027-handle-sysroot-support-for-nativesdk-gcc.patch \
61 file://0028-Search-target-sysroot-gcc-version-specific-dirs-with.patch \
62 file://0029-Fix-various-_FOR_BUILD-and-related-variables.patch \
63 file://0030-nios2-Define-MUSL_DYNAMIC_LINKER.patch \
64 file://0031-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch \
65 file://0032-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch \
66 file://0033-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch \
67 file://0034-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch \
68 file://0035-sync-gcc-stddef.h-with-musl.patch \
69 file://0036-fix-segmentation-fault-in-precompiled-header-generat.patch \
70 file://0037-Fix-for-testsuite-failure.patch \
71 file://0038-Re-introduce-spe-commandline-options.patch \
72 file://0039-riscv-Disable-multilib-for-OE.patch \
73 file://0040-powerpc-powerpc64-Add-support-for-musl-ldso.patch \
74"
75SRC_URI[md5sum] = "65b210b4bfe7e060051f799e0f994896"
76SRC_URI[sha256sum] = "64baadfe6cc0f4947a84cb12d7f0dfaf45bb58b7e92461639596c21e02d97d2c"
77
78S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}"
79#S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/git"
80#S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${RELEASE}"
81B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}"
82
83# Language Overrides
84FORTRAN = ""
85JAVA = ""
86
87LTO = "--enable-lto"
88SSP ?= "--disable-libssp"
89SSP_mingw32 = "--enable-libssp"
90
91EXTRA_OECONF_BASE = "\
92 ${LTO} \
93 ${SSP} \
94 --enable-libitm \
95 --disable-bootstrap \
96 --disable-libmudflap \
97 --with-system-zlib \
98 ${@'--with-linker-hash-style=${LINKER_HASH_STYLE}' if '${LINKER_HASH_STYLE}' else ''} \
99 --enable-linker-build-id \
100 --with-ppl=no \
101 --with-cloog=no \
102 --enable-checking=release \
103 --enable-cheaders=c_global \
104 --without-isl \
105"
106
107EXTRA_OECONF_PATHS = "\
108 --with-gxx-include-dir=/not/exist{target_includedir}/c++/${BINV} \
109 --with-sysroot=/not/exist \
110 --with-build-sysroot=${STAGING_DIR_TARGET} \
111"
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch b/meta/recipes-devtools/gcc/gcc-8.3/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch
index 423fe28e11..4ad79e44b8 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch
@@ -1,7 +1,7 @@
1From b752fb2b6d6f6da68da5386b96abf0d74cd4bbe6 Mon Sep 17 00:00:00 2001 1From d7b284a9bede9d5059ad7e95a867254bf913c638 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 08:37:11 +0400 3Date: Fri, 29 Mar 2013 08:37:11 +0400
4Subject: [PATCH 01/39] gcc-4.3.1: ARCH_FLAGS_FOR_TARGET 4Subject: [PATCH 01/40] gcc-4.3.1: ARCH_FLAGS_FOR_TARGET
5 5
6Signed-off-by: Khem Raj <raj.khem@gmail.com> 6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 7
@@ -12,10 +12,10 @@ Upstream-Status: Inappropriate [embedded specific]
12 2 files changed, 2 insertions(+), 2 deletions(-) 12 2 files changed, 2 insertions(+), 2 deletions(-)
13 13
14diff --git a/configure b/configure 14diff --git a/configure b/configure
15index 69c99e99cca..517fb70192e 100755 15index 0601395512f..8c5b1e9d561 100755
16--- a/configure 16--- a/configure
17+++ b/configure 17+++ b/configure
18@@ -7511,7 +7511,7 @@ fi 18@@ -7507,7 +7507,7 @@ fi
19 # for target_alias and gcc doesn't manage it consistently. 19 # for target_alias and gcc doesn't manage it consistently.
20 target_configargs="--cache-file=./config.cache ${target_configargs}" 20 target_configargs="--cache-file=./config.cache ${target_configargs}"
21 21
@@ -25,10 +25,10 @@ index 69c99e99cca..517fb70192e 100755
25 *" newlib "*) 25 *" newlib "*)
26 case " $target_configargs " in 26 case " $target_configargs " in
27diff --git a/configure.ac b/configure.ac 27diff --git a/configure.ac b/configure.ac
28index a1edc369a27..f8c254f1fac 100644 28index c3433336523..69c31c65ad7 100644
29--- a/configure.ac 29--- a/configure.ac
30+++ b/configure.ac 30+++ b/configure.ac
31@@ -3100,7 +3100,7 @@ fi 31@@ -3096,7 +3096,7 @@ fi
32 # for target_alias and gcc doesn't manage it consistently. 32 # for target_alias and gcc doesn't manage it consistently.
33 target_configargs="--cache-file=./config.cache ${target_configargs}" 33 target_configargs="--cache-file=./config.cache ${target_configargs}"
34 34
@@ -38,5 +38,5 @@ index a1edc369a27..f8c254f1fac 100644
38 *" newlib "*) 38 *" newlib "*)
39 case " $target_configargs " in 39 case " $target_configargs " in
40-- 40--
412.17.0 412.21.0
42 42
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0003-gcc-poison-system-directories.patch b/meta/recipes-devtools/gcc/gcc-8.3/0002-gcc-poison-system-directories.patch
index 05138976c3..e7ff124666 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0003-gcc-poison-system-directories.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0002-gcc-poison-system-directories.patch
@@ -1,11 +1,20 @@
1From 48c670d2678e0323d88eb72205e039f393cabe05 Mon Sep 17 00:00:00 2001 1From 95ec476dd7726cc9c1bfd6fb23ba3aea8bbf61a4 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 08:59:00 +0400 3Date: Fri, 29 Mar 2013 08:59:00 +0400
4Subject: [PATCH 03/39] gcc: poison-system-directories 4Subject: [PATCH 02/40] gcc: poison-system-directories
5 5
6Add /sw/include and /opt/include based on the original
7zecke-no-host-includes.patch patch. The original patch checked for
8/usr/include, /sw/include and /opt/include and then triggered a failure and
9aborted.
10
11Instead, we add the two missing items to the current scan. If the user
12wants this to be a failure, they can add "-Werror=poison-system-directories".
13
14Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
6Signed-off-by: Khem Raj <raj.khem@gmail.com> 15Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 16
8Upstream-Status: Inappropriate [distribution: codesourcery] 17Upstream-Status: Pending
9--- 18---
10 gcc/common.opt | 4 ++++ 19 gcc/common.opt | 4 ++++
11 gcc/config.in | 6 ++++++ 20 gcc/config.in | 6 ++++++
@@ -13,11 +22,11 @@ Upstream-Status: Inappropriate [distribution: codesourcery]
13 gcc/configure.ac | 10 ++++++++++ 22 gcc/configure.ac | 10 ++++++++++
14 gcc/doc/invoke.texi | 9 +++++++++ 23 gcc/doc/invoke.texi | 9 +++++++++
15 gcc/gcc.c | 2 ++ 24 gcc/gcc.c | 2 ++
16 gcc/incpath.c | 19 +++++++++++++++++++ 25 gcc/incpath.c | 21 +++++++++++++++++++++
17 7 files changed, 66 insertions(+) 26 7 files changed, 68 insertions(+)
18 27
19diff --git a/gcc/common.opt b/gcc/common.opt 28diff --git a/gcc/common.opt b/gcc/common.opt
20index d6ef85928f3..7b29efe3882 100644 29index b52ef0b38c8..0de3f0924cd 100644
21--- a/gcc/common.opt 30--- a/gcc/common.opt
22+++ b/gcc/common.opt 31+++ b/gcc/common.opt
23@@ -679,6 +679,10 @@ Wreturn-local-addr 32@@ -679,6 +679,10 @@ Wreturn-local-addr
@@ -49,7 +58,7 @@ index 5bccb408016..1c784a8276b 100644
49 optimizer and back end) to be checked for dynamic type safety at runtime. 58 optimizer and back end) to be checked for dynamic type safety at runtime.
50 This is quite expensive. */ 59 This is quite expensive. */
51diff --git a/gcc/configure b/gcc/configure 60diff --git a/gcc/configure b/gcc/configure
52index 5c345ce0fd7..cafd05fd150 100755 61index 6121e163259..3901722400c 100755
53--- a/gcc/configure 62--- a/gcc/configure
54+++ b/gcc/configure 63+++ b/gcc/configure
55@@ -953,6 +953,7 @@ with_system_zlib 64@@ -953,6 +953,7 @@ with_system_zlib
@@ -69,7 +78,7 @@ index 5c345ce0fd7..cafd05fd150 100755
69 --enable-plugin enable plugin support 78 --enable-plugin enable plugin support
70 --enable-host-shared build host code as shared libraries 79 --enable-host-shared build host code as shared libraries
71 --disable-libquadmath-support 80 --disable-libquadmath-support
72@@ -29715,6 +29718,19 @@ if test "${enable_version_specific_runtime_libs+set}" = set; then : 81@@ -29701,6 +29704,19 @@ if test "${enable_version_specific_runtime_libs+set}" = set; then :
73 fi 82 fi
74 83
75 84
@@ -90,10 +99,10 @@ index 5c345ce0fd7..cafd05fd150 100755
90 99
91 100
92diff --git a/gcc/configure.ac b/gcc/configure.ac 101diff --git a/gcc/configure.ac b/gcc/configure.ac
93index 65dbf1f2f80..dd5b38195ce 100644 102index b066cc609e1..1b1362f70fe 100644
94--- a/gcc/configure.ac 103--- a/gcc/configure.ac
95+++ b/gcc/configure.ac 104+++ b/gcc/configure.ac
96@@ -6341,6 +6341,16 @@ AC_ARG_ENABLE(version-specific-runtime-libs, 105@@ -6327,6 +6327,16 @@ AC_ARG_ENABLE(version-specific-runtime-libs,
97 [specify that runtime libraries should be 106 [specify that runtime libraries should be
98 installed in a compiler-specific directory])]) 107 installed in a compiler-specific directory])])
99 108
@@ -111,10 +120,10 @@ index 65dbf1f2f80..dd5b38195ce 100644
111 AC_SUBST(subdirs) 120 AC_SUBST(subdirs)
112 AC_SUBST(srcdir) 121 AC_SUBST(srcdir)
113diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi 122diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
114index 255149fcfb8..cb71b60fe3c 100644 123index e5c4e8125aa..fb228631a42 100644
115--- a/gcc/doc/invoke.texi 124--- a/gcc/doc/invoke.texi
116+++ b/gcc/doc/invoke.texi 125+++ b/gcc/doc/invoke.texi
117@@ -303,6 +303,7 @@ Objective-C and Objective-C++ Dialects}. 126@@ -304,6 +304,7 @@ Objective-C and Objective-C++ Dialects}.
118 -Wpacked -Wpacked-bitfield-compat -Wpacked-not-aligned -Wpadded @gol 127 -Wpacked -Wpacked-bitfield-compat -Wpacked-not-aligned -Wpadded @gol
119 -Wparentheses -Wno-pedantic-ms-format @gol 128 -Wparentheses -Wno-pedantic-ms-format @gol
120 -Wplacement-new -Wplacement-new=@var{n} @gol 129 -Wplacement-new -Wplacement-new=@var{n} @gol
@@ -122,7 +131,7 @@ index 255149fcfb8..cb71b60fe3c 100644
122 -Wpointer-arith -Wpointer-compare -Wno-pointer-to-int-cast @gol 131 -Wpointer-arith -Wpointer-compare -Wno-pointer-to-int-cast @gol
123 -Wno-pragmas -Wredundant-decls -Wrestrict -Wno-return-local-addr @gol 132 -Wno-pragmas -Wredundant-decls -Wrestrict -Wno-return-local-addr @gol
124 -Wreturn-type -Wsequence-point -Wshadow -Wno-shadow-ivar @gol 133 -Wreturn-type -Wsequence-point -Wshadow -Wno-shadow-ivar @gol
125@@ -5712,6 +5713,14 @@ made up of data only and thus requires no special treatment. But, for 134@@ -5743,6 +5744,14 @@ made up of data only and thus requires no special treatment. But, for
126 most targets, it is made up of code and thus requires the stack to be 135 most targets, it is made up of code and thus requires the stack to be
127 made executable in order for the program to work properly. 136 made executable in order for the program to work properly.
128 137
@@ -151,7 +160,7 @@ index a716f708259..02b3cd39fc2 100644
151 VTABLE_VERIFICATION_SPEC " " SANITIZER_EARLY_SPEC " %o " CHKP_SPEC " \ 160 VTABLE_VERIFICATION_SPEC " " SANITIZER_EARLY_SPEC " %o " CHKP_SPEC " \
152 %{fopenacc|fopenmp|%:gt(%{ftree-parallelize-loops=*:%*} 1):\ 161 %{fopenacc|fopenmp|%:gt(%{ftree-parallelize-loops=*:%*} 1):\
153diff --git a/gcc/incpath.c b/gcc/incpath.c 162diff --git a/gcc/incpath.c b/gcc/incpath.c
154index b11c6a57939..e3b7a21966f 100644 163index b11c6a57939..9a457e02dd3 100644
155--- a/gcc/incpath.c 164--- a/gcc/incpath.c
156+++ b/gcc/incpath.c 165+++ b/gcc/incpath.c
157@@ -26,6 +26,7 @@ 166@@ -26,6 +26,7 @@
@@ -190,5 +199,5 @@ index b11c6a57939..e3b7a21966f 100644
190 199
191 /* Use given -I paths for #include "..." but not #include <...>, and 200 /* Use given -I paths for #include "..." but not #include <...>, and
192-- 201--
1932.17.0 2022.21.0
194 203
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch b/meta/recipes-devtools/gcc/gcc-8.3/0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch
index 8b1b9769a4..e62deb2e47 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch
@@ -1,7 +1,7 @@
1From ae3fe6e5e50937de6e4223ca90810187372a8cf5 Mon Sep 17 00:00:00 2001 1From 6640d7e39b13d1ef26d249153ab15d510fda3566 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 09:08:31 +0400 3Date: Fri, 29 Mar 2013 09:08:31 +0400
4Subject: [PATCH 05/39] gcc-4.3.3: SYSROOT_CFLAGS_FOR_TARGET 4Subject: [PATCH 03/40] gcc-4.3.3: SYSROOT_CFLAGS_FOR_TARGET
5 5
6Before committing, I noticed that PR/32161 was marked as a dup of PR/32009, but my previous patch did not fix it. 6Before committing, I noticed that PR/32161 was marked as a dup of PR/32009, but my previous patch did not fix it.
7 7
@@ -26,10 +26,10 @@ Upstream-Status: Pending
26 1 file changed, 32 insertions(+) 26 1 file changed, 32 insertions(+)
27 27
28diff --git a/configure b/configure 28diff --git a/configure b/configure
29index 517fb70192e..acd2b97df40 100755 29index 8c5b1e9d561..2d1fc6b94d9 100755
30--- a/configure 30--- a/configure
31+++ b/configure 31+++ b/configure
32@@ -6772,6 +6772,38 @@ fi 32@@ -6768,6 +6768,38 @@ fi
33 33
34 34
35 35
@@ -69,5 +69,5 @@ index 517fb70192e..acd2b97df40 100755
69 # the named directory are copied to $(tooldir)/sys-include. 69 # the named directory are copied to $(tooldir)/sys-include.
70 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then 70 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
71-- 71--
722.17.0 722.21.0
73 73
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0006-64-bit-multilib-hack.patch b/meta/recipes-devtools/gcc/gcc-8.3/0004-64-bit-multilib-hack.patch
index 0dce95c890..371d877594 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0006-64-bit-multilib-hack.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0004-64-bit-multilib-hack.patch
@@ -1,7 +1,7 @@
1From 89af3b7399313b337f06c19cc2d787aa16d27711 Mon Sep 17 00:00:00 2001 1From 1e649d81ca662c4cdf73882ebb8a11f0f19f5baf Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 09:10:06 +0400 3Date: Fri, 29 Mar 2013 09:10:06 +0400
4Subject: [PATCH 06/39] 64-bit multilib hack. 4Subject: [PATCH 04/40] 64-bit multilib hack.
5 5
6GCC has internal multilib handling code but it assumes a very specific rigid directory 6GCC has internal multilib handling code but it assumes a very specific rigid directory
7layout. The build system implementation of multilib layout is very generic and allows 7layout. The build system implementation of multilib layout is very generic and allows
@@ -81,5 +81,5 @@ index 0faa2a02df4..13fd8ca971e 100644
81 rs6000-linux.o: $(srcdir)/config/rs6000/rs6000-linux.c 81 rs6000-linux.o: $(srcdir)/config/rs6000/rs6000-linux.c
82 $(COMPILE) $< 82 $(COMPILE) $<
83-- 83--
842.17.0 842.21.0
85 85
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0007-optional-libstdc.patch b/meta/recipes-devtools/gcc/gcc-8.3/0005-optional-libstdc.patch
index 721ea03fad..f9cf6c2087 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0007-optional-libstdc.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0005-optional-libstdc.patch
@@ -1,7 +1,7 @@
1From fb7df63e9548c29b70601d642a1850fc455f8565 Mon Sep 17 00:00:00 2001 1From b486380dcc4758e856ab6d847eb358d05bd79d64 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 09:12:56 +0400 3Date: Fri, 29 Mar 2013 09:12:56 +0400
4Subject: [PATCH 07/39] optional libstdc 4Subject: [PATCH 05/40] optional libstdc
5 5
6gcc-runtime builds libstdc++ separately from gcc-cross-*. Its configure tests using g++ 6gcc-runtime builds libstdc++ separately from gcc-cross-*. Its configure tests using g++
7will not run correctly since by default the linker will try to link against libstdc++ 7will not run correctly since by default the linker will try to link against libstdc++
@@ -25,10 +25,10 @@ Upstream-Status: Inappropriate [embedded specific]
25 4 files changed, 37 insertions(+), 1 deletion(-) 25 4 files changed, 37 insertions(+), 1 deletion(-)
26 26
27diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt 27diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
28index 5013501b232..6312f2c8f90 100644 28index f591b39be5a..2955fcea867 100644
29--- a/gcc/c-family/c.opt 29--- a/gcc/c-family/c.opt
30+++ b/gcc/c-family/c.opt 30+++ b/gcc/c-family/c.opt
31@@ -1900,6 +1900,10 @@ nostdinc++ 31@@ -1901,6 +1901,10 @@ nostdinc++
32 C++ ObjC++ 32 C++ ObjC++
33 Do not search standard system include directories for C++. 33 Do not search standard system include directories for C++.
34 34
@@ -52,10 +52,10 @@ index 443a1746da3..e9b51be62ef 100644
52 library = -1; 52 library = -1;
53 break; 53 break;
54diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi 54diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
55index cb71b60fe3c..b0d481e3a30 100644 55index fb228631a42..310ba8109ed 100644
56--- a/gcc/doc/invoke.texi 56--- a/gcc/doc/invoke.texi
57+++ b/gcc/doc/invoke.texi 57+++ b/gcc/doc/invoke.texi
58@@ -211,6 +211,9 @@ in the following sections. 58@@ -212,6 +212,9 @@ in the following sections.
59 -fno-weak -nostdinc++ @gol 59 -fno-weak -nostdinc++ @gol
60 -fvisibility-inlines-hidden @gol 60 -fvisibility-inlines-hidden @gol
61 -fvisibility-ms-compat @gol 61 -fvisibility-ms-compat @gol
@@ -65,7 +65,7 @@ index cb71b60fe3c..b0d481e3a30 100644
65 -fext-numeric-literals @gol 65 -fext-numeric-literals @gol
66 -Wabi=@var{n} -Wabi-tag -Wconversion-null -Wctor-dtor-privacy @gol 66 -Wabi=@var{n} -Wabi-tag -Wconversion-null -Wctor-dtor-privacy @gol
67 -Wdelete-non-virtual-dtor -Wliteral-suffix -Wmultiple-inheritance @gol 67 -Wdelete-non-virtual-dtor -Wliteral-suffix -Wmultiple-inheritance @gol
68@@ -509,7 +512,7 @@ Objective-C and Objective-C++ Dialects}. 68@@ -510,7 +513,7 @@ Objective-C and Objective-C++ Dialects}.
69 -s -static -static-pie -static-libgcc -static-libstdc++ @gol 69 -s -static -static-pie -static-libgcc -static-libstdc++ @gol
70 -static-libasan -static-libtsan -static-liblsan -static-libubsan @gol 70 -static-libasan -static-libtsan -static-liblsan -static-libubsan @gol
71 -static-libmpx -static-libmpxwrappers @gol 71 -static-libmpx -static-libmpxwrappers @gol
@@ -74,7 +74,7 @@ index cb71b60fe3c..b0d481e3a30 100644
74 -T @var{script} -Wl,@var{option} -Xlinker @var{option} @gol 74 -T @var{script} -Wl,@var{option} -Xlinker @var{option} @gol
75 -u @var{symbol} -z @var{keyword}} 75 -u @var{symbol} -z @var{keyword}}
76 76
77@@ -12331,6 +12334,33 @@ library subroutines. 77@@ -12359,6 +12362,33 @@ library subroutines.
78 constructors are called; @pxref{Collect2,,@code{collect2}, gccint, 78 constructors are called; @pxref{Collect2,,@code{collect2}, gccint,
79 GNU Compiler Collection (GCC) Internals}.) 79 GNU Compiler Collection (GCC) Internals}.)
80 80
@@ -121,5 +121,5 @@ index 02b3cd39fc2..8cd27a5dad5 100644
121 #endif 121 #endif
122 122
123-- 123--
1242.17.0 1242.21.0
125 125
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0008-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch b/meta/recipes-devtools/gcc/gcc-8.3/0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch
index a76b7f735b..0cea228c87 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0008-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch
@@ -1,7 +1,7 @@
1From 11eb97efccb90b830c84ed077a25b1a15ad3335b Mon Sep 17 00:00:00 2001 1From 1dba090a11c40b0926f9707a543d658c95e1f156 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 09:14:20 +0400 3Date: Fri, 29 Mar 2013 09:14:20 +0400
4Subject: [PATCH 08/39] gcc: disable MASK_RELAX_PIC_CALLS bit 4Subject: [PATCH 06/40] gcc: disable MASK_RELAX_PIC_CALLS bit
5 5
6The new feature added after 4.3.3 6The new feature added after 4.3.3
7"http://www.pubbs.net/200909/gcc/94048-patch-add-support-for-rmipsjalr.html" 7"http://www.pubbs.net/200909/gcc/94048-patch-add-support-for-rmipsjalr.html"
@@ -19,7 +19,7 @@ Upstream-Status: Inappropriate [configuration]
19 2 files changed, 14 deletions(-) 19 2 files changed, 14 deletions(-)
20 20
21diff --git a/gcc/configure b/gcc/configure 21diff --git a/gcc/configure b/gcc/configure
22index cafd05fd150..19ba051d673 100755 22index 3901722400c..0c9b8ac5f55 100755
23--- a/gcc/configure 23--- a/gcc/configure
24+++ b/gcc/configure 24+++ b/gcc/configure
25@@ -27553,13 +27553,6 @@ $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; 25@@ -27553,13 +27553,6 @@ $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6;
@@ -37,7 +37,7 @@ index cafd05fd150..19ba051d673 100755
37 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; } 37 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
38 38
39diff --git a/gcc/configure.ac b/gcc/configure.ac 39diff --git a/gcc/configure.ac b/gcc/configure.ac
40index dd5b38195ce..066dfe19bb6 100644 40index 1b1362f70fe..53840363115 100644
41--- a/gcc/configure.ac 41--- a/gcc/configure.ac
42+++ b/gcc/configure.ac 42+++ b/gcc/configure.ac
43@@ -4798,13 +4798,6 @@ x: 43@@ -4798,13 +4798,6 @@ x:
@@ -55,5 +55,5 @@ index dd5b38195ce..066dfe19bb6 100644
55 55
56 AC_CACHE_CHECK([linker for .eh_frame personality relaxation], 56 AC_CACHE_CHECK([linker for .eh_frame personality relaxation],
57-- 57--
582.17.0 582.21.0
59 59
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0009-COLLECT_GCC_OPTIONS.patch b/meta/recipes-devtools/gcc/gcc-8.3/0007-COLLECT_GCC_OPTIONS.patch
index 3abece0da7..8c7e72e1b7 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0009-COLLECT_GCC_OPTIONS.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0007-COLLECT_GCC_OPTIONS.patch
@@ -1,7 +1,7 @@
1From e19d25847f08eeb5ef26a031fa5eff732bfd0d43 Mon Sep 17 00:00:00 2001 1From 209e46f45382088caab54425b92b5dfc43ebb4fc Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 09:16:28 +0400 3Date: Fri, 29 Mar 2013 09:16:28 +0400
4Subject: [PATCH 09/39] COLLECT_GCC_OPTIONS 4Subject: [PATCH 07/40] COLLECT_GCC_OPTIONS
5 5
6This patch adds --sysroot into COLLECT_GCC_OPTIONS which is used to 6This patch adds --sysroot into COLLECT_GCC_OPTIONS which is used to
7invoke collect2. 7invoke collect2.
@@ -34,5 +34,5 @@ index 8cd27a5dad5..d355d65583a 100644
34 { 34 {
35 const char *const *args; 35 const char *const *args;
36-- 36--
372.17.0 372.21.0
38 38
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0010-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch b/meta/recipes-devtools/gcc/gcc-8.3/0008-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch
index 5785b58934..f9632afecc 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0010-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0008-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch
@@ -1,7 +1,7 @@
1From 265cb883c310f3bb7e49fd13b81362476fbeb6c1 Mon Sep 17 00:00:00 2001 1From 3bcbdf5ade54a72820ad7798119d0bbad4baf6ec Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 09:17:25 +0400 3Date: Fri, 29 Mar 2013 09:17:25 +0400
4Subject: [PATCH 10/39] Use the defaults.h in ${B} instead of ${S}, and t-oe in 4Subject: [PATCH 08/40] Use the defaults.h in ${B} instead of ${S}, and t-oe in
5 ${B} 5 ${B}
6 6
7Use the defaults.h in ${B} instead of ${S}, and t-oe in ${B}, so that 7Use the defaults.h in ${B} instead of ${S}, and t-oe in ${B}, so that
@@ -40,7 +40,7 @@ index 20bee0494b1..1367136bfac 100644
40 TM_MULTILIB_CONFIG=@TM_MULTILIB_CONFIG@ 40 TM_MULTILIB_CONFIG=@TM_MULTILIB_CONFIG@
41 TM_MULTILIB_EXCEPTIONS_CONFIG=@TM_MULTILIB_EXCEPTIONS_CONFIG@ 41 TM_MULTILIB_EXCEPTIONS_CONFIG=@TM_MULTILIB_EXCEPTIONS_CONFIG@
42diff --git a/gcc/configure b/gcc/configure 42diff --git a/gcc/configure b/gcc/configure
43index 19ba051d673..a575839c1b2 100755 43index 0c9b8ac5f55..134c2c2f156 100755
44--- a/gcc/configure 44--- a/gcc/configure
45+++ b/gcc/configure 45+++ b/gcc/configure
46@@ -12158,8 +12158,8 @@ for f in $tm_file; do 46@@ -12158,8 +12158,8 @@ for f in $tm_file; do
@@ -55,7 +55,7 @@ index 19ba051d673..a575839c1b2 100755
55 * ) 55 * )
56 tm_file_list="${tm_file_list} \$(srcdir)/config/$f" 56 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
57diff --git a/gcc/configure.ac b/gcc/configure.ac 57diff --git a/gcc/configure.ac b/gcc/configure.ac
58index 066dfe19bb6..676116a6d96 100644 58index 53840363115..0c3c82e4ff7 100644
59--- a/gcc/configure.ac 59--- a/gcc/configure.ac
60+++ b/gcc/configure.ac 60+++ b/gcc/configure.ac
61@@ -1922,8 +1922,8 @@ for f in $tm_file; do 61@@ -1922,8 +1922,8 @@ for f in $tm_file; do
@@ -92,5 +92,5 @@ index 0f75c863c0b..68d8d6613cf 100644
92 92
93 # Add multiple inclusion protection guard, part two. 93 # Add multiple inclusion protection guard, part two.
94-- 94--
952.17.0 952.21.0
96 96
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0011-fortran-cross-compile-hack.patch b/meta/recipes-devtools/gcc/gcc-8.3/0009-fortran-cross-compile-hack.patch
index fe0fb7d531..50d895bfd7 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0011-fortran-cross-compile-hack.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0009-fortran-cross-compile-hack.patch
@@ -1,7 +1,7 @@
1From 71cba188d47b6ae9d9b87261eb4bc9eb68ae355d Mon Sep 17 00:00:00 2001 1From e654573352d28f160f379ee77e4067cf108714d0 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 09:20:01 +0400 3Date: Fri, 29 Mar 2013 09:20:01 +0400
4Subject: [PATCH 11/39] fortran cross-compile hack. 4Subject: [PATCH 09/40] fortran cross-compile hack.
5 5
6* Fortran would have searched for arm-angstrom-gnueabi-gfortran but would have used 6* Fortran would have searched for arm-angstrom-gnueabi-gfortran but would have used
7used gfortan. For gcc_4.2.2.bb we want to use the gfortran compiler from our cross 7used gfortan. For gcc_4.2.2.bb we want to use the gfortran compiler from our cross
@@ -42,5 +42,5 @@ index bf6d3634dda..9dbe43cc616 100644
42 42
43 # extra LD Flags which are required for targets 43 # extra LD Flags which are required for targets
44-- 44--
452.17.0 452.21.0
46 46
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0012-cpp-honor-sysroot.patch b/meta/recipes-devtools/gcc/gcc-8.3/0010-cpp-honor-sysroot.patch
index 961f96f11e..037eacf431 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0012-cpp-honor-sysroot.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0010-cpp-honor-sysroot.patch
@@ -1,7 +1,7 @@
1From b3e8e7e8ae106e3207e9edc3d23dcce1464b755f Mon Sep 17 00:00:00 2001 1From 2ae7af4eb70eff6aeda1fe96333ff50cfaa9d906 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 09:22:00 +0400 3Date: Fri, 29 Mar 2013 09:22:00 +0400
4Subject: [PATCH 12/39] cpp: honor sysroot. 4Subject: [PATCH 10/40] cpp: honor sysroot.
5 5
6Currently, if the gcc toolchain is relocated and installed from sstate, then you try and compile 6Currently, if the gcc toolchain is relocated and installed from sstate, then you try and compile
7preprocessed source (.i or .ii files), the compiler will try and access the builtin sysroot location 7preprocessed source (.i or .ii files), the compiler will try and access the builtin sysroot location
@@ -50,5 +50,5 @@ index d355d65583a..570cdc00034 100644
50 {"@assembler", 50 {"@assembler",
51 "%{!M:%{!MM:%{!E:%{!S:as %(asm_debug) %(asm_options) %i %A }}}}", 0, 0, 0}, 51 "%{!M:%{!MM:%{!E:%{!S:as %(asm_debug) %(asm_options) %i %A }}}}", 0, 0, 0},
52-- 52--
532.17.0 532.21.0
54 54
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0013-MIPS64-Default-to-N64-ABI.patch b/meta/recipes-devtools/gcc/gcc-8.3/0011-MIPS64-Default-to-N64-ABI.patch
index 8ef8806b21..c863cff932 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0013-MIPS64-Default-to-N64-ABI.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0011-MIPS64-Default-to-N64-ABI.patch
@@ -1,7 +1,7 @@
1From 0f3629978cd7c98614e87d4fd190b89864221631 Mon Sep 17 00:00:00 2001 1From 1e1ea0eb55a594ac4cd7b838f74dec7405aae02b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 09:23:08 +0400 3Date: Fri, 29 Mar 2013 09:23:08 +0400
4Subject: [PATCH 13/39] MIPS64: Default to N64 ABI 4Subject: [PATCH 11/40] MIPS64: Default to N64 ABI
5 5
6MIPS64 defaults to n32 ABI, this patch makes it 6MIPS64 defaults to n32 ABI, this patch makes it
7so that it defaults to N64 ABI 7so that it defaults to N64 ABI
@@ -14,10 +14,10 @@ Upstream-Status: Inappropriate [OE config specific]
14 1 file changed, 5 insertions(+), 5 deletions(-) 14 1 file changed, 5 insertions(+), 5 deletions(-)
15 15
16diff --git a/gcc/config.gcc b/gcc/config.gcc 16diff --git a/gcc/config.gcc b/gcc/config.gcc
17index 8741dd1e3b2..2ffcb39d85f 100644 17index 7af8e028104..fc7c91246ed 100644
18--- a/gcc/config.gcc 18--- a/gcc/config.gcc
19+++ b/gcc/config.gcc 19+++ b/gcc/config.gcc
20@@ -2137,29 +2137,29 @@ mips*-*-linux*) # Linux MIPS, either endian. 20@@ -2143,29 +2143,29 @@ mips*-*-linux*) # Linux MIPS, either endian.
21 default_mips_arch=mips32 21 default_mips_arch=mips32
22 ;; 22 ;;
23 mips64el-st-linux-gnu) 23 mips64el-st-linux-gnu)
@@ -53,5 +53,5 @@ index 8741dd1e3b2..2ffcb39d85f 100644
53 ;; 53 ;;
54 esac 54 esac
55-- 55--
562.17.0 562.21.0
57 57
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0014-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch b/meta/recipes-devtools/gcc/gcc-8.3/0012-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch
index 043bb9dd22..91a55c556f 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0014-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0012-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch
@@ -1,7 +1,7 @@
1From 53f1c382b1366c5621c8edead9c766950c290fd9 Mon Sep 17 00:00:00 2001 1From 4a697387eeab14ece2796c01382cca30e8467ffa Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 09:24:50 +0400 3Date: Fri, 29 Mar 2013 09:24:50 +0400
4Subject: [PATCH 14/39] Define GLIBC_DYNAMIC_LINKER and UCLIBC_DYNAMIC_LINKER 4Subject: [PATCH 12/40] Define GLIBC_DYNAMIC_LINKER and UCLIBC_DYNAMIC_LINKER
5 relative to SYSTEMLIBS_DIR 5 relative to SYSTEMLIBS_DIR
6 6
7This patch defines GLIBC_DYNAMIC_LINKER and UCLIBC_DYNAMIC_LINKER 7This patch defines GLIBC_DYNAMIC_LINKER and UCLIBC_DYNAMIC_LINKER
@@ -23,12 +23,11 @@ Upstream-Status: Inappropriate [OE configuration]
23 gcc/config/i386/linux64.h | 6 +++--- 23 gcc/config/i386/linux64.h | 6 +++---
24 gcc/config/linux.h | 8 ++++---- 24 gcc/config/linux.h | 8 ++++----
25 gcc/config/mips/linux.h | 12 ++++++------ 25 gcc/config/mips/linux.h | 12 ++++++------
26 gcc/config/riscv/linux.h | 2 +-
27 gcc/config/rs6000/linux64.h | 16 ++++++---------- 26 gcc/config/rs6000/linux64.h | 16 ++++++----------
28 gcc/config/sh/linux.h | 2 +- 27 gcc/config/sh/linux.h | 2 +-
29 gcc/config/sparc/linux.h | 2 +- 28 gcc/config/sparc/linux.h | 2 +-
30 gcc/config/sparc/linux64.h | 4 ++-- 29 gcc/config/sparc/linux64.h | 4 ++--
31 12 files changed, 30 insertions(+), 34 deletions(-) 30 11 files changed, 29 insertions(+), 33 deletions(-)
32 31
33diff --git a/gcc/config/alpha/linux-elf.h b/gcc/config/alpha/linux-elf.h 32diff --git a/gcc/config/alpha/linux-elf.h b/gcc/config/alpha/linux-elf.h
34index 36b74dc1993..02373578af8 100644 33index 36b74dc1993..02373578af8 100644
@@ -153,24 +152,11 @@ index 2dfd0c18b90..12057c51b5e 100644
153 152
154 #undef MUSL_DYNAMIC_LINKER32 153 #undef MUSL_DYNAMIC_LINKER32
155 #define MUSL_DYNAMIC_LINKER32 \ 154 #define MUSL_DYNAMIC_LINKER32 \
156diff --git a/gcc/config/riscv/linux.h b/gcc/config/riscv/linux.h
157index aa8a28d5d..ebf9551c9 100644
158--- a/gcc/config/riscv/linux.h
159+++ b/gcc/config/riscv/linux.h
160@@ -22,7 +22,7 @@ along with GCC; see the file COPYING3.
161 GNU_USER_TARGET_OS_CPP_BUILTINS(); \
162 } while (0)
163
164-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-riscv" XLEN_SPEC "-" ABI_SPEC ".so.1"
165+#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux-riscv" XLEN_SPEC "-" ABI_SPEC ".so.1"
166
167 #define MUSL_ABI_SUFFIX \
168 "%{mabi=ilp32:-sf}" \
169diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h 155diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h
170index 90fe6566255..55695dadd91 100644 156index 44eab40a234..54aa8d957e7 100644
171--- a/gcc/config/rs6000/linux64.h 157--- a/gcc/config/rs6000/linux64.h
172+++ b/gcc/config/rs6000/linux64.h 158+++ b/gcc/config/rs6000/linux64.h
173@@ -420,16 +420,11 @@ extern int dot_symbols; 159@@ -413,16 +413,11 @@ extern int dot_symbols;
174 #undef LINK_OS_DEFAULT_SPEC 160 #undef LINK_OS_DEFAULT_SPEC
175 #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)" 161 #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
176 162
@@ -190,7 +176,7 @@ index 90fe6566255..55695dadd91 100644
190 #endif 176 #endif
191 177
192 #define MUSL_DYNAMIC_LINKER32 \ 178 #define MUSL_DYNAMIC_LINKER32 \
193@@ -437,8 +432,9 @@ extern int dot_symbols; 179@@ -430,8 +425,9 @@ extern int dot_symbols;
194 #define MUSL_DYNAMIC_LINKER64 \ 180 #define MUSL_DYNAMIC_LINKER64 \
195 "/lib/ld-musl-powerpc64" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1" 181 "/lib/ld-musl-powerpc64" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
196 182
@@ -244,5 +230,5 @@ index c1fe42165b7..26a79bfa2e3 100644
244 #ifdef SPARC_BI_ARCH 230 #ifdef SPARC_BI_ARCH
245 231
246-- 232--
2472.17.0 2332.21.0
248 234
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0015-gcc-Fix-argument-list-too-long-error.patch b/meta/recipes-devtools/gcc/gcc-8.3/0013-gcc-Fix-argument-list-too-long-error.patch
index 4bff84285b..e9d2cac22e 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0015-gcc-Fix-argument-list-too-long-error.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0013-gcc-Fix-argument-list-too-long-error.patch
@@ -1,7 +1,7 @@
1From 2e75a14cd60227e036790184f0eb400abc3c870b Mon Sep 17 00:00:00 2001 1From 9e815965fbaa90134be0e777cfc2fbcfab16b674 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 09:26:37 +0400 3Date: Fri, 29 Mar 2013 09:26:37 +0400
4Subject: [PATCH 15/39] gcc: Fix argument list too long error. 4Subject: [PATCH 13/40] gcc: Fix argument list too long error.
5 5
6There would be an "Argument list too long" error when the 6There would be an "Argument list too long" error when the
7build directory is longer than 200, this is caused by: 7build directory is longer than 200, this is caused by:
@@ -36,5 +36,5 @@ index 1367136bfac..71a8275c39f 100644
36 for file in $$headers; do \ 36 for file in $$headers; do \
37 if [ -f $$file ] ; then \ 37 if [ -f $$file ] ; then \
38-- 38--
392.17.0 392.21.0
40 40
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0016-Disable-sdt.patch b/meta/recipes-devtools/gcc/gcc-8.3/0014-Disable-sdt.patch
index 8197546200..2bc44515cb 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0016-Disable-sdt.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0014-Disable-sdt.patch
@@ -1,7 +1,7 @@
1From 423d87ac47d21e399d759d7ff3b638f0c721a7df Mon Sep 17 00:00:00 2001 1From 00c7a7fdd4b4aad9e57d8b541de17ad209b6cd06 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 09:28:10 +0400 3Date: Fri, 29 Mar 2013 09:28:10 +0400
4Subject: [PATCH 16/39] Disable sdt. 4Subject: [PATCH 14/40] Disable sdt.
5 5
6We don't list dtrace in DEPENDS so we shouldn't be depending on this header. 6We don't list dtrace in DEPENDS so we shouldn't be depending on this header.
7It may or may not exist from preivous builds though. To be determinstic, disable 7It may or may not exist from preivous builds though. To be determinstic, disable
@@ -25,10 +25,10 @@ Upstream-Status: Inappropriate [hack]
25 4 files changed, 19 insertions(+), 19 deletions(-) 25 4 files changed, 19 insertions(+), 19 deletions(-)
26 26
27diff --git a/gcc/configure b/gcc/configure 27diff --git a/gcc/configure b/gcc/configure
28index a575839c1b2..872338f29b6 100755 28index 134c2c2f156..5111ec0aabb 100755
29--- a/gcc/configure 29--- a/gcc/configure
30+++ b/gcc/configure 30+++ b/gcc/configure
31@@ -29296,12 +29296,12 @@ fi 31@@ -29282,12 +29282,12 @@ fi
32 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 32 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
33 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; } 33 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
34 have_sys_sdt_h=no 34 have_sys_sdt_h=no
@@ -48,10 +48,10 @@ index a575839c1b2..872338f29b6 100755
48 $as_echo "$have_sys_sdt_h" >&6; } 48 $as_echo "$have_sys_sdt_h" >&6; }
49 49
50diff --git a/gcc/configure.ac b/gcc/configure.ac 50diff --git a/gcc/configure.ac b/gcc/configure.ac
51index 676116a6d96..55046e68926 100644 51index 0c3c82e4ff7..3e09af916fd 100644
52--- a/gcc/configure.ac 52--- a/gcc/configure.ac
53+++ b/gcc/configure.ac 53+++ b/gcc/configure.ac
54@@ -5957,15 +5957,15 @@ fi 54@@ -5943,15 +5943,15 @@ fi
55 AC_SUBST([enable_default_ssp]) 55 AC_SUBST([enable_default_ssp])
56 56
57 # Test for <sys/sdt.h> on the target. 57 # Test for <sys/sdt.h> on the target.
@@ -77,7 +77,7 @@ index 676116a6d96..55046e68926 100644
77 # Check if TFmode long double should be used by default or not. 77 # Check if TFmode long double should be used by default or not.
78 # Some glibc targets used DFmode long double, but with glibc 2.4 78 # Some glibc targets used DFmode long double, but with glibc 2.4
79diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure 79diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
80index c9dbaa139d5..c64a77d152b 100755 80index 5535bfa2b5a..13d793f5059 100755
81--- a/libstdc++-v3/configure 81--- a/libstdc++-v3/configure
82+++ b/libstdc++-v3/configure 82+++ b/libstdc++-v3/configure
83@@ -21786,11 +21786,11 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 83@@ -21786,11 +21786,11 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -109,5 +109,5 @@ index 0ef96270c9c..afe55a1b215 100644
109 # Check for available headers. 109 # Check for available headers.
110 AC_CHECK_HEADERS([endian.h execinfo.h float.h fp.h ieeefp.h inttypes.h \ 110 AC_CHECK_HEADERS([endian.h execinfo.h float.h fp.h ieeefp.h inttypes.h \
111-- 111--
1122.17.0 1122.21.0
113 113
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0017-libtool.patch b/meta/recipes-devtools/gcc/gcc-8.3/0015-libtool.patch
index 0caa1ce160..750f8a244e 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0017-libtool.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0015-libtool.patch
@@ -1,7 +1,7 @@
1From c8b11e96b11910b2d4df6ae8104466e3303d933f Mon Sep 17 00:00:00 2001 1From 80f2b01b3f917cea08294328c8bbc51dadece4af Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 09:29:11 +0400 3Date: Fri, 29 Mar 2013 09:29:11 +0400
4Subject: [PATCH 17/39] libtool 4Subject: [PATCH 15/40] libtool
5 5
6libstdc++ from gcc-runtime gets created with -rpath=/usr/lib/../lib for qemux86-64 6libstdc++ from gcc-runtime gets created with -rpath=/usr/lib/../lib for qemux86-64
7when running on am x86_64 build host. 7when running on am x86_64 build host.
@@ -38,5 +38,5 @@ index 9503ec85d70..0121fba707f 100644
38 oldlibs= 38 oldlibs=
39 if test -z "$rpath"; then 39 if test -z "$rpath"; then
40-- 40--
412.17.0 412.21.0
42 42
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0018-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch b/meta/recipes-devtools/gcc/gcc-8.3/0016-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch
index 643cc671ba..9b1b4d4df5 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0018-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0016-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch
@@ -1,7 +1,7 @@
1From 7dbba844a59bdf6e7d724f8bfa7927246cb7af8f Mon Sep 17 00:00:00 2001 1From a66ec1e382bf869749588f072a4a7c09039f2b3a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 09:30:32 +0400 3Date: Fri, 29 Mar 2013 09:30:32 +0400
4Subject: [PATCH 18/39] gcc: armv4: pass fix-v4bx to linker to support EABI. 4Subject: [PATCH 16/40] gcc: armv4: pass fix-v4bx to linker to support EABI.
5 5
6The LINK_SPEC for linux gets overwritten by linux-eabi.h which 6The LINK_SPEC for linux gets overwritten by linux-eabi.h which
7means the value of TARGET_FIX_V4BX_SPEC gets lost and as a result 7means the value of TARGET_FIX_V4BX_SPEC gets lost and as a result
@@ -39,5 +39,5 @@ index b3af68cac57..330b6e13c5f 100644
39 LINUX_TARGET_LINK_SPEC " " ANDROID_LINK_SPEC) 39 LINUX_TARGET_LINK_SPEC " " ANDROID_LINK_SPEC)
40 40
41-- 41--
422.17.0 422.21.0
43 43
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0019-Use-the-multilib-config-files-from-B-instead-of-usin.patch b/meta/recipes-devtools/gcc/gcc-8.3/0017-Use-the-multilib-config-files-from-B-instead-of-usin.patch
index 084918652e..382fecdbc5 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0019-Use-the-multilib-config-files-from-B-instead-of-usin.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0017-Use-the-multilib-config-files-from-B-instead-of-usin.patch
@@ -1,7 +1,7 @@
1From 117140acd3c383f620ff75894276001c7405dcce Mon Sep 17 00:00:00 2001 1From 624db734f656ad8cdf8b3cf3fc8e860b70c6c251 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 09:33:04 +0400 3Date: Fri, 29 Mar 2013 09:33:04 +0400
4Subject: [PATCH 19/39] Use the multilib config files from ${B} instead of 4Subject: [PATCH 17/40] Use the multilib config files from ${B} instead of
5 using the ones from ${S} 5 using the ones from ${S}
6 6
7Use the multilib config files from ${B} instead of using the ones from ${S} 7Use the multilib config files from ${B} instead of using the ones from ${S}
@@ -18,7 +18,7 @@ Upstream-Status: Inappropriate [configuration]
18 2 files changed, 36 insertions(+), 8 deletions(-) 18 2 files changed, 36 insertions(+), 8 deletions(-)
19 19
20diff --git a/gcc/configure b/gcc/configure 20diff --git a/gcc/configure b/gcc/configure
21index 872338f29b6..cfcadc93a01 100755 21index 5111ec0aabb..3d9dcbdc93d 100755
22--- a/gcc/configure 22--- a/gcc/configure
23+++ b/gcc/configure 23+++ b/gcc/configure
24@@ -12138,10 +12138,20 @@ done 24@@ -12138,10 +12138,20 @@ done
@@ -58,7 +58,7 @@ index 872338f29b6..cfcadc93a01 100755
58 f=`echo $f | sed 's/^..//'` 58 f=`echo $f | sed 's/^..//'`
59 tm_file_list="${tm_file_list} $f" 59 tm_file_list="${tm_file_list} $f"
60diff --git a/gcc/configure.ac b/gcc/configure.ac 60diff --git a/gcc/configure.ac b/gcc/configure.ac
61index 55046e68926..44b90478f55 100644 61index 3e09af916fd..e09c840b605 100644
62--- a/gcc/configure.ac 62--- a/gcc/configure.ac
63+++ b/gcc/configure.ac 63+++ b/gcc/configure.ac
64@@ -1902,10 +1902,20 @@ done 64@@ -1902,10 +1902,20 @@ done
@@ -98,5 +98,5 @@ index 55046e68926..44b90478f55 100644
98 f=`echo $f | sed 's/^..//'` 98 f=`echo $f | sed 's/^..//'`
99 tm_file_list="${tm_file_list} $f" 99 tm_file_list="${tm_file_list} $f"
100-- 100--
1012.17.0 1012.21.0
102 102
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0020-Avoid-using-libdir-from-.la-which-usually-points-to-.patch b/meta/recipes-devtools/gcc/gcc-8.3/0018-Avoid-using-libdir-from-.la-which-usually-points-to-.patch
index 911fe8521c..20e77d6eaa 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0020-Avoid-using-libdir-from-.la-which-usually-points-to-.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0018-Avoid-using-libdir-from-.la-which-usually-points-to-.patch
@@ -1,7 +1,7 @@
1From a7266111a5ba2d146c979e86ff84f6b807ca5fdc Mon Sep 17 00:00:00 2001 1From 27cca95dcfeead8c52d292c4824ee96f178d6183 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 20 Feb 2015 09:39:38 +0000 3Date: Fri, 20 Feb 2015 09:39:38 +0000
4Subject: [PATCH 20/39] Avoid using libdir from .la which usually points to a 4Subject: [PATCH 18/40] Avoid using libdir from .la which usually points to a
5 host path 5 host path
6 6
7Upstream-Status: Inappropriate [embedded specific] 7Upstream-Status: Inappropriate [embedded specific]
@@ -27,5 +27,5 @@ index 0121fba707f..52bdbdb5f9c 100644
27 absdir="$libdir" 27 absdir="$libdir"
28 fi 28 fi
29-- 29--
302.17.0 302.21.0
31 31
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0021-export-CPP.patch b/meta/recipes-devtools/gcc/gcc-8.3/0019-export-CPP.patch
index 2e6b411062..140c67a486 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0021-export-CPP.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0019-export-CPP.patch
@@ -1,7 +1,7 @@
1From c8599fc3b5781b319707c9c0f1b0a1ef7cddb027 Mon Sep 17 00:00:00 2001 1From a2936382da81aefa9b69c1fc625f6c706b7ea1d8 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 20 Feb 2015 09:40:59 +0000 3Date: Fri, 20 Feb 2015 09:40:59 +0000
4Subject: [PATCH 21/39] export CPP 4Subject: [PATCH 19/40] export CPP
5 5
6The OE environment sets and exports CPP as being the target gcc. When 6The OE environment sets and exports CPP as being the target gcc. When
7building gcc-cross-canadian for a mingw targetted sdk, the following can be found 7building gcc-cross-canadian for a mingw targetted sdk, the following can be found
@@ -37,7 +37,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
37 1 file changed, 1 insertion(+) 37 1 file changed, 1 insertion(+)
38 38
39diff --git a/Makefile.in b/Makefile.in 39diff --git a/Makefile.in b/Makefile.in
40index 2bf83b72265..1af45580086 100644 40index 38774f542a6..b426d4f9350 100644
41--- a/Makefile.in 41--- a/Makefile.in
42+++ b/Makefile.in 42+++ b/Makefile.in
43@@ -149,6 +149,7 @@ BUILD_EXPORTS = \ 43@@ -149,6 +149,7 @@ BUILD_EXPORTS = \
@@ -49,5 +49,5 @@ index 2bf83b72265..1af45580086 100644
49 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ 49 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
50 CXX="$(CXX_FOR_BUILD)"; export CXX; \ 50 CXX="$(CXX_FOR_BUILD)"; export CXX; \
51-- 51--
522.17.0 522.21.0
53 53
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0022-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch b/meta/recipes-devtools/gcc/gcc-8.3/0020-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch
index 17c581f11e..b22557eaf7 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0022-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0020-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch
@@ -1,7 +1,7 @@
1From 5e2ee46c720b6ce03a18da70dd4e0917c258ab0b Mon Sep 17 00:00:00 2001 1From d4326ab74a362b0fc83ed866f82c359389a36adc Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 20 Feb 2015 10:21:55 +0000 3Date: Fri, 20 Feb 2015 10:21:55 +0000
4Subject: [PATCH 22/39] Disable the MULTILIB_OSDIRNAMES and other multilib 4Subject: [PATCH 20/40] Disable the MULTILIB_OSDIRNAMES and other multilib
5 options. 5 options.
6 6
7Hard coding the MULTILIB_OSDIRNAMES with ../lib64 is causing problems on 7Hard coding the MULTILIB_OSDIRNAMES with ../lib64 is causing problems on
@@ -38,5 +38,5 @@ index b9897785a89..7d06f0d0edb 100644
38-MULTILIB_OSDIRNAMES += mabi.ilp32=../libilp32$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu_ilp32) 38-MULTILIB_OSDIRNAMES += mabi.ilp32=../libilp32$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu_ilp32)
39+#MULTILIB_OSDIRNAMES += mabi.ilp32=../libilp32$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu_ilp32) 39+#MULTILIB_OSDIRNAMES += mabi.ilp32=../libilp32$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu_ilp32)
40-- 40--
412.17.0 412.21.0
42 42
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0023-Ensure-target-gcc-headers-can-be-included.patch b/meta/recipes-devtools/gcc/gcc-8.3/0021-Ensure-target-gcc-headers-can-be-included.patch
index 73db3e6916..60d72699d6 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0023-Ensure-target-gcc-headers-can-be-included.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0021-Ensure-target-gcc-headers-can-be-included.patch
@@ -1,7 +1,7 @@
1From 73766424a2f71b1810fb8afdd863028855d87e5a Mon Sep 17 00:00:00 2001 1From 476eda9054df443d094273c8b61fce63d940adfc Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 20 Feb 2015 10:25:11 +0000 3Date: Fri, 20 Feb 2015 10:25:11 +0000
4Subject: [PATCH 23/39] Ensure target gcc headers can be included 4Subject: [PATCH 21/40] Ensure target gcc headers can be included
5 5
6There are a few headers installed as part of the OpenEmbedded 6There are a few headers installed as part of the OpenEmbedded
7gcc-runtime target (omp.h, ssp/*.h). Being installed from a recipe 7gcc-runtime target (omp.h, ssp/*.h). Being installed from a recipe
@@ -57,6 +57,42 @@ index b36a979d5ba..e2e187dedaf 100644
57 #ifdef LOCAL_INCLUDE_DIR 57 #ifdef LOCAL_INCLUDE_DIR
58 /* /usr/local/include comes before the fixincluded header files. */ 58 /* /usr/local/include comes before the fixincluded header files. */
59 { LOCAL_INCLUDE_DIR, 0, 0, 1, 1, 2 }, 59 { LOCAL_INCLUDE_DIR, 0, 0, 1, 1, 2 },
60diff --git a/gcc/defaults.h b/gcc/defaults.h
61index 9035b333be8..5982bbda61d 100644
62--- a/gcc/defaults.h
63+++ b/gcc/defaults.h
64@@ -1455,4 +1455,13 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
65 #define DWARF_GNAT_ENCODINGS_DEFAULT DWARF_GNAT_ENCODINGS_GDB
66 #endif
67
68+/* Default prefixes to attach to command names. */
69+
70+#ifndef STANDARD_STARTFILE_PREFIX_1
71+#define STANDARD_STARTFILE_PREFIX_1 "/lib/"
72+#endif
73+#ifndef STANDARD_STARTFILE_PREFIX_2
74+#define STANDARD_STARTFILE_PREFIX_2 "/usr/lib/"
75+#endif
76+
77 #endif /* ! GCC_DEFAULTS_H */
78diff --git a/gcc/gcc.c b/gcc/gcc.c
79index 570cdc00034..3fb64d453f1 100644
80--- a/gcc/gcc.c
81+++ b/gcc/gcc.c
82@@ -1464,13 +1464,6 @@ static const char *gcc_libexec_prefix;
83
84 /* Default prefixes to attach to command names. */
85
86-#ifndef STANDARD_STARTFILE_PREFIX_1
87-#define STANDARD_STARTFILE_PREFIX_1 "/lib/"
88-#endif
89-#ifndef STANDARD_STARTFILE_PREFIX_2
90-#define STANDARD_STARTFILE_PREFIX_2 "/usr/lib/"
91-#endif
92-
93 #ifdef CROSS_DIRECTORY_STRUCTURE /* Don't use these prefixes for a cross compiler. */
94 #undef MD_EXEC_PREFIX
95 #undef MD_STARTFILE_PREFIX
60-- 96--
612.17.0 972.21.0
62 98
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0024-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch b/meta/recipes-devtools/gcc/gcc-8.3/0022-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch
index 67b47f4ec0..6f0d3f11d3 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0024-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0022-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch
@@ -1,7 +1,7 @@
1From 57beef69396f6c187014b8e61cdc966218479d07 Mon Sep 17 00:00:00 2001 1From bc192f0a07ad819dee93446c5ef6895d9550d92d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 20 Feb 2015 11:17:19 +0000 3Date: Fri, 20 Feb 2015 11:17:19 +0000
4Subject: [PATCH 24/39] gcc 4.8+ won't build with --disable-dependency-tracking 4Subject: [PATCH 22/40] gcc 4.8+ won't build with --disable-dependency-tracking
5 5
6since the *.Ppo files don't get created unless --enable-dependency-tracking is true. 6since the *.Ppo files don't get created unless --enable-dependency-tracking is true.
7 7
@@ -50,5 +50,5 @@ index c8f38be5835..4fab7cec3ea 100644
50 M_IFUNC = $(if $(PAT_S),$(IFUNC_DEF) $(IFUNC_OPT)) 50 M_IFUNC = $(if $(PAT_S),$(IFUNC_DEF) $(IFUNC_OPT))
51 M_FILE = $(PAT_BASE)_n.c 51 M_FILE = $(PAT_BASE)_n.c
52-- 52--
532.17.0 532.21.0
54 54
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0025-Don-t-search-host-directory-during-relink-if-inst_pr.patch b/meta/recipes-devtools/gcc/gcc-8.3/0023-Don-t-search-host-directory-during-relink-if-inst_pr.patch
index d8b35bbbee..fe3f3436f0 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0025-Don-t-search-host-directory-during-relink-if-inst_pr.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0023-Don-t-search-host-directory-during-relink-if-inst_pr.patch
@@ -1,7 +1,7 @@
1From fd96c9b35c592f1bdd32bc5ae669157473e44063 Mon Sep 17 00:00:00 2001 1From 0409d2dd7322ecbed731cbe29b034fea43c5dddc Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 3 Mar 2015 08:21:19 +0000 3Date: Tue, 3 Mar 2015 08:21:19 +0000
4Subject: [PATCH 25/39] Don't search host directory during "relink" if 4Subject: [PATCH 23/40] Don't search host directory during "relink" if
5 $inst_prefix is provided 5 $inst_prefix is provided
6 6
7http://lists.gnu.org/archive/html/libtool-patches/2011-01/msg00026.html 7http://lists.gnu.org/archive/html/libtool-patches/2011-01/msg00026.html
@@ -34,5 +34,5 @@ index 52bdbdb5f9c..82bcec39f05 100644
34 esac 34 esac
35 fi 35 fi
36-- 36--
372.17.0 372.21.0
38 38
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0026-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch b/meta/recipes-devtools/gcc/gcc-8.3/0024-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch
index d3ab5aa9ce..c388a0ad02 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0026-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0024-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch
@@ -1,13 +1,12 @@
1From c2e400afe8c514357859fca88af4d3e1fcbfe2ff Mon Sep 17 00:00:00 2001 1From 56e2e1fc2a27c4a5cc9b471d5d0af90bcb871bfa Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 28 Apr 2015 23:15:27 -0700 3Date: Tue, 28 Apr 2015 23:15:27 -0700
4Subject: [PATCH 26/39] Use SYSTEMLIBS_DIR replacement instead of hardcoding 4Subject: [PATCH 24/40] Use SYSTEMLIBS_DIR replacement instead of hardcoding base_libdir
5 base_libdir
6 5
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9Upstream-Status: Pending 6Upstream-Status: Pending
10 7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
11 gcc/config/aarch64/aarch64-linux.h | 2 +- 10 gcc/config/aarch64/aarch64-linux.h | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-) 11 1 file changed, 1 insertion(+), 1 deletion(-)
13 12
@@ -25,5 +24,5 @@ index bf1327e98cc..64436183bc8 100644
25 #undef MUSL_DYNAMIC_LINKER 24 #undef MUSL_DYNAMIC_LINKER
26 #define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" 25 #define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
27-- 26--
282.17.0 272.21.0
29 28
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0027-aarch64-Add-support-for-musl-ldso.patch b/meta/recipes-devtools/gcc/gcc-8.3/0025-aarch64-Add-support-for-musl-ldso.patch
index 9e5ce8a60b..03f9725b89 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0027-aarch64-Add-support-for-musl-ldso.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0025-aarch64-Add-support-for-musl-ldso.patch
@@ -1,12 +1,12 @@
1From a2cc175769fd8255750eaecae64e3d1f9c38d48f Mon Sep 17 00:00:00 2001 1From b142e77e44e1acece6da54ccdc24c4da89cf4b99 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 28 Apr 2015 23:18:39 -0700 3Date: Tue, 28 Apr 2015 23:18:39 -0700
4Subject: [PATCH 27/39] aarch64: Add support for musl ldso 4Subject: [PATCH 25/40] aarch64: Add support for musl ldso
5 5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8Upstream-Status: Pending 6Upstream-Status: Pending
9 7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 gcc/config/aarch64/aarch64-linux.h | 2 +- 10 gcc/config/aarch64/aarch64-linux.h | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-) 11 1 file changed, 1 insertion(+), 1 deletion(-)
12 12
@@ -24,5 +24,5 @@ index 64436183bc8..ba156676026 100644
24 #undef ASAN_CC1_SPEC 24 #undef ASAN_CC1_SPEC
25 #define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}" 25 #define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}"
26-- 26--
272.17.0 272.21.0
28 28
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0028-libcc1-fix-libcc1-s-install-path-and-rpath.patch b/meta/recipes-devtools/gcc/gcc-8.3/0026-libcc1-fix-libcc1-s-install-path-and-rpath.patch
index 2673f4e36b..8591738962 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0028-libcc1-fix-libcc1-s-install-path-and-rpath.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0026-libcc1-fix-libcc1-s-install-path-and-rpath.patch
@@ -1,7 +1,7 @@
1From a8a8a02788ff98f253ce0b33adcb0e661d24b1e3 Mon Sep 17 00:00:00 2001 1From 3d4e53fc7cd71ce1181af8a5e9655398857af741 Mon Sep 17 00:00:00 2001
2From: Robert Yang <liezhi.yang@windriver.com> 2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Sun, 5 Jul 2015 20:25:18 -0700 3Date: Sun, 5 Jul 2015 20:25:18 -0700
4Subject: [PATCH 28/39] libcc1: fix libcc1's install path and rpath 4Subject: [PATCH 26/40] libcc1: fix libcc1's install path and rpath
5 5
6* Install libcc1.so and libcc1plugin.so into 6* Install libcc1.so and libcc1plugin.so into
7 $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version), as what we 7 $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version), as what we
@@ -50,5 +50,5 @@ index 47be10025ad..8d5481d87bd 100644
50 @ENABLE_PLUGIN_TRUE@cc1lib_LTLIBRARIES = libcc1.la 50 @ENABLE_PLUGIN_TRUE@cc1lib_LTLIBRARIES = libcc1.la
51 shared_source = callbacks.cc callbacks.hh connection.cc connection.hh \ 51 shared_source = callbacks.cc callbacks.hh connection.cc connection.hh \
52-- 52--
532.17.0 532.21.0
54 54
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0029-handle-sysroot-support-for-nativesdk-gcc.patch b/meta/recipes-devtools/gcc/gcc-8.3/0027-handle-sysroot-support-for-nativesdk-gcc.patch
index 727bb0da3b..4b955de8a5 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0029-handle-sysroot-support-for-nativesdk-gcc.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0027-handle-sysroot-support-for-nativesdk-gcc.patch
@@ -1,7 +1,7 @@
1From 3bb74495e45e0e798daae5556497e688b8fc4eef Mon Sep 17 00:00:00 2001 1From c033c1df11b692213d03db91d6cc145b4adedfac Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 7 Dec 2015 23:39:54 +0000 3Date: Mon, 7 Dec 2015 23:39:54 +0000
4Subject: [PATCH 29/39] handle sysroot support for nativesdk-gcc 4Subject: [PATCH 27/40] handle sysroot support for nativesdk-gcc
5 5
6Being able to build a nativesdk gcc is useful, particularly in cases 6Being able to build a nativesdk gcc is useful, particularly in cases
7where the host compiler may be of an incompatible version (or a 32 7where the host compiler may be of an incompatible version (or a 32
@@ -209,5 +209,5 @@ index 3fb64d453f1..cd0c7fbe961 100644
209 value = do_spec_1 (startfile_spec, 0, NULL); 209 value = do_spec_1 (startfile_spec, 0, NULL);
210 if (value != 0) 210 if (value != 0)
211-- 211--
2122.17.0 2122.21.0
213 213
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0030-Search-target-sysroot-gcc-version-specific-dirs-with.patch b/meta/recipes-devtools/gcc/gcc-8.3/0028-Search-target-sysroot-gcc-version-specific-dirs-with.patch
index 33566dffa8..1b25d7808b 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0030-Search-target-sysroot-gcc-version-specific-dirs-with.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0028-Search-target-sysroot-gcc-version-specific-dirs-with.patch
@@ -1,7 +1,7 @@
1From f5cc8cd0c44092dc487106ade27e011c1f584ada Mon Sep 17 00:00:00 2001 1From 62240d4c725ea0b43abfb901ddad90e83e29a25c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 7 Dec 2015 23:41:45 +0000 3Date: Mon, 7 Dec 2015 23:41:45 +0000
4Subject: [PATCH 30/39] Search target sysroot gcc version specific dirs with 4Subject: [PATCH 28/40] Search target sysroot gcc version specific dirs with
5 multilib. 5 multilib.
6 6
7We install the gcc libraries (such as crtbegin.p) into 7We install the gcc libraries (such as crtbegin.p) into
@@ -98,5 +98,5 @@ index cd0c7fbe961..f6f3aa077c8 100644
98 ret = callback (path, callback_info); 98 ret = callback (path, callback_info);
99 if (ret) 99 if (ret)
100-- 100--
1012.17.0 1012.21.0
102 102
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0031-Fix-various-_FOR_BUILD-and-related-variables.patch b/meta/recipes-devtools/gcc/gcc-8.3/0029-Fix-various-_FOR_BUILD-and-related-variables.patch
index dabc005964..0c8bdb17de 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0031-Fix-various-_FOR_BUILD-and-related-variables.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0029-Fix-various-_FOR_BUILD-and-related-variables.patch
@@ -1,7 +1,7 @@
1From 93b4e1d3a0f8417118d1c48fcd1ce51996e1420b Mon Sep 17 00:00:00 2001 1From 1377c738e31a1e1599cfab189485a9459f803e79 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 7 Dec 2015 23:42:45 +0000 3Date: Mon, 7 Dec 2015 23:42:45 +0000
4Subject: [PATCH 31/39] Fix various _FOR_BUILD and related variables 4Subject: [PATCH 29/40] Fix various _FOR_BUILD and related variables
5 5
6When doing a FOR_BUILD thing, you have to override CFLAGS with 6When doing a FOR_BUILD thing, you have to override CFLAGS with
7CFLAGS_FOR_BUILD. And if you use C++, you also have to override 7CFLAGS_FOR_BUILD. And if you use C++, you also have to override
@@ -26,7 +26,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
26 5 files changed, 14 insertions(+), 3 deletions(-) 26 5 files changed, 14 insertions(+), 3 deletions(-)
27 27
28diff --git a/Makefile.in b/Makefile.in 28diff --git a/Makefile.in b/Makefile.in
29index 1af45580086..8966453c32c 100644 29index b426d4f9350..a2af9905cce 100644
30--- a/Makefile.in 30--- a/Makefile.in
31+++ b/Makefile.in 31+++ b/Makefile.in
32@@ -152,6 +152,7 @@ BUILD_EXPORTS = \ 32@@ -152,6 +152,7 @@ BUILD_EXPORTS = \
@@ -55,7 +55,7 @@ index 1af45580086..8966453c32c 100644
55 ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \ 55 ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \
56 CFLAGS="$(CFLAGS)"; export CFLAGS; \ 56 CFLAGS="$(CFLAGS)"; export CFLAGS; \
57 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ 57 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
58@@ -753,6 +758,7 @@ BASE_FLAGS_TO_PASS = \ 58@@ -743,6 +748,7 @@ BASE_FLAGS_TO_PASS = \
59 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ 59 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
60 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ 60 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
61 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ 61 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
@@ -64,7 +64,7 @@ index 1af45580086..8966453c32c 100644
64 "FLEX=$(FLEX)" \ 64 "FLEX=$(FLEX)" \
65 "INSTALL=$(INSTALL)" \ 65 "INSTALL=$(INSTALL)" \
66diff --git a/Makefile.tpl b/Makefile.tpl 66diff --git a/Makefile.tpl b/Makefile.tpl
67index abd2bc2fb89..5822b260404 100644 67index 1f23b79b4b2..6c5652e811d 100644
68--- a/Makefile.tpl 68--- a/Makefile.tpl
69+++ b/Makefile.tpl 69+++ b/Makefile.tpl
70@@ -154,6 +154,7 @@ BUILD_EXPORTS = \ 70@@ -154,6 +154,7 @@ BUILD_EXPORTS = \
@@ -107,7 +107,7 @@ index 5ae693fb06c..02ee0aa72f4 100644
107 # Actual name to use when installing a native compiler. 107 # Actual name to use when installing a native compiler.
108 GCC_INSTALL_NAME := $(shell echo gcc|sed '$(program_transform_name)') 108 GCC_INSTALL_NAME := $(shell echo gcc|sed '$(program_transform_name)')
109diff --git a/gcc/configure b/gcc/configure 109diff --git a/gcc/configure b/gcc/configure
110index cfcadc93a01..2f6b4f72ef3 100755 110index 3d9dcbdc93d..aa127a4f6a4 100755
111--- a/gcc/configure 111--- a/gcc/configure
112+++ b/gcc/configure 112+++ b/gcc/configure
113@@ -11797,7 +11797,7 @@ else 113@@ -11797,7 +11797,7 @@ else
@@ -120,7 +120,7 @@ index cfcadc93a01..2f6b4f72ef3 100755
120 --enable-languages=${enable_languages-all} \ 120 --enable-languages=${enable_languages-all} \
121 --target=$target_alias --host=$build_alias --build=$build_alias 121 --target=$target_alias --host=$build_alias --build=$build_alias
122diff --git a/gcc/configure.ac b/gcc/configure.ac 122diff --git a/gcc/configure.ac b/gcc/configure.ac
123index 44b90478f55..9f8a51fc9bd 100644 123index e09c840b605..18bf53c7e0a 100644
124--- a/gcc/configure.ac 124--- a/gcc/configure.ac
125+++ b/gcc/configure.ac 125+++ b/gcc/configure.ac
126@@ -1708,7 +1708,7 @@ else 126@@ -1708,7 +1708,7 @@ else
@@ -133,5 +133,5 @@ index 44b90478f55..9f8a51fc9bd 100644
133 --enable-languages=${enable_languages-all} \ 133 --enable-languages=${enable_languages-all} \
134 --target=$target_alias --host=$build_alias --build=$build_alias 134 --target=$target_alias --host=$build_alias --build=$build_alias
135-- 135--
1362.17.0 1362.21.0
137 137
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0032-nios2-Define-MUSL_DYNAMIC_LINKER.patch b/meta/recipes-devtools/gcc/gcc-8.3/0030-nios2-Define-MUSL_DYNAMIC_LINKER.patch
index 6dd9d54234..04e126c5c3 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0032-nios2-Define-MUSL_DYNAMIC_LINKER.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0030-nios2-Define-MUSL_DYNAMIC_LINKER.patch
@@ -1,13 +1,13 @@
1From 99f3e3b427996ac579d95e68440a0bd7af7ef0fc Mon Sep 17 00:00:00 2001 1From 75da3cc9ca2d3de8c2062f23bf4f72415741ef83 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 2 Feb 2016 10:26:10 -0800 3Date: Tue, 2 Feb 2016 10:26:10 -0800
4Subject: [PATCH 32/39] nios2: Define MUSL_DYNAMIC_LINKER 4Subject: [PATCH 30/40] nios2: Define MUSL_DYNAMIC_LINKER
5
6Upstream-Status: Pending
5 7
6Signed-off-by: Marek Vasut <marex@denx.de> 8Signed-off-by: Marek Vasut <marex@denx.de>
7Signed-off-by: Khem Raj <raj.khem@gmail.com> 9Signed-off-by: Khem Raj <raj.khem@gmail.com>
8--- 10---
9Upstream-Status: Pending
10
11 gcc/config/nios2/linux.h | 1 + 11 gcc/config/nios2/linux.h | 1 +
12 1 file changed, 1 insertion(+) 12 1 file changed, 1 insertion(+)
13 13
@@ -24,5 +24,5 @@ index 4729105626d..36181eb7b85 100644
24 #undef LINK_SPEC 24 #undef LINK_SPEC
25 #define LINK_SPEC LINK_SPEC_ENDIAN \ 25 #define LINK_SPEC LINK_SPEC_ENDIAN \
26-- 26--
272.17.0 272.21.0
28 28
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0033-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch b/meta/recipes-devtools/gcc/gcc-8.3/0031-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch
index 05a6b0a1dc..002cf2becc 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0033-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0031-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch
@@ -1,7 +1,7 @@
1From 84b55ab2f68710a583d4ec810ea8b3b68576f8aa Mon Sep 17 00:00:00 2001 1From f715aeef294b85fa593ef69e6d0114cc7b15312b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 27 Jun 2017 18:10:54 -0700 3Date: Tue, 27 Jun 2017 18:10:54 -0700
4Subject: [PATCH 33/39] Add ssp_nonshared to link commandline for musl targets 4Subject: [PATCH 31/40] Add ssp_nonshared to link commandline for musl targets
5 5
6when -fstack-protector options are enabled we need to 6when -fstack-protector options are enabled we need to
7link with ssp_shared on musl since it does not provide 7link with ssp_shared on musl since it does not provide
@@ -62,10 +62,10 @@ index 01b40c762f6..e7c5e92215c 100644
62 #define LINK_OS_LINUX_SPEC LINK_OS_LINUX_EMUL " %{!shared: %{!static: \ 62 #define LINK_OS_LINUX_SPEC LINK_OS_LINUX_EMUL " %{!shared: %{!static: \
63 %{!static-pie: \ 63 %{!static-pie: \
64diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h 64diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h
65index 55695dadd91..60f1ee24985 100644 65index 54aa8d957e7..619e113e2b8 100644
66--- a/gcc/config/rs6000/linux64.h 66--- a/gcc/config/rs6000/linux64.h
67+++ b/gcc/config/rs6000/linux64.h 67+++ b/gcc/config/rs6000/linux64.h
68@@ -473,6 +473,16 @@ extern int dot_symbols; 68@@ -466,6 +466,16 @@ extern int dot_symbols;
69 " -m elf64ppc") 69 " -m elf64ppc")
70 #endif 70 #endif
71 71
@@ -83,5 +83,5 @@ index 55695dadd91..60f1ee24985 100644
83 %{!static-pie: \ 83 %{!static-pie: \
84 %{rdynamic:-export-dynamic} \ 84 %{rdynamic:-export-dynamic} \
85-- 85--
862.17.0 862.21.0
87 87
diff --git a/meta/recipes-devtools/gcc/gcc-8.3/0032-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch b/meta/recipes-devtools/gcc/gcc-8.3/0032-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch
new file mode 100644
index 0000000000..025caba318
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0032-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch
@@ -0,0 +1,125 @@
1From 6dfbca78b8d253aecf9cbb5e68e04b8dd3d6a543 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Apr 2016 20:03:28 +0000
4Subject: [PATCH 32/40] libgcc: Add knob to use ldbl-128 on ppc
5
6musl does not support ldbl 128 so we can not assume
7that linux as a whole supports ldbl-128 bits, instead
8act upon configure option passed to gcc and assume no
9on musl and yes otherwise if no option is passed since
10default behaviour is to assume ldbl128 it does not
11change the defaults
12
13Upstream-Status: Pending
14
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 libgcc/Makefile.in | 1 +
18 libgcc/config/rs6000/t-linux | 5 ++++-
19 libgcc/configure | 18 ++++++++++++++++++
20 libgcc/configure.ac | 12 ++++++++++++
21 4 files changed, 35 insertions(+), 1 deletion(-)
22 mode change 100644 => 100755 libgcc/configure
23
24diff --git a/libgcc/Makefile.in b/libgcc/Makefile.in
25index dd8cee99fd3..b5f478af382 100644
26--- a/libgcc/Makefile.in
27+++ b/libgcc/Makefile.in
28@@ -48,6 +48,7 @@ unwind_header = @unwind_header@
29 md_unwind_header = @md_unwind_header@
30 sfp_machine_header = @sfp_machine_header@
31 thread_header = @thread_header@
32+with_ldbl128 = @with_ldbl128@
33
34 host_noncanonical = @host_noncanonical@
35 real_host_noncanonical = @real_host_noncanonical@
36diff --git a/libgcc/config/rs6000/t-linux b/libgcc/config/rs6000/t-linux
37index 4f6d4c4a4d2..c50dd94a2da 100644
38--- a/libgcc/config/rs6000/t-linux
39+++ b/libgcc/config/rs6000/t-linux
40@@ -1,3 +1,6 @@
41 SHLIB_MAPFILES += $(srcdir)/config/rs6000/libgcc-glibc.ver
42
43-HOST_LIBGCC2_CFLAGS += -mlong-double-128 -mno-minimal-toc
44+ifeq ($(with_ldbl128),yes)
45+HOST_LIBGCC2_CFLAGS += -mlong-double-128
46+endif
47+HOST_LIBGCC2_CFLAGS += -mno-minimal-toc
48diff --git a/libgcc/configure b/libgcc/configure
49old mode 100644
50new mode 100755
51index b2f3f870844..ed806587c17
52--- a/libgcc/configure
53+++ b/libgcc/configure
54@@ -619,6 +619,7 @@ build_vendor
55 build_cpu
56 build
57 with_aix_soname
58+with_ldbl128
59 enable_vtable_verify
60 enable_shared
61 libgcc_topdir
62@@ -668,6 +669,7 @@ with_cross_host
63 with_ld
64 enable_shared
65 enable_vtable_verify
66+with_long_double_128
67 with_aix_soname
68 enable_version_specific_runtime_libs
69 with_slibdir
70@@ -1329,6 +1331,7 @@ Optional Packages:
71 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
72 --with-cross-host=HOST Configuring with a cross compiler
73 --with-ld arrange to use the specified ld (full pathname)
74+ --with-long-double-128 use 128-bit long double by default
75 --with-aix-soname=aix|svr4|both
76 shared library versioning (aka "SONAME") variant to
77 provide on AIX
78@@ -2213,6 +2216,21 @@ fi
79
80
81
82+# Check whether --with-long-double-128 was given.
83+if test "${with_long_double_128+set}" = set; then :
84+ withval=$with_long_double_128; with_ldbl128="$with_long_double_128"
85+else
86+ case "${host}" in
87+ power*-*-musl*)
88+ with_ldbl128="no";;
89+ *) with_ldbl128="yes";;
90+ esac
91+
92+fi
93+
94+
95+
96+
97 # Check whether --with-aix-soname was given.
98 if test "${with_aix_soname+set}" = set; then :
99 withval=$with_aix_soname; case "${host}:${enable_shared}" in
100diff --git a/libgcc/configure.ac b/libgcc/configure.ac
101index b59aa746afc..42220a263c5 100644
102--- a/libgcc/configure.ac
103+++ b/libgcc/configure.ac
104@@ -78,6 +78,18 @@ AC_ARG_ENABLE(vtable-verify,
105 [enable_vtable_verify=no])
106 AC_SUBST(enable_vtable_verify)
107
108+AC_ARG_WITH(long-double-128,
109+[AS_HELP_STRING([--with-long-double-128],
110+ [use 128-bit long double by default])],
111+ with_ldbl128="$with_long_double_128",
112+[case "${host}" in
113+ power*-*-musl*)
114+ with_ldbl128="no";;
115+ *) with_ldbl128="yes";;
116+ esac
117+])
118+AC_SUBST(with_ldbl128)
119+
120 AC_ARG_WITH(aix-soname,
121 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
122 [shared library versioning (aka "SONAME") variant to provide on AIX])],
123--
1242.21.0
125
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0035-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch b/meta/recipes-devtools/gcc/gcc-8.3/0033-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch
index 5e416e010d..343f7aad1b 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0035-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0033-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch
@@ -1,7 +1,7 @@
1From 775c7fafcbfebed2d4bd8a6a011f18f70f3b59d3 Mon Sep 17 00:00:00 2001 1From 7e55147e8e609ace6f9eecd86a956636687671f0 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 4 May 2016 21:11:34 -0700 3Date: Wed, 4 May 2016 21:11:34 -0700
4Subject: [PATCH 35/39] Link libgcc using LDFLAGS, not just SHLIB_LDFLAGS 4Subject: [PATCH 33/40] Link libgcc using LDFLAGS, not just SHLIB_LDFLAGS
5 5
6Upstream-Status: Pending 6Upstream-Status: Pending
7 7
@@ -25,5 +25,5 @@ index 7e60b621a2d..ea22ede3361 100644
25 $(SHLIB_OBJS) $(SHLIB_LC) && \ 25 $(SHLIB_OBJS) $(SHLIB_LC) && \
26 rm -f $(SHLIB_DIR)/$(SHLIB_SOLINK) && \ 26 rm -f $(SHLIB_DIR)/$(SHLIB_SOLINK) && \
27-- 27--
282.17.0 282.21.0
29 29
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0036-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch b/meta/recipes-devtools/gcc/gcc-8.3/0034-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch
index 8def33a17d..92224cc561 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0036-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0034-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch
@@ -1,8 +1,7 @@
1From b7faeed60261d7b75f2db3823926de1650ef64bc Mon Sep 17 00:00:00 2001 1From 46ca51dd413330bb8425b06283e7667bfb507c3d Mon Sep 17 00:00:00 2001
2From: Szabolcs Nagy <nsz@port70.net> 2From: Szabolcs Nagy <nsz@port70.net>
3Date: Sat, 24 Oct 2015 20:09:53 +0000 3Date: Sat, 24 Oct 2015 20:09:53 +0000
4Subject: [PATCH 36/39] libgcc_s: Use alias for __cpu_indicator_init instead of 4Subject: [PATCH 34/40] libgcc_s: Use alias for __cpu_indicator_init instead of symver
5 symver
6 5
7Adapter from 6Adapter from
8 7
@@ -29,20 +28,20 @@ gcc/Changelog:
29 * config/i386/i386.c (ix86_expand_builtin): Make __builtin_cpu_init 28 * config/i386/i386.c (ix86_expand_builtin): Make __builtin_cpu_init
30 call __cpu_indicator_init_local instead of __cpu_indicator_init. 29 call __cpu_indicator_init_local instead of __cpu_indicator_init.
31 30
32Signed-off-by: Khem Raj <raj.khem@gmail.com>
33---
34Upstream-Status: Pending 31Upstream-Status: Pending
35 32
33Signed-off-by: Khem Raj <raj.khem@gmail.com>
34---
36 gcc/config/i386/i386.c | 4 ++-- 35 gcc/config/i386/i386.c | 4 ++--
37 libgcc/config/i386/cpuinfo.c | 6 +++--- 36 libgcc/config/i386/cpuinfo.c | 6 +++---
38 libgcc/config/i386/t-linux | 2 +- 37 libgcc/config/i386/t-linux | 2 +-
39 3 files changed, 6 insertions(+), 6 deletions(-) 38 3 files changed, 6 insertions(+), 6 deletions(-)
40 39
41diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c 40diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
42index 6a2141e48db..455fccbdd50 100644 41index a88a29b51e6..6f3f5187970 100644
43--- a/gcc/config/i386/i386.c 42--- a/gcc/config/i386/i386.c
44+++ b/gcc/config/i386/i386.c 43+++ b/gcc/config/i386/i386.c
45@@ -36490,10 +36490,10 @@ ix86_expand_builtin (tree exp, rtx target, rtx subtarget, 44@@ -36555,10 +36555,10 @@ ix86_expand_builtin (tree exp, rtx target, rtx subtarget,
46 { 45 {
47 case IX86_BUILTIN_CPU_INIT: 46 case IX86_BUILTIN_CPU_INIT:
48 { 47 {
@@ -56,10 +55,10 @@ index 6a2141e48db..455fccbdd50 100644
56 return expand_expr (call_expr, target, mode, EXPAND_NORMAL); 55 return expand_expr (call_expr, target, mode, EXPAND_NORMAL);
57 } 56 }
58diff --git a/libgcc/config/i386/cpuinfo.c b/libgcc/config/i386/cpuinfo.c 57diff --git a/libgcc/config/i386/cpuinfo.c b/libgcc/config/i386/cpuinfo.c
59index 86953db2743..e0476272810 100644 58index d1853d5515b..864150c9249 100644
60--- a/libgcc/config/i386/cpuinfo.c 59--- a/libgcc/config/i386/cpuinfo.c
61+++ b/libgcc/config/i386/cpuinfo.c 60+++ b/libgcc/config/i386/cpuinfo.c
62@@ -482,7 +482,7 @@ __cpu_indicator_init (void) 61@@ -485,7 +485,7 @@ __cpu_indicator_init (void)
63 return 0; 62 return 0;
64 } 63 }
65 64
@@ -82,5 +81,5 @@ index 8506a635790..564296f788e 100644
82+HOST_LIBGCC2_CFLAGS += -mlong-double-80 $(CET_FLAGS) 81+HOST_LIBGCC2_CFLAGS += -mlong-double-80 $(CET_FLAGS)
83 CRTSTUFF_T_CFLAGS += $(CET_FLAGS) 82 CRTSTUFF_T_CFLAGS += $(CET_FLAGS)
84-- 83--
852.17.0 842.21.0
86 85
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0037-sync-gcc-stddef.h-with-musl.patch b/meta/recipes-devtools/gcc/gcc-8.3/0035-sync-gcc-stddef.h-with-musl.patch
index f8a7f41ab1..6ecd6e972d 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0037-sync-gcc-stddef.h-with-musl.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0035-sync-gcc-stddef.h-with-musl.patch
@@ -1,15 +1,15 @@
1From 602abaab15ffb60bf1797187a71b485042c56360 Mon Sep 17 00:00:00 2001 1From 38d401fb6ab555d09f4a9a677721dde0743876e1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 3 Feb 2017 12:56:00 -0800 3Date: Fri, 3 Feb 2017 12:56:00 -0800
4Subject: [PATCH 37/39] sync gcc stddef.h with musl 4Subject: [PATCH 35/40] sync gcc stddef.h with musl
5 5
6musl defines ptrdiff_t size_t and wchar_t 6musl defines ptrdiff_t size_t and wchar_t
7so dont define them here if musl is definining them 7so dont define them here if musl is definining them
8 8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11Upstream-Status: Pending 9Upstream-Status: Pending
12 10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 gcc/ginclude/stddef.h | 9 +++++++++ 13 gcc/ginclude/stddef.h | 9 +++++++++
14 1 file changed, 9 insertions(+) 14 1 file changed, 9 insertions(+)
15 15
@@ -87,5 +87,5 @@ index 31b96a7e5e1..438a3ce7c56 100644
87 #endif /* _STDDEF_H or __need_wchar_t. */ 87 #endif /* _STDDEF_H or __need_wchar_t. */
88 88
89-- 89--
902.17.0 902.21.0
91 91
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0038-fix-segmentation-fault-in-precompiled-header-generat.patch b/meta/recipes-devtools/gcc/gcc-8.3/0036-fix-segmentation-fault-in-precompiled-header-generat.patch
index 224d2ae6d3..c4ce5db553 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0038-fix-segmentation-fault-in-precompiled-header-generat.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0036-fix-segmentation-fault-in-precompiled-header-generat.patch
@@ -1,7 +1,7 @@
1From 00694849632dee23741925c6104df134f6bff747 Mon Sep 17 00:00:00 2001 1From a9bb29a4e9b478f9b126e483467ce9031c33fe4f Mon Sep 17 00:00:00 2001
2From: Juro Bystricky <juro.bystricky@intel.com> 2From: Juro Bystricky <juro.bystricky@intel.com>
3Date: Mon, 19 Mar 2018 22:31:20 -0700 3Date: Mon, 19 Mar 2018 22:31:20 -0700
4Subject: [PATCH 38/39] fix segmentation fault in precompiled header generation 4Subject: [PATCH 36/40] fix segmentation fault in precompiled header generation
5 5
6Prevent a segmentation fault which occurs when using incorrect 6Prevent a segmentation fault which occurs when using incorrect
7structure trying to access name of some named operators, such as 7structure trying to access name of some named operators, such as
@@ -56,5 +56,5 @@ index 37c365a3560..63480048db6 100644
56 buffer = _cpp_spell_ident_ucns (buffer, token->val.node.node); 56 buffer = _cpp_spell_ident_ucns (buffer, token->val.node.node);
57 break; 57 break;
58-- 58--
592.17.0 592.21.0
60 60
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0039-Fix-for-testsuite-failure.patch b/meta/recipes-devtools/gcc/gcc-8.3/0037-Fix-for-testsuite-failure.patch
index f35163099c..70999dd453 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0039-Fix-for-testsuite-failure.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0037-Fix-for-testsuite-failure.patch
@@ -1,7 +1,7 @@
1From d151a62c252749643c850a08d1335321e5b75d42 Mon Sep 17 00:00:00 2001 1From 1e5c1ef34d92b4157e1a24ca743d45f3a7375a5e Mon Sep 17 00:00:00 2001
2From: RAGHUNATH LOLUR <raghunath.lolur@kpit.com> 2From: RAGHUNATH LOLUR <raghunath.lolur@kpit.com>
3Date: Wed, 6 Dec 2017 22:52:26 -0800 3Date: Wed, 6 Dec 2017 22:52:26 -0800
4Subject: [PATCH 39/39] Fix for testsuite failure 4Subject: [PATCH 37/40] Fix for testsuite failure
5 5
62017-11-16 Raghunath Lolur <raghunath.lolur@kpit.com> 62017-11-16 Raghunath Lolur <raghunath.lolur@kpit.com>
7 7
@@ -254,5 +254,5 @@ index 6cda1534311..26e37f5b8ba 100644
254 __attribute__((vector_size((elcount)*sizeof(type)))) type 254 __attribute__((vector_size((elcount)*sizeof(type)))) type
255 255
256-- 256--
2572.17.0 2572.21.0
258 258
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0040-Re-introduce-spe-commandline-options.patch b/meta/recipes-devtools/gcc/gcc-8.3/0038-Re-introduce-spe-commandline-options.patch
index 8afa0102da..8de8892b89 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0040-Re-introduce-spe-commandline-options.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0038-Re-introduce-spe-commandline-options.patch
@@ -1,7 +1,7 @@
1From 8fb8f773e117ee70be00bb0da5f343fe110da5c4 Mon Sep 17 00:00:00 2001 1From f0bea96434ac478c3cff8c29dd97cccfac5b35e3 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 6 Jun 2018 12:10:22 -0700 3Date: Wed, 6 Jun 2018 12:10:22 -0700
4Subject: [PATCH 40/40] Re-introduce spe commandline options 4Subject: [PATCH 38/40] Re-introduce spe commandline options
5 5
6This should ensure that we keep accepting 6This should ensure that we keep accepting
7spe options 7spe options
@@ -37,5 +37,5 @@ index ace8a477550..d6a8f825d88 100644
37 Target RejectNegative Var(rs6000_altivec_abi) Save 37 Target RejectNegative Var(rs6000_altivec_abi) Save
38 Use the AltiVec ABI extensions. 38 Use the AltiVec ABI extensions.
39-- 39--
402.17.1 402.21.0
41 41
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0043-riscv-Disable-multilib-for-OE.patch b/meta/recipes-devtools/gcc/gcc-8.3/0039-riscv-Disable-multilib-for-OE.patch
index dc28d1bfd8..f7b222e812 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0043-riscv-Disable-multilib-for-OE.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0039-riscv-Disable-multilib-for-OE.patch
@@ -1,7 +1,7 @@
1From ca0a6e035eef0cdbd0ef3a222c75d4b9f873c512 Mon Sep 17 00:00:00 2001 1From 24f74444c00c6c9bf076fb002614ebf6dec31f1a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 28 Dec 2018 09:59:53 -0800 3Date: Fri, 28 Dec 2018 09:59:53 -0800
4Subject: [PATCH 39/39] riscv: Disable multilib for OE 4Subject: [PATCH 39/40] riscv: Disable multilib for OE
5 5
6Upstream-Status: Inappropriate [OE-Specific] 6Upstream-Status: Inappropriate [OE-Specific]
7 7
@@ -23,5 +23,5 @@ index 216d2776a18..e4d817621fc 100644
23+#MULTILIB_OSDIRNAMES := $(patsubst lib%,../lib%,$(MULTILIB_DIRNAMES)) 23+#MULTILIB_OSDIRNAMES := $(patsubst lib%,../lib%,$(MULTILIB_DIRNAMES))
24+MULTILIB_OSDIRNAMES := ../$(shell basename $(base_libdir)) ../$(shell basename $(base_libdir)) 24+MULTILIB_OSDIRNAMES := ../$(shell basename $(base_libdir)) ../$(shell basename $(base_libdir))
25-- 25--
262.20.1 262.21.0
27 27
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0042-powerpc-powerpc64-Add-support-for-musl-ldso.patch b/meta/recipes-devtools/gcc/gcc-8.3/0040-powerpc-powerpc64-Add-support-for-musl-ldso.patch
index b0c735bb05..9fba163778 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2/0042-powerpc-powerpc64-Add-support-for-musl-ldso.patch
+++ b/meta/recipes-devtools/gcc/gcc-8.3/0040-powerpc-powerpc64-Add-support-for-musl-ldso.patch
@@ -1,17 +1,17 @@
1From 3f5f5da776be86b408a15f38c9782f2185f97073 Mon Sep 17 00:00:00 2001 1From 4bd0a3866f302725cb4eddcaddaeece64900c42f Mon Sep 17 00:00:00 2001
2From: Serhey Popovych <serhe.popovych@gmail.com> 2From: Serhey Popovych <serhe.popovych@gmail.com>
3Date: Tue, 11 Dec 2018 02:30:50 -0500 3Date: Tue, 11 Dec 2018 02:30:50 -0500
4Subject: [PATCH] powerpc/powerpc64: Add support for musl ldso 4Subject: [PATCH 40/40] powerpc/powerpc64: Add support for musl ldso
5 5
6Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
7---
8Upstream-Status: Inappropriate [OE-Specific] 6Upstream-Status: Inappropriate [OE-Specific]
9 7
8Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
9---
10 gcc/config/rs6000/linux64.h | 4 ++-- 10 gcc/config/rs6000/linux64.h | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-) 11 1 file changed, 2 insertions(+), 2 deletions(-)
12 12
13diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h 13diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h
14index 619e113..ee8b44f 100644 14index 619e113e2b8..ee8b44f9374 100644
15--- a/gcc/config/rs6000/linux64.h 15--- a/gcc/config/rs6000/linux64.h
16+++ b/gcc/config/rs6000/linux64.h 16+++ b/gcc/config/rs6000/linux64.h
17@@ -421,9 +421,9 @@ extern int dot_symbols; 17@@ -421,9 +421,9 @@ extern int dot_symbols;
@@ -27,5 +27,5 @@ index 619e113..ee8b44f 100644
27 #define UCLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld-uClibc.so.0" 27 #define UCLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld-uClibc.so.0"
28 #define UCLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR "ld64-uClibc.so.0" 28 #define UCLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR "ld64-uClibc.so.0"
29-- 29--
302.7.4 302.21.0
31 31
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian_8.2.bb b/meta/recipes-devtools/gcc/gcc-cross-canadian_8.3.bb
index bf53c5cd78..bf53c5cd78 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-canadian_8.2.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross-canadian_8.3.bb
diff --git a/meta/recipes-devtools/gcc/gcc-cross_8.2.bb b/meta/recipes-devtools/gcc/gcc-cross_8.3.bb
index b43cca0c52..b43cca0c52 100644
--- a/meta/recipes-devtools/gcc/gcc-cross_8.2.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross_8.3.bb
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk_8.2.bb b/meta/recipes-devtools/gcc/gcc-crosssdk_8.3.bb
index 40a6c4feff..40a6c4feff 100644
--- a/meta/recipes-devtools/gcc/gcc-crosssdk_8.2.bb
+++ b/meta/recipes-devtools/gcc/gcc-crosssdk_8.3.bb
diff --git a/meta/recipes-devtools/gcc/gcc-runtime_8.2.bb b/meta/recipes-devtools/gcc/gcc-runtime_8.3.bb
index a1c7a76d0b..a1c7a76d0b 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime_8.2.bb
+++ b/meta/recipes-devtools/gcc/gcc-runtime_8.3.bb
diff --git a/meta/recipes-devtools/gcc/gcc-sanitizers_8.2.bb b/meta/recipes-devtools/gcc/gcc-sanitizers_8.3.bb
index f3c7058114..f3c7058114 100644
--- a/meta/recipes-devtools/gcc/gcc-sanitizers_8.2.bb
+++ b/meta/recipes-devtools/gcc/gcc-sanitizers_8.3.bb
diff --git a/meta/recipes-devtools/gcc/gcc-source_8.2.bb b/meta/recipes-devtools/gcc/gcc-source_8.3.bb
index b890fa33ea..b890fa33ea 100644
--- a/meta/recipes-devtools/gcc/gcc-source_8.2.bb
+++ b/meta/recipes-devtools/gcc/gcc-source_8.3.bb
diff --git a/meta/recipes-devtools/gcc/gcc_8.2.bb b/meta/recipes-devtools/gcc/gcc_8.3.bb
index 7d93590588..7d93590588 100644
--- a/meta/recipes-devtools/gcc/gcc_8.2.bb
+++ b/meta/recipes-devtools/gcc/gcc_8.3.bb
diff --git a/meta/recipes-devtools/gcc/libgcc-initial_8.2.bb b/meta/recipes-devtools/gcc/libgcc-initial_8.3.bb
index 0c698c26ec..0c698c26ec 100644
--- a/meta/recipes-devtools/gcc/libgcc-initial_8.2.bb
+++ b/meta/recipes-devtools/gcc/libgcc-initial_8.3.bb
diff --git a/meta/recipes-devtools/gcc/libgcc_8.2.bb b/meta/recipes-devtools/gcc/libgcc_8.3.bb
index ea210a1130..ea210a1130 100644
--- a/meta/recipes-devtools/gcc/libgcc_8.2.bb
+++ b/meta/recipes-devtools/gcc/libgcc_8.3.bb
diff --git a/meta/recipes-devtools/gcc/libgfortran_8.2.bb b/meta/recipes-devtools/gcc/libgfortran_8.3.bb
index 71dd8b4bdc..71dd8b4bdc 100644
--- a/meta/recipes-devtools/gcc/libgfortran_8.2.bb
+++ b/meta/recipes-devtools/gcc/libgfortran_8.3.bb