Commit 41e1cb18 authored by Alexey Brodkin's avatar Alexey Brodkin Committed by Thomas Petazzoni
Browse files

ARC: bump tools to 2014.12 release

Now when new shiny tools are released by Synopsys we're ready for
version update in Buildroot again.

More details about arc-2014.12 release are available here:
https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2014.12



Following patches were removed from GCC since they are a part of release
now:
 * 200-size_type_unsigned_int.patch
 * 300-ptrdiff_type_int.patch
 * 400-call-arc_hazard-before-branch-shortening.patch
 * 401-fix-length-attribute-for-casesi_load-pattern.patch
 * 402-fix-length-of-instructions-that-are-in-delay-slot-and-needs-to-be-predicated.patch
 * 403-update-casesi_compact_jump-instruction-length.patch

But since arc-2014.12 tools are still based on GCC 4.8 following patches
ar still relevant so moving to the new folder to match ARC gcc bump.
 * 100-libstdcxx-uclibc-c99.patch
 * 910-gcc-poison-system-directories.patch

Binutils are still based on 2.23 so following patch still makes sense:
 * 600-poison-system-directories.patch

Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>

Cc: Anton Kolesov <akolesov@synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 61d9bf5a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ endchoice
config BR2_BINUTILS_VERSION
	string
	default "2.18-avr32-1.0.1" if BR2_BINUTILS_VERSION_2_18_AVR32_1_0_1
	default "arc-2014.08"	if BR2_arc
	default "arc-2014.12"	if BR2_arc
	default "2.22"		if BR2_BINUTILS_VERSION_2_22
	default "2.23.2"	if BR2_BINUTILS_VERSION_2_23_2
	default "2.24"		if BR2_BINUTILS_VERSION_2_24
+1 −1
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ config BR2_GCC_VERSION
	default "4.7.4"     if BR2_GCC_VERSION_4_7_X
	default "4.8.4"     if BR2_GCC_VERSION_4_8_X
	default "4.9.2"     if BR2_GCC_VERSION_4_9_X
	default "arc-2014.08" if BR2_GCC_VERSION_4_8_ARC
	default "arc-2014.12" if BR2_GCC_VERSION_4_8_ARC

config BR2_EXTRA_GCC_CONFIG_OPTIONS
	string "Additional gcc options"
+0 −24
Original line number Diff line number Diff line
Fixes SIZE_TYPE to be "unsigned int" instead of "long unsigned int".

This makes size_t to be "unsigned" ssize_t which makes happy compiler on data
type checks.

Fix is taken from current development branch of GCC for ARC and will be a
part of the next release of ARC tools, so at that point patch should be dropped.

https://github.com/foss-for-synopsys-dwc-arc-processors/gcc/commit/249f040299402647525c3f15b79d319fa7acddd3

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
---

--- a/gcc/config/arc/arc.h
+++ b/gcc/config/arc/arc.h
@@ -487,7 +487,7 @@ if (GET_MODE_CLASS (MODE) == MODE_INT		\
 /* Define this as 1 if `char' should by default be signed; else as 0.  */
 #define DEFAULT_SIGNED_CHAR 0
 
-#define SIZE_TYPE "long unsigned int"
+#define SIZE_TYPE "unsigned int"
 #define PTRDIFF_TYPE "long int"
 #define WCHAR_TYPE "int"
 #define WCHAR_TYPE_SIZE 32
+0 −26
Original line number Diff line number Diff line
Redefine PTRDIFF_TYPE

Change of SIZE_TYPE from "long unsigned int" to "unsigned int" introduced
regression due to existing PTRDIFF_TYPE.

Now to fix regression convert PTRDIFF_TYPE to simple "int".

Fix is taken from current development branch of GCC for ARC and will be a
part of the next release of ARC tools, so at that point patch should be dropped.

https://github.com/foss-for-synopsys-dwc-arc-processors/gcc/commit/846e92167aa4f486259c9ff44bb4e6cce6097fa4

Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com>
---

--- a/gcc/config/arc/arc.h
+++ b/gcc/config/arc/arc.h
@@ -488,7 +488,7 @@ if (GET_MODE_CLASS (MODE) == MODE_INT		\
 #define DEFAULT_SIGNED_CHAR 0
 
 #define SIZE_TYPE "unsigned int"
-#define PTRDIFF_TYPE "long int"
+#define PTRDIFF_TYPE "int"
 #define WCHAR_TYPE "int"
 #define WCHAR_TYPE_SIZE 32
 
Loading