diff options
Diffstat (limited to 'package/gcc')
-rw-r--r-- | package/gcc/Config.in.host | 2 | ||||
-rw-r--r-- | package/gcc/arc-2016.09-release/895-arc-define-_REENTRANT-when-pthread-is-passed.patch | 34 | ||||
-rw-r--r-- | package/gcc/arc-2017.03/0001-ARC-Fix-tst_movb-pattern.patch | 55 | ||||
-rw-r--r-- | package/gcc/arc-2017.03/301-missing-execinfo_h.patch (renamed from package/gcc/arc-2017.03-rc1/301-missing-execinfo_h.patch) | 0 | ||||
-rw-r--r-- | package/gcc/arc-2017.03/860-cilk-wchar.patch (renamed from package/gcc/arc-2017.03-rc1/860-cilk-wchar.patch) | 0 | ||||
-rw-r--r-- | package/gcc/arc-2017.03/940-uclinux-enable-threads.patch (renamed from package/gcc/arc-2017.03-rc1/940-uclinux-enable-threads.patch) | 0 | ||||
-rw-r--r-- | package/gcc/gcc.hash | 2 |
7 files changed, 57 insertions, 36 deletions
diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host index 3e7fb807f9..2b78b29d4a 100644 --- a/package/gcc/Config.in.host +++ b/package/gcc/Config.in.host @@ -92,7 +92,7 @@ config BR2_GCC_VERSION default "5.4.0" if BR2_GCC_VERSION_5_X default "6.3.0" if BR2_GCC_VERSION_6_X default "7.1.0" if BR2_GCC_VERSION_7_X - default "arc-2017.03-rc1" if BR2_GCC_VERSION_ARC + default "arc-2017.03" if BR2_GCC_VERSION_ARC default "musl-5.4.0" if BR2_GCC_VERSION_OR1K config BR2_EXTRA_GCC_CONFIG_OPTIONS diff --git a/package/gcc/arc-2016.09-release/895-arc-define-_REENTRANT-when-pthread-is-passed.patch b/package/gcc/arc-2016.09-release/895-arc-define-_REENTRANT-when-pthread-is-passed.patch deleted file mode 100644 index ee9add53c4..0000000000 --- a/package/gcc/arc-2016.09-release/895-arc-define-_REENTRANT-when-pthread-is-passed.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 4c6367c99461fdd7bd5613483f2582d7f08fba87 Mon Sep 17 00:00:00 2001 -From: Vlad Zakharov <vzakhar@synopsys.com> -Date: Tue, 28 Feb 2017 17:41:11 +0300 -Subject: [PATCH] arc: define _REENTRANT when -pthread is passed - -The compiler is supposed to have the builtin defined _REENTRANT defined -when -pthread is passed, which wasn't done on the ARC architecture. - -When _REENTRANT is not passed, the C library will not use reentrant -functions, and the latest version of ax_pthread.m4 from the -autoconf-archive will no longer detect that thread support is -available (see https://savannah.gnu.org/patch/?8186). - -Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com> -Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---- - gcc/config/arc/arc.h | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h -index 611ef54..fdd4b5d 100644 ---- a/gcc/config/arc/arc.h -+++ b/gcc/config/arc/arc.h -@@ -93,6 +93,7 @@ along with GCC; see the file COPYING3. If not see - %{mdsp-packa:-D__Xdsp_packa} %{mcrc:-D__Xcrc} %{mdvbf:-D__Xdvbf} \ - %{mtelephony:-D__Xtelephony} %{mxy:-D__Xxy} %{mmul64: -D__Xmult32} \ - %{mlock:-D__Xlock} %{mswape:-D__Xswape} %{mrtsc:-D__Xrtsc} \ -+%{pthread:-D_REENTRANT} \ - %{mcpu=nps400:-D__NPS400__}" - - #define CC1_SPEC "\ --- -2.7.4 - diff --git a/package/gcc/arc-2017.03/0001-ARC-Fix-tst_movb-pattern.patch b/package/gcc/arc-2017.03/0001-ARC-Fix-tst_movb-pattern.patch new file mode 100644 index 0000000000..3b09a13019 --- /dev/null +++ b/package/gcc/arc-2017.03/0001-ARC-Fix-tst_movb-pattern.patch @@ -0,0 +1,55 @@ +From 08235ef444fd32d311fc9edb65895133820462e3 Mon Sep 17 00:00:00 2001 +From: claziss <claziss@synopsys.com> +Date: Wed, 24 May 2017 12:53:43 +0200 +Subject: [PATCH] [ARC] Fix tst_movb pattern. + +The tst_movb pattern is missing guarding when spitting. + +gcc/ +2017-05-24 Claudiu Zissulescu <claziss@synopsys.com> + + * config/arc/arc.md (tst_movb): Add guard when splitting. + +testsuite/ +2017-05-24 Claudiu Zissulescu <claziss@synopsys.com> + + * gcc.target/arc/pr9001195952.c: New test. +--- + gcc/config/arc/arc.md | 2 +- + gcc/testsuite/gcc.target/arc/pr9001195952.c | 11 +++++++++++ + 2 files changed, 12 insertions(+), 1 deletion(-) + create mode 100755 gcc/testsuite/gcc.target/arc/pr9001195952.c + +diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md +index e78abaaafc42..d5510aeb0600 100644 +--- a/gcc/config/arc/arc.md ++++ b/gcc/config/arc/arc.md +@@ -863,7 +863,7 @@ archs4xd, archs4xd_slow" + (clobber (match_scratch:SI 3 "=X,X,X,X,X,X,Rrq,Rrq,c"))] + "TARGET_NPS_BITOPS" + "movb.f.cl %3,%1,%p2,%p2,%s2" +- "reload_completed ++ "TARGET_NPS_BITOPS && reload_completed + && (extract_constrain_insn_cached (insn), (which_alternative & ~1) != 6)" + [(set (match_dup 0) (match_dup 4))]) + +diff --git a/gcc/testsuite/gcc.target/arc/pr9001195952.c b/gcc/testsuite/gcc.target/arc/pr9001195952.c +new file mode 100755 +index 000000000000..252438d8d78b +--- /dev/null ++++ b/gcc/testsuite/gcc.target/arc/pr9001195952.c +@@ -0,0 +1,11 @@ ++/* { dg-do compile } */ ++/* { dg-skip-if "" { ! { clmcpu } } } */ ++/* { dg-options "-mcpu=archs -Os -w -fpic" } */ ++ ++/* tst_movb split pattern is wrong for anything else than NPS ++ chip. */ ++__bswap_32___bsx() { ++ int a = __builtin_bswap32(__bswap_32___bsx); ++ if (a & 1048575) ++ zlog_warn(); ++} +-- +2.7.4 + diff --git a/package/gcc/arc-2017.03-rc1/301-missing-execinfo_h.patch b/package/gcc/arc-2017.03/301-missing-execinfo_h.patch index 2d0e7baa44..2d0e7baa44 100644 --- a/package/gcc/arc-2017.03-rc1/301-missing-execinfo_h.patch +++ b/package/gcc/arc-2017.03/301-missing-execinfo_h.patch diff --git a/package/gcc/arc-2017.03-rc1/860-cilk-wchar.patch b/package/gcc/arc-2017.03/860-cilk-wchar.patch index 1d9916f554..1d9916f554 100644 --- a/package/gcc/arc-2017.03-rc1/860-cilk-wchar.patch +++ b/package/gcc/arc-2017.03/860-cilk-wchar.patch diff --git a/package/gcc/arc-2017.03-rc1/940-uclinux-enable-threads.patch b/package/gcc/arc-2017.03/940-uclinux-enable-threads.patch index 5532656725..5532656725 100644 --- a/package/gcc/arc-2017.03-rc1/940-uclinux-enable-threads.patch +++ b/package/gcc/arc-2017.03/940-uclinux-enable-threads.patch diff --git a/package/gcc/gcc.hash b/package/gcc/gcc.hash index 7a37bb6da1..f64329b072 100644 --- a/package/gcc/gcc.hash +++ b/package/gcc/gcc.hash @@ -8,6 +8,6 @@ sha512 234dd9b1bdc9a9c6e352216a7ef4ccadc6c07f156006a59759c5e0e6a69f0abcdc14630e sha512 b5d952be9a10f0e0926bb2868877d10544039d6d2f35ba0a08f51231dd622a007650764a03e173194701467547789ad7d2d9cbc10adcdf118d619cdedbd14aec gcc-7.1.0.tar.bz2 # Locally calculated (fetched from Github) -sha512 e4fe5a179b8feabf932a8a6f4794ff6907b868a65487412d855a4b3671aa24ec8544a44f3b63e69ea2c12fcd4d8028d0619d40bf016ee7c1a5b5a99aa9315ef3 gcc-arc-2017.03-rc1.tar.gz +sha512 282f76b8b63372f5b4426092b80d36da96cd0bda2a8588405b9ec22806c69fafb696b0e0df65bc36c3c3aa8ce5befc24246fd5c6ddb21dcde01f45f7b11ff7c4 gcc-arc-2017.03.tar.gz # Locally calculated (fetched from Github) sha512 841101f7de45f327bf2e92f3efc73ca88a021e4b9b541458ce80a16e55882bd8606a8492d75c57c589ee2c10d42ae2865b67690155d7289a541df1d68096402f gcc-musl-5.4.0.tar.gz |