diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-19 11:56:57 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-21 10:21:00 +0000 |
commit | dbea61d086973d08be0bca73159bcc3b1bec26a8 (patch) | |
tree | 61add8dd149fd851c994ba2ac340cab37dbcaef2 /meta/recipes-devtools | |
parent | 04315672fcc9d5b0f8de9afdaa9f39890d645afd (diff) | |
download | poky-dbea61d086973d08be0bca73159bcc3b1bec26a8.tar.gz |
gcc: Drop 6.4
We've had 7.x around for long enough now that it should be tested and usable
everywhere, drop 6.4.
(From OE-Core rev: 2ec354f93101d85b4a3739368c8f0a96ec84c7d0)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
60 files changed, 0 insertions, 4050 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-6.4.inc b/meta/recipes-devtools/gcc/gcc-6.4.inc deleted file mode 100644 index 37e996afb7..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4.inc +++ /dev/null | |||
@@ -1,131 +0,0 @@ | |||
1 | require gcc-common.inc | ||
2 | |||
3 | # Third digit in PV should be incremented after a minor release | ||
4 | |||
5 | PV = "6.4.0" | ||
6 | |||
7 | # BINV should be incremented to a revision after a minor gcc release | ||
8 | |||
9 | BINV = "6.4.0" | ||
10 | |||
11 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-6.4:${FILE_DIRNAME}/gcc-6.4/backport:" | ||
12 | |||
13 | DEPENDS =+ "mpfr gmp libmpc zlib" | ||
14 | NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native" | ||
15 | |||
16 | LICENSE = "GPL-3.0-with-GCC-exception & GPLv3" | ||
17 | |||
18 | LIC_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 | |||
27 | BASEURI ?= "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.xz" | ||
28 | #SRCREV = "bd9a826d5448db11d29d2ec5884e7e679066f140" | ||
29 | #BASEURI ?= "git://github.com/gcc-mirror/gcc;branch=gcc-6-branch;protocol=git" | ||
30 | #BASEURI ?= "ftp://sourceware.org/pub/gcc/snapshots/6.2.0-RC-20160815/gcc-6.2.0-RC-20160815.tar.bz2" | ||
31 | |||
32 | SRC_URI = "\ | ||
33 | ${BASEURI} \ | ||
34 | file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \ | ||
35 | file://0008-missing-execinfo_h.patch \ | ||
36 | file://0009-c99-snprintf.patch \ | ||
37 | file://0010-gcc-poison-system-directories.patch \ | ||
38 | file://0011-gcc-poison-dir-extend.patch \ | ||
39 | file://0012-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch \ | ||
40 | file://0013-64-bit-multilib-hack.patch \ | ||
41 | file://0014-optional-libstdc.patch \ | ||
42 | file://0015-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch \ | ||
43 | file://0016-COLLECT_GCC_OPTIONS.patch \ | ||
44 | file://0017-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch \ | ||
45 | file://0018-fortran-cross-compile-hack.patch \ | ||
46 | file://0019-cpp-honor-sysroot.patch \ | ||
47 | file://0020-MIPS64-Default-to-N64-ABI.patch \ | ||
48 | file://0021-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch \ | ||
49 | file://0022-gcc-Fix-argument-list-too-long-error.patch \ | ||
50 | file://0023-Disable-sdt.patch \ | ||
51 | file://0024-libtool.patch \ | ||
52 | file://0025-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch \ | ||
53 | file://0026-Use-the-multilib-config-files-from-B-instead-of-usin.patch \ | ||
54 | file://0027-Avoid-using-libdir-from-.la-which-usually-points-to-.patch \ | ||
55 | file://0028-export-CPP.patch \ | ||
56 | file://0029-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch \ | ||
57 | file://0030-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch \ | ||
58 | file://0031-Ensure-target-gcc-headers-can-be-included.patch \ | ||
59 | file://0032-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch \ | ||
60 | file://0033-Don-t-search-host-directory-during-relink-if-inst_pr.patch \ | ||
61 | file://0034-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch \ | ||
62 | file://0035-aarch64-Add-support-for-musl-ldso.patch \ | ||
63 | file://0036-libcc1-fix-libcc1-s-install-path-and-rpath.patch \ | ||
64 | file://0037-handle-sysroot-support-for-nativesdk-gcc.patch \ | ||
65 | file://0038-Search-target-sysroot-gcc-version-specific-dirs-with.patch \ | ||
66 | file://0039-Fix-various-_FOR_BUILD-and-related-variables.patch \ | ||
67 | file://0040-nios2-Define-MUSL_DYNAMIC_LINKER.patch \ | ||
68 | file://0041-ssp_nonshared.patch \ | ||
69 | file://0042-gcc-libcpp-support-ffile-prefix-map-old-new.patch \ | ||
70 | file://0043-Reuse-fdebug-prefix-map-to-replace-ffile-prefix-map.patch \ | ||
71 | file://0044-gcc-final.c-fdebug-prefix-map-support-to-remap-sourc.patch \ | ||
72 | file://0045-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch \ | ||
73 | file://0046-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch \ | ||
74 | file://0047-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch \ | ||
75 | file://0048-sync-gcc-stddef.h-with-musl.patch \ | ||
76 | file://0054_all_nopie-all-flags.patch \ | ||
77 | file://0055-unwind_h-glibc26.patch \ | ||
78 | file://0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch \ | ||
79 | ${BACKPORTS} \ | ||
80 | " | ||
81 | BACKPORTS = "\ | ||
82 | file://CVE-2016-6131.patch \ | ||
83 | file://0057-ARM-PR-82445-suppress-32-bit-aligned-ldrd-strd-peeph.patch \ | ||
84 | " | ||
85 | SRC_URI[md5sum] = "11ba51a0cfb8471927f387c8895fe232" | ||
86 | SRC_URI[sha256sum] = "850bf21eafdfe5cd5f6827148184c08c4a0852a37ccf36ce69855334d2c914d4" | ||
87 | |||
88 | S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}" | ||
89 | #S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/git" | ||
90 | B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}" | ||
91 | |||
92 | # Language Overrides | ||
93 | FORTRAN = "" | ||
94 | JAVA = "" | ||
95 | |||
96 | LTO = "--enable-lto" | ||
97 | |||
98 | EXTRA_OECONF_BASE = "\ | ||
99 | ${LTO} \ | ||
100 | --enable-libssp \ | ||
101 | --enable-libitm \ | ||
102 | --disable-bootstrap \ | ||
103 | --disable-libmudflap \ | ||
104 | --with-system-zlib \ | ||
105 | --with-linker-hash-style=${LINKER_HASH_STYLE} \ | ||
106 | --enable-linker-build-id \ | ||
107 | --with-ppl=no \ | ||
108 | --with-cloog=no \ | ||
109 | --enable-checking=release \ | ||
110 | --enable-cheaders=c_global \ | ||
111 | --without-isl \ | ||
112 | " | ||
113 | |||
114 | EXTRA_OECONF_INITIAL = "\ | ||
115 | --disable-libmudflap \ | ||
116 | --disable-libgomp \ | ||
117 | --disable-libitm \ | ||
118 | --disable-libquadmath \ | ||
119 | --with-system-zlib \ | ||
120 | --disable-lto \ | ||
121 | --disable-plugin \ | ||
122 | --enable-decimal-float=no \ | ||
123 | --without-isl \ | ||
124 | gcc_cv_libc_provides_ssp=yes \ | ||
125 | " | ||
126 | |||
127 | EXTRA_OECONF_PATHS = "\ | ||
128 | --with-gxx-include-dir=/not/exist{target_includedir}/c++/${BINV} \ | ||
129 | --with-sysroot=/not/exist \ | ||
130 | --with-build-sysroot=${STAGING_DIR_TARGET} \ | ||
131 | " | ||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch b/meta/recipes-devtools/gcc/gcc-6.4/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch deleted file mode 100644 index 415f091ee7..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | From 92ed30da16b7487b334f739be177eb39885ab772 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 08:37:11 +0400 | ||
4 | Subject: [PATCH 01/46] gcc-4.3.1: ARCH_FLAGS_FOR_TARGET | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | |||
8 | Upstream-Status: Inappropriate [embedded specific] | ||
9 | --- | ||
10 | configure | 2 +- | ||
11 | configure.ac | 2 +- | ||
12 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
13 | |||
14 | diff --git a/configure b/configure | ||
15 | index 35f231e..bfadc33 100755 | ||
16 | --- a/configure | ||
17 | +++ b/configure | ||
18 | @@ -7550,7 +7550,7 @@ fi | ||
19 | # for target_alias and gcc doesn't manage it consistently. | ||
20 | target_configargs="--cache-file=./config.cache ${target_configargs}" | ||
21 | |||
22 | -FLAGS_FOR_TARGET= | ||
23 | +FLAGS_FOR_TARGET="$ARCH_FLAGS_FOR_TARGET" | ||
24 | case " $target_configdirs " in | ||
25 | *" newlib "*) | ||
26 | case " $target_configargs " in | ||
27 | diff --git a/configure.ac b/configure.ac | ||
28 | index 74bf58a..197d61b 100644 | ||
29 | --- a/configure.ac | ||
30 | +++ b/configure.ac | ||
31 | @@ -3149,7 +3149,7 @@ fi | ||
32 | # for target_alias and gcc doesn't manage it consistently. | ||
33 | target_configargs="--cache-file=./config.cache ${target_configargs}" | ||
34 | |||
35 | -FLAGS_FOR_TARGET= | ||
36 | +FLAGS_FOR_TARGET="$ARCH_FLAGS_FOR_TARGET" | ||
37 | case " $target_configdirs " in | ||
38 | *" newlib "*) | ||
39 | case " $target_configargs " in | ||
40 | -- | ||
41 | 2.8.2 | ||
42 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0008-missing-execinfo_h.patch b/meta/recipes-devtools/gcc/gcc-6.4/0008-missing-execinfo_h.patch deleted file mode 100644 index 01e7c9549e..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0008-missing-execinfo_h.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | From 6dde3da24ef4b9b357bca670d8551cab3fdda843 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 08:48:10 +0400 | ||
4 | Subject: [PATCH 08/46] missing-execinfo_h | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | --- | ||
10 | boehm-gc/include/gc.h | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/boehm-gc/include/gc.h b/boehm-gc/include/gc.h | ||
14 | index 6b38f2d..fca98ff 100644 | ||
15 | --- a/boehm-gc/include/gc.h | ||
16 | +++ b/boehm-gc/include/gc.h | ||
17 | @@ -503,7 +503,7 @@ GC_API GC_PTR GC_malloc_atomic_ignore_off_page GC_PROTO((size_t lb)); | ||
18 | #if defined(__linux__) || defined(__GLIBC__) | ||
19 | # include <features.h> | ||
20 | # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \ | ||
21 | - && !defined(__ia64__) | ||
22 | + && !defined(__ia64__) && !defined(__UCLIBC__) | ||
23 | # ifndef GC_HAVE_BUILTIN_BACKTRACE | ||
24 | # define GC_HAVE_BUILTIN_BACKTRACE | ||
25 | # endif | ||
26 | -- | ||
27 | 2.8.2 | ||
28 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0009-c99-snprintf.patch b/meta/recipes-devtools/gcc/gcc-6.4/0009-c99-snprintf.patch deleted file mode 100644 index d62341ac65..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0009-c99-snprintf.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | From b794f1f1c1c7c06f3f0d78cf76c4fb90c2ab8dfb Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 08:49:03 +0400 | ||
4 | Subject: [PATCH 09/46] c99-snprintf | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | --- | ||
10 | libstdc++-v3/include/c_std/cstdio | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/libstdc++-v3/include/c_std/cstdio b/libstdc++-v3/include/c_std/cstdio | ||
14 | index a4119ba..8396f43 100644 | ||
15 | --- a/libstdc++-v3/include/c_std/cstdio | ||
16 | +++ b/libstdc++-v3/include/c_std/cstdio | ||
17 | @@ -144,7 +144,7 @@ namespace std | ||
18 | using ::vsprintf; | ||
19 | } // namespace std | ||
20 | |||
21 | -#if _GLIBCXX_USE_C99_STDIO | ||
22 | +#if _GLIBCXX_USE_C99_STDIO || defined(__UCLIBC__) | ||
23 | |||
24 | #undef snprintf | ||
25 | #undef vfscanf | ||
26 | -- | ||
27 | 2.8.2 | ||
28 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0010-gcc-poison-system-directories.patch b/meta/recipes-devtools/gcc/gcc-6.4/0010-gcc-poison-system-directories.patch deleted file mode 100644 index ac4cf442da..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0010-gcc-poison-system-directories.patch +++ /dev/null | |||
@@ -1,192 +0,0 @@ | |||
1 | From d76250323dad69212c958e4857a98d99ab51a39e Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 08:59:00 +0400 | ||
4 | Subject: [PATCH 10/46] gcc: poison-system-directories | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | |||
8 | Upstream-Status: Inappropriate [distribution: codesourcery] | ||
9 | --- | ||
10 | gcc/common.opt | 4 ++++ | ||
11 | gcc/config.in | 6 ++++++ | ||
12 | gcc/configure | 16 ++++++++++++++++ | ||
13 | gcc/configure.ac | 10 ++++++++++ | ||
14 | gcc/doc/invoke.texi | 9 +++++++++ | ||
15 | gcc/gcc.c | 2 ++ | ||
16 | gcc/incpath.c | 19 +++++++++++++++++++ | ||
17 | 7 files changed, 66 insertions(+) | ||
18 | |||
19 | diff --git a/gcc/common.opt b/gcc/common.opt | ||
20 | index 67048db..733185c 100644 | ||
21 | --- a/gcc/common.opt | ||
22 | +++ b/gcc/common.opt | ||
23 | @@ -659,6 +659,10 @@ Wreturn-local-addr | ||
24 | Common Var(warn_return_local_addr) Init(1) Warning | ||
25 | Warn about returning a pointer/reference to a local or temporary variable. | ||
26 | |||
27 | +Wpoison-system-directories | ||
28 | +Common Var(flag_poison_system_directories) Init(1) Warning | ||
29 | +Warn for -I and -L options using system directories if cross compiling | ||
30 | + | ||
31 | Wshadow | ||
32 | Common Var(warn_shadow) Warning | ||
33 | Warn when one local variable shadows another. | ||
34 | diff --git a/gcc/config.in b/gcc/config.in | ||
35 | index 115cb61..105b30f 100644 | ||
36 | --- a/gcc/config.in | ||
37 | +++ b/gcc/config.in | ||
38 | @@ -187,6 +187,12 @@ | ||
39 | #endif | ||
40 | |||
41 | |||
42 | +/* Define to warn for use of native system header directories */ | ||
43 | +#ifndef USED_FOR_TARGET | ||
44 | +#undef ENABLE_POISON_SYSTEM_DIRECTORIES | ||
45 | +#endif | ||
46 | + | ||
47 | + | ||
48 | /* Define if you want all operations on RTL (the basic data structure of the | ||
49 | optimizer and back end) to be checked for dynamic type safety at runtime. | ||
50 | This is quite expensive. */ | ||
51 | diff --git a/gcc/configure b/gcc/configure | ||
52 | index 1c6e340..8f83152 100755 | ||
53 | --- a/gcc/configure | ||
54 | +++ b/gcc/configure | ||
55 | @@ -942,6 +942,7 @@ with_system_zlib | ||
56 | enable_maintainer_mode | ||
57 | enable_link_mutex | ||
58 | enable_version_specific_runtime_libs | ||
59 | +enable_poison_system_directories | ||
60 | enable_plugin | ||
61 | enable_host_shared | ||
62 | enable_libquadmath_support | ||
63 | @@ -1681,6 +1682,8 @@ Optional Features: | ||
64 | --enable-version-specific-runtime-libs | ||
65 | specify that runtime libraries should be installed | ||
66 | in a compiler-specific directory | ||
67 | + --enable-poison-system-directories | ||
68 | + warn for use of native system header directories | ||
69 | --enable-plugin enable plugin support | ||
70 | --enable-host-shared build host code as shared libraries | ||
71 | --disable-libquadmath-support | ||
72 | @@ -28908,6 +28911,19 @@ if test "${enable_version_specific_runtime_libs+set}" = set; then : | ||
73 | fi | ||
74 | |||
75 | |||
76 | +# Check whether --enable-poison-system-directories was given. | ||
77 | +if test "${enable_poison_system_directories+set}" = set; then : | ||
78 | + enableval=$enable_poison_system_directories; | ||
79 | +else | ||
80 | + enable_poison_system_directories=no | ||
81 | +fi | ||
82 | + | ||
83 | +if test "x${enable_poison_system_directories}" = "xyes"; then | ||
84 | + | ||
85 | +$as_echo "#define ENABLE_POISON_SYSTEM_DIRECTORIES 1" >>confdefs.h | ||
86 | + | ||
87 | +fi | ||
88 | + | ||
89 | # Substitute configuration variables | ||
90 | |||
91 | |||
92 | diff --git a/gcc/configure.ac b/gcc/configure.ac | ||
93 | index 6c1dcd9..0fccaef 100644 | ||
94 | --- a/gcc/configure.ac | ||
95 | +++ b/gcc/configure.ac | ||
96 | @@ -5861,6 +5861,16 @@ AC_ARG_ENABLE(version-specific-runtime-libs, | ||
97 | [specify that runtime libraries should be | ||
98 | installed in a compiler-specific directory])]) | ||
99 | |||
100 | +AC_ARG_ENABLE([poison-system-directories], | ||
101 | + AS_HELP_STRING([--enable-poison-system-directories], | ||
102 | + [warn for use of native system header directories]),, | ||
103 | + [enable_poison_system_directories=no]) | ||
104 | +if test "x${enable_poison_system_directories}" = "xyes"; then | ||
105 | + AC_DEFINE([ENABLE_POISON_SYSTEM_DIRECTORIES], | ||
106 | + [1], | ||
107 | + [Define to warn for use of native system header directories]) | ||
108 | +fi | ||
109 | + | ||
110 | # Substitute configuration variables | ||
111 | AC_SUBST(subdirs) | ||
112 | AC_SUBST(srcdir) | ||
113 | diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi | ||
114 | index 821f8fd..8bb49e7 100644 | ||
115 | --- a/gcc/doc/invoke.texi | ||
116 | +++ b/gcc/doc/invoke.texi | ||
117 | @@ -284,6 +284,7 @@ Objective-C and Objective-C++ Dialects}. | ||
118 | -Wparentheses -Wno-pedantic-ms-format @gol | ||
119 | -Wplacement-new -Wplacement-new=@var{n} @gol | ||
120 | -Wpointer-arith -Wno-pointer-to-int-cast @gol | ||
121 | +-Wno-poison-system-directories @gol | ||
122 | -Wno-pragmas -Wredundant-decls -Wno-return-local-addr @gol | ||
123 | -Wreturn-type -Wsequence-point -Wshadow -Wno-shadow-ivar @gol | ||
124 | -Wshift-overflow -Wshift-overflow=@var{n} @gol | ||
125 | @@ -4723,6 +4724,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 | ||
127 | made executable in order for the program to work properly. | ||
128 | |||
129 | +@item -Wno-poison-system-directories | ||
130 | +@opindex Wno-poison-system-directories | ||
131 | +Do not warn for @option{-I} or @option{-L} options using system | ||
132 | +directories such as @file{/usr/include} when cross compiling. This | ||
133 | +option is intended for use in chroot environments when such | ||
134 | +directories contain the correct headers and libraries for the target | ||
135 | +system rather than the host. | ||
136 | + | ||
137 | @item -Wfloat-equal | ||
138 | @opindex Wfloat-equal | ||
139 | @opindex Wno-float-equal | ||
140 | diff --git a/gcc/gcc.c b/gcc/gcc.c | ||
141 | index 1af5920..4cfef7f 100644 | ||
142 | --- a/gcc/gcc.c | ||
143 | +++ b/gcc/gcc.c | ||
144 | @@ -1017,6 +1017,8 @@ proper position among the other output files. */ | ||
145 | "%{fuse-ld=*:-fuse-ld=%*} " LINK_COMPRESS_DEBUG_SPEC \ | ||
146 | "%X %{o*} %{e*} %{N} %{n} %{r}\ | ||
147 | %{s} %{t} %{u*} %{z} %{Z} %{!nostdlib:%{!nostartfiles:%S}} \ | ||
148 | + %{Wno-poison-system-directories:--no-poison-system-directories} \ | ||
149 | + %{Werror=poison-system-directories:--error-poison-system-directories} \ | ||
150 | %{static:} %{L*} %(mfwrap) %(link_libgcc) " \ | ||
151 | VTABLE_VERIFICATION_SPEC " " SANITIZER_EARLY_SPEC " %o " CHKP_SPEC " \ | ||
152 | %{fopenacc|fopenmp|%:gt(%{ftree-parallelize-loops=*:%*} 1):\ | ||
153 | diff --git a/gcc/incpath.c b/gcc/incpath.c | ||
154 | index ea40f4a..856da41 100644 | ||
155 | --- a/gcc/incpath.c | ||
156 | +++ b/gcc/incpath.c | ||
157 | @@ -26,6 +26,7 @@ | ||
158 | #include "intl.h" | ||
159 | #include "incpath.h" | ||
160 | #include "cppdefault.h" | ||
161 | +#include "diagnostic-core.h" | ||
162 | |||
163 | /* Microsoft Windows does not natively support inodes. | ||
164 | VMS has non-numeric inodes. */ | ||
165 | @@ -381,6 +382,24 @@ merge_include_chains (const char *sysroot, cpp_reader *pfile, int verbose) | ||
166 | } | ||
167 | fprintf (stderr, _("End of search list.\n")); | ||
168 | } | ||
169 | + | ||
170 | +#ifdef ENABLE_POISON_SYSTEM_DIRECTORIES | ||
171 | + if (flag_poison_system_directories) | ||
172 | + { | ||
173 | + struct cpp_dir *p; | ||
174 | + | ||
175 | + for (p = heads[QUOTE]; p; p = p->next) | ||
176 | + { | ||
177 | + if ((!strncmp (p->name, "/usr/include", 12)) | ||
178 | + || (!strncmp (p->name, "/usr/local/include", 18)) | ||
179 | + || (!strncmp (p->name, "/usr/X11R6/include", 18))) | ||
180 | + warning (OPT_Wpoison_system_directories, | ||
181 | + "include location \"%s\" is unsafe for " | ||
182 | + "cross-compilation", | ||
183 | + p->name); | ||
184 | + } | ||
185 | + } | ||
186 | +#endif | ||
187 | } | ||
188 | |||
189 | /* Use given -I paths for #include "..." but not #include <...>, and | ||
190 | -- | ||
191 | 2.8.2 | ||
192 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0011-gcc-poison-dir-extend.patch b/meta/recipes-devtools/gcc/gcc-6.4/0011-gcc-poison-dir-extend.patch deleted file mode 100644 index a1736aea12..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0011-gcc-poison-dir-extend.patch +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | From a1c24b59def393e43cd50b6768604a212c788ed3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:00:34 +0400 | ||
4 | Subject: [PATCH 11/46] gcc-poison-dir-extend | ||
5 | |||
6 | Add /sw/include and /opt/include based on the original | ||
7 | zecke-no-host-includes.patch patch. The original patch checked for | ||
8 | /usr/include, /sw/include and /opt/include and then triggered a failure and | ||
9 | aborted. | ||
10 | |||
11 | Instead, we add the two missing items to the current scan. If the user | ||
12 | wants this to be a failure, they can add "-Werror=poison-system-directories". | ||
13 | |||
14 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | ||
15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
16 | |||
17 | Upstream-Status: Pending | ||
18 | --- | ||
19 | gcc/incpath.c | 4 +++- | ||
20 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/gcc/incpath.c b/gcc/incpath.c | ||
23 | index 856da41..d2fc82c 100644 | ||
24 | --- a/gcc/incpath.c | ||
25 | +++ b/gcc/incpath.c | ||
26 | @@ -392,7 +392,9 @@ merge_include_chains (const char *sysroot, cpp_reader *pfile, int verbose) | ||
27 | { | ||
28 | if ((!strncmp (p->name, "/usr/include", 12)) | ||
29 | || (!strncmp (p->name, "/usr/local/include", 18)) | ||
30 | - || (!strncmp (p->name, "/usr/X11R6/include", 18))) | ||
31 | + || (!strncmp (p->name, "/usr/X11R6/include", 18)) | ||
32 | + || (!strncmp (p->name, "/sw/include", 11)) | ||
33 | + || (!strncmp (p->name, "/opt/include", 12))) | ||
34 | warning (OPT_Wpoison_system_directories, | ||
35 | "include location \"%s\" is unsafe for " | ||
36 | "cross-compilation", | ||
37 | -- | ||
38 | 2.8.2 | ||
39 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0012-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch b/meta/recipes-devtools/gcc/gcc-6.4/0012-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch deleted file mode 100644 index 939b0705f8..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0012-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch +++ /dev/null | |||
@@ -1,73 +0,0 @@ | |||
1 | From 00ef5f0f2a8d3b33aeb1e55c0d23439f4dd495af Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:08:31 +0400 | ||
4 | Subject: [PATCH 12/46] gcc-4.3.3: SYSROOT_CFLAGS_FOR_TARGET | ||
5 | |||
6 | Before committing, I noticed that PR/32161 was marked as a dup of PR/32009, but my previous patch did not fix it. | ||
7 | |||
8 | This alternative patch is better because it lets you just use CFLAGS_FOR_TARGET to set the compilation flags for libgcc. Since bootstrapped target libraries are never compiled with the native compiler, it makes little sense to use different flags for stage1 and later stages. And it also makes little sense to use a different variable than CFLAGS_FOR_TARGET. | ||
9 | |||
10 | Other changes I had to do include: | ||
11 | |||
12 | - moving the creation of default CFLAGS_FOR_TARGET from Makefile.am to configure.ac, because otherwise the BOOT_CFLAGS are substituted into CFLAGS_FOR_TARGET (which is "-O2 -g $(CFLAGS)") via $(CFLAGS). It is also cleaner this way though. | ||
13 | |||
14 | - passing the right CFLAGS to configure scripts as exported environment variables | ||
15 | |||
16 | I also stopped passing LIBCFLAGS to configure scripts since they are unused in the whole src tree. And I updated the documentation as H-P reminded me to do. | ||
17 | |||
18 | Bootstrapped/regtested i686-pc-linux-gnu, will commit to 4.4 shortly. Ok for 4.3? | ||
19 | |||
20 | Signed-off-by: Paolo Bonzini <bonzini@gnu.org> | ||
21 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
22 | |||
23 | Upstream-Status: Pending | ||
24 | --- | ||
25 | configure | 32 ++++++++++++++++++++++++++++++++ | ||
26 | 1 file changed, 32 insertions(+) | ||
27 | |||
28 | diff --git a/configure b/configure | ||
29 | index bfadc33..755d382 100755 | ||
30 | --- a/configure | ||
31 | +++ b/configure | ||
32 | @@ -6819,6 +6819,38 @@ fi | ||
33 | |||
34 | |||
35 | |||
36 | +# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS | ||
37 | +# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | ||
38 | +# might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | ||
39 | +# We want to ensure that TARGET libraries (which we know are built with | ||
40 | +# gcc) are built with "-O2 -g", so include those options when setting | ||
41 | +# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | ||
42 | +if test "x$CFLAGS_FOR_TARGET" = x; then | ||
43 | + CFLAGS_FOR_TARGET=$CFLAGS | ||
44 | + case " $CFLAGS " in | ||
45 | + *" -O2 "*) ;; | ||
46 | + *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;; | ||
47 | + esac | ||
48 | + case " $CFLAGS " in | ||
49 | + *" -g "* | *" -g3 "*) ;; | ||
50 | + *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;; | ||
51 | + esac | ||
52 | +fi | ||
53 | + | ||
54 | + | ||
55 | +if test "x$CXXFLAGS_FOR_TARGET" = x; then | ||
56 | + CXXFLAGS_FOR_TARGET=$CXXFLAGS | ||
57 | + case " $CXXFLAGS " in | ||
58 | + *" -O2 "*) ;; | ||
59 | + *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;; | ||
60 | + esac | ||
61 | + case " $CXXFLAGS " in | ||
62 | + *" -g "* | *" -g3 "*) ;; | ||
63 | + *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;; | ||
64 | + esac | ||
65 | +fi | ||
66 | + | ||
67 | + | ||
68 | # Handle --with-headers=XXX. If the value is not "yes", the contents of | ||
69 | # the named directory are copied to $(tooldir)/sys-include. | ||
70 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | ||
71 | -- | ||
72 | 2.8.2 | ||
73 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0013-64-bit-multilib-hack.patch b/meta/recipes-devtools/gcc/gcc-6.4/0013-64-bit-multilib-hack.patch deleted file mode 100644 index e31cde4317..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0013-64-bit-multilib-hack.patch +++ /dev/null | |||
@@ -1,85 +0,0 @@ | |||
1 | From 7fc7a070ac53a55950a1eac76f02877d4106b4b3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:10:06 +0400 | ||
4 | Subject: [PATCH 13/46] 64-bit multilib hack. | ||
5 | |||
6 | GCC has internal multilib handling code but it assumes a very specific rigid directory | ||
7 | layout. The build system implementation of multilib layout is very generic and allows | ||
8 | complete customisation of the library directories. | ||
9 | |||
10 | This patch is a partial solution to allow any custom directories to be passed into gcc | ||
11 | and handled correctly. It forces gcc to use the base_libdir (which is the current | ||
12 | directory, "."). We need to do this for each multilib that is configured as we don't | ||
13 | know which compiler options may be being passed into the compiler. Since we have a compiler | ||
14 | per mulitlib at this point that isn't an issue. | ||
15 | |||
16 | The one problem is the target compiler is only going to work for the default multlilib at | ||
17 | this point. Ideally we'd figure out which multilibs were being enabled with which paths | ||
18 | and be able to patch these entries with a complete set of correct paths but this we | ||
19 | don't have such code at this point. This is something the target gcc recipe should do | ||
20 | and override these platform defaults in its build config. | ||
21 | |||
22 | RP 15/8/11 | ||
23 | |||
24 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
25 | Signed-off-by: Elvis Dowson <elvis.dowson@gmail.com> | ||
26 | |||
27 | Upstream-Status: Pending | ||
28 | --- | ||
29 | gcc/config/i386/t-linux64 | 6 ++---- | ||
30 | gcc/config/mips/t-linux64 | 10 +++------- | ||
31 | gcc/config/rs6000/t-linux64 | 5 ++--- | ||
32 | 3 files changed, 7 insertions(+), 14 deletions(-) | ||
33 | |||
34 | diff --git a/gcc/config/i386/t-linux64 b/gcc/config/i386/t-linux64 | ||
35 | index c0cc8a3..365a5d6 100644 | ||
36 | --- a/gcc/config/i386/t-linux64 | ||
37 | +++ b/gcc/config/i386/t-linux64 | ||
38 | @@ -32,7 +32,5 @@ | ||
39 | # | ||
40 | comma=, | ||
41 | MULTILIB_OPTIONS = $(subst $(comma),/,$(TM_MULTILIB_CONFIG)) | ||
42 | -MULTILIB_DIRNAMES = $(patsubst m%, %, $(subst /, ,$(MULTILIB_OPTIONS))) | ||
43 | -MULTILIB_OSDIRNAMES = m64=../lib64$(call if_multiarch,:x86_64-linux-gnu) | ||
44 | -MULTILIB_OSDIRNAMES+= m32=$(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)$(call if_multiarch,:i386-linux-gnu) | ||
45 | -MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32) | ||
46 | +MULTILIB_DIRNAMES = . . | ||
47 | +MULTILIB_OSDIRNAMES = ../$(shell basename $(base_libdir)) ../$(shell basename $(base_libdir)) | ||
48 | diff --git a/gcc/config/mips/t-linux64 b/gcc/config/mips/t-linux64 | ||
49 | index 16c8adf..b932ace 100644 | ||
50 | --- a/gcc/config/mips/t-linux64 | ||
51 | +++ b/gcc/config/mips/t-linux64 | ||
52 | @@ -17,10 +17,6 @@ | ||
53 | # <http://www.gnu.org/licenses/>. | ||
54 | |||
55 | MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi=64 | ||
56 | -MULTILIB_DIRNAMES = n32 32 64 | ||
57 | -MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el) | ||
58 | -MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft) | ||
59 | -MULTILIB_OSDIRNAMES = \ | ||
60 | - ../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \ | ||
61 | - ../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \ | ||
62 | - ../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT)) | ||
63 | +MULTILIB_DIRNAMES = . . . | ||
64 | +MULTILIB_OSDIRNAMES = ../$(shell basename $(base_libdir)) ../$(shell basename $(base_libdir)) ../$(shell basename $(base_libdir)) | ||
65 | + | ||
66 | diff --git a/gcc/config/rs6000/t-linux64 b/gcc/config/rs6000/t-linux64 | ||
67 | index fa7550b..9b5d9ef 100644 | ||
68 | --- a/gcc/config/rs6000/t-linux64 | ||
69 | +++ b/gcc/config/rs6000/t-linux64 | ||
70 | @@ -26,10 +26,9 @@ | ||
71 | # MULTILIB_OSDIRNAMES according to what is found on the target. | ||
72 | |||
73 | MULTILIB_OPTIONS := m64/m32 | ||
74 | -MULTILIB_DIRNAMES := 64 32 | ||
75 | +MULTILIB_DIRNAMES := . . | ||
76 | MULTILIB_EXTRA_OPTS := | ||
77 | -MULTILIB_OSDIRNAMES := m64=../lib64$(call if_multiarch,:powerpc64-linux-gnu) | ||
78 | -MULTILIB_OSDIRNAMES += m32=$(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)$(call if_multiarch,:powerpc-linux-gnu) | ||
79 | +MULTILIB_OSDIRNAMES := ../$(shell basename $(base_libdir)) ../$(shell basename $(base_libdir)) | ||
80 | |||
81 | rs6000-linux.o: $(srcdir)/config/rs6000/rs6000-linux.c | ||
82 | $(COMPILE) $< | ||
83 | -- | ||
84 | 2.8.2 | ||
85 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0014-optional-libstdc.patch b/meta/recipes-devtools/gcc/gcc-6.4/0014-optional-libstdc.patch deleted file mode 100644 index 44b0cc7d6e..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0014-optional-libstdc.patch +++ /dev/null | |||
@@ -1,125 +0,0 @@ | |||
1 | From 36275f7981bdaf919bbc9b51a7c7fae1e192adb3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:12:56 +0400 | ||
4 | Subject: [PATCH 14/46] optional libstdc | ||
5 | |||
6 | gcc-runtime builds libstdc++ separately from gcc-cross-*. Its configure tests using g++ | ||
7 | will not run correctly since by default the linker will try to link against libstdc++ | ||
8 | which shouldn't exist yet. We need an option to disable -lstdc++ | ||
9 | option whilst leaving -lc, -lgcc and other automatic library dependencies added by gcc | ||
10 | driver. This patch adds such an option which only disables the -lstdc++. | ||
11 | |||
12 | A "standard" gcc build uses xgcc and hence avoids this. We should ask upstream how to | ||
13 | do this officially, the likely answer is don't build libstdc++ separately. | ||
14 | |||
15 | RP 29/6/10 | ||
16 | |||
17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
18 | |||
19 | Upstream-Status: Inappropriate [embedded specific] | ||
20 | --- | ||
21 | gcc/c-family/c.opt | 4 ++++ | ||
22 | gcc/cp/g++spec.c | 1 + | ||
23 | gcc/doc/invoke.texi | 32 +++++++++++++++++++++++++++++++- | ||
24 | gcc/gcc.c | 1 + | ||
25 | 4 files changed, 37 insertions(+), 1 deletion(-) | ||
26 | |||
27 | diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt | ||
28 | index 4f86876..660da6c 100644 | ||
29 | --- a/gcc/c-family/c.opt | ||
30 | +++ b/gcc/c-family/c.opt | ||
31 | @@ -1647,6 +1647,10 @@ nostdinc++ | ||
32 | C++ ObjC++ | ||
33 | Do not search standard system include directories for C++. | ||
34 | |||
35 | +nostdlib++ | ||
36 | +Driver | ||
37 | +Do not link standard C++ runtime library | ||
38 | + | ||
39 | o | ||
40 | C ObjC C++ ObjC++ Joined Separate | ||
41 | ; Documented in common.opt | ||
42 | diff --git a/gcc/cp/g++spec.c b/gcc/cp/g++spec.c | ||
43 | index 03cbde0..3642540 100644 | ||
44 | --- a/gcc/cp/g++spec.c | ||
45 | +++ b/gcc/cp/g++spec.c | ||
46 | @@ -137,6 +137,7 @@ lang_specific_driver (struct cl_decoded_option **in_decoded_options, | ||
47 | switch (decoded_options[i].opt_index) | ||
48 | { | ||
49 | case OPT_nostdlib: | ||
50 | + case OPT_nostdlib__: | ||
51 | case OPT_nodefaultlibs: | ||
52 | library = -1; | ||
53 | break; | ||
54 | diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi | ||
55 | index 8bb49e7..84d68aa 100644 | ||
56 | --- a/gcc/doc/invoke.texi | ||
57 | +++ b/gcc/doc/invoke.texi | ||
58 | @@ -207,6 +207,9 @@ in the following sections. | ||
59 | -fno-weak -nostdinc++ @gol | ||
60 | -fvisibility-inlines-hidden @gol | ||
61 | -fvisibility-ms-compat @gol | ||
62 | +-fvtable-verify=@r{[}std@r{|}preinit@r{|}none@r{]} @gol | ||
63 | +-fvtv-counts -fvtv-debug @gol | ||
64 | +-nostdlib++ @gol | ||
65 | -fext-numeric-literals @gol | ||
66 | -Wabi=@var{n} -Wabi-tag -Wconversion-null -Wctor-dtor-privacy @gol | ||
67 | -Wdelete-non-virtual-dtor -Wliteral-suffix -Wmultiple-inheritance @gol | ||
68 | @@ -470,7 +473,7 @@ Objective-C and Objective-C++ Dialects}. | ||
69 | -s -static -static-libgcc -static-libstdc++ @gol | ||
70 | -static-libasan -static-libtsan -static-liblsan -static-libubsan @gol | ||
71 | -static-libmpx -static-libmpxwrappers @gol | ||
72 | --shared -shared-libgcc -symbolic @gol | ||
73 | +-shared -shared-libgcc -symbolic -nostdlib++ @gol | ||
74 | -T @var{script} -Wl,@var{option} -Xlinker @var{option} @gol | ||
75 | -u @var{symbol} -z @var{keyword}} | ||
76 | |||
77 | @@ -10601,6 +10604,33 @@ library subroutines. | ||
78 | constructors are called; @pxref{Collect2,,@code{collect2}, gccint, | ||
79 | GNU Compiler Collection (GCC) Internals}.) | ||
80 | |||
81 | +@item -nostdlib++ | ||
82 | +@opindex nostdlib++ | ||
83 | +Do not use the standard system C++ runtime libraries when linking. | ||
84 | +Only the libraries you specify will be passed to the linker. | ||
85 | + | ||
86 | +@cindex @option{-lgcc}, use with @option{-nostdlib} | ||
87 | +@cindex @option{-nostdlib} and unresolved references | ||
88 | +@cindex unresolved references and @option{-nostdlib} | ||
89 | +@cindex @option{-lgcc}, use with @option{-nodefaultlibs} | ||
90 | +@cindex @option{-nodefaultlibs} and unresolved references | ||
91 | +@cindex unresolved references and @option{-nodefaultlibs} | ||
92 | +One of the standard libraries bypassed by @option{-nostdlib} and | ||
93 | +@option{-nodefaultlibs} is @file{libgcc.a}, a library of internal subroutines | ||
94 | +which GCC uses to overcome shortcomings of particular machines, or special | ||
95 | +needs for some languages. | ||
96 | +(@xref{Interface,,Interfacing to GCC Output,gccint,GNU Compiler | ||
97 | +Collection (GCC) Internals}, | ||
98 | +for more discussion of @file{libgcc.a}.) | ||
99 | +In most cases, you need @file{libgcc.a} even when you want to avoid | ||
100 | +other standard libraries. In other words, when you specify @option{-nostdlib} | ||
101 | +or @option{-nodefaultlibs} you should usually specify @option{-lgcc} as well. | ||
102 | +This ensures that you have no unresolved references to internal GCC | ||
103 | +library subroutines. | ||
104 | +(An example of such an internal subroutine is @code{__main}, used to ensure C++ | ||
105 | +constructors are called; @pxref{Collect2,,@code{collect2}, gccint, | ||
106 | +GNU Compiler Collection (GCC) Internals}.) | ||
107 | + | ||
108 | @item -pie | ||
109 | @opindex pie | ||
110 | Produce a position independent executable on targets that support it. | ||
111 | diff --git a/gcc/gcc.c b/gcc/gcc.c | ||
112 | index 4cfef7f..da0b482 100644 | ||
113 | --- a/gcc/gcc.c | ||
114 | +++ b/gcc/gcc.c | ||
115 | @@ -1028,6 +1028,7 @@ proper position among the other output files. */ | ||
116 | %(mflib) " STACK_SPLIT_SPEC "\ | ||
117 | %{fprofile-arcs|fprofile-generate*|coverage:-lgcov} " SANITIZER_SPEC " \ | ||
118 | %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}}\ | ||
119 | + %{!nostdlib++:}\ | ||
120 | %{!nostdlib:%{!nostartfiles:%E}} %{T*} \n%(post_link) }}}}}}" | ||
121 | #endif | ||
122 | |||
123 | -- | ||
124 | 2.8.2 | ||
125 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0015-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch b/meta/recipes-devtools/gcc/gcc-6.4/0015-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch deleted file mode 100644 index 6fc7346f6e..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0015-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch +++ /dev/null | |||
@@ -1,59 +0,0 @@ | |||
1 | From 9346f6042d8f7f85a75ca2af15f3b8d234985165 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:14:20 +0400 | ||
4 | Subject: [PATCH 15/46] gcc: disable MASK_RELAX_PIC_CALLS bit | ||
5 | |||
6 | The new feature added after 4.3.3 | ||
7 | "http://www.pubbs.net/200909/gcc/94048-patch-add-support-for-rmipsjalr.html" | ||
8 | will cause cc1plus eat up all the system memory when build webkit-gtk. | ||
9 | The function mips_get_pic_call_symbol keeps on recursively calling itself. | ||
10 | Disable this feature to walk aside the bug. | ||
11 | |||
12 | Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> | ||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | |||
15 | Upstream-Status: Inappropriate [configuration] | ||
16 | --- | ||
17 | gcc/configure | 7 ------- | ||
18 | gcc/configure.ac | 7 ------- | ||
19 | 2 files changed, 14 deletions(-) | ||
20 | |||
21 | diff --git a/gcc/configure b/gcc/configure | ||
22 | index 8f83152..5e72f17 100755 | ||
23 | --- a/gcc/configure | ||
24 | +++ b/gcc/configure | ||
25 | @@ -27018,13 +27018,6 @@ $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; | ||
26 | rm -f conftest.* | ||
27 | fi | ||
28 | fi | ||
29 | - if test $gcc_cv_as_ld_jalr_reloc = yes; then | ||
30 | - if test x$target_cpu_default = x; then | ||
31 | - target_cpu_default=MASK_RELAX_PIC_CALLS | ||
32 | - else | ||
33 | - target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS" | ||
34 | - fi | ||
35 | - fi | ||
36 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5 | ||
37 | $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; } | ||
38 | |||
39 | diff --git a/gcc/configure.ac b/gcc/configure.ac | ||
40 | index 0fccaef..dd8f6fa 100644 | ||
41 | --- a/gcc/configure.ac | ||
42 | +++ b/gcc/configure.ac | ||
43 | @@ -4522,13 +4522,6 @@ x: | ||
44 | rm -f conftest.* | ||
45 | fi | ||
46 | fi | ||
47 | - if test $gcc_cv_as_ld_jalr_reloc = yes; then | ||
48 | - if test x$target_cpu_default = x; then | ||
49 | - target_cpu_default=MASK_RELAX_PIC_CALLS | ||
50 | - else | ||
51 | - target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS" | ||
52 | - fi | ||
53 | - fi | ||
54 | AC_MSG_RESULT($gcc_cv_as_ld_jalr_reloc) | ||
55 | |||
56 | AC_CACHE_CHECK([linker for .eh_frame personality relaxation], | ||
57 | -- | ||
58 | 2.8.2 | ||
59 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0016-COLLECT_GCC_OPTIONS.patch b/meta/recipes-devtools/gcc/gcc-6.4/0016-COLLECT_GCC_OPTIONS.patch deleted file mode 100644 index c1548647c7..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0016-COLLECT_GCC_OPTIONS.patch +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | From 1033bc2d4efc5c301bb822b607a673f5b10cc69f Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:16:28 +0400 | ||
4 | Subject: [PATCH 16/46] COLLECT_GCC_OPTIONS | ||
5 | |||
6 | This patch adds --sysroot into COLLECT_GCC_OPTIONS which is used to | ||
7 | invoke collect2. | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | --- | ||
13 | gcc/gcc.c | 9 +++++++++ | ||
14 | 1 file changed, 9 insertions(+) | ||
15 | |||
16 | diff --git a/gcc/gcc.c b/gcc/gcc.c | ||
17 | index da0b482..7ca129f 100644 | ||
18 | --- a/gcc/gcc.c | ||
19 | +++ b/gcc/gcc.c | ||
20 | @@ -4591,6 +4591,15 @@ set_collect_gcc_options (void) | ||
21 | sizeof ("COLLECT_GCC_OPTIONS=") - 1); | ||
22 | |||
23 | first_time = TRUE; | ||
24 | +#ifdef HAVE_LD_SYSROOT | ||
25 | + if (target_system_root_changed && target_system_root) | ||
26 | + { | ||
27 | + obstack_grow (&collect_obstack, "'--sysroot=", sizeof("'--sysroot=")-1); | ||
28 | + obstack_grow (&collect_obstack, target_system_root,strlen(target_system_root)); | ||
29 | + obstack_grow (&collect_obstack, "'", 1); | ||
30 | + first_time = FALSE; | ||
31 | + } | ||
32 | +#endif | ||
33 | for (i = 0; (int) i < n_switches; i++) | ||
34 | { | ||
35 | const char *const *args; | ||
36 | -- | ||
37 | 2.8.2 | ||
38 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0017-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch b/meta/recipes-devtools/gcc/gcc-6.4/0017-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch deleted file mode 100644 index 0dbabd9e93..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0017-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch +++ /dev/null | |||
@@ -1,96 +0,0 @@ | |||
1 | From 67123a306880af997a99ae514677c2da4973bd1a Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:17:25 +0400 | ||
4 | Subject: [PATCH 17/46] Use the defaults.h in ${B} instead of ${S}, and t-oe in | ||
5 | ${B} | ||
6 | |||
7 | Use the defaults.h in ${B} instead of ${S}, and t-oe in ${B}, so that | ||
8 | the source can be shared between gcc-cross-initial, | ||
9 | gcc-cross-intermediate, gcc-cross, gcc-runtime, and also the sdk build. | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | |||
13 | Upstream-Status: Pending | ||
14 | |||
15 | While compiling gcc-crosssdk-initial-x86_64 on some host, there is | ||
16 | occasionally failure that test the existance of default.h doesn't | ||
17 | work, the reason is tm_include_list='** defaults.h' rather than | ||
18 | tm_include_list='** ./defaults.h' | ||
19 | |||
20 | So we add the test condition for this situation. | ||
21 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
22 | --- | ||
23 | gcc/Makefile.in | 2 +- | ||
24 | gcc/configure | 4 ++-- | ||
25 | gcc/configure.ac | 4 ++-- | ||
26 | gcc/mkconfig.sh | 4 ++-- | ||
27 | 4 files changed, 7 insertions(+), 7 deletions(-) | ||
28 | |||
29 | diff --git a/gcc/Makefile.in b/gcc/Makefile.in | ||
30 | index 6c5adc0..9a1d466 100644 | ||
31 | --- a/gcc/Makefile.in | ||
32 | +++ b/gcc/Makefile.in | ||
33 | @@ -517,7 +517,7 @@ TARGET_SYSTEM_ROOT = @TARGET_SYSTEM_ROOT@ | ||
34 | TARGET_SYSTEM_ROOT_DEFINE = @TARGET_SYSTEM_ROOT_DEFINE@ | ||
35 | |||
36 | xmake_file=@xmake_file@ | ||
37 | -tmake_file=@tmake_file@ | ||
38 | +tmake_file=@tmake_file@ ./t-oe | ||
39 | TM_ENDIAN_CONFIG=@TM_ENDIAN_CONFIG@ | ||
40 | TM_MULTILIB_CONFIG=@TM_MULTILIB_CONFIG@ | ||
41 | TM_MULTILIB_EXCEPTIONS_CONFIG=@TM_MULTILIB_EXCEPTIONS_CONFIG@ | ||
42 | diff --git a/gcc/configure b/gcc/configure | ||
43 | index 5e72f17..389b6d5 100755 | ||
44 | --- a/gcc/configure | ||
45 | +++ b/gcc/configure | ||
46 | @@ -12130,8 +12130,8 @@ for f in $tm_file; do | ||
47 | tm_include_list="${tm_include_list} $f" | ||
48 | ;; | ||
49 | defaults.h ) | ||
50 | - tm_file_list="${tm_file_list} \$(srcdir)/$f" | ||
51 | - tm_include_list="${tm_include_list} $f" | ||
52 | + tm_file_list="${tm_file_list} ./$f" | ||
53 | + tm_include_list="${tm_include_list} ./$f" | ||
54 | ;; | ||
55 | * ) | ||
56 | tm_file_list="${tm_file_list} \$(srcdir)/config/$f" | ||
57 | diff --git a/gcc/configure.ac b/gcc/configure.ac | ||
58 | index dd8f6fa..91ac800 100644 | ||
59 | --- a/gcc/configure.ac | ||
60 | +++ b/gcc/configure.ac | ||
61 | @@ -1883,8 +1883,8 @@ for f in $tm_file; do | ||
62 | tm_include_list="${tm_include_list} $f" | ||
63 | ;; | ||
64 | defaults.h ) | ||
65 | - tm_file_list="${tm_file_list} \$(srcdir)/$f" | ||
66 | - tm_include_list="${tm_include_list} $f" | ||
67 | + tm_file_list="${tm_file_list} ./$f" | ||
68 | + tm_include_list="${tm_include_list} ./$f" | ||
69 | ;; | ||
70 | * ) | ||
71 | tm_file_list="${tm_file_list} \$(srcdir)/config/$f" | ||
72 | diff --git a/gcc/mkconfig.sh b/gcc/mkconfig.sh | ||
73 | index 67dfac6..b73e08d 100644 | ||
74 | --- a/gcc/mkconfig.sh | ||
75 | +++ b/gcc/mkconfig.sh | ||
76 | @@ -77,7 +77,7 @@ if [ -n "$HEADERS" ]; then | ||
77 | if [ $# -ge 1 ]; then | ||
78 | echo '#ifdef IN_GCC' >> ${output}T | ||
79 | for file in "$@"; do | ||
80 | - if test x"$file" = x"defaults.h"; then | ||
81 | + if test x"$file" = x"./defaults.h" -o x"$file" = x"defaults.h"; then | ||
82 | postpone_defaults_h="yes" | ||
83 | else | ||
84 | echo "# include \"$file\"" >> ${output}T | ||
85 | @@ -109,7 +109,7 @@ esac | ||
86 | |||
87 | # If we postponed including defaults.h, add the #include now. | ||
88 | if test x"$postpone_defaults_h" = x"yes"; then | ||
89 | - echo "# include \"defaults.h\"" >> ${output}T | ||
90 | + echo "# include \"./defaults.h\"" >> ${output}T | ||
91 | fi | ||
92 | |||
93 | # Add multiple inclusion protection guard, part two. | ||
94 | -- | ||
95 | 2.8.2 | ||
96 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0018-fortran-cross-compile-hack.patch b/meta/recipes-devtools/gcc/gcc-6.4/0018-fortran-cross-compile-hack.patch deleted file mode 100644 index b43d89ea84..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0018-fortran-cross-compile-hack.patch +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | From e360dc3e0f1e0b9b001ef722fcf66f8120a03dbc Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:20:01 +0400 | ||
4 | Subject: [PATCH 18/46] fortran cross-compile hack. | ||
5 | |||
6 | * Fortran would have searched for arm-angstrom-gnueabi-gfortran but would have used | ||
7 | used gfortan. For gcc_4.2.2.bb we want to use the gfortran compiler from our cross | ||
8 | directory. | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | |||
12 | Upstream-Status: Inappropriate [embedded specific] | ||
13 | --- | ||
14 | libgfortran/configure | 2 +- | ||
15 | libgfortran/configure.ac | 2 +- | ||
16 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
17 | |||
18 | diff --git a/libgfortran/configure b/libgfortran/configure | ||
19 | index f746f6f..b4f3278 100755 | ||
20 | --- a/libgfortran/configure | ||
21 | +++ b/libgfortran/configure | ||
22 | @@ -12734,7 +12734,7 @@ esac | ||
23 | |||
24 | # We need gfortran to compile parts of the library | ||
25 | #AC_PROG_FC(gfortran) | ||
26 | -FC="$GFORTRAN" | ||
27 | +#FC="$GFORTRAN" | ||
28 | ac_ext=${ac_fc_srcext-f} | ||
29 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | ||
30 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | ||
31 | diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac | ||
32 | index 8f377bb..67710b5 100644 | ||
33 | --- a/libgfortran/configure.ac | ||
34 | +++ b/libgfortran/configure.ac | ||
35 | @@ -240,7 +240,7 @@ AC_SUBST(enable_static) | ||
36 | |||
37 | # We need gfortran to compile parts of the library | ||
38 | #AC_PROG_FC(gfortran) | ||
39 | -FC="$GFORTRAN" | ||
40 | +#FC="$GFORTRAN" | ||
41 | AC_PROG_FC(gfortran) | ||
42 | |||
43 | # extra LD Flags which are required for targets | ||
44 | -- | ||
45 | 2.8.2 | ||
46 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0019-cpp-honor-sysroot.patch b/meta/recipes-devtools/gcc/gcc-6.4/0019-cpp-honor-sysroot.patch deleted file mode 100644 index 417a5ede4d..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0019-cpp-honor-sysroot.patch +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | From 98d9c0c1b5552294b2130f7304bfb522da323442 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:22:00 +0400 | ||
4 | Subject: [PATCH 19/46] cpp: honor sysroot. | ||
5 | |||
6 | Currently, if the gcc toolchain is relocated and installed from sstate, then you try and compile | ||
7 | preprocessed source (.i or .ii files), the compiler will try and access the builtin sysroot location | ||
8 | rather than the --sysroot option specified on the commandline. If access to that directory is | ||
9 | permission denied (unreadable), gcc will error. | ||
10 | |||
11 | This happens when ccache is in use due to the fact it uses preprocessed source files. | ||
12 | |||
13 | The fix below adds %I to the cpp-output spec macro so the default substitutions for -iprefix, | ||
14 | -isystem, -isysroot happen and the correct sysroot is used. | ||
15 | |||
16 | [YOCTO #2074] | ||
17 | |||
18 | RP 2012/04/13 | ||
19 | |||
20 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
21 | |||
22 | Upstream-Status: Pending | ||
23 | --- | ||
24 | gcc/cp/lang-specs.h | 2 +- | ||
25 | gcc/gcc.c | 2 +- | ||
26 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
27 | |||
28 | diff --git a/gcc/cp/lang-specs.h b/gcc/cp/lang-specs.h | ||
29 | index 9707fac..fe487a2 100644 | ||
30 | --- a/gcc/cp/lang-specs.h | ||
31 | +++ b/gcc/cp/lang-specs.h | ||
32 | @@ -64,5 +64,5 @@ along with GCC; see the file COPYING3. If not see | ||
33 | {".ii", "@c++-cpp-output", 0, 0, 0}, | ||
34 | {"@c++-cpp-output", | ||
35 | "%{!M:%{!MM:%{!E:\ | ||
36 | - cc1plus -fpreprocessed %i %(cc1_options) %2\ | ||
37 | + cc1plus -fpreprocessed %i %I %(cc1_options) %2\ | ||
38 | %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0}, | ||
39 | diff --git a/gcc/gcc.c b/gcc/gcc.c | ||
40 | index 7ca129f..04fa81d 100644 | ||
41 | --- a/gcc/gcc.c | ||
42 | +++ b/gcc/gcc.c | ||
43 | @@ -1329,7 +1329,7 @@ static const struct compiler default_compilers[] = | ||
44 | %W{o*:--output-pch=%*}}%V}}}}}}}", 0, 0, 0}, | ||
45 | {".i", "@cpp-output", 0, 0, 0}, | ||
46 | {"@cpp-output", | ||
47 | - "%{!M:%{!MM:%{!E:cc1 -fpreprocessed %i %(cc1_options) %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0}, | ||
48 | + "%{!M:%{!MM:%{!E:cc1 -fpreprocessed %i %I %(cc1_options) %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0}, | ||
49 | {".s", "@assembler", 0, 0, 0}, | ||
50 | {"@assembler", | ||
51 | "%{!M:%{!MM:%{!E:%{!S:as %(asm_debug) %(asm_options) %i %A }}}}", 0, 0, 0}, | ||
52 | -- | ||
53 | 2.8.2 | ||
54 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0020-MIPS64-Default-to-N64-ABI.patch b/meta/recipes-devtools/gcc/gcc-6.4/0020-MIPS64-Default-to-N64-ABI.patch deleted file mode 100644 index ba612f5458..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0020-MIPS64-Default-to-N64-ABI.patch +++ /dev/null | |||
@@ -1,57 +0,0 @@ | |||
1 | From 1f15447fbcf65142627af8a9694761534da8d0d1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:23:08 +0400 | ||
4 | Subject: [PATCH 20/46] MIPS64: Default to N64 ABI | ||
5 | |||
6 | MIPS64 defaults to n32 ABI, this patch makes it | ||
7 | so that it defaults to N64 ABI | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | |||
11 | Upstream-Status: Inappropriate [OE config specific] | ||
12 | --- | ||
13 | gcc/config.gcc | 10 +++++----- | ||
14 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
15 | |||
16 | diff --git a/gcc/config.gcc b/gcc/config.gcc | ||
17 | index f66e48c..9c6d156 100644 | ||
18 | --- a/gcc/config.gcc | ||
19 | +++ b/gcc/config.gcc | ||
20 | @@ -2065,29 +2065,29 @@ mips*-*-linux*) # Linux MIPS, either endian. | ||
21 | default_mips_arch=mips32 | ||
22 | ;; | ||
23 | mips64el-st-linux-gnu) | ||
24 | - default_mips_abi=n32 | ||
25 | + default_mips_abi=64 | ||
26 | tm_file="${tm_file} mips/st.h" | ||
27 | tmake_file="${tmake_file} mips/t-st" | ||
28 | enable_mips_multilibs="yes" | ||
29 | ;; | ||
30 | mips64octeon*-*-linux*) | ||
31 | - default_mips_abi=n32 | ||
32 | + default_mips_abi=64 | ||
33 | tm_defines="${tm_defines} MIPS_CPU_STRING_DEFAULT=\\\"octeon\\\"" | ||
34 | target_cpu_default=MASK_SOFT_FLOAT_ABI | ||
35 | enable_mips_multilibs="yes" | ||
36 | ;; | ||
37 | mipsisa64r6*-*-linux*) | ||
38 | - default_mips_abi=n32 | ||
39 | + default_mips_abi=64 | ||
40 | default_mips_arch=mips64r6 | ||
41 | enable_mips_multilibs="yes" | ||
42 | ;; | ||
43 | mipsisa64r2*-*-linux*) | ||
44 | - default_mips_abi=n32 | ||
45 | + default_mips_abi=64 | ||
46 | default_mips_arch=mips64r2 | ||
47 | enable_mips_multilibs="yes" | ||
48 | ;; | ||
49 | mips64*-*-linux* | mipsisa64*-*-linux*) | ||
50 | - default_mips_abi=n32 | ||
51 | + default_mips_abi=64 | ||
52 | enable_mips_multilibs="yes" | ||
53 | ;; | ||
54 | esac | ||
55 | -- | ||
56 | 2.8.2 | ||
57 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0021-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch b/meta/recipes-devtools/gcc/gcc-6.4/0021-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch deleted file mode 100644 index 6675ce34fa..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0021-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch +++ /dev/null | |||
@@ -1,234 +0,0 @@ | |||
1 | From 9f73c8918b63e6a1c9b79384fac411d1056eec1c Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:24:50 +0400 | ||
4 | Subject: [PATCH 21/46] Define GLIBC_DYNAMIC_LINKER and UCLIBC_DYNAMIC_LINKER | ||
5 | relative to SYSTEMLIBS_DIR | ||
6 | |||
7 | This patch defines GLIBC_DYNAMIC_LINKER and UCLIBC_DYNAMIC_LINKER | ||
8 | relative to SYSTEMLIBS_DIR which can be set in generated headers | ||
9 | This breaks the assumption of hardcoded multilib in gcc | ||
10 | Change is only for the supported architectures in OE including | ||
11 | SH, sparc, alpha for possible future support (if any) | ||
12 | |||
13 | Removes the do_headerfix task in metadata | ||
14 | |||
15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
16 | |||
17 | Upstream-Status: Inappropriate [OE configuration] | ||
18 | --- | ||
19 | gcc/config/alpha/linux-elf.h | 4 ++-- | ||
20 | gcc/config/arm/linux-eabi.h | 4 ++-- | ||
21 | gcc/config/arm/linux-elf.h | 2 +- | ||
22 | gcc/config/i386/linux.h | 2 +- | ||
23 | gcc/config/i386/linux64.h | 6 +++--- | ||
24 | gcc/config/linux.h | 8 ++++---- | ||
25 | gcc/config/mips/linux.h | 12 ++++++------ | ||
26 | gcc/config/rs6000/linux64.h | 16 ++++++---------- | ||
27 | gcc/config/sh/linux.h | 2 +- | ||
28 | gcc/config/sparc/linux.h | 2 +- | ||
29 | gcc/config/sparc/linux64.h | 4 ++-- | ||
30 | 11 files changed, 29 insertions(+), 33 deletions(-) | ||
31 | |||
32 | diff --git a/gcc/config/alpha/linux-elf.h b/gcc/config/alpha/linux-elf.h | ||
33 | index a0764d3..02f7a7c 100644 | ||
34 | --- a/gcc/config/alpha/linux-elf.h | ||
35 | +++ b/gcc/config/alpha/linux-elf.h | ||
36 | @@ -23,8 +23,8 @@ along with GCC; see the file COPYING3. If not see | ||
37 | #define EXTRA_SPECS \ | ||
38 | { "elf_dynamic_linker", ELF_DYNAMIC_LINKER }, | ||
39 | |||
40 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" | ||
41 | -#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" | ||
42 | +#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" | ||
43 | +#define UCLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-uClibc.so.0" | ||
44 | #if DEFAULT_LIBC == LIBC_UCLIBC | ||
45 | #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}" | ||
46 | #elif DEFAULT_LIBC == LIBC_GLIBC | ||
47 | diff --git a/gcc/config/arm/linux-eabi.h b/gcc/config/arm/linux-eabi.h | ||
48 | index ace8481..4010435 100644 | ||
49 | --- a/gcc/config/arm/linux-eabi.h | ||
50 | +++ b/gcc/config/arm/linux-eabi.h | ||
51 | @@ -68,8 +68,8 @@ | ||
52 | GLIBC_DYNAMIC_LINKER_DEFAULT and TARGET_DEFAULT_FLOAT_ABI. */ | ||
53 | |||
54 | #undef GLIBC_DYNAMIC_LINKER | ||
55 | -#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/lib/ld-linux.so.3" | ||
56 | -#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/lib/ld-linux-armhf.so.3" | ||
57 | +#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT SYSTEMLIBS_DIR "ld-linux.so.3" | ||
58 | +#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT SYSTEMLIBS_DIR "ld-linux-armhf.so.3" | ||
59 | #define GLIBC_DYNAMIC_LINKER_DEFAULT GLIBC_DYNAMIC_LINKER_SOFT_FLOAT | ||
60 | |||
61 | #define GLIBC_DYNAMIC_LINKER \ | ||
62 | diff --git a/gcc/config/arm/linux-elf.h b/gcc/config/arm/linux-elf.h | ||
63 | index a94bd2d..0220628 100644 | ||
64 | --- a/gcc/config/arm/linux-elf.h | ||
65 | +++ b/gcc/config/arm/linux-elf.h | ||
66 | @@ -62,7 +62,7 @@ | ||
67 | |||
68 | #define LIBGCC_SPEC "%{mfloat-abi=soft*:-lfloat} -lgcc" | ||
69 | |||
70 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" | ||
71 | +#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" | ||
72 | |||
73 | #define LINUX_TARGET_LINK_SPEC "%{h*} \ | ||
74 | %{static:-Bstatic} \ | ||
75 | diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h | ||
76 | index d37a875..edde586 100644 | ||
77 | --- a/gcc/config/i386/linux.h | ||
78 | +++ b/gcc/config/i386/linux.h | ||
79 | @@ -20,7 +20,7 @@ along with GCC; see the file COPYING3. If not see | ||
80 | <http://www.gnu.org/licenses/>. */ | ||
81 | |||
82 | #define GNU_USER_LINK_EMULATION "elf_i386" | ||
83 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" | ||
84 | +#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" | ||
85 | |||
86 | #undef MUSL_DYNAMIC_LINKER | ||
87 | #define MUSL_DYNAMIC_LINKER "/lib/ld-musl-i386.so.1" | ||
88 | diff --git a/gcc/config/i386/linux64.h b/gcc/config/i386/linux64.h | ||
89 | index 73d22e3..f4b5615 100644 | ||
90 | --- a/gcc/config/i386/linux64.h | ||
91 | +++ b/gcc/config/i386/linux64.h | ||
92 | @@ -27,9 +27,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see | ||
93 | #define GNU_USER_LINK_EMULATION64 "elf_x86_64" | ||
94 | #define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64" | ||
95 | |||
96 | -#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2" | ||
97 | -#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2" | ||
98 | -#define GLIBC_DYNAMIC_LINKERX32 "/libx32/ld-linux-x32.so.2" | ||
99 | +#define GLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld-linux.so.2" | ||
100 | +#define GLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR "ld-linux-x86-64.so.2" | ||
101 | +#define GLIBC_DYNAMIC_LINKERX32 SYSTEMLIBS_DIR "ld-linux-x32.so.2" | ||
102 | |||
103 | #undef MUSL_DYNAMIC_LINKER32 | ||
104 | #define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-i386.so.1" | ||
105 | diff --git a/gcc/config/linux.h b/gcc/config/linux.h | ||
106 | index 9aeeb94..b055652 100644 | ||
107 | --- a/gcc/config/linux.h | ||
108 | +++ b/gcc/config/linux.h | ||
109 | @@ -81,10 +81,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see | ||
110 | GLIBC_DYNAMIC_LINKER must be defined for each target using them, or | ||
111 | GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets | ||
112 | supporting both 32-bit and 64-bit compilation. */ | ||
113 | -#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" | ||
114 | -#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0" | ||
115 | -#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0" | ||
116 | -#define UCLIBC_DYNAMIC_LINKERX32 "/lib/ldx32-uClibc.so.0" | ||
117 | +#define UCLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-uClibc.so.0" | ||
118 | +#define UCLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld-uClibc.so.0" | ||
119 | +#define UCLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR "ld64-uClibc.so.0" | ||
120 | +#define UCLIBC_DYNAMIC_LINKERX32 SYSTEMLIBS_DIR "ldx32-uClibc.so.0" | ||
121 | #define BIONIC_DYNAMIC_LINKER "/system/bin/linker" | ||
122 | #define BIONIC_DYNAMIC_LINKER32 "/system/bin/linker" | ||
123 | #define BIONIC_DYNAMIC_LINKER64 "/system/bin/linker64" | ||
124 | diff --git a/gcc/config/mips/linux.h b/gcc/config/mips/linux.h | ||
125 | index fa253b6..da02c8d 100644 | ||
126 | --- a/gcc/config/mips/linux.h | ||
127 | +++ b/gcc/config/mips/linux.h | ||
128 | @@ -22,20 +22,20 @@ along with GCC; see the file COPYING3. If not see | ||
129 | #define GNU_USER_LINK_EMULATIONN32 "elf32%{EB:b}%{EL:l}tsmipn32" | ||
130 | |||
131 | #define GLIBC_DYNAMIC_LINKER32 \ | ||
132 | - "%{mnan=2008:/lib/ld-linux-mipsn8.so.1;:/lib/ld.so.1}" | ||
133 | + "%{mnan=2008:" SYSTEMLIBS_DIR "ld-linux-mipsn8.so.1;:" SYSTEMLIBS_DIR "ld.so.1}" | ||
134 | #define GLIBC_DYNAMIC_LINKER64 \ | ||
135 | - "%{mnan=2008:/lib64/ld-linux-mipsn8.so.1;:/lib64/ld.so.1}" | ||
136 | + "%{mnan=2008:" SYSTEMLIBS_DIR "ld-linux-mipsn8.so.1;:" SYSTEMLIBS_DIR "ld.so.1}" | ||
137 | #define GLIBC_DYNAMIC_LINKERN32 \ | ||
138 | - "%{mnan=2008:/lib32/ld-linux-mipsn8.so.1;:/lib32/ld.so.1}" | ||
139 | + "%{mnan=2008:" SYSTEMLIBS_DIR "ld-linux-mipsn8.so.1;:" SYSTEMLIBS_DIR "ld.so.1}" | ||
140 | |||
141 | #undef UCLIBC_DYNAMIC_LINKER32 | ||
142 | #define UCLIBC_DYNAMIC_LINKER32 \ | ||
143 | - "%{mnan=2008:/lib/ld-uClibc-mipsn8.so.0;:/lib/ld-uClibc.so.0}" | ||
144 | + "%{mnan=2008:" SYSTEMLIBS_DIR "ld-uClibc-mipsn8.so.0;:" SYSTEMLIBS_DIR "ld-uClibc.so.0}" | ||
145 | #undef UCLIBC_DYNAMIC_LINKER64 | ||
146 | #define UCLIBC_DYNAMIC_LINKER64 \ | ||
147 | - "%{mnan=2008:/lib/ld64-uClibc-mipsn8.so.0;:/lib/ld64-uClibc.so.0}" | ||
148 | + "%{mnan=2008:" SYSTEMLIBS_DIR "ld64-uClibc-mipsn8.so.0;:" SYSTEMLIBS_DIR "ld64-uClibc.so.0}" | ||
149 | #define UCLIBC_DYNAMIC_LINKERN32 \ | ||
150 | - "%{mnan=2008:/lib32/ld-uClibc-mipsn8.so.0;:/lib32/ld-uClibc.so.0}" | ||
151 | + "%{mnan=2008:" SYSTEMLIBS_DIR "ld-uClibc-mipsn8.so.0;:" SYSTEMLIBS_DIR "ld-uClibc.so.0}" | ||
152 | |||
153 | #undef MUSL_DYNAMIC_LINKER32 | ||
154 | #define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-mips%{EL:el}%{msoft-float:-sf}.so.1" | ||
155 | diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h | ||
156 | index fefa0c4..7173938 100644 | ||
157 | --- a/gcc/config/rs6000/linux64.h | ||
158 | +++ b/gcc/config/rs6000/linux64.h | ||
159 | @@ -412,16 +412,11 @@ extern int dot_symbols; | ||
160 | #undef LINK_OS_DEFAULT_SPEC | ||
161 | #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)" | ||
162 | |||
163 | -#define GLIBC_DYNAMIC_LINKER32 "%(dynamic_linker_prefix)/lib/ld.so.1" | ||
164 | - | ||
165 | +#define GLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld.so.1" | ||
166 | #ifdef LINUX64_DEFAULT_ABI_ELFv2 | ||
167 | -#define GLIBC_DYNAMIC_LINKER64 \ | ||
168 | -"%{mabi=elfv1:%(dynamic_linker_prefix)/lib64/ld64.so.1;" \ | ||
169 | -":%(dynamic_linker_prefix)/lib64/ld64.so.2}" | ||
170 | +#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv1:" SYSTEMLIBS_DIR "ld64.so.1;:" SYSTEMLIBS_DIR "ld64.so.2}" | ||
171 | #else | ||
172 | -#define GLIBC_DYNAMIC_LINKER64 \ | ||
173 | -"%{mabi=elfv2:%(dynamic_linker_prefix)/lib64/ld64.so.2;" \ | ||
174 | -":%(dynamic_linker_prefix)/lib64/ld64.so.1}" | ||
175 | +#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv2:" SYSTEMLIBS_DIR "ld64.so.2;:" SYSTEMLIBS_DIR "ld64.so.1}" | ||
176 | #endif | ||
177 | |||
178 | #define MUSL_DYNAMIC_LINKER32 \ | ||
179 | @@ -429,8 +424,9 @@ extern int dot_symbols; | ||
180 | #define MUSL_DYNAMIC_LINKER64 \ | ||
181 | "/lib/ld-musl-powerpc64" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1" | ||
182 | |||
183 | -#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0" | ||
184 | -#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0" | ||
185 | +#define UCLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld-uClibc.so.0" | ||
186 | +#define UCLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR "ld64-uClibc.so.0" | ||
187 | + | ||
188 | #if DEFAULT_LIBC == LIBC_UCLIBC | ||
189 | #define CHOOSE_DYNAMIC_LINKER(G, U, M) \ | ||
190 | "%{mglibc:" G ";:%{mmusl:" M ";:" U "}}" | ||
191 | diff --git a/gcc/config/sh/linux.h b/gcc/config/sh/linux.h | ||
192 | index 2a036ac..50fb735 100644 | ||
193 | --- a/gcc/config/sh/linux.h | ||
194 | +++ b/gcc/config/sh/linux.h | ||
195 | @@ -64,7 +64,7 @@ along with GCC; see the file COPYING3. If not see | ||
196 | "/lib/ld-musl-sh" MUSL_DYNAMIC_LINKER_E MUSL_DYNAMIC_LINKER_FP \ | ||
197 | "%{mfdpic:-fdpic}.so.1" | ||
198 | |||
199 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" | ||
200 | +#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" | ||
201 | |||
202 | #undef SUBTARGET_LINK_EMUL_SUFFIX | ||
203 | #define SUBTARGET_LINK_EMUL_SUFFIX "%{mfdpic:_fd;:_linux}" | ||
204 | diff --git a/gcc/config/sparc/linux.h b/gcc/config/sparc/linux.h | ||
205 | index 9b32577..7bd66de 100644 | ||
206 | --- a/gcc/config/sparc/linux.h | ||
207 | +++ b/gcc/config/sparc/linux.h | ||
208 | @@ -83,7 +83,7 @@ extern const char *host_detect_local_cpu (int argc, const char **argv); | ||
209 | When the -shared link option is used a final link is not being | ||
210 | done. */ | ||
211 | |||
212 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" | ||
213 | +#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" | ||
214 | |||
215 | #undef LINK_SPEC | ||
216 | #define LINK_SPEC "-m elf32_sparc %{shared:-shared} \ | ||
217 | diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h | ||
218 | index a1ef325..3bae3d5 100644 | ||
219 | --- a/gcc/config/sparc/linux64.h | ||
220 | +++ b/gcc/config/sparc/linux64.h | ||
221 | @@ -84,8 +84,8 @@ along with GCC; see the file COPYING3. If not see | ||
222 | When the -shared link option is used a final link is not being | ||
223 | done. */ | ||
224 | |||
225 | -#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2" | ||
226 | -#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2" | ||
227 | +#define GLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld-linux.so.2" | ||
228 | +#define GLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR "ld-linux.so.2" | ||
229 | |||
230 | #ifdef SPARC_BI_ARCH | ||
231 | |||
232 | -- | ||
233 | 2.8.2 | ||
234 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0022-gcc-Fix-argument-list-too-long-error.patch b/meta/recipes-devtools/gcc/gcc-6.4/0022-gcc-Fix-argument-list-too-long-error.patch deleted file mode 100644 index fab6e4aeb7..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0022-gcc-Fix-argument-list-too-long-error.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | From acce5157f6b3a1dc9a3676b7118ac887dc5693be Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:26:37 +0400 | ||
4 | Subject: [PATCH 22/46] gcc: Fix argument list too long error. | ||
5 | |||
6 | There would be an "Argument list too long" error when the | ||
7 | build directory is longer than 200, this is caused by: | ||
8 | |||
9 | headers=`echo $(PLUGIN_HEADERS) | tr ' ' '\012' | sort -u` | ||
10 | |||
11 | The PLUGIN_HEADERS is too long before sort, so the "echo" can't handle | ||
12 | it, use the $(sort list) of GNU make which can handle the too long list | ||
13 | would fix the problem, the header would be short enough after sorted. | ||
14 | The "tr ' ' '\012'" was used for translating the space to "\n", the | ||
15 | $(sort list) doesn't need this. | ||
16 | |||
17 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
18 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
19 | |||
20 | Upstream-Status: Pending | ||
21 | --- | ||
22 | gcc/Makefile.in | 2 +- | ||
23 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
24 | |||
25 | diff --git a/gcc/Makefile.in b/gcc/Makefile.in | ||
26 | index 9a1d466..450cb79 100644 | ||
27 | --- a/gcc/Makefile.in | ||
28 | +++ b/gcc/Makefile.in | ||
29 | @@ -3349,7 +3349,7 @@ install-plugin: installdirs lang.install-plugin s-header-vars install-gengtype | ||
30 | # We keep the directory structure for files in config or c-family and .def | ||
31 | # files. All other files are flattened to a single directory. | ||
32 | $(mkinstalldirs) $(DESTDIR)$(plugin_includedir) | ||
33 | - headers=`echo $(PLUGIN_HEADERS) $$(cd $(srcdir); echo *.h *.def) | tr ' ' '\012' | sort -u`; \ | ||
34 | + headers="$(sort $(PLUGIN_HEADERS) $$(cd $(srcdir); echo *.h *.def))"; \ | ||
35 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`; \ | ||
36 | for file in $$headers; do \ | ||
37 | if [ -f $$file ] ; then \ | ||
38 | -- | ||
39 | 2.8.2 | ||
40 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0023-Disable-sdt.patch b/meta/recipes-devtools/gcc/gcc-6.4/0023-Disable-sdt.patch deleted file mode 100644 index 0efd890aa7..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0023-Disable-sdt.patch +++ /dev/null | |||
@@ -1,113 +0,0 @@ | |||
1 | From 6573aec00ada35c48c1838c8491ce8f7798ae993 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:28:10 +0400 | ||
4 | Subject: [PATCH 23/46] Disable sdt. | ||
5 | |||
6 | We don't list dtrace in DEPENDS so we shouldn't be depending on this header. | ||
7 | It may or may not exist from preivous builds though. To be determinstic, disable | ||
8 | sdt.h usage always. This avoids build failures if the header is removed after configure | ||
9 | but before libgcc is compiled for example. | ||
10 | |||
11 | RP 2012/8/7 | ||
12 | |||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | |||
15 | Disable sdt for libstdc++-v3. | ||
16 | |||
17 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
18 | |||
19 | Upstream-Status: Inappropriate [hack] | ||
20 | --- | ||
21 | gcc/configure | 12 ++++++------ | ||
22 | gcc/configure.ac | 18 +++++++++--------- | ||
23 | libstdc++-v3/configure | 6 +++--- | ||
24 | libstdc++-v3/configure.ac | 2 +- | ||
25 | 4 files changed, 19 insertions(+), 19 deletions(-) | ||
26 | |||
27 | diff --git a/gcc/configure b/gcc/configure | ||
28 | index 389b6d5..73c264d 100755 | ||
29 | --- a/gcc/configure | ||
30 | +++ b/gcc/configure | ||
31 | @@ -28528,12 +28528,12 @@ fi | ||
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; } | ||
34 | have_sys_sdt_h=no | ||
35 | -if test -f $target_header_dir/sys/sdt.h; then | ||
36 | - have_sys_sdt_h=yes | ||
37 | - | ||
38 | -$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h | ||
39 | - | ||
40 | -fi | ||
41 | +#if test -f $target_header_dir/sys/sdt.h; then | ||
42 | +# have_sys_sdt_h=yes | ||
43 | +# | ||
44 | +#$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h | ||
45 | +# | ||
46 | +#fi | ||
47 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 | ||
48 | $as_echo "$have_sys_sdt_h" >&6; } | ||
49 | |||
50 | diff --git a/gcc/configure.ac b/gcc/configure.ac | ||
51 | index 91ac800..cecf121 100644 | ||
52 | --- a/gcc/configure.ac | ||
53 | +++ b/gcc/configure.ac | ||
54 | @@ -5514,15 +5514,15 @@ fi | ||
55 | AC_SUBST([enable_default_ssp]) | ||
56 | |||
57 | # Test for <sys/sdt.h> on the target. | ||
58 | -GCC_TARGET_TEMPLATE([HAVE_SYS_SDT_H]) | ||
59 | -AC_MSG_CHECKING(sys/sdt.h in the target C library) | ||
60 | -have_sys_sdt_h=no | ||
61 | -if test -f $target_header_dir/sys/sdt.h; then | ||
62 | - have_sys_sdt_h=yes | ||
63 | - AC_DEFINE(HAVE_SYS_SDT_H, 1, | ||
64 | - [Define if your target C library provides sys/sdt.h]) | ||
65 | -fi | ||
66 | -AC_MSG_RESULT($have_sys_sdt_h) | ||
67 | +#GCC_TARGET_TEMPLATE([HAVE_SYS_SDT_H]) | ||
68 | +#AC_MSG_CHECKING(sys/sdt.h in the target C library) | ||
69 | +#have_sys_sdt_h=no | ||
70 | +#if test -f $target_header_dir/sys/sdt.h; then | ||
71 | +# have_sys_sdt_h=yes | ||
72 | +# AC_DEFINE(HAVE_SYS_SDT_H, 1, | ||
73 | +# [Define if your target C library provides sys/sdt.h]) | ||
74 | +#fi | ||
75 | +#AC_MSG_RESULT($have_sys_sdt_h) | ||
76 | |||
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 | ||
79 | diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure | ||
80 | index 8a5481c..6a40e92 100755 | ||
81 | --- a/libstdc++-v3/configure | ||
82 | +++ b/libstdc++-v3/configure | ||
83 | @@ -21735,11 +21735,11 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
84 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
85 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
86 | |||
87 | - if test $glibcxx_cv_sys_sdt_h = yes; then | ||
88 | +# if test $glibcxx_cv_sys_sdt_h = yes; then | ||
89 | |||
90 | -$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h | ||
91 | +#$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h | ||
92 | |||
93 | - fi | ||
94 | +# fi | ||
95 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sys_sdt_h" >&5 | ||
96 | $as_echo "$glibcxx_cv_sys_sdt_h" >&6; } | ||
97 | |||
98 | diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac | ||
99 | index 9e19e99..0077ffd 100644 | ||
100 | --- a/libstdc++-v3/configure.ac | ||
101 | +++ b/libstdc++-v3/configure.ac | ||
102 | @@ -230,7 +230,7 @@ GLIBCXX_CHECK_SC_NPROCESSORS_ONLN | ||
103 | GLIBCXX_CHECK_SC_NPROC_ONLN | ||
104 | GLIBCXX_CHECK_PTHREADS_NUM_PROCESSORS_NP | ||
105 | GLIBCXX_CHECK_SYSCTL_HW_NCPU | ||
106 | -GLIBCXX_CHECK_SDT_H | ||
107 | +#GLIBCXX_CHECK_SDT_H | ||
108 | |||
109 | # Check for available headers. | ||
110 | AC_CHECK_HEADERS([endian.h execinfo.h float.h fp.h ieeefp.h inttypes.h \ | ||
111 | -- | ||
112 | 2.8.2 | ||
113 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0024-libtool.patch b/meta/recipes-devtools/gcc/gcc-6.4/0024-libtool.patch deleted file mode 100644 index 1f73b5db5a..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0024-libtool.patch +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | From 6c0aa5c2538829248547197718037ff0b9788676 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:29:11 +0400 | ||
4 | Subject: [PATCH 24/46] libtool | ||
5 | |||
6 | libstdc++ from gcc-runtime gets created with -rpath=/usr/lib/../lib for qemux86-64 | ||
7 | when running on am x86_64 build host. | ||
8 | |||
9 | This patch stops this speading to libdir in the libstdc++.la file within libtool. | ||
10 | Arguably, it shouldn't be passing this into libtool in the first place but | ||
11 | for now this resolves the nastiest problems this causes. | ||
12 | |||
13 | func_normal_abspath would resolve an empty path to `pwd` so we need | ||
14 | to filter the zero case. | ||
15 | |||
16 | RP 2012/8/24 | ||
17 | |||
18 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
19 | |||
20 | Upstream-Status: Pending | ||
21 | --- | ||
22 | ltmain.sh | 4 ++++ | ||
23 | 1 file changed, 4 insertions(+) | ||
24 | |||
25 | diff --git a/ltmain.sh b/ltmain.sh | ||
26 | index 9503ec8..0121fba 100644 | ||
27 | --- a/ltmain.sh | ||
28 | +++ b/ltmain.sh | ||
29 | @@ -6359,6 +6359,10 @@ func_mode_link () | ||
30 | func_warning "ignoring multiple \`-rpath's for a libtool library" | ||
31 | |||
32 | install_libdir="$1" | ||
33 | + if test -n "$install_libdir"; then | ||
34 | + func_normal_abspath "$install_libdir" | ||
35 | + install_libdir=$func_normal_abspath_result | ||
36 | + fi | ||
37 | |||
38 | oldlibs= | ||
39 | if test -z "$rpath"; then | ||
40 | -- | ||
41 | 2.8.2 | ||
42 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0025-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch b/meta/recipes-devtools/gcc/gcc-6.4/0025-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch deleted file mode 100644 index 3b7ee497f3..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0025-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | From b1263a48553ce75f8c3bed4fe12122af57845567 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:30:32 +0400 | ||
4 | Subject: [PATCH 25/46] gcc: armv4: pass fix-v4bx to linker to support EABI. | ||
5 | |||
6 | The LINK_SPEC for linux gets overwritten by linux-eabi.h which | ||
7 | means the value of TARGET_FIX_V4BX_SPEC gets lost and as a result | ||
8 | the option is not passed to linker when chosing march=armv4 | ||
9 | This patch redefines this in linux-eabi.h and reinserts it | ||
10 | for eabi defaulting toolchains. | ||
11 | |||
12 | We might want to send it upstream. | ||
13 | |||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | |||
16 | Upstream-Status: Pending | ||
17 | --- | ||
18 | gcc/config/arm/linux-eabi.h | 6 +++++- | ||
19 | 1 file changed, 5 insertions(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/gcc/config/arm/linux-eabi.h b/gcc/config/arm/linux-eabi.h | ||
22 | index 4010435..aaea1c9 100644 | ||
23 | --- a/gcc/config/arm/linux-eabi.h | ||
24 | +++ b/gcc/config/arm/linux-eabi.h | ||
25 | @@ -94,10 +94,14 @@ | ||
26 | #define MUSL_DYNAMIC_LINKER \ | ||
27 | "/lib/ld-musl-arm" MUSL_DYNAMIC_LINKER_E "%{mfloat-abi=hard:hf}.so.1" | ||
28 | |||
29 | +/* For armv4 we pass --fix-v4bx to linker to support EABI */ | ||
30 | +#undef TARGET_FIX_V4BX_SPEC | ||
31 | +#define TARGET_FIX_V4BX_SPEC "%{mcpu=arm8|mcpu=arm810|mcpu=strongarm*|march=armv4: --fix-v4bx}" | ||
32 | + | ||
33 | /* At this point, bpabi.h will have clobbered LINK_SPEC. We want to | ||
34 | use the GNU/Linux version, not the generic BPABI version. */ | ||
35 | #undef LINK_SPEC | ||
36 | -#define LINK_SPEC EABI_LINK_SPEC \ | ||
37 | +#define LINK_SPEC TARGET_FIX_V4BX_SPEC EABI_LINK_SPEC \ | ||
38 | LINUX_OR_ANDROID_LD (LINUX_TARGET_LINK_SPEC, \ | ||
39 | LINUX_TARGET_LINK_SPEC " " ANDROID_LINK_SPEC) | ||
40 | |||
41 | -- | ||
42 | 2.8.2 | ||
43 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0026-Use-the-multilib-config-files-from-B-instead-of-usin.patch b/meta/recipes-devtools/gcc/gcc-6.4/0026-Use-the-multilib-config-files-from-B-instead-of-usin.patch deleted file mode 100644 index be25be6162..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0026-Use-the-multilib-config-files-from-B-instead-of-usin.patch +++ /dev/null | |||
@@ -1,102 +0,0 @@ | |||
1 | From b5c305fc251299f2e328410b18cfb55c75b5f038 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:33:04 +0400 | ||
4 | Subject: [PATCH 26/46] Use the multilib config files from ${B} instead of | ||
5 | using the ones from ${S} | ||
6 | |||
7 | Use the multilib config files from ${B} instead of using the ones from ${S} | ||
8 | so that the source can be shared between gcc-cross-initial, | ||
9 | gcc-cross-intermediate, gcc-cross, gcc-runtime, and also the sdk build. | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | Signed-off-by: Constantin Musca <constantinx.musca@intel.com> | ||
13 | |||
14 | Upstream-Status: Inappropriate [configuration] | ||
15 | --- | ||
16 | gcc/configure | 22 ++++++++++++++++++---- | ||
17 | gcc/configure.ac | 22 ++++++++++++++++++---- | ||
18 | 2 files changed, 36 insertions(+), 8 deletions(-) | ||
19 | |||
20 | diff --git a/gcc/configure b/gcc/configure | ||
21 | index 73c264d..377253e 100755 | ||
22 | --- a/gcc/configure | ||
23 | +++ b/gcc/configure | ||
24 | @@ -12110,10 +12110,20 @@ done | ||
25 | tmake_file_= | ||
26 | for f in ${tmake_file} | ||
27 | do | ||
28 | - if test -f ${srcdir}/config/$f | ||
29 | - then | ||
30 | - tmake_file_="${tmake_file_} \$(srcdir)/config/$f" | ||
31 | - fi | ||
32 | + case $f in | ||
33 | + */t-linux64 ) | ||
34 | + if test -f ./config/$f | ||
35 | + then | ||
36 | + tmake_file_="${tmake_file_} ./config/$f" | ||
37 | + fi | ||
38 | + ;; | ||
39 | + * ) | ||
40 | + if test -f ${srcdir}/config/$f | ||
41 | + then | ||
42 | + tmake_file_="${tmake_file_} \$(srcdir)/config/$f" | ||
43 | + fi | ||
44 | + ;; | ||
45 | + esac | ||
46 | done | ||
47 | tmake_file="${tmake_file_}" | ||
48 | |||
49 | @@ -12124,6 +12134,10 @@ tm_file_list="options.h" | ||
50 | tm_include_list="options.h insn-constants.h" | ||
51 | for f in $tm_file; do | ||
52 | case $f in | ||
53 | + */linux64.h ) | ||
54 | + tm_file_list="${tm_file_list} ./config/$f" | ||
55 | + tm_include_list="${tm_include_list} ./config/$f" | ||
56 | + ;; | ||
57 | ./* ) | ||
58 | f=`echo $f | sed 's/^..//'` | ||
59 | tm_file_list="${tm_file_list} $f" | ||
60 | diff --git a/gcc/configure.ac b/gcc/configure.ac | ||
61 | index cecf121..54e7619 100644 | ||
62 | --- a/gcc/configure.ac | ||
63 | +++ b/gcc/configure.ac | ||
64 | @@ -1863,10 +1863,20 @@ done | ||
65 | tmake_file_= | ||
66 | for f in ${tmake_file} | ||
67 | do | ||
68 | - if test -f ${srcdir}/config/$f | ||
69 | - then | ||
70 | - tmake_file_="${tmake_file_} \$(srcdir)/config/$f" | ||
71 | - fi | ||
72 | + case $f in | ||
73 | + */t-linux64 ) | ||
74 | + if test -f ./config/$f | ||
75 | + then | ||
76 | + tmake_file_="${tmake_file_} ./config/$f" | ||
77 | + fi | ||
78 | + ;; | ||
79 | + * ) | ||
80 | + if test -f ${srcdir}/config/$f | ||
81 | + then | ||
82 | + tmake_file_="${tmake_file_} \$(srcdir)/config/$f" | ||
83 | + fi | ||
84 | + ;; | ||
85 | + esac | ||
86 | done | ||
87 | tmake_file="${tmake_file_}" | ||
88 | |||
89 | @@ -1877,6 +1887,10 @@ tm_file_list="options.h" | ||
90 | tm_include_list="options.h insn-constants.h" | ||
91 | for f in $tm_file; do | ||
92 | case $f in | ||
93 | + */linux64.h ) | ||
94 | + tm_file_list="${tm_file_list} ./config/$f" | ||
95 | + tm_include_list="${tm_include_list} ./config/$f" | ||
96 | + ;; | ||
97 | ./* ) | ||
98 | f=`echo $f | sed 's/^..//'` | ||
99 | tm_file_list="${tm_file_list} $f" | ||
100 | -- | ||
101 | 2.8.2 | ||
102 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0027-Avoid-using-libdir-from-.la-which-usually-points-to-.patch b/meta/recipes-devtools/gcc/gcc-6.4/0027-Avoid-using-libdir-from-.la-which-usually-points-to-.patch deleted file mode 100644 index d1bbebc0a8..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0027-Avoid-using-libdir-from-.la-which-usually-points-to-.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From eb6178b7fb466ae429c56380c6dbc564a16d900a Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 20 Feb 2015 09:39:38 +0000 | ||
4 | Subject: [PATCH 27/46] Avoid using libdir from .la which usually points to a | ||
5 | host path | ||
6 | |||
7 | Upstream-Status: Inappropriate [embedded specific] | ||
8 | |||
9 | Signed-off-by: Jonathan Liu <net147@gmail.com> | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | ltmain.sh | 3 +++ | ||
13 | 1 file changed, 3 insertions(+) | ||
14 | |||
15 | diff --git a/ltmain.sh b/ltmain.sh | ||
16 | index 0121fba..52bdbdb 100644 | ||
17 | --- a/ltmain.sh | ||
18 | +++ b/ltmain.sh | ||
19 | @@ -5628,6 +5628,9 @@ func_mode_link () | ||
20 | absdir="$abs_ladir" | ||
21 | libdir="$abs_ladir" | ||
22 | else | ||
23 | + # Instead of using libdir from .la which usually points to a host path, | ||
24 | + # use the path the .la is contained in. | ||
25 | + libdir="$abs_ladir" | ||
26 | dir="$libdir" | ||
27 | absdir="$libdir" | ||
28 | fi | ||
29 | -- | ||
30 | 2.8.2 | ||
31 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0028-export-CPP.patch b/meta/recipes-devtools/gcc/gcc-6.4/0028-export-CPP.patch deleted file mode 100644 index c21253938c..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0028-export-CPP.patch +++ /dev/null | |||
@@ -1,53 +0,0 @@ | |||
1 | From 617184f35e97934d9e6268e71378574e2b776c2b Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 20 Feb 2015 09:40:59 +0000 | ||
4 | Subject: [PATCH 28/46] export CPP | ||
5 | |||
6 | The OE environment sets and exports CPP as being the target gcc. When | ||
7 | building gcc-cross-canadian for a mingw targetted sdk, the following can be found | ||
8 | in build.x86_64-pokysdk-mingw32.i586-poky-linux/build-x86_64-linux/libiberty/config.log: | ||
9 | |||
10 | configure:3641: checking for _FILE_OFFSET_BITS value needed for large files | ||
11 | configure:3666: gcc -c -isystem/media/build1/poky/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe conftest.c >&5 | ||
12 | configure:3666: $? = 0 | ||
13 | configure:3698: result: no | ||
14 | configure:3786: checking how to run the C preprocessor | ||
15 | configure:3856: result: x86_64-pokysdk-mingw32-gcc -E --sysroot=/media/build1/poky/build/tmp/sysroots/x86_64-nativesdk-mingw32-pokysdk-mingw32 | ||
16 | configure:3876: x86_64-pokysdk-mingw32-gcc -E --sysroot=/media/build1/poky/build/tmp/sysroots/x86_64-nativesdk-mingw32-pokysdk-mingw32 conftest.c | ||
17 | configure:3876: $? = 0 | ||
18 | |||
19 | Note this is a *build* target (in build-x86_64-linux) so it should be | ||
20 | using the host "gcc", not x86_64-pokysdk-mingw32-gcc. Since the mingw32 | ||
21 | headers are very different, using the wrong cpp is a real problem. It is leaking | ||
22 | into configure through the CPP variable. Ultimately this leads to build | ||
23 | failures related to not being able to include a process.h file for pem-unix.c. | ||
24 | |||
25 | The fix is to ensure we export a sane CPP value into the build | ||
26 | environment when using build targets. We could define a CPP_FOR_BUILD value which may be | ||
27 | the version which needs to be upstreamed but for now, this fix is good enough to | ||
28 | avoid the problem. | ||
29 | |||
30 | RP 22/08/2013 | ||
31 | |||
32 | Upstream-Status: Pending | ||
33 | |||
34 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
35 | --- | ||
36 | Makefile.in | 1 + | ||
37 | 1 file changed, 1 insertion(+) | ||
38 | |||
39 | diff --git a/Makefile.in b/Makefile.in | ||
40 | index 1522e39..beb9b9a 100644 | ||
41 | --- a/Makefile.in | ||
42 | +++ b/Makefile.in | ||
43 | @@ -149,6 +149,7 @@ BUILD_EXPORTS = \ | ||
44 | AR="$(AR_FOR_BUILD)"; export AR; \ | ||
45 | AS="$(AS_FOR_BUILD)"; export AS; \ | ||
46 | CC="$(CC_FOR_BUILD)"; export CC; \ | ||
47 | + CPP="$(CC_FOR_BUILD) -E"; export CPP; \ | ||
48 | CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \ | ||
49 | CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ | ||
50 | CXX="$(CXX_FOR_BUILD)"; export CXX; \ | ||
51 | -- | ||
52 | 2.8.2 | ||
53 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0029-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch b/meta/recipes-devtools/gcc/gcc-6.4/0029-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch deleted file mode 100644 index 47b9c0d1b1..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0029-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | From e140700976e3b7eb4250b1ffde9bc16494456903 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexandru-Cezar Sardan <alexandru.sardan@freescale.com> | ||
3 | Date: Wed, 5 Feb 2014 16:52:31 +0200 | ||
4 | Subject: [PATCH 29/46] Enable SPE & AltiVec generation on powepc*linux target | ||
5 | |||
6 | When is configured with --target=powerpc-linux, the resulting GCC will | ||
7 | not be able to generate code for SPE targets (e500v1/v2). | ||
8 | GCC configured with --target=powerpc-linuxspe will not be able to | ||
9 | generate AltiVec instructions (for e6500). | ||
10 | This patch modifies the configured file such that SPE or AltiVec code | ||
11 | can be generated when gcc is configured with --target=powerpc-linux. | ||
12 | The ABI and speciffic instructions can be selected through the | ||
13 | "-mabi=spe or -mabi=altivec" and the "-mspe or -maltivec" parameters. | ||
14 | |||
15 | Upstream-Status: Inappropriate [configuration] | ||
16 | |||
17 | Signed-off-by: Alexandru-Cezar Sardan <alexandru.sardan@freescale.com> | ||
18 | --- | ||
19 | gcc/config.gcc | 9 ++++++++- | ||
20 | gcc/config/rs6000/linuxspe.h | 3 --- | ||
21 | 2 files changed, 8 insertions(+), 4 deletions(-) | ||
22 | |||
23 | diff --git a/gcc/config.gcc b/gcc/config.gcc | ||
24 | index 9c6d156..18cff5a 100644 | ||
25 | --- a/gcc/config.gcc | ||
26 | +++ b/gcc/config.gcc | ||
27 | @@ -2392,7 +2392,14 @@ powerpc-*-rtems*) | ||
28 | tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-rtems rs6000/t-ppccomm" | ||
29 | ;; | ||
30 | powerpc*-*-linux*) | ||
31 | - tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h freebsd-spec.h rs6000/sysv4.h" | ||
32 | + case ${target} in | ||
33 | + powerpc*-*-linux*spe* | powerpc*-*-linux*altivec*) | ||
34 | + tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h freebsd-spec.h rs6000/sysv4.h" | ||
35 | + ;; | ||
36 | + *) | ||
37 | + tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h freebsd-spec.h rs6000/sysv4.h rs6000/linuxaltivec.h rs6000/linuxspe.h rs6000/e500.h" | ||
38 | + ;; | ||
39 | + esac | ||
40 | extra_options="${extra_options} rs6000/sysv4.opt" | ||
41 | tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm" | ||
42 | extra_objs="$extra_objs rs6000-linux.o" | ||
43 | diff --git a/gcc/config/rs6000/linuxspe.h b/gcc/config/rs6000/linuxspe.h | ||
44 | index 35623cd..f74e00d 100644 | ||
45 | --- a/gcc/config/rs6000/linuxspe.h | ||
46 | +++ b/gcc/config/rs6000/linuxspe.h | ||
47 | @@ -27,6 +27,3 @@ | ||
48 | #undef TARGET_DEFAULT | ||
49 | #define TARGET_DEFAULT MASK_STRICT_ALIGN | ||
50 | #endif | ||
51 | - | ||
52 | -#undef ASM_DEFAULT_SPEC | ||
53 | -#define ASM_DEFAULT_SPEC "-mppc -mspe -me500" | ||
54 | -- | ||
55 | 2.8.2 | ||
56 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0030-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch b/meta/recipes-devtools/gcc/gcc-6.4/0030-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch deleted file mode 100644 index c09d0192ef..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0030-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | From 0ddcb95a86830766fd02122f19384fc929b377c5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 20 Feb 2015 10:21:55 +0000 | ||
4 | Subject: [PATCH 30/46] Disable the MULTILIB_OSDIRNAMES and other multilib | ||
5 | options. | ||
6 | |||
7 | Hard coding the MULTILIB_OSDIRNAMES with ../lib64 is causing problems on | ||
8 | systems where the libdir is NOT set to /lib64. This is allowed by the | ||
9 | ABI, as | ||
10 | long as the dynamic loader is present in /lib. | ||
11 | |||
12 | We simply want to use the default rules in gcc to find and configure the | ||
13 | normal libdir. | ||
14 | |||
15 | Upstream-Status: Inappropriate[OE-Specific] | ||
16 | |||
17 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | ||
18 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
19 | --- | ||
20 | gcc/config/aarch64/t-aarch64-linux | 8 ++++---- | ||
21 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
22 | |||
23 | diff --git a/gcc/config/aarch64/t-aarch64-linux b/gcc/config/aarch64/t-aarch64-linux | ||
24 | index 1cfe9f3..d688ac9 100644 | ||
25 | --- a/gcc/config/aarch64/t-aarch64-linux | ||
26 | +++ b/gcc/config/aarch64/t-aarch64-linux | ||
27 | @@ -21,8 +21,8 @@ | ||
28 | LIB1ASMSRC = aarch64/lib1funcs.asm | ||
29 | LIB1ASMFUNCS = _aarch64_sync_cache_range | ||
30 | |||
31 | -AARCH_BE = $(if $(findstring TARGET_BIG_ENDIAN_DEFAULT=1, $(tm_defines)),_be) | ||
32 | -MULTILIB_OSDIRNAMES = mabi.lp64=../lib64$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu) | ||
33 | -MULTIARCH_DIRNAME = $(call if_multiarch,aarch64$(AARCH_BE)-linux-gnu) | ||
34 | +#AARCH_BE = $(if $(findstring TARGET_BIG_ENDIAN_DEFAULT=1, $(tm_defines)),_be) | ||
35 | +#MULTILIB_OSDIRNAMES = mabi.lp64=../lib64$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu) | ||
36 | +#MULTIARCH_DIRNAME = $(call if_multiarch,aarch64$(AARCH_BE)-linux-gnu) | ||
37 | |||
38 | -MULTILIB_OSDIRNAMES += mabi.ilp32=../libilp32 | ||
39 | +#MULTILIB_OSDIRNAMES += mabi.ilp32=../libilp32 | ||
40 | -- | ||
41 | 2.8.2 | ||
42 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0031-Ensure-target-gcc-headers-can-be-included.patch b/meta/recipes-devtools/gcc/gcc-6.4/0031-Ensure-target-gcc-headers-can-be-included.patch deleted file mode 100644 index fb1cd0f169..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0031-Ensure-target-gcc-headers-can-be-included.patch +++ /dev/null | |||
@@ -1,98 +0,0 @@ | |||
1 | From fc6621435a64a9d69aa251b70361da94cf2db6be Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 20 Feb 2015 10:25:11 +0000 | ||
4 | Subject: [PATCH 31/46] Ensure target gcc headers can be included | ||
5 | |||
6 | There are a few headers installed as part of the OpenEmbedded | ||
7 | gcc-runtime target (omp.h, ssp/*.h). Being installed from a recipe | ||
8 | built for the target architecture, these are within the target | ||
9 | sysroot and not cross/nativesdk; thus they weren't able to be | ||
10 | found by gcc with the existing search paths. Add support for | ||
11 | picking up these headers under the sysroot supplied on the gcc | ||
12 | command line in order to resolve this. | ||
13 | |||
14 | Upstream-Status: Pending | ||
15 | |||
16 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
18 | --- | ||
19 | gcc/Makefile.in | 2 ++ | ||
20 | gcc/cppdefault.c | 4 ++++ | ||
21 | gcc/defaults.h | 9 +++++++++ | ||
22 | gcc/gcc.c | 7 ------- | ||
23 | 4 files changed, 15 insertions(+), 7 deletions(-) | ||
24 | |||
25 | diff --git a/gcc/Makefile.in b/gcc/Makefile.in | ||
26 | index 450cb79..cc75536 100644 | ||
27 | --- a/gcc/Makefile.in | ||
28 | +++ b/gcc/Makefile.in | ||
29 | @@ -593,6 +593,7 @@ libexecdir = @libexecdir@ | ||
30 | |||
31 | # Directory in which the compiler finds libraries etc. | ||
32 | libsubdir = $(libdir)/gcc/$(real_target_noncanonical)/$(version)$(accel_dir_suffix) | ||
33 | +libsubdir_target = gcc/$(target_noncanonical)/$(version) | ||
34 | # Directory in which the compiler finds executables | ||
35 | libexecsubdir = $(libexecdir)/gcc/$(real_target_noncanonical)/$(version)$(accel_dir_suffix) | ||
36 | # Directory in which all plugin resources are installed | ||
37 | @@ -2688,6 +2689,7 @@ CFLAGS-intl.o += -DLOCALEDIR=\"$(localedir)\" | ||
38 | |||
39 | PREPROCESSOR_DEFINES = \ | ||
40 | -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \ | ||
41 | + -DGCC_INCLUDE_SUBDIR_TARGET=\"$(libsubdir_target)/include\" \ | ||
42 | -DFIXED_INCLUDE_DIR=\"$(libsubdir)/include-fixed\" \ | ||
43 | -DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \ | ||
44 | -DGPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT=$(gcc_gxx_include_dir_add_sysroot) \ | ||
45 | diff --git a/gcc/cppdefault.c b/gcc/cppdefault.c | ||
46 | index 54aaf06..7b4dd51 100644 | ||
47 | --- a/gcc/cppdefault.c | ||
48 | +++ b/gcc/cppdefault.c | ||
49 | @@ -59,6 +59,10 @@ const struct default_include cpp_include_defaults[] | ||
50 | /* This is the dir for gcc's private headers. */ | ||
51 | { GCC_INCLUDE_DIR, "GCC", 0, 0, 0, 0 }, | ||
52 | #endif | ||
53 | +#ifdef GCC_INCLUDE_SUBDIR_TARGET | ||
54 | + /* This is the dir for gcc's private headers under the specified sysroot. */ | ||
55 | + { STANDARD_STARTFILE_PREFIX_2 GCC_INCLUDE_SUBDIR_TARGET, "GCC", 0, 0, 1, 0 }, | ||
56 | +#endif | ||
57 | #ifdef LOCAL_INCLUDE_DIR | ||
58 | /* /usr/local/include comes before the fixincluded header files. */ | ||
59 | { LOCAL_INCLUDE_DIR, 0, 0, 1, 1, 2 }, | ||
60 | diff --git a/gcc/defaults.h b/gcc/defaults.h | ||
61 | index 3e18338..0f317f2 100644 | ||
62 | --- a/gcc/defaults.h | ||
63 | +++ b/gcc/defaults.h | ||
64 | @@ -1492,4 +1492,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 */ | ||
78 | diff --git a/gcc/gcc.c b/gcc/gcc.c | ||
79 | index 04fa81d..9750cc2 100644 | ||
80 | --- a/gcc/gcc.c | ||
81 | +++ b/gcc/gcc.c | ||
82 | @@ -1450,13 +1450,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 | ||
96 | -- | ||
97 | 2.8.2 | ||
98 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0032-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch b/meta/recipes-devtools/gcc/gcc-6.4/0032-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch deleted file mode 100644 index c0b001db51..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0032-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | From ff939c5063d8f8d444bdb25651a0a48e608efaa4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 20 Feb 2015 11:17:19 +0000 | ||
4 | Subject: [PATCH 32/46] gcc 4.8+ won't build with --disable-dependency-tracking | ||
5 | |||
6 | since the *.Ppo files don't get created unless --enable-dependency-tracking is true. | ||
7 | |||
8 | This patch ensures we only use those compiler options when its enabled. | ||
9 | |||
10 | Upstream-Status: Submitted | ||
11 | |||
12 | (Problem was already reported upstream, attached this patch there | ||
13 | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55930) | ||
14 | |||
15 | RP | ||
16 | 2012/09/22 | ||
17 | |||
18 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
19 | --- | ||
20 | libatomic/Makefile.am | 3 ++- | ||
21 | libatomic/Makefile.in | 3 ++- | ||
22 | 2 files changed, 4 insertions(+), 2 deletions(-) | ||
23 | |||
24 | diff --git a/libatomic/Makefile.am b/libatomic/Makefile.am | ||
25 | index b351244..399ce18 100644 | ||
26 | --- a/libatomic/Makefile.am | ||
27 | +++ b/libatomic/Makefile.am | ||
28 | @@ -101,7 +101,8 @@ PAT_S = $(word 3,$(PAT_SPLIT)) | ||
29 | IFUNC_DEF = -DIFUNC_ALT=$(PAT_S) | ||
30 | IFUNC_OPT = $(word $(PAT_S),$(IFUNC_OPTIONS)) | ||
31 | |||
32 | -M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo | ||
33 | +@AMDEP_TRUE@M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo | ||
34 | +@AMDEP_FALSE@M_DEPS = | ||
35 | M_SIZE = -DN=$(PAT_N) | ||
36 | M_IFUNC = $(if $(PAT_S),$(IFUNC_DEF) $(IFUNC_OPT)) | ||
37 | M_FILE = $(PAT_BASE)_n.c | ||
38 | diff --git a/libatomic/Makefile.in b/libatomic/Makefile.in | ||
39 | index a083d87..a92cfce 100644 | ||
40 | --- a/libatomic/Makefile.in | ||
41 | +++ b/libatomic/Makefile.in | ||
42 | @@ -330,7 +330,8 @@ PAT_N = $(word 2,$(PAT_SPLIT)) | ||
43 | PAT_S = $(word 3,$(PAT_SPLIT)) | ||
44 | IFUNC_DEF = -DIFUNC_ALT=$(PAT_S) | ||
45 | IFUNC_OPT = $(word $(PAT_S),$(IFUNC_OPTIONS)) | ||
46 | -M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo | ||
47 | +@AMDEP_TRUE@M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo | ||
48 | +@AMDEP_FALSE@M_DEPS = | ||
49 | M_SIZE = -DN=$(PAT_N) | ||
50 | M_IFUNC = $(if $(PAT_S),$(IFUNC_DEF) $(IFUNC_OPT)) | ||
51 | M_FILE = $(PAT_BASE)_n.c | ||
52 | -- | ||
53 | 2.8.2 | ||
54 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0033-Don-t-search-host-directory-during-relink-if-inst_pr.patch b/meta/recipes-devtools/gcc/gcc-6.4/0033-Don-t-search-host-directory-during-relink-if-inst_pr.patch deleted file mode 100644 index e425d71463..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0033-Don-t-search-host-directory-during-relink-if-inst_pr.patch +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | From 5092f5389d02e78cd59690cf3fca24b56a97aff2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 3 Mar 2015 08:21:19 +0000 | ||
4 | Subject: [PATCH 33/46] Don't search host directory during "relink" if | ||
5 | $inst_prefix is provided | ||
6 | |||
7 | http://lists.gnu.org/archive/html/libtool-patches/2011-01/msg00026.html | ||
8 | |||
9 | Upstream-Status: Submitted | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | ltmain.sh | 5 +++-- | ||
14 | 1 file changed, 3 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/ltmain.sh b/ltmain.sh | ||
17 | index 52bdbdb..82bcec3 100644 | ||
18 | --- a/ltmain.sh | ||
19 | +++ b/ltmain.sh | ||
20 | @@ -6004,12 +6004,13 @@ func_mode_link () | ||
21 | fi | ||
22 | else | ||
23 | # We cannot seem to hardcode it, guess we'll fake it. | ||
24 | + # Default if $libdir is not relative to the prefix: | ||
25 | add_dir="-L$libdir" | ||
26 | - # Try looking first in the location we're being installed to. | ||
27 | + | ||
28 | if test -n "$inst_prefix_dir"; then | ||
29 | case $libdir in | ||
30 | [\\/]*) | ||
31 | - add_dir="$add_dir -L$inst_prefix_dir$libdir" | ||
32 | + add_dir="-L$inst_prefix_dir$libdir" | ||
33 | ;; | ||
34 | esac | ||
35 | fi | ||
36 | -- | ||
37 | 2.8.2 | ||
38 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0034-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch b/meta/recipes-devtools/gcc/gcc-6.4/0034-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch deleted file mode 100644 index 922a8555b6..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0034-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | From 1faa6f69f93bb95af2b2b2bd24e181b50fb5b37c Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 28 Apr 2015 23:15:27 -0700 | ||
4 | Subject: [PATCH 34/46] Use SYSTEMLIBS_DIR replacement instead of hardcoding | ||
5 | base_libdir | ||
6 | |||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | Upstream-Status: Inappropriate [OE Configuration] | ||
10 | |||
11 | gcc/config/aarch64/aarch64-linux.h | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h | ||
15 | index 5fcaa59..8588ac0 100644 | ||
16 | --- a/gcc/config/aarch64/aarch64-linux.h | ||
17 | +++ b/gcc/config/aarch64/aarch64-linux.h | ||
18 | @@ -21,7 +21,7 @@ | ||
19 | #ifndef GCC_AARCH64_LINUX_H | ||
20 | #define GCC_AARCH64_LINUX_H | ||
21 | |||
22 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" | ||
23 | +#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" | ||
24 | |||
25 | #undef MUSL_DYNAMIC_LINKER | ||
26 | #define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" | ||
27 | -- | ||
28 | 2.8.2 | ||
29 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0035-aarch64-Add-support-for-musl-ldso.patch b/meta/recipes-devtools/gcc/gcc-6.4/0035-aarch64-Add-support-for-musl-ldso.patch deleted file mode 100644 index 9dfc47276f..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0035-aarch64-Add-support-for-musl-ldso.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | From 3768468c1a6cc170fff88c03b808c975ac653811 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 28 Apr 2015 23:18:39 -0700 | ||
4 | Subject: [PATCH 35/46] aarch64: Add support for musl ldso | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | --- | ||
8 | Upstream-Status: Inappropriate [OE Configuration] | ||
9 | |||
10 | gcc/config/aarch64/aarch64-linux.h | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h | ||
14 | index 8588ac0..946b3ca 100644 | ||
15 | --- a/gcc/config/aarch64/aarch64-linux.h | ||
16 | +++ b/gcc/config/aarch64/aarch64-linux.h | ||
17 | @@ -24,7 +24,7 @@ | ||
18 | #define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" | ||
19 | |||
20 | #undef MUSL_DYNAMIC_LINKER | ||
21 | -#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" | ||
22 | +#define MUSL_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" | ||
23 | |||
24 | #undef ASAN_CC1_SPEC | ||
25 | #define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}" | ||
26 | -- | ||
27 | 2.8.2 | ||
28 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0036-libcc1-fix-libcc1-s-install-path-and-rpath.patch b/meta/recipes-devtools/gcc/gcc-6.4/0036-libcc1-fix-libcc1-s-install-path-and-rpath.patch deleted file mode 100644 index f89a8860f9..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0036-libcc1-fix-libcc1-s-install-path-and-rpath.patch +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | From f4d3c8e970d42a43cd3d2f751e13324efa936ff8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
3 | Date: Sun, 5 Jul 2015 20:25:18 -0700 | ||
4 | Subject: [PATCH 36/46] libcc1: fix libcc1's install path and rpath | ||
5 | |||
6 | * Install libcc1.so and libcc1plugin.so into | ||
7 | $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version), as what we | ||
8 | had done to lto-plugin. | ||
9 | * Fix bad RPATH iussue: | ||
10 | gcc-5.2.0: package gcc-plugins contains bad RPATH /patht/to/tmp/sysroots/qemux86-64/usr/lib64/../lib64 in file | ||
11 | /path/to/gcc/5.2.0-r0/packages-split/gcc-plugins/usr/lib64/gcc/x86_64-poky-linux/5.2.0/plugin/libcc1plugin.so.0.0.0 | ||
12 | [rpaths] | ||
13 | |||
14 | Upstream-Status: Inappropriate [OE configuration] | ||
15 | |||
16 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
17 | --- | ||
18 | libcc1/Makefile.am | 4 ++-- | ||
19 | libcc1/Makefile.in | 4 ++-- | ||
20 | 2 files changed, 4 insertions(+), 4 deletions(-) | ||
21 | |||
22 | diff --git a/libcc1/Makefile.am b/libcc1/Makefile.am | ||
23 | index b40820b..32930c5 100644 | ||
24 | --- a/libcc1/Makefile.am | ||
25 | +++ b/libcc1/Makefile.am | ||
26 | @@ -35,8 +35,8 @@ libiberty = $(if $(wildcard $(libiberty_noasan)),$(Wc)$(libiberty_noasan), \ | ||
27 | $(Wc)$(libiberty_normal))) | ||
28 | libiberty_dep = $(patsubst $(Wc)%,%,$(libiberty)) | ||
29 | |||
30 | -plugindir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/plugin | ||
31 | -cc1libdir = $(libdir)/$(libsuffix) | ||
32 | +cc1libdir = $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version) | ||
33 | +plugindir = $(cc1libdir) | ||
34 | |||
35 | if ENABLE_PLUGIN | ||
36 | plugin_LTLIBRARIES = libcc1plugin.la | ||
37 | diff --git a/libcc1/Makefile.in b/libcc1/Makefile.in | ||
38 | index 79d39d3..227ec22 100644 | ||
39 | --- a/libcc1/Makefile.in | ||
40 | +++ b/libcc1/Makefile.in | ||
41 | @@ -291,8 +291,8 @@ libiberty = $(if $(wildcard $(libiberty_noasan)),$(Wc)$(libiberty_noasan), \ | ||
42 | $(Wc)$(libiberty_normal))) | ||
43 | |||
44 | libiberty_dep = $(patsubst $(Wc)%,%,$(libiberty)) | ||
45 | -plugindir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/plugin | ||
46 | -cc1libdir = $(libdir)/$(libsuffix) | ||
47 | +cc1libdir = $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version) | ||
48 | +plugindir = $(cc1libdir) | ||
49 | @ENABLE_PLUGIN_TRUE@plugin_LTLIBRARIES = libcc1plugin.la | ||
50 | @ENABLE_PLUGIN_TRUE@cc1lib_LTLIBRARIES = libcc1.la | ||
51 | BUILT_SOURCES = compiler-name.h | ||
52 | -- | ||
53 | 2.8.2 | ||
54 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0037-handle-sysroot-support-for-nativesdk-gcc.patch b/meta/recipes-devtools/gcc/gcc-6.4/0037-handle-sysroot-support-for-nativesdk-gcc.patch deleted file mode 100644 index 15efcb12ed..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0037-handle-sysroot-support-for-nativesdk-gcc.patch +++ /dev/null | |||
@@ -1,213 +0,0 @@ | |||
1 | From 1475b941d7a9c9874b0fb0558d01805945467331 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 7 Dec 2015 23:39:54 +0000 | ||
4 | Subject: [PATCH 37/46] handle sysroot support for nativesdk-gcc | ||
5 | |||
6 | Being able to build a nativesdk gcc is useful, particularly in cases | ||
7 | where the host compiler may be of an incompatible version (or a 32 | ||
8 | bit compiler is needed). | ||
9 | |||
10 | Sadly, building nativesdk-gcc is not straight forward. We install | ||
11 | nativesdk-gcc into a relocatable location and this means that its | ||
12 | library locations can change. "Normal" sysroot support doesn't help | ||
13 | in this case since the values of paths like "libdir" change, not just | ||
14 | base root directory of the system. | ||
15 | |||
16 | In order to handle this we do two things: | ||
17 | |||
18 | a) Add %r into spec file markup which can be used for injected paths | ||
19 | such as SYSTEMLIBS_DIR (see gcc_multilib_setup()). | ||
20 | b) Add other paths which need relocation into a .gccrelocprefix section | ||
21 | which the relocation code will notice and adjust automatically. | ||
22 | |||
23 | Upstream-Status: Inappropriate | ||
24 | RP 2015/7/28 | ||
25 | |||
26 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
27 | --- | ||
28 | gcc/cppdefault.c | 50 +++++++++++++++++++++++++++++++++++++------------- | ||
29 | gcc/cppdefault.h | 3 ++- | ||
30 | gcc/gcc.c | 20 ++++++++++++++------ | ||
31 | 3 files changed, 53 insertions(+), 20 deletions(-) | ||
32 | |||
33 | diff --git a/gcc/cppdefault.c b/gcc/cppdefault.c | ||
34 | index 7b4dd51..9d1166c 100644 | ||
35 | --- a/gcc/cppdefault.c | ||
36 | +++ b/gcc/cppdefault.c | ||
37 | @@ -35,6 +35,30 @@ | ||
38 | # undef CROSS_INCLUDE_DIR | ||
39 | #endif | ||
40 | |||
41 | +static char GPLUSPLUS_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = GPLUSPLUS_INCLUDE_DIR; | ||
42 | +static char GCC_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = GCC_INCLUDE_DIR; | ||
43 | +static char GPLUSPLUS_TOOL_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = GPLUSPLUS_TOOL_INCLUDE_DIR; | ||
44 | +static char GPLUSPLUS_BACKWARD_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = GPLUSPLUS_BACKWARD_INCLUDE_DIR; | ||
45 | +static char STANDARD_STARTFILE_PREFIX_2VAR[4096] __attribute__ ((section (".gccrelocprefix"))) = STANDARD_STARTFILE_PREFIX_2 GCC_INCLUDE_SUBDIR_TARGET; | ||
46 | +#ifdef LOCAL_INCLUDE_DIR | ||
47 | +static char LOCAL_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = LOCAL_INCLUDE_DIR; | ||
48 | +#endif | ||
49 | +#ifdef PREFIX_INCLUDE_DIR | ||
50 | +static char PREFIX_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = PREFIX_INCLUDE_DIR; | ||
51 | +#endif | ||
52 | +#ifdef FIXED_INCLUDE_DIR | ||
53 | +static char FIXED_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = FIXED_INCLUDE_DIR; | ||
54 | +#endif | ||
55 | +#ifdef CROSS_INCLUDE_DIR | ||
56 | +static char CROSS_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = CROSS_INCLUDE_DIR; | ||
57 | +#endif | ||
58 | +#ifdef TOOL_INCLUDE_DIR | ||
59 | +static char TOOL_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = TOOL_INCLUDE_DIR; | ||
60 | +#endif | ||
61 | +#ifdef NATIVE_SYSTEM_HEADER_DIR | ||
62 | +static char NATIVE_SYSTEM_HEADER_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = NATIVE_SYSTEM_HEADER_DIR; | ||
63 | +#endif | ||
64 | + | ||
65 | const struct default_include cpp_include_defaults[] | ||
66 | #ifdef INCLUDE_DEFAULTS | ||
67 | = INCLUDE_DEFAULTS; | ||
68 | @@ -42,38 +66,38 @@ const struct default_include cpp_include_defaults[] | ||
69 | = { | ||
70 | #ifdef GPLUSPLUS_INCLUDE_DIR | ||
71 | /* Pick up GNU C++ generic include files. */ | ||
72 | - { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1, | ||
73 | + { GPLUSPLUS_INCLUDE_DIRVAR, "G++", 1, 1, | ||
74 | GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT, 0 }, | ||
75 | #endif | ||
76 | #ifdef GPLUSPLUS_TOOL_INCLUDE_DIR | ||
77 | /* Pick up GNU C++ target-dependent include files. */ | ||
78 | - { GPLUSPLUS_TOOL_INCLUDE_DIR, "G++", 1, 1, | ||
79 | + { GPLUSPLUS_TOOL_INCLUDE_DIRVAR, "G++", 1, 1, | ||
80 | GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT, 1 }, | ||
81 | #endif | ||
82 | #ifdef GPLUSPLUS_BACKWARD_INCLUDE_DIR | ||
83 | /* Pick up GNU C++ backward and deprecated include files. */ | ||
84 | - { GPLUSPLUS_BACKWARD_INCLUDE_DIR, "G++", 1, 1, | ||
85 | + { GPLUSPLUS_BACKWARD_INCLUDE_DIRVAR, "G++", 1, 1, | ||
86 | GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT, 0 }, | ||
87 | #endif | ||
88 | #ifdef GCC_INCLUDE_DIR | ||
89 | /* This is the dir for gcc's private headers. */ | ||
90 | - { GCC_INCLUDE_DIR, "GCC", 0, 0, 0, 0 }, | ||
91 | + { GCC_INCLUDE_DIRVAR, "GCC", 0, 0, 0, 0 }, | ||
92 | #endif | ||
93 | #ifdef GCC_INCLUDE_SUBDIR_TARGET | ||
94 | /* This is the dir for gcc's private headers under the specified sysroot. */ | ||
95 | - { STANDARD_STARTFILE_PREFIX_2 GCC_INCLUDE_SUBDIR_TARGET, "GCC", 0, 0, 1, 0 }, | ||
96 | + { STANDARD_STARTFILE_PREFIX_2VAR, "GCC", 0, 0, 1, 0 }, | ||
97 | #endif | ||
98 | #ifdef LOCAL_INCLUDE_DIR | ||
99 | /* /usr/local/include comes before the fixincluded header files. */ | ||
100 | - { LOCAL_INCLUDE_DIR, 0, 0, 1, 1, 2 }, | ||
101 | - { LOCAL_INCLUDE_DIR, 0, 0, 1, 1, 0 }, | ||
102 | + { LOCAL_INCLUDE_DIRVAR, 0, 0, 1, 1, 2 }, | ||
103 | + { LOCAL_INCLUDE_DIRVAR, 0, 0, 1, 1, 0 }, | ||
104 | #endif | ||
105 | #ifdef PREFIX_INCLUDE_DIR | ||
106 | - { PREFIX_INCLUDE_DIR, 0, 0, 1, 0, 0 }, | ||
107 | + { PREFIX_INCLUDE_DIRVAR, 0, 0, 1, 0, 0 }, | ||
108 | #endif | ||
109 | #ifdef FIXED_INCLUDE_DIR | ||
110 | /* This is the dir for fixincludes. */ | ||
111 | - { FIXED_INCLUDE_DIR, "GCC", 0, 0, 0, | ||
112 | + { FIXED_INCLUDE_DIRVAR, "GCC", 0, 0, 0, | ||
113 | /* A multilib suffix needs adding if different multilibs use | ||
114 | different headers. */ | ||
115 | #ifdef SYSROOT_HEADERS_SUFFIX_SPEC | ||
116 | @@ -85,16 +109,16 @@ const struct default_include cpp_include_defaults[] | ||
117 | #endif | ||
118 | #ifdef CROSS_INCLUDE_DIR | ||
119 | /* One place the target system's headers might be. */ | ||
120 | - { CROSS_INCLUDE_DIR, "GCC", 0, 0, 0, 0 }, | ||
121 | + { CROSS_INCLUDE_DIRVAR, "GCC", 0, 0, 0, 0 }, | ||
122 | #endif | ||
123 | #ifdef TOOL_INCLUDE_DIR | ||
124 | /* Another place the target system's headers might be. */ | ||
125 | - { TOOL_INCLUDE_DIR, "BINUTILS", 0, 1, 0, 0 }, | ||
126 | + { TOOL_INCLUDE_DIRVAR, "BINUTILS", 0, 1, 0, 0 }, | ||
127 | #endif | ||
128 | #ifdef NATIVE_SYSTEM_HEADER_DIR | ||
129 | /* /usr/include comes dead last. */ | ||
130 | - { NATIVE_SYSTEM_HEADER_DIR, NATIVE_SYSTEM_HEADER_COMPONENT, 0, 0, 1, 2 }, | ||
131 | - { NATIVE_SYSTEM_HEADER_DIR, NATIVE_SYSTEM_HEADER_COMPONENT, 0, 0, 1, 0 }, | ||
132 | + { NATIVE_SYSTEM_HEADER_DIRVAR, NATIVE_SYSTEM_HEADER_COMPONENT, 0, 0, 1, 2 }, | ||
133 | + { NATIVE_SYSTEM_HEADER_DIRVAR, NATIVE_SYSTEM_HEADER_COMPONENT, 0, 0, 1, 0 }, | ||
134 | #endif | ||
135 | { 0, 0, 0, 0, 0, 0 } | ||
136 | }; | ||
137 | diff --git a/gcc/cppdefault.h b/gcc/cppdefault.h | ||
138 | index 8a81b45..9759efd 100644 | ||
139 | --- a/gcc/cppdefault.h | ||
140 | +++ b/gcc/cppdefault.h | ||
141 | @@ -33,7 +33,8 @@ | ||
142 | |||
143 | struct default_include | ||
144 | { | ||
145 | - const char *const fname; /* The name of the directory. */ | ||
146 | + const char *fname; /* The name of the directory. */ | ||
147 | + | ||
148 | const char *const component; /* The component containing the directory | ||
149 | (see update_path in prefix.c) */ | ||
150 | const char cplusplus; /* Only look here if we're compiling C++. */ | ||
151 | diff --git a/gcc/gcc.c b/gcc/gcc.c | ||
152 | index 9750cc2..94c240e 100644 | ||
153 | --- a/gcc/gcc.c | ||
154 | +++ b/gcc/gcc.c | ||
155 | @@ -247,6 +247,8 @@ FILE *report_times_to_file = NULL; | ||
156 | #endif | ||
157 | static const char *target_system_root = DEFAULT_TARGET_SYSTEM_ROOT; | ||
158 | |||
159 | +static char target_relocatable_prefix[4096] __attribute__ ((section (".gccrelocprefix"))) = SYSTEMLIBS_DIR; | ||
160 | + | ||
161 | /* Nonzero means pass the updated target_system_root to the compiler. */ | ||
162 | |||
163 | static int target_system_root_changed; | ||
164 | @@ -517,6 +519,7 @@ or with constant text in a single argument. | ||
165 | %G process LIBGCC_SPEC as a spec. | ||
166 | %R Output the concatenation of target_system_root and | ||
167 | target_sysroot_suffix. | ||
168 | + %r Output the base path target_relocatable_prefix | ||
169 | %S process STARTFILE_SPEC as a spec. A capital S is actually used here. | ||
170 | %E process ENDFILE_SPEC as a spec. A capital E is actually used here. | ||
171 | %C process CPP_SPEC as a spec. | ||
172 | @@ -1473,10 +1476,10 @@ static const char *gcc_libexec_prefix; | ||
173 | gcc_exec_prefix is set because, in that case, we know where the | ||
174 | compiler has been installed, and use paths relative to that | ||
175 | location instead. */ | ||
176 | -static const char *const standard_exec_prefix = STANDARD_EXEC_PREFIX; | ||
177 | -static const char *const standard_libexec_prefix = STANDARD_LIBEXEC_PREFIX; | ||
178 | -static const char *const standard_bindir_prefix = STANDARD_BINDIR_PREFIX; | ||
179 | -static const char *const standard_startfile_prefix = STANDARD_STARTFILE_PREFIX; | ||
180 | +static char standard_exec_prefix[4096] __attribute__ ((section (".gccrelocprefix"))) = STANDARD_EXEC_PREFIX; | ||
181 | +static char standard_libexec_prefix[4096] __attribute__ ((section (".gccrelocprefix"))) = STANDARD_LIBEXEC_PREFIX; | ||
182 | +static char standard_bindir_prefix[4096] __attribute__ ((section (".gccrelocprefix"))) = STANDARD_BINDIR_PREFIX; | ||
183 | +static char *const standard_startfile_prefix = STANDARD_STARTFILE_PREFIX; | ||
184 | |||
185 | /* For native compilers, these are well-known paths containing | ||
186 | components that may be provided by the system. For cross | ||
187 | @@ -1484,9 +1487,9 @@ static const char *const standard_startfile_prefix = STANDARD_STARTFILE_PREFIX; | ||
188 | static const char *md_exec_prefix = MD_EXEC_PREFIX; | ||
189 | static const char *md_startfile_prefix = MD_STARTFILE_PREFIX; | ||
190 | static const char *md_startfile_prefix_1 = MD_STARTFILE_PREFIX_1; | ||
191 | -static const char *const standard_startfile_prefix_1 | ||
192 | +static char standard_startfile_prefix_1[4096] __attribute__ ((section (".gccrelocprefix"))) | ||
193 | = STANDARD_STARTFILE_PREFIX_1; | ||
194 | -static const char *const standard_startfile_prefix_2 | ||
195 | +static char standard_startfile_prefix_2[4096] __attribute__ ((section (".gccrelocprefix"))) | ||
196 | = STANDARD_STARTFILE_PREFIX_2; | ||
197 | |||
198 | /* A relative path to be used in finding the location of tools | ||
199 | @@ -5762,6 +5765,11 @@ do_spec_1 (const char *spec, int inswitch, const char *soft_matched_part) | ||
200 | } | ||
201 | break; | ||
202 | |||
203 | + case 'r': | ||
204 | + obstack_grow (&obstack, target_relocatable_prefix, | ||
205 | + strlen (target_relocatable_prefix)); | ||
206 | + break; | ||
207 | + | ||
208 | case 'S': | ||
209 | value = do_spec_1 (startfile_spec, 0, NULL); | ||
210 | if (value != 0) | ||
211 | -- | ||
212 | 2.8.2 | ||
213 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0038-Search-target-sysroot-gcc-version-specific-dirs-with.patch b/meta/recipes-devtools/gcc/gcc-6.4/0038-Search-target-sysroot-gcc-version-specific-dirs-with.patch deleted file mode 100644 index 89ee79db89..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0038-Search-target-sysroot-gcc-version-specific-dirs-with.patch +++ /dev/null | |||
@@ -1,102 +0,0 @@ | |||
1 | From 42e4cdcaad590536246866b0846ec279e124fa16 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 7 Dec 2015 23:41:45 +0000 | ||
4 | Subject: [PATCH 38/46] Search target sysroot gcc version specific dirs with | ||
5 | multilib. | ||
6 | |||
7 | We install the gcc libraries (such as crtbegin.p) into | ||
8 | <sysroot><libdir>/<target-sys>/5.2.0/ | ||
9 | which is a default search path for GCC (aka multi_suffix in the | ||
10 | code below). <target-sys> is 'machine' in gcc's terminology. We use | ||
11 | these directories so that multiple gcc versions could in theory | ||
12 | co-exist on target. | ||
13 | |||
14 | We only want to build one gcc-cross-canadian per arch and have this work | ||
15 | for all multilibs. <target-sys> can be handled by mapping the multilib | ||
16 | <target-sys> to the one used by gcc-cross-canadian, e.g. | ||
17 | mips64-polkmllib32-linux | ||
18 | is symlinked to by mips64-poky-linux. | ||
19 | |||
20 | The default gcc search path in the target sysroot for a "lib64" mutlilib | ||
21 | is: | ||
22 | |||
23 | <sysroot>/lib32/mips64-poky-linux/5.2.0/ | ||
24 | <sysroot>/lib32/../lib64/ | ||
25 | <sysroot>/usr/lib32/mips64-poky-linux/5.2.0/ | ||
26 | <sysroot>/usr/lib32/../lib64/ | ||
27 | <sysroot>/lib32/ | ||
28 | <sysroot>/usr/lib32/ | ||
29 | |||
30 | which means that the lib32 crtbegin.o will be found and the lib64 ones | ||
31 | will not which leads to compiler failures. | ||
32 | |||
33 | This patch injects a multilib version of that path first so the lib64 | ||
34 | binaries can be found first. With this change the search path becomes: | ||
35 | |||
36 | <sysroot>/lib32/../lib64/mips64-poky-linux/5.2.0/ | ||
37 | <sysroot>/lib32/mips64-poky-linux/5.2.0/ | ||
38 | <sysroot>/lib32/../lib64/ | ||
39 | <sysroot>/usr/lib32/../lib64/mips64-poky-linux/5.2.0/ | ||
40 | <sysroot>/usr/lib32/mips64-poky-linux/5.2.0/ | ||
41 | <sysroot>/usr/lib32/../lib64/ | ||
42 | <sysroot>/lib32/ | ||
43 | <sysroot>/usr/lib32/ | ||
44 | |||
45 | Upstream-Status: Pending | ||
46 | RP 2015/7/31 | ||
47 | |||
48 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
49 | --- | ||
50 | gcc/gcc.c | 29 ++++++++++++++++++++++++++++- | ||
51 | 1 file changed, 28 insertions(+), 1 deletion(-) | ||
52 | |||
53 | diff --git a/gcc/gcc.c b/gcc/gcc.c | ||
54 | index 94c240e..2812819 100644 | ||
55 | --- a/gcc/gcc.c | ||
56 | +++ b/gcc/gcc.c | ||
57 | @@ -2507,7 +2507,7 @@ for_each_path (const struct path_prefix *paths, | ||
58 | if (path == NULL) | ||
59 | { | ||
60 | len = paths->max_len + extra_space + 1; | ||
61 | - len += MAX (MAX (suffix_len, multi_os_dir_len), multiarch_len); | ||
62 | + len += MAX ((suffix_len + multi_os_dir_len), multiarch_len); | ||
63 | path = XNEWVEC (char, len); | ||
64 | } | ||
65 | |||
66 | @@ -2519,6 +2519,33 @@ for_each_path (const struct path_prefix *paths, | ||
67 | /* Look first in MACHINE/VERSION subdirectory. */ | ||
68 | if (!skip_multi_dir) | ||
69 | { | ||
70 | + if (!(pl->os_multilib ? skip_multi_os_dir : skip_multi_dir)) | ||
71 | + { | ||
72 | + const char *this_multi; | ||
73 | + size_t this_multi_len; | ||
74 | + | ||
75 | + if (pl->os_multilib) | ||
76 | + { | ||
77 | + this_multi = multi_os_dir; | ||
78 | + this_multi_len = multi_os_dir_len; | ||
79 | + } | ||
80 | + else | ||
81 | + { | ||
82 | + this_multi = multi_dir; | ||
83 | + this_multi_len = multi_dir_len; | ||
84 | + } | ||
85 | + | ||
86 | + /* Look in multilib MACHINE/VERSION subdirectory first */ | ||
87 | + if (this_multi_len) | ||
88 | + { | ||
89 | + memcpy (path + len, this_multi, this_multi_len + 1); | ||
90 | + memcpy (path + len + this_multi_len, multi_suffix, suffix_len + 1); | ||
91 | + ret = callback (path, callback_info); | ||
92 | + if (ret) | ||
93 | + break; | ||
94 | + } | ||
95 | + } | ||
96 | + | ||
97 | memcpy (path + len, multi_suffix, suffix_len + 1); | ||
98 | ret = callback (path, callback_info); | ||
99 | if (ret) | ||
100 | -- | ||
101 | 2.8.2 | ||
102 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0039-Fix-various-_FOR_BUILD-and-related-variables.patch b/meta/recipes-devtools/gcc/gcc-6.4/0039-Fix-various-_FOR_BUILD-and-related-variables.patch deleted file mode 100644 index 0ce7aec790..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0039-Fix-various-_FOR_BUILD-and-related-variables.patch +++ /dev/null | |||
@@ -1,137 +0,0 @@ | |||
1 | From 9ced49e459ccf1887feb58adf1e8836dcb4b1bdf Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 7 Dec 2015 23:42:45 +0000 | ||
4 | Subject: [PATCH 39/46] Fix various _FOR_BUILD and related variables | ||
5 | |||
6 | When doing a FOR_BUILD thing, you have to override CFLAGS with | ||
7 | CFLAGS_FOR_BUILD. And if you use C++, you also have to override | ||
8 | CXXFLAGS with CXXFLAGS_FOR_BUILD. | ||
9 | Without this, when building for mingw, you end up trying to use | ||
10 | the mingw headers for a host build. | ||
11 | |||
12 | The same goes for other variables as well, such as CPPFLAGS, | ||
13 | CPP, and GMPINC. | ||
14 | |||
15 | Upstream-Status: Pending | ||
16 | |||
17 | Signed-off-by: Peter Seebach <peter.seebach@windriver.com> | ||
18 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | ||
19 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
20 | --- | ||
21 | Makefile.in | 6 ++++++ | ||
22 | Makefile.tpl | 5 +++++ | ||
23 | gcc/Makefile.in | 2 +- | ||
24 | gcc/configure | 2 +- | ||
25 | gcc/configure.ac | 2 +- | ||
26 | 5 files changed, 14 insertions(+), 3 deletions(-) | ||
27 | |||
28 | diff --git a/Makefile.in b/Makefile.in | ||
29 | index beb9b9a..3e1c6bc 100644 | ||
30 | --- a/Makefile.in | ||
31 | +++ b/Makefile.in | ||
32 | @@ -152,6 +152,7 @@ BUILD_EXPORTS = \ | ||
33 | CPP="$(CC_FOR_BUILD) -E"; export CPP; \ | ||
34 | CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \ | ||
35 | CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ | ||
36 | + CPPFLAGS="$(CPPFLAGS_FOR_BUILD)"; export CPPFLAGS; \ | ||
37 | CXX="$(CXX_FOR_BUILD)"; export CXX; \ | ||
38 | CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \ | ||
39 | GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \ | ||
40 | @@ -170,6 +171,9 @@ BUILD_EXPORTS = \ | ||
41 | # built for the build system to override those in BASE_FLAGS_TO_PASS. | ||
42 | EXTRA_BUILD_FLAGS = \ | ||
43 | CFLAGS="$(CFLAGS_FOR_BUILD)" \ | ||
44 | + CXXFLAGS="$(CXXFLAGS_FOR_BUILD)" \ | ||
45 | + CPP="$(CC_FOR_BUILD) -E" \ | ||
46 | + CPPFLAGS="$(CPPFLAGS_FOR_BUILD)" \ | ||
47 | LDFLAGS="$(LDFLAGS_FOR_BUILD)" | ||
48 | |||
49 | # This is the list of directories to built for the host system. | ||
50 | @@ -187,6 +191,7 @@ HOST_SUBDIR = @host_subdir@ | ||
51 | HOST_EXPORTS = \ | ||
52 | $(BASE_EXPORTS) \ | ||
53 | CC="$(CC)"; export CC; \ | ||
54 | + CPP="$(CC) -E"; export CPP; \ | ||
55 | ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \ | ||
56 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | ||
57 | CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ | ||
58 | @@ -713,6 +718,7 @@ BASE_FLAGS_TO_PASS = \ | ||
59 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ | ||
60 | "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ | ||
61 | "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ | ||
62 | + "CXXFLAGS_FOR_BUILD=$(CXXFLAGS_FOR_BUILD)" \ | ||
63 | "EXPECT=$(EXPECT)" \ | ||
64 | "FLEX=$(FLEX)" \ | ||
65 | "INSTALL=$(INSTALL)" \ | ||
66 | diff --git a/Makefile.tpl b/Makefile.tpl | ||
67 | index 6b2eb6a..114e462 100644 | ||
68 | --- a/Makefile.tpl | ||
69 | +++ b/Makefile.tpl | ||
70 | @@ -154,6 +154,7 @@ BUILD_EXPORTS = \ | ||
71 | CC="$(CC_FOR_BUILD)"; export CC; \ | ||
72 | CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \ | ||
73 | CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ | ||
74 | + CPPFLAGS="$(CPPFLAGS_FOR_BUILD)"; export CPPFLAGS; \ | ||
75 | CXX="$(CXX_FOR_BUILD)"; export CXX; \ | ||
76 | CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \ | ||
77 | GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \ | ||
78 | @@ -172,6 +173,9 @@ BUILD_EXPORTS = \ | ||
79 | # built for the build system to override those in BASE_FLAGS_TO_PASS. | ||
80 | EXTRA_BUILD_FLAGS = \ | ||
81 | CFLAGS="$(CFLAGS_FOR_BUILD)" \ | ||
82 | + CXXFLAGS="$(CXXFLAGS_FOR_BUILD)" \ | ||
83 | + CPP="$(CC_FOR_BUILD) -E" \ | ||
84 | + CPPFLAGS="$(CPPFLAGS_FOR_BUILD)" \ | ||
85 | LDFLAGS="$(LDFLAGS_FOR_BUILD)" | ||
86 | |||
87 | # This is the list of directories to built for the host system. | ||
88 | @@ -189,6 +193,7 @@ HOST_SUBDIR = @host_subdir@ | ||
89 | HOST_EXPORTS = \ | ||
90 | $(BASE_EXPORTS) \ | ||
91 | CC="$(CC)"; export CC; \ | ||
92 | + CPP="$(CC) -E"; export CPP; \ | ||
93 | ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \ | ||
94 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | ||
95 | CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ | ||
96 | diff --git a/gcc/Makefile.in b/gcc/Makefile.in | ||
97 | index cc75536..0ad2dc8 100644 | ||
98 | --- a/gcc/Makefile.in | ||
99 | +++ b/gcc/Makefile.in | ||
100 | @@ -780,7 +780,7 @@ BUILD_LDFLAGS=@BUILD_LDFLAGS@ | ||
101 | BUILD_NO_PIE_FLAG = @BUILD_NO_PIE_FLAG@ | ||
102 | BUILD_LDFLAGS += $(BUILD_NO_PIE_FLAG) | ||
103 | BUILD_CPPFLAGS= -I. -I$(@D) -I$(srcdir) -I$(srcdir)/$(@D) \ | ||
104 | - -I$(srcdir)/../include @INCINTL@ $(CPPINC) $(CPPFLAGS) | ||
105 | + -I$(srcdir)/../include @INCINTL@ $(CPPINC) $(CPPFLAGS_FOR_BUILD) | ||
106 | |||
107 | # Actual name to use when installing a native compiler. | ||
108 | GCC_INSTALL_NAME := $(shell echo gcc|sed '$(program_transform_name)') | ||
109 | diff --git a/gcc/configure b/gcc/configure | ||
110 | index 377253e..78fc64a 100755 | ||
111 | --- a/gcc/configure | ||
112 | +++ b/gcc/configure | ||
113 | @@ -11799,7 +11799,7 @@ else | ||
114 | CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \ | ||
115 | CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \ | ||
116 | LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \ | ||
117 | - GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \ | ||
118 | + GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \ | ||
119 | ${realsrcdir}/configure \ | ||
120 | --enable-languages=${enable_languages-all} \ | ||
121 | --target=$target_alias --host=$build_alias --build=$build_alias | ||
122 | diff --git a/gcc/configure.ac b/gcc/configure.ac | ||
123 | index 54e7619..a94666e 100644 | ||
124 | --- a/gcc/configure.ac | ||
125 | +++ b/gcc/configure.ac | ||
126 | @@ -1682,7 +1682,7 @@ else | ||
127 | CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \ | ||
128 | CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \ | ||
129 | LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \ | ||
130 | - GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \ | ||
131 | + GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \ | ||
132 | ${realsrcdir}/configure \ | ||
133 | --enable-languages=${enable_languages-all} \ | ||
134 | --target=$target_alias --host=$build_alias --build=$build_alias | ||
135 | -- | ||
136 | 2.8.2 | ||
137 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0040-nios2-Define-MUSL_DYNAMIC_LINKER.patch b/meta/recipes-devtools/gcc/gcc-6.4/0040-nios2-Define-MUSL_DYNAMIC_LINKER.patch deleted file mode 100644 index c9a6fd0ebc..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0040-nios2-Define-MUSL_DYNAMIC_LINKER.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | From b0412c01c275aaeb6b458461cd2425120c8bcec8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 2 Feb 2016 10:26:10 -0800 | ||
4 | Subject: [PATCH 40/46] nios2: Define MUSL_DYNAMIC_LINKER | ||
5 | |||
6 | Signed-off-by: Marek Vasut <marex@denx.de> | ||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | Upstream-Status: Pending | ||
10 | |||
11 | gcc/config/nios2/linux.h | 1 + | ||
12 | 1 file changed, 1 insertion(+) | ||
13 | |||
14 | diff --git a/gcc/config/nios2/linux.h b/gcc/config/nios2/linux.h | ||
15 | index 4ef55b5..62bc1e7 100644 | ||
16 | --- a/gcc/config/nios2/linux.h | ||
17 | +++ b/gcc/config/nios2/linux.h | ||
18 | @@ -30,6 +30,7 @@ | ||
19 | #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" | ||
20 | |||
21 | #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-nios2.so.1" | ||
22 | +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-nios2.so.1" | ||
23 | |||
24 | #undef LINK_SPEC | ||
25 | #define LINK_SPEC LINK_SPEC_ENDIAN \ | ||
26 | -- | ||
27 | 2.8.2 | ||
28 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0041-ssp_nonshared.patch b/meta/recipes-devtools/gcc/gcc-6.4/0041-ssp_nonshared.patch deleted file mode 100644 index 0744529741..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0041-ssp_nonshared.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | From 551a5db7acb56e085a101f1c222d51b2c1b039a4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Szabolcs Nagy <nsz@port70.net> | ||
3 | Date: Sat, 7 Nov 2015 14:58:40 +0000 | ||
4 | Subject: [PATCH 41/46] ssp_nonshared | ||
5 | |||
6 | --- | ||
7 | Upstream-Status: Inappropriate [OE Configuration] | ||
8 | |||
9 | gcc/gcc.c | 3 ++- | ||
10 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/gcc/gcc.c b/gcc/gcc.c | ||
13 | index 2812819..9de96ee 100644 | ||
14 | --- a/gcc/gcc.c | ||
15 | +++ b/gcc/gcc.c | ||
16 | @@ -863,7 +863,8 @@ proper position among the other output files. */ | ||
17 | #ifndef LINK_SSP_SPEC | ||
18 | #ifdef TARGET_LIBC_PROVIDES_SSP | ||
19 | #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \ | ||
20 | - "|fstack-protector-strong|fstack-protector-explicit:}" | ||
21 | + "|fstack-protector-strong|fstack-protector-explicit" \ | ||
22 | + ":-lssp_nonshared}" | ||
23 | #else | ||
24 | #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \ | ||
25 | "|fstack-protector-strong|fstack-protector-explicit" \ | ||
26 | -- | ||
27 | 2.8.2 | ||
28 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0042-gcc-libcpp-support-ffile-prefix-map-old-new.patch b/meta/recipes-devtools/gcc/gcc-6.4/0042-gcc-libcpp-support-ffile-prefix-map-old-new.patch deleted file mode 100644 index 861f0fd7f1..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0042-gcc-libcpp-support-ffile-prefix-map-old-new.patch +++ /dev/null | |||
@@ -1,292 +0,0 @@ | |||
1 | From ba738cc411c9a54e389e336bcaa0a2428dd4a9d2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Wed, 16 Mar 2016 02:27:43 -0400 | ||
4 | Subject: [PATCH 42/46] gcc/libcpp: support -ffile-prefix-map=<old>=<new> | ||
5 | |||
6 | Similar -fdebug-prefix-map, add option -ffile-prefix-map to map one | ||
7 | directory name (old) to another (new) in __FILE__, __BASE_FILE__ and | ||
8 | __builtin_FILE (). | ||
9 | |||
10 | https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70268 | ||
11 | |||
12 | Upstream-Status: Submitted [gcc-patches@gcc.gnu.org] | ||
13 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
14 | --- | ||
15 | gcc/c-family/c-opts.c | 13 +++++++ | ||
16 | gcc/c-family/c.opt | 4 +++ | ||
17 | gcc/dwarf2out.c | 1 + | ||
18 | gcc/gimplify.c | 3 ++ | ||
19 | libcpp/Makefile.in | 10 +++--- | ||
20 | libcpp/file-map.c | 92 +++++++++++++++++++++++++++++++++++++++++++++++ | ||
21 | libcpp/include/file-map.h | 30 ++++++++++++++++ | ||
22 | libcpp/macro.c | 2 ++ | ||
23 | 8 files changed, 150 insertions(+), 5 deletions(-) | ||
24 | create mode 100644 libcpp/file-map.c | ||
25 | create mode 100644 libcpp/include/file-map.h | ||
26 | |||
27 | diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c | ||
28 | index fec58bc..7a0af43 100644 | ||
29 | --- a/gcc/c-family/c-opts.c | ||
30 | +++ b/gcc/c-family/c-opts.c | ||
31 | @@ -38,6 +38,14 @@ along with GCC; see the file COPYING3. If not see | ||
32 | #include "opts.h" | ||
33 | #include "plugin.h" /* For PLUGIN_INCLUDE_FILE event. */ | ||
34 | #include "mkdeps.h" | ||
35 | +#include "file-map.h" | ||
36 | +#include "c-target.h" | ||
37 | +#include "tm.h" /* For BYTES_BIG_ENDIAN, | ||
38 | + DOLLARS_IN_IDENTIFIERS, | ||
39 | + STDC_0_IN_SYSTEM_HEADERS, | ||
40 | + TARGET_FLT_EVAL_METHOD_NON_DEFAULT and | ||
41 | + TARGET_OPTF. */ | ||
42 | +#include "tm_p.h" /* For C_COMMON_OVERRIDE_OPTIONS. */ | ||
43 | #include "dumpfile.h" | ||
44 | |||
45 | #ifndef DOLLARS_IN_IDENTIFIERS | ||
46 | @@ -503,6 +511,11 @@ c_common_handle_option (size_t scode, const char *arg, int value, | ||
47 | cpp_opts->narrow_charset = arg; | ||
48 | break; | ||
49 | |||
50 | + case OPT_ffile_prefix_map_: | ||
51 | + if (add_file_prefix_map (arg) < 0) | ||
52 | + error ("invalid argument %qs to -ffile-prefix-map", arg); | ||
53 | + break; | ||
54 | + | ||
55 | case OPT_fwide_exec_charset_: | ||
56 | cpp_opts->wide_charset = arg; | ||
57 | break; | ||
58 | diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt | ||
59 | index 660da6c..31f7b34 100644 | ||
60 | --- a/gcc/c-family/c.opt | ||
61 | +++ b/gcc/c-family/c.opt | ||
62 | @@ -1208,6 +1208,10 @@ fexec-charset= | ||
63 | C ObjC C++ ObjC++ Joined RejectNegative | ||
64 | -fexec-charset=<cset> Convert all strings and character constants to character set <cset>. | ||
65 | |||
66 | +ffile-prefix-map= | ||
67 | +C ObjC C++ ObjC++ Joined RejectNegative | ||
68 | +-ffile-prefix-map=<old=new> Map one directory name to another in __FILE__, __BASE_FILE__ and __builtin_FILE () | ||
69 | + | ||
70 | fextended-identifiers | ||
71 | C ObjC C++ ObjC++ | ||
72 | Permit universal character names (\\u and \\U) in identifiers. | ||
73 | diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c | ||
74 | index 80f2df5..a2bfcc0 100644 | ||
75 | --- a/gcc/dwarf2out.c | ||
76 | +++ b/gcc/dwarf2out.c | ||
77 | @@ -21672,6 +21672,7 @@ gen_producer_string (void) | ||
78 | case OPT_fltrans_output_list_: | ||
79 | case OPT_fresolution_: | ||
80 | case OPT_fdebug_prefix_map_: | ||
81 | + case OPT_ffile_prefix_map_: | ||
82 | /* Ignore these. */ | ||
83 | continue; | ||
84 | default: | ||
85 | diff --git a/gcc/gimplify.c b/gcc/gimplify.c | ||
86 | index e223e59..1433c25 100644 | ||
87 | --- a/gcc/gimplify.c | ||
88 | +++ b/gcc/gimplify.c | ||
89 | @@ -57,6 +57,8 @@ along with GCC; see the file COPYING3. If not see | ||
90 | #include "gomp-constants.h" | ||
91 | #include "tree-dump.h" | ||
92 | #include "gimple-walk.h" | ||
93 | +#include "file-map.h" | ||
94 | + | ||
95 | #include "langhooks-def.h" /* FIXME: for lhd_set_decl_assembler_name */ | ||
96 | #include "builtins.h" | ||
97 | |||
98 | @@ -2432,6 +2434,7 @@ gimplify_call_expr (tree *expr_p, gimple_seq *pre_p, bool want_value) | ||
99 | case BUILT_IN_FILE: | ||
100 | { | ||
101 | const char *locfile = LOCATION_FILE (EXPR_LOCATION (*expr_p)); | ||
102 | + locfile = remap_file_filename (locfile); | ||
103 | *expr_p = build_string_literal (strlen (locfile) + 1, locfile); | ||
104 | return GS_OK; | ||
105 | } | ||
106 | diff --git a/libcpp/Makefile.in b/libcpp/Makefile.in | ||
107 | index a7d7828..3d29572 100644 | ||
108 | --- a/libcpp/Makefile.in | ||
109 | +++ b/libcpp/Makefile.in | ||
110 | @@ -84,12 +84,12 @@ DEPMODE = $(CXXDEPMODE) | ||
111 | |||
112 | |||
113 | libcpp_a_OBJS = charset.o directives.o directives-only.o errors.o \ | ||
114 | - expr.o files.o identifiers.o init.o lex.o line-map.o macro.o \ | ||
115 | - mkdeps.o pch.o symtab.o traditional.o | ||
116 | + expr.o file-map.o files.o identifiers.o init.o lex.o line-map.o \ | ||
117 | + macro.o mkdeps.o pch.o symtab.o traditional.o | ||
118 | |||
119 | libcpp_a_SOURCES = charset.c directives.c directives-only.c errors.c \ | ||
120 | - expr.c files.c identifiers.c init.c lex.c line-map.c macro.c \ | ||
121 | - mkdeps.c pch.c symtab.c traditional.c | ||
122 | + expr.c file-map.c files.c identifiers.c init.c lex.c line-map.c \ | ||
123 | + macro.c mkdeps.c pch.c symtab.c traditional.c | ||
124 | |||
125 | all: libcpp.a $(USED_CATALOGS) | ||
126 | |||
127 | @@ -263,7 +263,7 @@ po/$(PACKAGE).pot: $(libcpp_a_SOURCES) | ||
128 | |||
129 | TAGS_SOURCES = $(libcpp_a_SOURCES) internal.h ucnid.h \ | ||
130 | include/line-map.h include/symtab.h include/cpp-id-data.h \ | ||
131 | - include/cpplib.h include/mkdeps.h system.h | ||
132 | + include/cpplib.h include/mkdeps.h system.h include/file-map.h | ||
133 | |||
134 | TAGS: $(TAGS_SOURCES) | ||
135 | cd $(srcdir) && etags $(TAGS_SOURCES) | ||
136 | diff --git a/libcpp/file-map.c b/libcpp/file-map.c | ||
137 | new file mode 100644 | ||
138 | index 0000000..18035ef | ||
139 | --- /dev/null | ||
140 | +++ b/libcpp/file-map.c | ||
141 | @@ -0,0 +1,92 @@ | ||
142 | +/* Map one directory name to another in __FILE__, __BASE_FILE__ | ||
143 | + and __builtin_FILE (). | ||
144 | + Copyright (C) 2001-2016 Free Software Foundation, Inc. | ||
145 | + | ||
146 | +This program is free software; you can redistribute it and/or modify it | ||
147 | +under the terms of the GNU General Public License as published by the | ||
148 | +Free Software Foundation; either version 3, or (at your option) any | ||
149 | +later version. | ||
150 | + | ||
151 | +This program is distributed in the hope that it will be useful, | ||
152 | +but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
153 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
154 | +GNU General Public License for more details. | ||
155 | + | ||
156 | +You should have received a copy of the GNU General Public License | ||
157 | +along with this program; see the file COPYING3. If not see | ||
158 | +<http://www.gnu.org/licenses/>. | ||
159 | + | ||
160 | + In other words, you are welcome to use, share and improve this program. | ||
161 | + You are forbidden to forbid anyone else to use, share and improve | ||
162 | + what you give them. Help stamp out software-hoarding! */ | ||
163 | + | ||
164 | +#include "config.h" | ||
165 | +#include "system.h" | ||
166 | +#include "file-map.h" | ||
167 | + | ||
168 | +/* Structure recording the mapping from source file and directory | ||
169 | + names at compile time to __FILE__ */ | ||
170 | +typedef struct file_prefix_map | ||
171 | +{ | ||
172 | + const char *old_prefix; | ||
173 | + const char *new_prefix; | ||
174 | + size_t old_len; | ||
175 | + size_t new_len; | ||
176 | + struct file_prefix_map *next; | ||
177 | +} file_prefix_map; | ||
178 | + | ||
179 | +/* Linked list of such structures. */ | ||
180 | +static file_prefix_map *file_prefix_maps; | ||
181 | + | ||
182 | +/* Record prefix mapping of __FILE__. ARG is the argument to | ||
183 | + -ffile-prefix-map and must be of the form OLD=NEW. */ | ||
184 | +int | ||
185 | +add_file_prefix_map (const char *arg) | ||
186 | +{ | ||
187 | + file_prefix_map *map; | ||
188 | + const char *p; | ||
189 | + | ||
190 | + p = strchr (arg, '='); | ||
191 | + if (!p) | ||
192 | + { | ||
193 | + fprintf(stderr, "invalid argument %qs to -ffile-prefix-map", arg); | ||
194 | + return -1; | ||
195 | + } | ||
196 | + map = XNEW (file_prefix_map); | ||
197 | + map->old_prefix = xstrndup (arg, p - arg); | ||
198 | + map->old_len = p - arg; | ||
199 | + p++; | ||
200 | + map->new_prefix = xstrdup (p); | ||
201 | + map->new_len = strlen (p); | ||
202 | + map->next = file_prefix_maps; | ||
203 | + file_prefix_maps = map; | ||
204 | + | ||
205 | + return 0; | ||
206 | +} | ||
207 | + | ||
208 | +/* Perform user-specified mapping of __FILE__ prefixes. Return | ||
209 | + the new name corresponding to filename. */ | ||
210 | + | ||
211 | +const char * | ||
212 | +remap_file_filename (const char *filename) | ||
213 | +{ | ||
214 | + file_prefix_map *map; | ||
215 | + char *s; | ||
216 | + const char *name; | ||
217 | + size_t name_len; | ||
218 | + | ||
219 | + for (map = file_prefix_maps; map; map = map->next) | ||
220 | + if (filename_ncmp (filename, map->old_prefix, map->old_len) == 0) | ||
221 | + break; | ||
222 | + if (!map) | ||
223 | + return filename; | ||
224 | + name = filename + map->old_len; | ||
225 | + name_len = strlen (name) + 1; | ||
226 | + s = (char *) alloca (name_len + map->new_len); | ||
227 | + memcpy (s, map->new_prefix, map->new_len); | ||
228 | + memcpy (s + map->new_len, name, name_len); | ||
229 | + | ||
230 | + return xstrdup (s); | ||
231 | +} | ||
232 | + | ||
233 | + | ||
234 | diff --git a/libcpp/include/file-map.h b/libcpp/include/file-map.h | ||
235 | new file mode 100644 | ||
236 | index 0000000..8750315 | ||
237 | --- /dev/null | ||
238 | +++ b/libcpp/include/file-map.h | ||
239 | @@ -0,0 +1,30 @@ | ||
240 | +/* Map one directory name to another in __FILE__, __BASE_FILE__ | ||
241 | + and __builtin_FILE (). | ||
242 | + Copyright (C) 2001-2016 Free Software Foundation, Inc. | ||
243 | + | ||
244 | +This program is free software; you can redistribute it and/or modify it | ||
245 | +under the terms of the GNU General Public License as published by the | ||
246 | +Free Software Foundation; either version 3, or (at your option) any | ||
247 | +later version. | ||
248 | + | ||
249 | +This program is distributed in the hope that it will be useful, | ||
250 | +but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
251 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
252 | +GNU General Public License for more details. | ||
253 | + | ||
254 | +You should have received a copy of the GNU General Public License | ||
255 | +along with this program; see the file COPYING3. If not see | ||
256 | +<http://www.gnu.org/licenses/>. | ||
257 | + | ||
258 | + In other words, you are welcome to use, share and improve this program. | ||
259 | + You are forbidden to forbid anyone else to use, share and improve | ||
260 | + what you give them. Help stamp out software-hoarding! */ | ||
261 | + | ||
262 | +#ifndef LIBCPP_FILE_MAP_H | ||
263 | +#define LIBCPP_FILE_MAP_H | ||
264 | + | ||
265 | +const char * remap_file_filename (const char *filename); | ||
266 | + | ||
267 | +int add_file_prefix_map (const char *arg); | ||
268 | + | ||
269 | +#endif /* !LIBCPP_FILE_MAP_H */ | ||
270 | diff --git a/libcpp/macro.c b/libcpp/macro.c | ||
271 | index c251553..3ceec3d 100644 | ||
272 | --- a/libcpp/macro.c | ||
273 | +++ b/libcpp/macro.c | ||
274 | @@ -26,6 +26,7 @@ along with this program; see the file COPYING3. If not see | ||
275 | #include "system.h" | ||
276 | #include "cpplib.h" | ||
277 | #include "internal.h" | ||
278 | +#include "file-map.h" | ||
279 | |||
280 | typedef struct macro_arg macro_arg; | ||
281 | /* This structure represents the tokens of a macro argument. These | ||
282 | @@ -301,6 +302,7 @@ _cpp_builtin_macro_text (cpp_reader *pfile, cpp_hashnode *node, | ||
283 | if (!name) | ||
284 | abort (); | ||
285 | } | ||
286 | + name = remap_file_filename (name); | ||
287 | len = strlen (name); | ||
288 | buf = _cpp_unaligned_alloc (pfile, len * 2 + 3); | ||
289 | result = buf; | ||
290 | -- | ||
291 | 2.8.2 | ||
292 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0043-Reuse-fdebug-prefix-map-to-replace-ffile-prefix-map.patch b/meta/recipes-devtools/gcc/gcc-6.4/0043-Reuse-fdebug-prefix-map-to-replace-ffile-prefix-map.patch deleted file mode 100644 index 0077f80e46..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0043-Reuse-fdebug-prefix-map-to-replace-ffile-prefix-map.patch +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | From 25c87c6cc40ec5cc6965f8bfb215bec01abd6d82 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Wed, 16 Mar 2016 05:39:59 -0400 | ||
4 | Subject: [PATCH 43/46] Reuse -fdebug-prefix-map to replace -ffile-prefix-map | ||
5 | |||
6 | The oe-core may use external toolchain to compile, | ||
7 | which may not support -ffile-prefix-map. | ||
8 | |||
9 | Since we use -fdebug-prefix-map to do the same thing, | ||
10 | so we could reuse it to replace -ffile-prefix-map. | ||
11 | |||
12 | Upstream-Status: Inappropriate[oe-core specific] | ||
13 | |||
14 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
15 | --- | ||
16 | gcc/opts-global.c | 4 ++++ | ||
17 | 1 file changed, 4 insertions(+) | ||
18 | |||
19 | diff --git a/gcc/opts-global.c b/gcc/opts-global.c | ||
20 | index b7e5232..121d7b9 100644 | ||
21 | --- a/gcc/opts-global.c | ||
22 | +++ b/gcc/opts-global.c | ||
23 | @@ -31,6 +31,7 @@ along with GCC; see the file COPYING3. If not see | ||
24 | #include "langhooks.h" | ||
25 | #include "dbgcnt.h" | ||
26 | #include "debug.h" | ||
27 | +#include "file-map.h" | ||
28 | #include "output.h" | ||
29 | #include "plugin.h" | ||
30 | #include "toplev.h" | ||
31 | @@ -357,6 +358,9 @@ handle_common_deferred_options (void) | ||
32 | |||
33 | case OPT_fdebug_prefix_map_: | ||
34 | add_debug_prefix_map (opt->arg); | ||
35 | + | ||
36 | + /* Reuse -fdebug-prefix-map to replace -ffile-prefix-map */ | ||
37 | + add_file_prefix_map (opt->arg); | ||
38 | break; | ||
39 | |||
40 | case OPT_fdump_: | ||
41 | -- | ||
42 | 2.8.2 | ||
43 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0044-gcc-final.c-fdebug-prefix-map-support-to-remap-sourc.patch b/meta/recipes-devtools/gcc/gcc-6.4/0044-gcc-final.c-fdebug-prefix-map-support-to-remap-sourc.patch deleted file mode 100644 index 5d41af44a4..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0044-gcc-final.c-fdebug-prefix-map-support-to-remap-sourc.patch +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | From 6ab23e88aef22bbabee7b9600c459ff39547bb66 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Thu, 24 Mar 2016 11:23:14 -0400 | ||
4 | Subject: [PATCH 44/46] gcc/final.c: -fdebug-prefix-map support to remap | ||
5 | sources with relative path | ||
6 | |||
7 | PR other/70428 | ||
8 | * final.c (remap_debug_filename): Use lrealpath to translate | ||
9 | relative path before remapping | ||
10 | |||
11 | https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70428 | ||
12 | Upstream-Status: Submitted [gcc-patches@gcc.gnu.org] | ||
13 | |||
14 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
15 | --- | ||
16 | gcc/final.c | 15 ++++++++++++--- | ||
17 | 1 file changed, 12 insertions(+), 3 deletions(-) | ||
18 | |||
19 | diff --git a/gcc/final.c b/gcc/final.c | ||
20 | index 55cf509..23293e5 100644 | ||
21 | --- a/gcc/final.c | ||
22 | +++ b/gcc/final.c | ||
23 | @@ -1554,16 +1554,25 @@ remap_debug_filename (const char *filename) | ||
24 | const char *name; | ||
25 | size_t name_len; | ||
26 | |||
27 | + /* Support to remap filename with relative path */ | ||
28 | + char *realpath = lrealpath (filename); | ||
29 | + if (realpath == NULL) | ||
30 | + return filename; | ||
31 | + | ||
32 | for (map = debug_prefix_maps; map; map = map->next) | ||
33 | - if (filename_ncmp (filename, map->old_prefix, map->old_len) == 0) | ||
34 | + if (filename_ncmp (realpath, map->old_prefix, map->old_len) == 0) | ||
35 | break; | ||
36 | if (!map) | ||
37 | - return filename; | ||
38 | - name = filename + map->old_len; | ||
39 | + { | ||
40 | + free (realpath); | ||
41 | + return filename; | ||
42 | + } | ||
43 | + name = realpath + map->old_len; | ||
44 | name_len = strlen (name) + 1; | ||
45 | s = (char *) alloca (name_len + map->new_len); | ||
46 | memcpy (s, map->new_prefix, map->new_len); | ||
47 | memcpy (s + map->new_len, name, name_len); | ||
48 | + free (realpath); | ||
49 | return ggc_strdup (s); | ||
50 | } | ||
51 | |||
52 | -- | ||
53 | 2.8.2 | ||
54 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0045-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch b/meta/recipes-devtools/gcc/gcc-6.4/0045-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch deleted file mode 100644 index c62b727d6e..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0045-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch +++ /dev/null | |||
@@ -1,125 +0,0 @@ | |||
1 | From 5a47d404ea29e2547269e3ddf38754462d93f903 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Apr 2016 20:03:28 +0000 | ||
4 | Subject: [PATCH 45/46] libgcc: Add knob to use ldbl-128 on ppc | ||
5 | |||
6 | musl does not support ldbl 128 so we can not assume | ||
7 | that linux as a whole supports ldbl-128 bits, instead | ||
8 | act upon configure option passed to gcc and assume no | ||
9 | on musl and yes otherwise if no option is passed since | ||
10 | default behaviour is to assume ldbl128 it does not | ||
11 | change the defaults | ||
12 | |||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | Upstream-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 | |||
24 | diff --git a/libgcc/Makefile.in b/libgcc/Makefile.in | ||
25 | index f09b39b..296cf0f 100644 | ||
26 | --- a/libgcc/Makefile.in | ||
27 | +++ b/libgcc/Makefile.in | ||
28 | @@ -43,6 +43,7 @@ enable_vtable_verify = @enable_vtable_verify@ | ||
29 | enable_decimal_float = @enable_decimal_float@ | ||
30 | fixed_point = @fixed_point@ | ||
31 | with_aix_soname = @with_aix_soname@ | ||
32 | +with_ldbl128 = @with_ldbl128@ | ||
33 | |||
34 | host_noncanonical = @host_noncanonical@ | ||
35 | real_host_noncanonical = @real_host_noncanonical@ | ||
36 | diff --git a/libgcc/config/rs6000/t-linux b/libgcc/config/rs6000/t-linux | ||
37 | index 4f6d4c4..c50dd94 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 | ||
48 | diff --git a/libgcc/configure b/libgcc/configure | ||
49 | old mode 100644 | ||
50 | new mode 100755 | ||
51 | index e7d6c75..e9a9019 | ||
52 | --- a/libgcc/configure | ||
53 | +++ b/libgcc/configure | ||
54 | @@ -614,6 +614,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 | @@ -663,6 +664,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 | @@ -1319,6 +1321,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 | @@ -2201,6 +2204,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 | ||
100 | diff --git a/libgcc/configure.ac b/libgcc/configure.ac | ||
101 | index 269997f..81dc3ba 100644 | ||
102 | --- a/libgcc/configure.ac | ||
103 | +++ b/libgcc/configure.ac | ||
104 | @@ -77,6 +77,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 | -- | ||
124 | 2.8.2 | ||
125 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0046-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch b/meta/recipes-devtools/gcc/gcc-6.4/0046-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch deleted file mode 100644 index 390037f7b1..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0046-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | From 513bf3c33e2f551f08bd57605091d5ddeba3536b Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 4 May 2016 21:11:34 -0700 | ||
4 | Subject: [PATCH 46/46] Link libgcc using LDFLAGS, not just SHLIB_LDFLAGS | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Christopher Larson <chris_larson@mentor.com> | ||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | libgcc/config/t-slibgcc | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/libgcc/config/t-slibgcc b/libgcc/config/t-slibgcc | ||
15 | index 8c5f890..29be909 100644 | ||
16 | --- a/libgcc/config/t-slibgcc | ||
17 | +++ b/libgcc/config/t-slibgcc | ||
18 | @@ -32,7 +32,7 @@ SHLIB_INSTALL_SOLINK = $(LN_S) $(SHLIB_SONAME) \ | ||
19 | $(DESTDIR)$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK) | ||
20 | |||
21 | SHLIB_LINK = $(CC) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ | ||
22 | - $(SHLIB_LDFLAGS) \ | ||
23 | + $(LDFLAGS) $(SHLIB_LDFLAGS) \ | ||
24 | -o $(SHLIB_DIR)/$(SHLIB_SONAME).tmp @multilib_flags@ \ | ||
25 | $(SHLIB_OBJS) $(SHLIB_LC) && \ | ||
26 | rm -f $(SHLIB_DIR)/$(SHLIB_SOLINK) && \ | ||
27 | -- | ||
28 | 2.8.2 | ||
29 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0047-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch b/meta/recipes-devtools/gcc/gcc-6.4/0047-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch deleted file mode 100644 index 6b5da0254e..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0047-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch +++ /dev/null | |||
@@ -1,85 +0,0 @@ | |||
1 | From 0a9ed0479203cb7e69c3745b0c259007410f39ba Mon Sep 17 00:00:00 2001 | ||
2 | From: Szabolcs Nagy <nsz@port70.net> | ||
3 | Date: Sat, 24 Oct 2015 20:09:53 +0000 | ||
4 | Subject: [PATCH 47/47] libgcc_s: Use alias for __cpu_indicator_init instead of | ||
5 | symver | ||
6 | |||
7 | Adapter from | ||
8 | |||
9 | https://gcc.gnu.org/ml/gcc-patches/2015-05/msg00899.html | ||
10 | |||
11 | This fix was debated but hasnt been applied gcc upstream since | ||
12 | they expect musl to support '@' in symbol versioning which is | ||
13 | a sun/gnu versioning extention. This patch however avoids the | ||
14 | need for the '@' symbols at all | ||
15 | |||
16 | libgcc/Changelog: | ||
17 | |||
18 | 2015-05-11 Szabolcs Nagy <szabolcs.nagy@arm.com> | ||
19 | |||
20 | * config/i386/cpuinfo.c (__cpu_indicator_init_local): Add. | ||
21 | (__cpu_indicator_init@GCC_4.8.0, __cpu_model@GCC_4.8.0): Remove. | ||
22 | |||
23 | * config/i386/t-linux (HOST_LIBGCC2_CFLAGS): Remove -DUSE_ELF_SYMVER. | ||
24 | |||
25 | gcc/Changelog: | ||
26 | |||
27 | 2015-05-11 Szabolcs Nagy <szabolcs.nagy@arm.com> | ||
28 | |||
29 | * config/i386/i386.c (ix86_expand_builtin): Make __builtin_cpu_init | ||
30 | call __cpu_indicator_init_local instead of __cpu_indicator_init. | ||
31 | |||
32 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
33 | --- | ||
34 | Upstream-Status: Denied | ||
35 | |||
36 | gcc/config/i386/i386.c | 4 ++-- | ||
37 | libgcc/config/i386/cpuinfo.c | 6 +++--- | ||
38 | libgcc/config/i386/t-linux | 2 +- | ||
39 | 3 files changed, 6 insertions(+), 6 deletions(-) | ||
40 | |||
41 | diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c | ||
42 | index 861a029..1c97d72 100644 | ||
43 | --- a/gcc/config/i386/i386.c | ||
44 | +++ b/gcc/config/i386/i386.c | ||
45 | @@ -40323,10 +40323,10 @@ ix86_expand_builtin (tree exp, rtx target, rtx subtarget, | ||
46 | { | ||
47 | case IX86_BUILTIN_CPU_INIT: | ||
48 | { | ||
49 | - /* Make it call __cpu_indicator_init in libgcc. */ | ||
50 | + /* Make it call __cpu_indicator_init_local in libgcc.a. */ | ||
51 | tree call_expr, fndecl, type; | ||
52 | type = build_function_type_list (integer_type_node, NULL_TREE); | ||
53 | - fndecl = build_fn_decl ("__cpu_indicator_init", type); | ||
54 | + fndecl = build_fn_decl ("__cpu_indicator_init_local", type); | ||
55 | call_expr = build_call_expr (fndecl, 0); | ||
56 | return expand_expr (call_expr, target, mode, EXPAND_NORMAL); | ||
57 | } | ||
58 | diff --git a/libgcc/config/i386/cpuinfo.c b/libgcc/config/i386/cpuinfo.c | ||
59 | index 8c2248d..6c82f15 100644 | ||
60 | --- a/libgcc/config/i386/cpuinfo.c | ||
61 | +++ b/libgcc/config/i386/cpuinfo.c | ||
62 | @@ -485,7 +485,7 @@ __cpu_indicator_init (void) | ||
63 | return 0; | ||
64 | } | ||
65 | |||
66 | -#if defined SHARED && defined USE_ELF_SYMVER | ||
67 | -__asm__ (".symver __cpu_indicator_init, __cpu_indicator_init@GCC_4.8.0"); | ||
68 | -__asm__ (".symver __cpu_model, __cpu_model@GCC_4.8.0"); | ||
69 | +#ifndef SHARED | ||
70 | +int __cpu_indicator_init_local (void) | ||
71 | + __attribute__ ((weak, alias ("__cpu_indicator_init"))); | ||
72 | #endif | ||
73 | diff --git a/libgcc/config/i386/t-linux b/libgcc/config/i386/t-linux | ||
74 | index 11bb46e..4f47f7b 100644 | ||
75 | --- a/libgcc/config/i386/t-linux | ||
76 | +++ b/libgcc/config/i386/t-linux | ||
77 | @@ -3,4 +3,4 @@ | ||
78 | # t-slibgcc-elf-ver and t-linux | ||
79 | SHLIB_MAPFILES = libgcc-std.ver $(srcdir)/config/i386/libgcc-glibc.ver | ||
80 | |||
81 | -HOST_LIBGCC2_CFLAGS += -mlong-double-80 -DUSE_ELF_SYMVER | ||
82 | +HOST_LIBGCC2_CFLAGS += -mlong-double-80 | ||
83 | -- | ||
84 | 2.9.0 | ||
85 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0048-sync-gcc-stddef.h-with-musl.patch b/meta/recipes-devtools/gcc/gcc-6.4/0048-sync-gcc-stddef.h-with-musl.patch deleted file mode 100644 index 30c158d7da..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0048-sync-gcc-stddef.h-with-musl.patch +++ /dev/null | |||
@@ -1,91 +0,0 @@ | |||
1 | From 10595c03c39b4e980d2a00e16fc84e9caf82292e Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 3 Feb 2017 12:56:00 -0800 | ||
4 | Subject: [PATCH 48/48] sync gcc stddef.h with musl | ||
5 | |||
6 | musl defines ptrdiff_t size_t and wchar_t | ||
7 | so dont define them here if musl is definining them | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | Upstream-Status: Pending | ||
12 | |||
13 | gcc/ginclude/stddef.h | 9 +++++++++ | ||
14 | 1 file changed, 9 insertions(+) | ||
15 | |||
16 | diff --git a/gcc/ginclude/stddef.h b/gcc/ginclude/stddef.h | ||
17 | index d711530d053..c315b7a97c1 100644 | ||
18 | --- a/gcc/ginclude/stddef.h | ||
19 | +++ b/gcc/ginclude/stddef.h | ||
20 | @@ -134,6 +134,7 @@ _TYPE_wchar_t; | ||
21 | #ifndef ___int_ptrdiff_t_h | ||
22 | #ifndef _GCC_PTRDIFF_T | ||
23 | #ifndef _PTRDIFF_T_DECLARED /* DragonFly */ | ||
24 | +#ifndef __DEFINED_ptrdiff_t /* musl */ | ||
25 | #define _PTRDIFF_T | ||
26 | #define _T_PTRDIFF_ | ||
27 | #define _T_PTRDIFF | ||
28 | @@ -143,10 +144,12 @@ _TYPE_wchar_t; | ||
29 | #define ___int_ptrdiff_t_h | ||
30 | #define _GCC_PTRDIFF_T | ||
31 | #define _PTRDIFF_T_DECLARED | ||
32 | +#define __DEFINED_ptrdiff_t /* musl */ | ||
33 | #ifndef __PTRDIFF_TYPE__ | ||
34 | #define __PTRDIFF_TYPE__ long int | ||
35 | #endif | ||
36 | typedef __PTRDIFF_TYPE__ ptrdiff_t; | ||
37 | +#endif /* __DEFINED_ptrdiff_t */ | ||
38 | #endif /* _PTRDIFF_T_DECLARED */ | ||
39 | #endif /* _GCC_PTRDIFF_T */ | ||
40 | #endif /* ___int_ptrdiff_t_h */ | ||
41 | @@ -184,6 +187,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; | ||
42 | #ifndef _GCC_SIZE_T | ||
43 | #ifndef _SIZET_ | ||
44 | #ifndef __size_t | ||
45 | +#ifndef __DEFINED_size_t /* musl */ | ||
46 | #define __size_t__ /* BeOS */ | ||
47 | #define __SIZE_T__ /* Cray Unicos/Mk */ | ||
48 | #define _SIZE_T | ||
49 | @@ -200,6 +204,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; | ||
50 | #define ___int_size_t_h | ||
51 | #define _GCC_SIZE_T | ||
52 | #define _SIZET_ | ||
53 | +#define __DEFINED_size_t /* musl */ | ||
54 | #if (defined (__FreeBSD__) && (__FreeBSD__ >= 5)) \ | ||
55 | || defined(__DragonFly__) \ | ||
56 | || defined(__FreeBSD_kernel__) | ||
57 | @@ -235,6 +240,7 @@ typedef long ssize_t; | ||
58 | #endif /* _SIZE_T */ | ||
59 | #endif /* __SIZE_T__ */ | ||
60 | #endif /* __size_t__ */ | ||
61 | +#endif /* __DEFINED_size_t */ | ||
62 | #undef __need_size_t | ||
63 | #endif /* _STDDEF_H or __need_size_t. */ | ||
64 | |||
65 | @@ -264,6 +270,7 @@ typedef long ssize_t; | ||
66 | #ifndef ___int_wchar_t_h | ||
67 | #ifndef __INT_WCHAR_T_H | ||
68 | #ifndef _GCC_WCHAR_T | ||
69 | +#ifndef __DEFINED_wchar_t /* musl */ | ||
70 | #define __wchar_t__ /* BeOS */ | ||
71 | #define __WCHAR_T__ /* Cray Unicos/Mk */ | ||
72 | #define _WCHAR_T | ||
73 | @@ -279,6 +286,7 @@ typedef long ssize_t; | ||
74 | #define __INT_WCHAR_T_H | ||
75 | #define _GCC_WCHAR_T | ||
76 | #define _WCHAR_T_DECLARED | ||
77 | +#define __DEFINED_wchar_t /* musl */ | ||
78 | |||
79 | /* On BSD/386 1.1, at least, machine/ansi.h defines _BSD_WCHAR_T_ | ||
80 | instead of _WCHAR_T_, and _BSD_RUNE_T_ (which, unlike the other | ||
81 | @@ -344,6 +352,7 @@ typedef __WCHAR_TYPE__ wchar_t; | ||
82 | #endif | ||
83 | #endif /* __WCHAR_T__ */ | ||
84 | #endif /* __wchar_t__ */ | ||
85 | +#endif /* __DEFINED_wchar_t musl */ | ||
86 | #undef __need_wchar_t | ||
87 | #endif /* _STDDEF_H or __need_wchar_t. */ | ||
88 | |||
89 | -- | ||
90 | 2.11.0 | ||
91 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0054_all_nopie-all-flags.patch b/meta/recipes-devtools/gcc/gcc-6.4/0054_all_nopie-all-flags.patch deleted file mode 100644 index 73ab9502dc..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0054_all_nopie-all-flags.patch +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | Need to pass NO_PIE_CFLAGS to ALL_* so gcc doesn't fail when | ||
2 | we compile it with older gcc and pie. | ||
3 | |||
4 | Upstream-Status: Inappropriate [configuration] | ||
5 | |||
6 | Maintained by: Gentoo Toolchain Project <toolchain@gentoo.org> | ||
7 | Signed-off-by: Stephen Arnold <stephen.arnold42@gmail.com> | ||
8 | |||
9 | --- a/gcc/Makefile.in 2015-06-25 19:18:12.000000000 +0200 | ||
10 | +++ b/gcc/Makefile.in 2016-04-22 00:12:54.029178860 +0200 | ||
11 | @@ -991,10 +991,10 @@ ALL_CXXFLAGS = $(T_CFLAGS) $(CFLAGS-$@) | ||
12 | ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS) | ||
13 | |||
14 | # This is the variable to use when using $(COMPILER). | ||
15 | -ALL_COMPILERFLAGS = $(ALL_CXXFLAGS) | ||
16 | +ALL_COMPILERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS) | ||
17 | |||
18 | # This is the variable to use when using $(LINKER). | ||
19 | -ALL_LINKERFLAGS = $(ALL_CXXFLAGS) | ||
20 | +ALL_LINKERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS) | ||
21 | |||
22 | # Build and host support libraries. | ||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0055-unwind_h-glibc26.patch b/meta/recipes-devtools/gcc/gcc-6.4/0055-unwind_h-glibc26.patch deleted file mode 100644 index c266cfe21f..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0055-unwind_h-glibc26.patch +++ /dev/null | |||
@@ -1,139 +0,0 @@ | |||
1 | Backport and edit of patches from: | ||
2 | https://gcc.gnu.org/viewcvs/gcc?limit_changes=0&view=revision&revision=249957 | ||
3 | by jsm28 (Joseph Myers) | ||
4 | |||
5 | Current glibc no longer gives the ucontext_t type the tag struct | ||
6 | ucontext, to conform with POSIX namespace rules. This requires | ||
7 | various linux-unwind.h files in libgcc, that were previously using | ||
8 | struct ucontext, to be fixed to use ucontext_t instead. This is | ||
9 | similar to the removal of the struct siginfo tag from siginfo_t some | ||
10 | years ago. | ||
11 | |||
12 | This patch changes those files to use ucontext_t instead. As the | ||
13 | standard name that should be unconditionally safe, so this is not | ||
14 | restricted to architectures supported by glibc, or conditioned on the | ||
15 | glibc version. | ||
16 | |||
17 | Upstream-Status: Backport | ||
18 | |||
19 | Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> | ||
20 | |||
21 | --- branches/gcc-6-branch/libgcc/config/aarch64/linux-unwind.h 2017/07/04 10:22:56 249956 | ||
22 | --- b/libgcc/config/aarch64/linux-unwind.h 2017/07/04 10:23:57 249957 | ||
23 | @@ -52,7 +52,7 @@ | ||
24 | struct rt_sigframe | ||
25 | { | ||
26 | siginfo_t info; | ||
27 | - struct ucontext uc; | ||
28 | + ucontext_t uc; | ||
29 | }; | ||
30 | |||
31 | struct rt_sigframe *rt_; | ||
32 | --- branches/gcc-6-branch/libgcc/config/alpha/linux-unwind.h 2017/07/04 10:22:56 249956 | ||
33 | --- b/libgcc/config/alpha/linux-unwind.h 2017/07/04 10:23:57 249957 | ||
34 | @@ -51,7 +51,7 @@ | ||
35 | { | ||
36 | struct rt_sigframe { | ||
37 | siginfo_t info; | ||
38 | - struct ucontext uc; | ||
39 | + ucontext_t uc; | ||
40 | } *rt_ = context->cfa; | ||
41 | sc = &rt_->uc.uc_mcontext; | ||
42 | } | ||
43 | --- branches/gcc-6-branch/libgcc/config/bfin/linux-unwind.h 2017/07/04 10:22:56 249956 | ||
44 | --- b/libgcc/config/bfin/linux-unwind.h 2017/07/04 10:23:57 249957 | ||
45 | @@ -52,7 +52,7 @@ | ||
46 | void *puc; | ||
47 | char retcode[8]; | ||
48 | siginfo_t info; | ||
49 | - struct ucontext uc; | ||
50 | + ucontext_t uc; | ||
51 | } *rt_ = context->cfa; | ||
52 | |||
53 | /* The void * cast is necessary to avoid an aliasing warning. | ||
54 | --- branches/gcc-6-branch/libgcc/config/i386/linux-unwind.h 2017/07/04 10:22:56 249956 | ||
55 | --- b/libgcc/config/i386/linux-unwind.h 2017/07/04 10:23:57 249957 | ||
56 | @@ -58,7 +58,7 @@ | ||
57 | if (*(unsigned char *)(pc+0) == 0x48 | ||
58 | && *(unsigned long long *)(pc+1) == RT_SIGRETURN_SYSCALL) | ||
59 | { | ||
60 | - struct ucontext *uc_ = context->cfa; | ||
61 | + ucontext_t *uc_ = context->cfa; | ||
62 | /* The void * cast is necessary to avoid an aliasing warning. | ||
63 | The aliasing warning is correct, but should not be a problem | ||
64 | because it does not alias anything. */ | ||
65 | @@ -138,7 +138,7 @@ | ||
66 | siginfo_t *pinfo; | ||
67 | void *puc; | ||
68 | siginfo_t info; | ||
69 | - struct ucontext uc; | ||
70 | + ucontext_t uc; | ||
71 | } *rt_ = context->cfa; | ||
72 | /* The void * cast is necessary to avoid an aliasing warning. | ||
73 | The aliasing warning is correct, but should not be a problem | ||
74 | --- branches/gcc-6-branch/libgcc/config/m68k/linux-unwind.h 2017/07/04 10:22:56 249956 | ||
75 | --- b/libgcc/config/m68k/linux-unwind.h 2017/07/04 10:23:57 249957 | ||
76 | @@ -33,7 +33,7 @@ | ||
77 | /* <sys/ucontext.h> is unfortunately broken right now. */ | ||
78 | struct uw_ucontext { | ||
79 | unsigned long uc_flags; | ||
80 | - struct ucontext *uc_link; | ||
81 | + ucontext_t *uc_link; | ||
82 | stack_t uc_stack; | ||
83 | mcontext_t uc_mcontext; | ||
84 | unsigned long uc_filler[80]; | ||
85 | --- branches/gcc-6-branch/libgcc/config/nios2/linux-unwind.h 2017/07/04 10:22:56 249956 | ||
86 | --- b/libgcc/config/nios2/linux-unwind.h 2017/07/04 10:23:57 249957 | ||
87 | @@ -38,7 +38,7 @@ | ||
88 | |||
89 | struct nios2_ucontext { | ||
90 | unsigned long uc_flags; | ||
91 | - struct ucontext *uc_link; | ||
92 | + ucontext_t *uc_link; | ||
93 | stack_t uc_stack; | ||
94 | struct nios2_mcontext uc_mcontext; | ||
95 | sigset_t uc_sigmask; /* mask last for extensibility */ | ||
96 | --- branches/gcc-6-branch/libgcc/config/pa/linux-unwind.h 2017/07/04 10:22:56 249956 | ||
97 | --- b/libgcc/config/pa/linux-unwind.h 2017/07/04 10:23:57 249957 | ||
98 | @@ -80,7 +80,7 @@ | ||
99 | struct sigcontext *sc; | ||
100 | struct rt_sigframe { | ||
101 | siginfo_t info; | ||
102 | - struct ucontext uc; | ||
103 | + ucontext_t uc; | ||
104 | } *frame; | ||
105 | |||
106 | /* rt_sigreturn trampoline: | ||
107 | --- branches/gcc-6-branch/libgcc/config/sh/linux-unwind.h 2017/07/04 10:22:56 249956 | ||
108 | --- b/libgcc/config/sh/linux-unwind.h 2017/07/04 10:23:57 249957 | ||
109 | @@ -180,7 +180,7 @@ | ||
110 | { | ||
111 | struct rt_sigframe { | ||
112 | siginfo_t info; | ||
113 | - struct ucontext uc; | ||
114 | + ucontext_t uc; | ||
115 | } *rt_ = context->cfa; | ||
116 | /* The void * cast is necessary to avoid an aliasing warning. | ||
117 | The aliasing warning is correct, but should not be a problem | ||
118 | --- branches/gcc-6-branch/libgcc/config/tilepro/linux-unwind.h 2017/07/04 10:22:56 249956 | ||
119 | --- b/libgcc/config/tilepro/linux-unwind.h 2017/07/04 10:23:57 249957 | ||
120 | @@ -61,7 +61,7 @@ | ||
121 | struct rt_sigframe { | ||
122 | unsigned char save_area[C_ABI_SAVE_AREA_SIZE]; | ||
123 | siginfo_t info; | ||
124 | - struct ucontext uc; | ||
125 | + ucontext_t uc; | ||
126 | } *rt_; | ||
127 | |||
128 | /* Return if this is not a signal handler. */ | ||
129 | --- branches/gcc-6-branch/libgcc/config/xtensa/linux-unwind.h 2017/07/04 10:22:56 249956 | ||
130 | --- b/libgcc/config/xtensa/linux-unwind.h 2017/07/04 10:23:57 249957 | ||
131 | @@ -67,7 +67,7 @@ | ||
132 | |||
133 | struct rt_sigframe { | ||
134 | siginfo_t info; | ||
135 | - struct ucontext uc; | ||
136 | + ucontext_t uc; | ||
137 | } *rt_; | ||
138 | |||
139 | /* movi a2, __NR_rt_sigreturn; syscall */ | ||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch b/meta/recipes-devtools/gcc/gcc-6.4/0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch deleted file mode 100644 index 231f147619..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch +++ /dev/null | |||
@@ -1,51 +0,0 @@ | |||
1 | From a582b0a53d1dc8604a201348b99ca8de48784e7e Mon Sep 17 00:00:00 2001 | ||
2 | From: jiwang <jiwang@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
3 | Date: Thu, 12 May 2016 17:00:52 +0000 | ||
4 | Subject: [PATCH] [LRA] PR70904, relax the restriction on subreg reload for | ||
5 | wide mode | ||
6 | |||
7 | 2016-05-12 Jiong Wang <jiong.wang@arm.com> | ||
8 | |||
9 | gcc/ | ||
10 | PR rtl-optimization/70904 | ||
11 | * lra-constraint.c (process_addr_reg): Relax the restriction on | ||
12 | subreg reload for wide mode. | ||
13 | |||
14 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236181 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
15 | --- | ||
16 | Upstream-Status: Backport | ||
17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
18 | |||
19 | gcc/lra-constraints.c | 16 +++++++++++++++- | ||
20 | 1 file changed, 15 insertions(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c | ||
23 | index f96fd458e23..73fb72a2ea5 100644 | ||
24 | --- a/gcc/lra-constraints.c | ||
25 | +++ b/gcc/lra-constraints.c | ||
26 | @@ -1326,7 +1326,21 @@ process_addr_reg (rtx *loc, bool check_only_p, rtx_insn **before, rtx_insn **aft | ||
27 | |||
28 | subreg_p = GET_CODE (*loc) == SUBREG; | ||
29 | if (subreg_p) | ||
30 | - loc = &SUBREG_REG (*loc); | ||
31 | + { | ||
32 | + reg = SUBREG_REG (*loc); | ||
33 | + mode = GET_MODE (reg); | ||
34 | + | ||
35 | + /* For mode with size bigger than ptr_mode, there unlikely to be "mov" | ||
36 | + between two registers with different classes, but there normally will | ||
37 | + be "mov" which transfers element of vector register into the general | ||
38 | + register, and this normally will be a subreg which should be reloaded | ||
39 | + as a whole. This is particularly likely to be triggered when | ||
40 | + -fno-split-wide-types specified. */ | ||
41 | + if (in_class_p (reg, cl, &new_class) | ||
42 | + || GET_MODE_SIZE (mode) <= GET_MODE_SIZE (ptr_mode)) | ||
43 | + loc = &SUBREG_REG (*loc); | ||
44 | + } | ||
45 | + | ||
46 | reg = *loc; | ||
47 | mode = GET_MODE (reg); | ||
48 | if (! REG_P (reg)) | ||
49 | -- | ||
50 | 2.14.2 | ||
51 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0057-ARM-PR-82445-suppress-32-bit-aligned-ldrd-strd-peeph.patch b/meta/recipes-devtools/gcc/gcc-6.4/0057-ARM-PR-82445-suppress-32-bit-aligned-ldrd-strd-peeph.patch deleted file mode 100644 index 0214ab83d9..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/0057-ARM-PR-82445-suppress-32-bit-aligned-ldrd-strd-peeph.patch +++ /dev/null | |||
@@ -1,194 +0,0 @@ | |||
1 | From ad5bf450aef2ffee6d57ed193fabc5f72f8eaa65 Mon Sep 17 00:00:00 2001 | ||
2 | From: rearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
3 | Date: Thu, 19 Oct 2017 13:16:42 +0000 | ||
4 | Subject: [PATCH] [ARM] PR 82445 - suppress 32-bit aligned ldrd/strd peepholing | ||
5 | with -mno-unaligned-access | ||
6 | |||
7 | Peephole patterns exist in the arm backend to spot load/store | ||
8 | operations to adjacent memory operations in order to convert them into | ||
9 | ldrd/strd instructions. However, when we have strict alignment | ||
10 | enforced, then we can only do this if the accesses are known to be | ||
11 | 64-bit aligned; this is unlikely to be the case for most loads. The | ||
12 | patch adds some alignment checking to the code that validates the | ||
13 | addresses for use in the peephole patterns. This should also fix | ||
14 | incorrect generation of ldrd/strd with unaligned accesses that could | ||
15 | previously have occurred on ARMv5e where all such operations must be | ||
16 | 64-bit aligned. | ||
17 | |||
18 | I've added some new tests as well. In doing so I discovered that the | ||
19 | ldrd/strd peephole tests could never fail since they would match the | ||
20 | source file name in the scanned assembly as well as any instructions | ||
21 | of the intended type. I've fixed those by tightening the scan results | ||
22 | slightly. | ||
23 | |||
24 | gcc: | ||
25 | |||
26 | * config/arm/arm.c (align_ok_ldrd_strd): New function. | ||
27 | (mem_ok_for_ldrd_strd): New parameter align. Extract the alignment of the | ||
28 | mem into it. | ||
29 | (gen_operands_ldrd_strd): Validate the alignment of the accesses. | ||
30 | |||
31 | testsuite: | ||
32 | |||
33 | * gcc.target/arm/peep-ldrd-1.c: Tighten test scan pattern. | ||
34 | * gcc.target/arm/peep-strd-1.c: Likewise. | ||
35 | * gcc.target/arm/peep-ldrd-2.c: New test. | ||
36 | * gcc.target/arm/peep-strd-2.c: New test. | ||
37 | |||
38 | |||
39 | |||
40 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@253892 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
41 | --- | ||
42 | Upstream-Status: Backport | ||
43 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
44 | |||
45 | gcc/ChangeLog | 8 +++++++ | ||
46 | gcc/config/arm/arm.c | 27 ++++++++++++++++++---- | ||
47 | gcc/testsuite/ChangeLog | 8 +++++++ | ||
48 | gcc/testsuite/gcc.target/arm/peep-ldrd-1.c | 2 +- | ||
49 | .../arm/{peep-ldrd-1.c => peep-ldrd-2.c} | 4 ++-- | ||
50 | gcc/testsuite/gcc.target/arm/peep-strd-1.c | 2 +- | ||
51 | .../arm/{peep-strd-1.c => peep-strd-2.c} | 4 ++-- | ||
52 | 7 files changed, 44 insertions(+), 11 deletions(-) | ||
53 | copy gcc/testsuite/gcc.target/arm/{peep-ldrd-1.c => peep-ldrd-2.c} (63%) | ||
54 | copy gcc/testsuite/gcc.target/arm/{peep-strd-1.c => peep-strd-2.c} (58%) | ||
55 | |||
56 | diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c | ||
57 | index 9c0813d598d..e3da9f77fb6 100644 | ||
58 | --- a/gcc/config/arm/arm.c | ||
59 | +++ b/gcc/config/arm/arm.c | ||
60 | @@ -15926,12 +15926,23 @@ operands_ok_ldrd_strd (rtx rt, rtx rt2, rtx rn, HOST_WIDE_INT offset, | ||
61 | return true; | ||
62 | } | ||
63 | |||
64 | +/* Return true if a 64-bit access with alignment ALIGN and with a | ||
65 | + constant offset OFFSET from the base pointer is permitted on this | ||
66 | + architecture. */ | ||
67 | +static bool | ||
68 | +align_ok_ldrd_strd (HOST_WIDE_INT align, HOST_WIDE_INT offset) | ||
69 | +{ | ||
70 | + return (unaligned_access | ||
71 | + ? (align >= BITS_PER_WORD && (offset & 3) == 0) | ||
72 | + : (align >= 2 * BITS_PER_WORD && (offset & 7) == 0)); | ||
73 | +} | ||
74 | + | ||
75 | /* Helper for gen_operands_ldrd_strd. Returns true iff the memory | ||
76 | operand MEM's address contains an immediate offset from the base | ||
77 | - register and has no side effects, in which case it sets BASE and | ||
78 | - OFFSET accordingly. */ | ||
79 | + register and has no side effects, in which case it sets BASE, | ||
80 | + OFFSET and ALIGN accordingly. */ | ||
81 | static bool | ||
82 | -mem_ok_for_ldrd_strd (rtx mem, rtx *base, rtx *offset) | ||
83 | +mem_ok_for_ldrd_strd (rtx mem, rtx *base, rtx *offset, HOST_WIDE_INT *align) | ||
84 | { | ||
85 | rtx addr; | ||
86 | |||
87 | @@ -15950,6 +15961,7 @@ mem_ok_for_ldrd_strd (rtx mem, rtx *base, rtx *offset) | ||
88 | gcc_assert (MEM_P (mem)); | ||
89 | |||
90 | *offset = const0_rtx; | ||
91 | + *align = MEM_ALIGN (mem); | ||
92 | |||
93 | addr = XEXP (mem, 0); | ||
94 | |||
95 | @@ -15990,7 +16002,7 @@ gen_operands_ldrd_strd (rtx *operands, bool load, | ||
96 | bool const_store, bool commute) | ||
97 | { | ||
98 | int nops = 2; | ||
99 | - HOST_WIDE_INT offsets[2], offset; | ||
100 | + HOST_WIDE_INT offsets[2], offset, align[2]; | ||
101 | rtx base = NULL_RTX; | ||
102 | rtx cur_base, cur_offset, tmp; | ||
103 | int i, gap; | ||
104 | @@ -16002,7 +16014,8 @@ gen_operands_ldrd_strd (rtx *operands, bool load, | ||
105 | registers, and the corresponding memory offsets. */ | ||
106 | for (i = 0; i < nops; i++) | ||
107 | { | ||
108 | - if (!mem_ok_for_ldrd_strd (operands[nops+i], &cur_base, &cur_offset)) | ||
109 | + if (!mem_ok_for_ldrd_strd (operands[nops+i], &cur_base, &cur_offset, | ||
110 | + &align[i])) | ||
111 | return false; | ||
112 | |||
113 | if (i == 0) | ||
114 | @@ -16114,6 +16127,7 @@ gen_operands_ldrd_strd (rtx *operands, bool load, | ||
115 | /* Swap the instructions such that lower memory is accessed first. */ | ||
116 | std::swap (operands[0], operands[1]); | ||
117 | std::swap (operands[2], operands[3]); | ||
118 | + std::swap (align[0], align[1]); | ||
119 | if (const_store) | ||
120 | std::swap (operands[4], operands[5]); | ||
121 | } | ||
122 | @@ -16127,6 +16141,9 @@ gen_operands_ldrd_strd (rtx *operands, bool load, | ||
123 | if (gap != 4) | ||
124 | return false; | ||
125 | |||
126 | + if (!align_ok_ldrd_strd (align[0], offset)) | ||
127 | + return false; | ||
128 | + | ||
129 | /* Make sure we generate legal instructions. */ | ||
130 | if (operands_ok_ldrd_strd (operands[0], operands[1], base, offset, | ||
131 | false, load)) | ||
132 | diff --git a/gcc/testsuite/gcc.target/arm/peep-ldrd-1.c b/gcc/testsuite/gcc.target/arm/peep-ldrd-1.c | ||
133 | index eb2b86ee7b6..d49eff6b87e 100644 | ||
134 | --- a/gcc/testsuite/gcc.target/arm/peep-ldrd-1.c | ||
135 | +++ b/gcc/testsuite/gcc.target/arm/peep-ldrd-1.c | ||
136 | @@ -8,4 +8,4 @@ int foo(int a, int b, int* p, int *q) | ||
137 | *p = a; | ||
138 | return a; | ||
139 | } | ||
140 | -/* { dg-final { scan-assembler "ldrd" } } */ | ||
141 | +/* { dg-final { scan-assembler "ldrd\\t" } } */ | ||
142 | diff --git a/gcc/testsuite/gcc.target/arm/peep-ldrd-1.c b/gcc/testsuite/gcc.target/arm/peep-ldrd-2.c | ||
143 | similarity index 63% | ||
144 | copy from gcc/testsuite/gcc.target/arm/peep-ldrd-1.c | ||
145 | copy to gcc/testsuite/gcc.target/arm/peep-ldrd-2.c | ||
146 | index eb2b86ee7b6..6822c2b1454 100644 | ||
147 | --- a/gcc/testsuite/gcc.target/arm/peep-ldrd-1.c | ||
148 | +++ b/gcc/testsuite/gcc.target/arm/peep-ldrd-2.c | ||
149 | @@ -1,6 +1,6 @@ | ||
150 | /* { dg-do compile } */ | ||
151 | /* { dg-require-effective-target arm_prefer_ldrd_strd } */ | ||
152 | -/* { dg-options "-O2" } */ | ||
153 | +/* { dg-options "-O2 -mno-unaligned-access" } */ | ||
154 | int foo(int a, int b, int* p, int *q) | ||
155 | { | ||
156 | a = p[2] + p[3]; | ||
157 | @@ -8,4 +8,4 @@ int foo(int a, int b, int* p, int *q) | ||
158 | *p = a; | ||
159 | return a; | ||
160 | } | ||
161 | -/* { dg-final { scan-assembler "ldrd" } } */ | ||
162 | +/* { dg-final { scan-assembler-not "ldrd\\t" } } */ | ||
163 | diff --git a/gcc/testsuite/gcc.target/arm/peep-strd-1.c b/gcc/testsuite/gcc.target/arm/peep-strd-1.c | ||
164 | index bd330769599..fe1beac7229 100644 | ||
165 | --- a/gcc/testsuite/gcc.target/arm/peep-strd-1.c | ||
166 | +++ b/gcc/testsuite/gcc.target/arm/peep-strd-1.c | ||
167 | @@ -6,4 +6,4 @@ void foo(int a, int b, int* p) | ||
168 | p[2] = a; | ||
169 | p[3] = b; | ||
170 | } | ||
171 | -/* { dg-final { scan-assembler "strd" } } */ | ||
172 | +/* { dg-final { scan-assembler "strd\\t" } } */ | ||
173 | diff --git a/gcc/testsuite/gcc.target/arm/peep-strd-1.c b/gcc/testsuite/gcc.target/arm/peep-strd-2.c | ||
174 | similarity index 58% | ||
175 | copy from gcc/testsuite/gcc.target/arm/peep-strd-1.c | ||
176 | copy to gcc/testsuite/gcc.target/arm/peep-strd-2.c | ||
177 | index bd330769599..bfc5ebe9eec 100644 | ||
178 | --- a/gcc/testsuite/gcc.target/arm/peep-strd-1.c | ||
179 | +++ b/gcc/testsuite/gcc.target/arm/peep-strd-2.c | ||
180 | @@ -1,9 +1,9 @@ | ||
181 | /* { dg-do compile } */ | ||
182 | /* { dg-require-effective-target arm_prefer_ldrd_strd } */ | ||
183 | -/* { dg-options "-O2" } */ | ||
184 | +/* { dg-options "-O2 -mno-unaligned-access" } */ | ||
185 | void foo(int a, int b, int* p) | ||
186 | { | ||
187 | p[2] = a; | ||
188 | p[3] = b; | ||
189 | } | ||
190 | -/* { dg-final { scan-assembler "strd" } } */ | ||
191 | +/* { dg-final { scan-assembler-not "strd\\t" } } */ | ||
192 | -- | ||
193 | 2.15.0 | ||
194 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/backport/CVE-2016-6131.patch b/meta/recipes-devtools/gcc/gcc-6.4/backport/CVE-2016-6131.patch deleted file mode 100644 index 3cdbb2d171..0000000000 --- a/meta/recipes-devtools/gcc/gcc-6.4/backport/CVE-2016-6131.patch +++ /dev/null | |||
@@ -1,223 +0,0 @@ | |||
1 | From 59a0e4bd8391962f62600ae3ac95ab0fba74d464 Mon Sep 17 00:00:00 2001 | ||
2 | From: law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
3 | Date: Thu, 4 Aug 2016 16:53:18 +0000 | ||
4 | Subject: [PATCH] Fix for PR71696 in Libiberty Demangler | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | [BZ #71696] -- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71696 | ||
10 | |||
11 | 2016-08-04 Marcel Böhme <boehme.marcel@gmail.com> | ||
12 | |||
13 | PR c++/71696 | ||
14 | * cplus-dem.c: Prevent infinite recursion when there is a cycle | ||
15 | in the referencing of remembered mangled types. | ||
16 | (work_stuff): New stack to keep track of the remembered mangled | ||
17 | types that are currently being processed. | ||
18 | (push_processed_type): New method to push currently processed | ||
19 | remembered type onto the stack. | ||
20 | (pop_processed_type): New method to pop currently processed | ||
21 | remembered type from the stack. | ||
22 | (work_stuff_copy_to_from): Copy values of new variables. | ||
23 | (delete_non_B_K_work_stuff): Free stack memory. | ||
24 | (demangle_args): Push/Pop currently processed remembered type. | ||
25 | (do_type): Do not demangle a cyclic reference and push/pop | ||
26 | referenced remembered type. | ||
27 | |||
28 | cherry-picked from commit of | ||
29 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239143 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
30 | |||
31 | Upstream-Status: Backport [master] | ||
32 | CVE: CVE-2016-6131 | ||
33 | Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com> | ||
34 | --- | ||
35 | libiberty/ChangeLog | 17 ++++++++ | ||
36 | libiberty/cplus-dem.c | 78 ++++++++++++++++++++++++++++++++--- | ||
37 | libiberty/testsuite/demangle-expected | 18 ++++++++ | ||
38 | 3 files changed, 108 insertions(+), 5 deletions(-) | ||
39 | |||
40 | Index: gcc-6.4.0/libiberty/cplus-dem.c | ||
41 | =================================================================== | ||
42 | --- gcc-6.4.0.orig/libiberty/cplus-dem.c | ||
43 | +++ gcc-6.4.0/libiberty/cplus-dem.c | ||
44 | @@ -144,6 +144,9 @@ struct work_stuff | ||
45 | string* previous_argument; /* The last function argument demangled. */ | ||
46 | int nrepeats; /* The number of times to repeat the previous | ||
47 | argument. */ | ||
48 | + int *proctypevec; /* Indices of currently processed remembered typevecs. */ | ||
49 | + int proctypevec_size; | ||
50 | + int nproctypes; | ||
51 | }; | ||
52 | |||
53 | #define PRINT_ANSI_QUALIFIERS (work -> options & DMGL_ANSI) | ||
54 | @@ -435,6 +438,10 @@ iterate_demangle_function (struct work_s | ||
55 | |||
56 | static void remember_type (struct work_stuff *, const char *, int); | ||
57 | |||
58 | +static void push_processed_type (struct work_stuff *, int); | ||
59 | + | ||
60 | +static void pop_processed_type (struct work_stuff *); | ||
61 | + | ||
62 | static void remember_Btype (struct work_stuff *, const char *, int, int); | ||
63 | |||
64 | static int register_Btype (struct work_stuff *); | ||
65 | @@ -1301,6 +1308,10 @@ work_stuff_copy_to_from (struct work_stu | ||
66 | memcpy (to->btypevec[i], from->btypevec[i], len); | ||
67 | } | ||
68 | |||
69 | + if (from->proctypevec) | ||
70 | + to->proctypevec = | ||
71 | + XDUPVEC (int, from->proctypevec, from->proctypevec_size); | ||
72 | + | ||
73 | if (from->ntmpl_args) | ||
74 | to->tmpl_argvec = XNEWVEC (char *, from->ntmpl_args); | ||
75 | |||
76 | @@ -1329,11 +1340,17 @@ delete_non_B_K_work_stuff (struct work_s | ||
77 | /* Discard the remembered types, if any. */ | ||
78 | |||
79 | forget_types (work); | ||
80 | - if (work -> typevec != NULL) | ||
81 | + if (work->typevec != NULL) | ||
82 | { | ||
83 | - free ((char *) work -> typevec); | ||
84 | - work -> typevec = NULL; | ||
85 | - work -> typevec_size = 0; | ||
86 | + free ((char *) work->typevec); | ||
87 | + work->typevec = NULL; | ||
88 | + work->typevec_size = 0; | ||
89 | + } | ||
90 | + if (work->proctypevec != NULL) | ||
91 | + { | ||
92 | + free (work->proctypevec); | ||
93 | + work->proctypevec = NULL; | ||
94 | + work->proctypevec_size = 0; | ||
95 | } | ||
96 | if (work->tmpl_argvec) | ||
97 | { | ||
98 | @@ -3552,6 +3569,8 @@ static int | ||
99 | do_type (struct work_stuff *work, const char **mangled, string *result) | ||
100 | { | ||
101 | int n; | ||
102 | + int i; | ||
103 | + int is_proctypevec; | ||
104 | int done; | ||
105 | int success; | ||
106 | string decl; | ||
107 | @@ -3564,6 +3583,7 @@ do_type (struct work_stuff *work, const | ||
108 | |||
109 | done = 0; | ||
110 | success = 1; | ||
111 | + is_proctypevec = 0; | ||
112 | while (success && !done) | ||
113 | { | ||
114 | int member; | ||
115 | @@ -3616,8 +3636,15 @@ do_type (struct work_stuff *work, const | ||
116 | success = 0; | ||
117 | } | ||
118 | else | ||
119 | + for (i = 0; i < work->nproctypes; i++) | ||
120 | + if (work -> proctypevec [i] == n) | ||
121 | + success = 0; | ||
122 | + | ||
123 | + if (success) | ||
124 | { | ||
125 | - remembered_type = work -> typevec[n]; | ||
126 | + is_proctypevec = 1; | ||
127 | + push_processed_type (work, n); | ||
128 | + remembered_type = work->typevec[n]; | ||
129 | mangled = &remembered_type; | ||
130 | } | ||
131 | break; | ||
132 | @@ -3840,6 +3867,9 @@ do_type (struct work_stuff *work, const | ||
133 | string_delete (result); | ||
134 | string_delete (&decl); | ||
135 | |||
136 | + if (is_proctypevec) | ||
137 | + pop_processed_type (work); | ||
138 | + | ||
139 | if (success) | ||
140 | /* Assume an integral type, if we're not sure. */ | ||
141 | return (int) ((tk == tk_none) ? tk_integral : tk); | ||
142 | @@ -4252,6 +4282,41 @@ do_arg (struct work_stuff *work, const c | ||
143 | } | ||
144 | |||
145 | static void | ||
146 | +push_processed_type (struct work_stuff *work, int typevec_index) | ||
147 | +{ | ||
148 | + if (work->nproctypes >= work->proctypevec_size) | ||
149 | + { | ||
150 | + if (!work->proctypevec_size) | ||
151 | + { | ||
152 | + work->proctypevec_size = 4; | ||
153 | + work->proctypevec = XNEWVEC (int, work->proctypevec_size); | ||
154 | + } | ||
155 | + else | ||
156 | + { | ||
157 | + if (work->proctypevec_size < 16) | ||
158 | + /* Double when small. */ | ||
159 | + work->proctypevec_size *= 2; | ||
160 | + else | ||
161 | + { | ||
162 | + /* Grow slower when large. */ | ||
163 | + if (work->proctypevec_size > (INT_MAX / 3) * 2) | ||
164 | + xmalloc_failed (INT_MAX); | ||
165 | + work->proctypevec_size = (work->proctypevec_size * 3 / 2); | ||
166 | + } | ||
167 | + work->proctypevec | ||
168 | + = XRESIZEVEC (int, work->proctypevec, work->proctypevec_size); | ||
169 | + } | ||
170 | + } | ||
171 | + work->proctypevec [work->nproctypes++] = typevec_index; | ||
172 | +} | ||
173 | + | ||
174 | +static void | ||
175 | +pop_processed_type (struct work_stuff *work) | ||
176 | +{ | ||
177 | + work->nproctypes--; | ||
178 | +} | ||
179 | + | ||
180 | +static void | ||
181 | remember_type (struct work_stuff *work, const char *start, int len) | ||
182 | { | ||
183 | char *tem; | ||
184 | @@ -4515,10 +4580,13 @@ demangle_args (struct work_stuff *work, | ||
185 | { | ||
186 | string_append (declp, ", "); | ||
187 | } | ||
188 | + push_processed_type (work, t); | ||
189 | if (!do_arg (work, &tem, &arg)) | ||
190 | { | ||
191 | + pop_processed_type (work); | ||
192 | return (0); | ||
193 | } | ||
194 | + pop_processed_type (work); | ||
195 | if (PRINT_ARG_TYPES) | ||
196 | { | ||
197 | string_appends (declp, &arg); | ||
198 | Index: gcc-6.4.0/libiberty/testsuite/demangle-expected | ||
199 | =================================================================== | ||
200 | --- gcc-6.4.0.orig/libiberty/testsuite/demangle-expected | ||
201 | +++ gcc-6.4.0/libiberty/testsuite/demangle-expected | ||
202 | @@ -4491,3 +4491,21 @@ void eat<int*, Foo()::{lambda(auto:1*, a | ||
203 | |||
204 | _Z3eatIPiZ3BarIsEvvEUlPsPT_PT0_E0_EvRS3_RS5_ | ||
205 | void eat<int*, void Bar<short>()::{lambda(short*, auto:1*, auto:2*)#2}>(int*&, void Bar<short>()::{lambda(short*, auto:1*, auto:2*)#2}&) | ||
206 | +# | ||
207 | +# Tests write access violation PR70926 | ||
208 | + | ||
209 | +0__Ot2m02R5T0000500000 | ||
210 | +0__Ot2m02R5T0000500000 | ||
211 | +# | ||
212 | + | ||
213 | +0__GT50000000000_ | ||
214 | +0__GT50000000000_ | ||
215 | +# | ||
216 | + | ||
217 | +__t2m05B500000000000000000_ | ||
218 | +__t2m05B500000000000000000_ | ||
219 | +# | ||
220 | +# Tests stack overflow PR71696 | ||
221 | + | ||
222 | +__10%0__S4_0T0T0 | ||
223 | +%0<>::%0(%0<>) | ||
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian_6.4.bb b/meta/recipes-devtools/gcc/gcc-cross-canadian_6.4.bb deleted file mode 100644 index bf53c5cd78..0000000000 --- a/meta/recipes-devtools/gcc/gcc-cross-canadian_6.4.bb +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | require recipes-devtools/gcc/gcc-${PV}.inc | ||
2 | require gcc-cross-canadian.inc | ||
3 | |||
4 | |||
5 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-cross-initial_6.4.bb b/meta/recipes-devtools/gcc/gcc-cross-initial_6.4.bb deleted file mode 100644 index 4c73e5ce61..0000000000 --- a/meta/recipes-devtools/gcc/gcc-cross-initial_6.4.bb +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | require recipes-devtools/gcc/gcc-cross_${PV}.bb | ||
2 | require gcc-cross-initial.inc | ||
diff --git a/meta/recipes-devtools/gcc/gcc-cross_6.4.bb b/meta/recipes-devtools/gcc/gcc-cross_6.4.bb deleted file mode 100644 index b43cca0c52..0000000000 --- a/meta/recipes-devtools/gcc/gcc-cross_6.4.bb +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | require recipes-devtools/gcc/gcc-${PV}.inc | ||
2 | require gcc-cross.inc | ||
3 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_6.4.bb b/meta/recipes-devtools/gcc/gcc-crosssdk-initial_6.4.bb deleted file mode 100644 index fd90e1140f..0000000000 --- a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_6.4.bb +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | require recipes-devtools/gcc/gcc-cross-initial_${PV}.bb | ||
2 | require gcc-crosssdk-initial.inc | ||
3 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk_6.4.bb b/meta/recipes-devtools/gcc/gcc-crosssdk_6.4.bb deleted file mode 100644 index 40a6c4feff..0000000000 --- a/meta/recipes-devtools/gcc/gcc-crosssdk_6.4.bb +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | require recipes-devtools/gcc/gcc-cross_${PV}.bb | ||
2 | require gcc-crosssdk.inc | ||
diff --git a/meta/recipes-devtools/gcc/gcc-runtime_6.4.bb b/meta/recipes-devtools/gcc/gcc-runtime_6.4.bb deleted file mode 100644 index 8f31e7792e..0000000000 --- a/meta/recipes-devtools/gcc/gcc-runtime_6.4.bb +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | require recipes-devtools/gcc/gcc-${PV}.inc | ||
2 | require gcc-runtime.inc | ||
3 | |||
4 | FILES_libgomp-dev += "\ | ||
5 | ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/openacc.h \ | ||
6 | " | ||
7 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-sanitizers_6.4.bb b/meta/recipes-devtools/gcc/gcc-sanitizers_6.4.bb deleted file mode 100644 index 601f666023..0000000000 --- a/meta/recipes-devtools/gcc/gcc-sanitizers_6.4.bb +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | require recipes-devtools/gcc/gcc-${PV}.inc | ||
2 | require gcc-sanitizers.inc | ||
diff --git a/meta/recipes-devtools/gcc/gcc-source_6.4.bb b/meta/recipes-devtools/gcc/gcc-source_6.4.bb deleted file mode 100644 index b890fa33ea..0000000000 --- a/meta/recipes-devtools/gcc/gcc-source_6.4.bb +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | require recipes-devtools/gcc/gcc-${PV}.inc | ||
2 | require recipes-devtools/gcc/gcc-source.inc | ||
3 | |||
4 | EXCLUDE_FROM_WORLD = "1" | ||
diff --git a/meta/recipes-devtools/gcc/gcc_6.4.bb b/meta/recipes-devtools/gcc/gcc_6.4.bb deleted file mode 100644 index 2c618dfb93..0000000000 --- a/meta/recipes-devtools/gcc/gcc_6.4.bb +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | require recipes-devtools/gcc/gcc-${PV}.inc | ||
2 | require gcc-target.inc | ||
3 | |||
4 | # Building with thumb enabled on armv4t fails with | ||
5 | # | gcc-4.8.1-r0/gcc-4.8.1/gcc/cp/decl.c:7438:(.text.unlikely+0x2fa): relocation truncated to fit: R_ARM_THM_CALL against symbol `fancy_abort(char const*, int, char const*)' defined in .glue_7 section in linker stubs | ||
6 | # | gcc-4.8.1-r0/gcc-4.8.1/gcc/cp/decl.c:7442:(.text.unlikely+0x318): additional relocation overflows omitted from the output | ||
7 | ARM_INSTRUCTION_SET_armv4 = "arm" | ||
8 | |||
9 | BBCLASSEXTEND = "nativesdk" | ||
diff --git a/meta/recipes-devtools/gcc/libgcc-initial_6.4.bb b/meta/recipes-devtools/gcc/libgcc-initial_6.4.bb deleted file mode 100644 index 19f253fce8..0000000000 --- a/meta/recipes-devtools/gcc/libgcc-initial_6.4.bb +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | require recipes-devtools/gcc/gcc-${PV}.inc | ||
2 | require libgcc-initial.inc | ||
diff --git a/meta/recipes-devtools/gcc/libgcc_6.4.bb b/meta/recipes-devtools/gcc/libgcc_6.4.bb deleted file mode 100644 index a5152f28e9..0000000000 --- a/meta/recipes-devtools/gcc/libgcc_6.4.bb +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | require recipes-devtools/gcc/gcc-${PV}.inc | ||
2 | require libgcc.inc | ||
diff --git a/meta/recipes-devtools/gcc/libgfortran_6.4.bb b/meta/recipes-devtools/gcc/libgfortran_6.4.bb deleted file mode 100644 index 71dd8b4bdc..0000000000 --- a/meta/recipes-devtools/gcc/libgfortran_6.4.bb +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | require recipes-devtools/gcc/gcc-${PV}.inc | ||
2 | require libgfortran.inc | ||
3 | |||