[Buildroot] [PATCH] ARC: gcc - Redefine PTRDIFF_TYPE from "long int" to "int"
thomas.petazzoni at free-electrons.com
Tue Sep 23 20:17:12 UTC 2014
Dear Alexey Brodkin,
On Thu, 18 Sep 2014 15:19:12 +0400, Alexey Brodkin wrote:
> 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.
> 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>
> package/gcc/arc-2014.08/300-ptrdiff_type_int.patch | 26 ++++++++++++++++++++++
> 1 file changed, 26 insertions(+)
> create mode 100644 package/gcc/arc-2014.08/300-ptrdiff_type_int.patch
I've applied your patch. However, I had to tweak a bit the commit log,
especially the title which wasn't matching the standard titles
we use in Buildroot.
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
More information about the buildroot