[Buildroot] [PATCH v2] ARC: gcc - Fix SIZE_TYPE to be "unsigned int" instead of "long unsigned int"
Alexey.Brodkin at synopsys.com
Mon Sep 15 14:49:53 UTC 2014
This makes size_t to be "unsigned" ssize_t which makes happy compiler on data
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.
Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>
Cc: Anton Kolesov <akolesov at synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Cc: Peter Korsgaard <peter at korsgaard.com>
Compared to v1 comment is added in the patch itself with more info on its
origin and reasoning.
.../arc-2014.08/200-size_type_unsigned_int.patch | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100644 package/gcc/arc-2014.08/200-size_type_unsigned_int.patch
diff --git a/package/gcc/arc-2014.08/200-size_type_unsigned_int.patch b/package/gcc/arc-2014.08/200-size_type_unsigned_int.patch
new file mode 100644
@@ -0,0 +1,22 @@
+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
+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.
+@@ -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
More information about the buildroot