Skip to contentSkip to conversation

toolchain: bump ARC tools to arc-2016.03-rc2

PATCH New Alexey Brodkin 2 participants 2 messages May 10, 2016 – May 11, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toolchain: bump ARC tools to arc-2016.03-rc2

This change switches ARC tools to RC2 of the most recent arc-2016.03 version.

Essentially once final release is ready version will be bumped again.

ARC GNU tools of version arc-2016.03 bring some quite significant changes like:
* Binutils v2.26+ (upstream commit id 202ac19 with additional ARC patches)
* GCC v4.8.5
* GDB 7.10

More about changes, improvements and fixes could be found here:
https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2016.03-rc2

Also in this change we realign custom Buildroot patches for binutils and gcc for ARC tools. Looks like earlier most of arch-independent patches for binutils and gcc were either unintentionally removed or not even added in patch folders for ARC's binutils and gcc. Now arch-independent patches for binutils-2.26 and gcc-4.8.5 were added in package/{binutils|gcc}/arc-2016.03-rc2 folders.

Build and run-tested in nSIM for both ARC700 and ARC HS38.

Cc Thomas Petazzoni <[email protected]>
---
 package/binutils/Config.in.host                    |   2 +-
 .../binutils/arc-2015.12/0001-PR-other-56780.patch | 236 ---------------------
 .../arc-2016.03-rc2/0300-ld-makefile.patch         |  41 ++++
 .../0301-check-ldrunpath-length.patch              |  36 ++++
 .../0500-add-sysroot-fix-from-bug-3049.patch       |  52 +++++
 .../0600-poison-system-directories.patch}          | 217 ++++++++++---------
 package/binutils/binutils.hash                     |   2 +-
 package/binutils/binutils.mk                       |   2 +-
 package/gcc/Config.in.host                         |   2 +-
 ...900-UPDATE-Fix-handling-complex-PIC-moves.patch | 103 ---------
 ...01-UPDATE1-Fix-handling-complex-PIC-moves.patch |  83 --------
 ...950-Don-t-allow-mcompact-casesi-for-ARCv2.patch | 100 ---------
 package/gcc/arc-2016.03-rc2/130-pr43538.patch      |  25 +++
 .../arc-2016.03-rc2/301-missing-execinfo_h.patch   |  13 ++
 .../305-libmudflap-susv3-legacy.patch              |  49 +++++
 package/gcc/arc-2016.03-rc2/842-PR60155.patch      | 111 ++++++++++
 .../850-libstdcxx-uclibc-c99.patch}                |   4 +-
 .../851-PR-other-56780.patch                       |   0
 .../930-libgcc-disable-split-stack-nothreads.patch |  14 ++
 package/gcc/gcc.hash                               |   2 +-
 package/gdb/Config.in.host                         |   2 +-
 package/gdb/gdb.hash                               |   2 +-
 22 files changed, 472 insertions(+), 626 deletions(-)
 delete mode 100644 package/binutils/arc-2015.12/0001-PR-other-56780.patch
 create mode 100644 package/binutils/arc-2016.03-rc2/0300-ld-makefile.patch
 create mode 100644 package/binutils/arc-2016.03-rc2/0301-check-ldrunpath-length.patch
 create mode 100644 package/binutils/arc-2016.03-rc2/0500-add-sysroot-fix-from-bug-3049.patch
 rename package/binutils/{arc-2015.12/600-poison-system-directories.patch => arc-2016.03-rc2/0600-poison-system-directories.patch} (70%)
 delete mode 100644 package/gcc/arc-2015.12/900-UPDATE-Fix-handling-complex-PIC-moves.patch
 delete mode 100644 package/gcc/arc-2015.12/901-UPDATE1-Fix-handling-complex-PIC-moves.patch
 delete mode 100644 package/gcc/arc-2015.12/950-Don-t-allow-mcompact-casesi-for-ARCv2.patch
 create mode 100644 package/gcc/arc-2016.03-rc2/130-pr43538.patch
 create mode 100644 package/gcc/arc-2016.03-rc2/301-missing-execinfo_h.patch
 create mode 100644 package/gcc/arc-2016.03-rc2/305-libmudflap-susv3-legacy.patch
 create mode 100644 package/gcc/arc-2016.03-rc2/842-PR60155.patch
 rename package/gcc/{arc-2015.12/100-libstdcxx-uclibc-c99.patch => arc-2016.03-rc2/850-libstdcxx-uclibc-c99.patch} (99%)
 rename package/gcc/{arc-2015.12 => arc-2016.03-rc2}/851-PR-other-56780.patch (100%)
 create mode 100644 package/gcc/arc-2016.03-rc2/930-libgcc-disable-split-stack-nothreads.patch
package/binutils/Config.in.host +1 -1
index e42918e..6c72fa3 100644
@@ -35,7 +35,7 @@ endchoice
 
 config BR2_BINUTILS_VERSION
 	string
-	default "arc-2015.12"	if BR2_arc
+	default "arc-2016.03-rc2"	if BR2_arc
 	default "2.23.2"	if BR2_BINUTILS_VERSION_2_23_X
 	default "2.24"		if BR2_BINUTILS_VERSION_2_24_X
 	default "2.25.1"	if BR2_BINUTILS_VERSION_2_25_X
package/binutils/arc-2015.12/0001-PR-other-56780.patch deleted +0 -236

236 lines not on this page · raw message

package/binutils/arc-2016.03-rc2/0300-ld-makefile.patch new file +41 -0

41 lines not on this page · raw message

package/binutils/arc-2016.03-rc2/0301-check-ldrunpath-length.patch new file +36 -0
new file mode 100644
index 0000000..3b4c204
@@ -0,0 +1,36 @@
+From ebe1cba46df52d7bf86def3d681271fd05fb453b Mon Sep 17 00:00:00 2001
+From: Romain Naour <[email protected]>
+Date: Fri, 25 Dec 2015 11:41:47 +0100
+Subject: [PATCH] check-ldrunpath-length
+
+[Romain: rebase on top of 2.26]
+Signed-off-by: Romain Naour <[email protected]>
+---
+ ld/emultempl/elf32.em | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
+index 0405d4f..efd3300 100644
+--- a/ld/emultempl/elf32.em
++++ b/ld/emultempl/elf32.em
+@@ -1242,6 +1242,8 @@ fragment <<EOF
+ 	      && command_line.rpath == NULL)
+ 	    {
+ 	      lib_path = (const char *) getenv ("LD_RUN_PATH");
++	      if ((lib_path) && (strlen (lib_path) == 0))
++	      	lib_path = NULL;
+ 	      if (gld${EMULATION_NAME}_search_needed (lib_path, &n,
+ 						      force))
+ 		break;
+@@ -1523,6 +1525,8 @@ gld${EMULATION_NAME}_before_allocation (void)
+   rpath = command_line.rpath;
+   if (rpath == NULL)
+     rpath = (const char *) getenv ("LD_RUN_PATH");
++  if ((rpath) && (strlen (rpath) == 0))
++  	rpath = NULL;
+ 
+   for (abfd = link_info.input_bfds; abfd; abfd = abfd->link.next)
+     if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
+-- 
+2.4.3
+
package/binutils/arc-2016.03-rc2/0500-add-sysroot-fix-from-bug-3049.patch new file +52 -0

52 lines not on this page · raw message

package/binutils/arc-2016.03-rc2/0600-poison-system-directories.patch renamed from package/binutils/arc-2015.12/600-poison-system-directories.patch +122 -95

313 lines not on this page · raw message

package/binutils/binutils.hash +1 -1
index 916b68c..15e7f19 100644
@@ -4,4 +4,4 @@ sha512  5ec95ad47d49b12c4558a8db0ca2109d3ee1955e3776057f3330c4506f8f4d1cf5e505fb
 sha512  0b36dda0e6d32cd25613c0e64b56b28312515c54d6a159efd3db9a86717f114ab0a0a1f69d08975084d55713ebaeab64e4085c9b3d1c3fa86712869f80eb954d  binutils-2.25.1.tar.bz2
 sha512  e77e1b8dbbcbaf9ac2fae95c4403615808af3be03b2e1d32448cd3a7d32c43273f8bcace3f2de84ec120a982879295673029da306e2885dbf5f990584932cfc7  binutils-2.26.tar.bz2
 # No hash for the ARC variant, comes from the github-helper:
-none   xxx  binutils-arc-2015.12.tar.gz
+none   xxx  binutils-arc-2016.03-rc2.tar.gz
package/binutils/binutils.mk +1 -1
index ca39f0b..340846d 100644
@@ -9,7 +9,7 @@
 BINUTILS_VERSION = $(call qstrip,$(BR2_BINUTILS_VERSION))
 ifeq ($(BINUTILS_VERSION),)
 ifeq ($(BR2_arc),y)
-BINUTILS_VERSION = arc-2015.12
+BINUTILS_VERSION = arc-2016.03-rc2
 else
 BINUTILS_VERSION = 2.25.1
 endif
package/gcc/Config.in.host +1 -1
index 8cf2d56..6b2d046 100644
@@ -100,7 +100,7 @@ config BR2_GCC_VERSION
 	default "4.9.3"     if BR2_GCC_VERSION_4_9_X
 	default "5.3.0"     if BR2_GCC_VERSION_5_X
 	default "6.1.0" if BR2_GCC_VERSION_6_X
-	default "arc-2015.12" if BR2_GCC_VERSION_4_8_ARC
+	default "arc-2016.03-rc2" if BR2_GCC_VERSION_4_8_ARC
 
 config BR2_EXTRA_GCC_CONFIG_OPTIONS
 	string "Additional gcc options"
package/gcc/arc-2015.12/900-UPDATE-Fix-handling-complex-PIC-moves.patch deleted +0 -103

103 lines not on this page · raw message

package/gcc/arc-2015.12/901-UPDATE1-Fix-handling-complex-PIC-moves.patch deleted +0 -83

83 lines not on this page · raw message

package/gcc/arc-2015.12/950-Don-t-allow-mcompact-casesi-for-ARCv2.patch deleted +0 -100

100 lines not on this page · raw message

package/gcc/arc-2016.03-rc2/130-pr43538.patch new file +25 -0
new file mode 100644
index 0000000..19e57bb
@@ -0,0 +1,25 @@
+From c037df1be41f8daf4d581d7ffa4ec8cfa640bccf Mon Sep 17 00:00:00 2001
+From: glisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>
+Date: Fri, 25 Apr 2014 08:03:08 +0000
+Subject: [PATCH] 2014-04-25  Marc Glisse  <[email protected]>
+
+	PR target/43538
+	* mt-gnu: Don't reset CXXFLAGS_FOR_TARGET.
+
+
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk at 209784 138bc75d-0d04-0410-961f-82ee72b054a4
+Signed-off-by: Max Filippov <[email protected]>
+---
+ config/mt-gnu    | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/config/mt-gnu b/config/mt-gnu
+index 15bf417..5c696f5 100644
+--- a/config/mt-gnu
++++ b/config/mt-gnu
+@@ -1 +1 @@
+-CXXFLAGS_FOR_TARGET = $(CXXFLAGS) -D_GNU_SOURCE
++CXXFLAGS_FOR_TARGET += -D_GNU_SOURCE
+-- 
+2.1.4
+
package/gcc/arc-2016.03-rc2/301-missing-execinfo_h.patch new file +13 -0
new file mode 100644
index 0000000..00efda2
@@ -0,0 +1,13 @@
+Index: gcc-4.8.0/boehm-gc/include/gc.h
+===================================================================
+--- gcc-4.8.0.orig/boehm-gc/include/gc.h	2007-04-23 23:10:09.000000000 +0200
++++ gcc-4.8.0/boehm-gc/include/gc.h	2013-03-23 17:39:20.000000000 +0100
+@@ -503,7 +503,7 @@
+ #if defined(__linux__) || defined(__GLIBC__)
+ # include <features.h>
+ # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \
+-     && !defined(__ia64__)
++     && !defined(__ia64__) && !defined(__UCLIBC__)
+ #   ifndef GC_HAVE_BUILTIN_BACKTRACE
+ #     define GC_HAVE_BUILTIN_BACKTRACE
+ #   endif
package/gcc/arc-2016.03-rc2/305-libmudflap-susv3-legacy.patch new file +49 -0

49 lines not on this page · raw message

package/gcc/arc-2016.03-rc2/842-PR60155.patch new file +111 -0

111 lines not on this page · raw message

package/gcc/arc-2016.03-rc2/850-libstdcxx-uclibc-c99.patch renamed from package/gcc/arc-2015.12/100-libstdcxx-uclibc-c99.patch +2 -2
similarity index 99%
rename from package/gcc/arc-2015.12/100-libstdcxx-uclibc-c99.patch
rename to package/gcc/arc-2016.03-rc2/850-libstdcxx-uclibc-c99.patch
index 0d02ef0..792976f 100644
@@ -45,7 +45,7 @@ Index: b/libstdc++-v3/include/bits/basic_string.h
 ===================================================================
 --- a/libstdc++-v3/include/bits/basic_string.h
 +++ b/libstdc++-v3/include/bits/basic_string.h
-@@ -2811,7 +2811,7 @@
+@@ -2809,7 +2809,7 @@
  _GLIBCXX_END_NAMESPACE_VERSION
  } // namespace
  
@@ -262,7 +262,7 @@ Index: b/libstdc++-v3/include/c_global/cstdio
 ===================================================================
 --- a/libstdc++-v3/include/c_global/cstdio
 +++ b/libstdc++-v3/include/c_global/cstdio
-@@ -138,7 +138,7 @@
+@@ -139,7 +139,7 @@
    using ::vsprintf;
  } // namespace
  
package/gcc/arc-2016.03-rc2/851-PR-other-56780.patch renamed from package/gcc/arc-2015.12/851-PR-other-56780.patch +0 -0
similarity index 100%
rename from package/gcc/arc-2015.12/851-PR-other-56780.patch
rename to package/gcc/arc-2016.03-rc2/851-PR-other-56780.patch
package/gcc/arc-2016.03-rc2/930-libgcc-disable-split-stack-nothreads.patch new file +14 -0
new file mode 100644
index 0000000..7799c12
@@ -0,0 +1,14 @@
+disable split-stack for non-thread builds
+
+Signed-off-by: Waldemar Brodkorb <[email protected]>
+
+diff -Nur gcc-4.8.5.orig/libgcc/config/t-stack gcc-4.8.5/libgcc/config/t-stack
+--- gcc-4.8.5.orig/libgcc/config/t-stack	2010-10-01 21:31:49.000000000 +0200
++++ gcc-4.8.5/libgcc/config/t-stack	2016-03-07 05:28:12.000000000 +0100
+@@ -1,4 +1,6 @@
+ # Makefile fragment to provide generic support for -fsplit-stack.
+ # This should be used in config.host for any host which supports
+ # -fsplit-stack.
++ifeq ($(enable_threads),yes)
+ LIB2ADD_ST += $(srcdir)/generic-morestack.c $(srcdir)/generic-morestack-thread.c
++endif
package/gcc/gcc.hash +1 -1
index 8d2feaf..61c8993 100644
@@ -11,4 +11,4 @@ sha512  d619847383405fd389f5a2d7225f97fedb01f81478dbb8339047ccba7561a5c20045ab50
 # From ftp://gcc.gnu.org/pub/gcc/releases/gcc-6.1.0/sha512.sum
 sha512  eeed3e2018b8c012aabce419e8d718fde701e5c3c179b4486c61ba46e5736eecc8fccdd18b01fcd973a42c6ad3116dbbe2ee247fe3757d622d373f93ebaf8d2e  gcc-6.1.0.tar.bz2
 # No hash for the ARC variant, comes from the github-helper:
-none  xxx  gcc-arc-2015.12.tar.gz
+none  xxx  gcc-arc-2016.03-rc2.tar.gz
package/gdb/Config.in.host +1 -1
index b213901..cc1dc40 100644
@@ -48,7 +48,7 @@ endif
 config BR2_GDB_VERSION
 	string
 	depends on BR2_PACKAGE_GDB || BR2_PACKAGE_HOST_GDB
-	default "arc-2015.12-gdb" if BR2_arc
+	default "arc-2016.03-rc2-gdb" if BR2_arc
 	default "6be65fb56ea6694a9260733a536a023a1e2d4d57" if BR2_microblaze
 	default "7.8.2"	   if BR2_GDB_VERSION_7_8
 	default "7.9.1"    if BR2_GDB_VERSION_7_9 || !BR2_PACKAGE_HOST_GDB
package/gdb/gdb.hash +1 -1
index caf1ef1..ee0ec73 100644
@@ -3,5 +3,5 @@ sha512	face5bf1b4ce144fc8604fc84620beed956177a11fd632b4e41906fc7f632910b2b43a50e
 sha512	eebdf88b24e52e792b8a4b89ea85790de72b462a7810b44975fdf4232c068f353b15506071f450102a9d4bcecdde8e93dc3748a10699b7f73f3e04fb2d9d8414	gdb-7.9.1.tar.xz
 sha512	17a5138277a31685a5c2a841cb47ed9bc4626ea617b8ca77750513b300299f4fbbffe504958b5372de610dcb952c679cf8fa9c1bdadd380294fbf59b6e366010	gdb-7.10.1.tar.xz
 # No hash for the ARC & microblaze variants, comes from the github-helper:
-none	xxx	gdb-arc-2015.12-gdb.tar.gz
+none	xxx	gdb-arc-2016.03-rc2-gdb.tar.gz
 none	xxx	gdb-6be65fb56ea6694a9260733a536a023a1e2d4d57.tar.gz
Signature · 1 line
2.5.5
#1 lore raw

PATCH 1/1 toolchain: bump ARC tools to arc-2016.03-rc2

Quoted 23 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Alexey" == Alexey Brodkin <[email protected]> writes:

This change switches ARC tools to RC2 of the most recent arc-2016.03 version.

Essentially once final release is ready version will be bumped again.

ARC GNU tools of version arc-2016.03 bring some quite significant changes like:
* Binutils v2.26+ (upstream commit id 202ac19 with additional ARC patches)
* GCC v4.8.5
* GDB 7.10

More about changes, improvements and fixes could be found here:
https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2016.03-rc2

Also in this change we realign custom Buildroot patches for binutils and gcc for ARC tools. Looks like earlier most of arch-independent patches for binutils and gcc were either unintentionally removed or not even added in patch folders for ARC's binutils and gcc. Now arch-independent patches for binutils-2.26 and gcc-4.8.5 were added in package/{binutils|gcc}/arc-2016.03-rc2 folders.

Quoted 4 lines

Build and run-tested in nSIM for both ARC700 and ARC HS38.

Cc Thomas Petazzoni <[email protected]>

Committed to next, thanks.

Signature · 1 line
Bye, Peter Korsgaard