[ARC] Define SIZE_TYPE and PTRDIFF_TYPE correctly.
authorVineet Gupta <vgupta@synopsys.com>
Thu, 3 Nov 2016 10:52:52 +0000 (10:52 +0000)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Thu, 3 Nov 2016 10:52:52 +0000 (11:52 +0100)
commitdb64c64e7d150e43721ad00e725d7cb2ccecc7f8
tree552f6b3b2047ee7d420a1e1f67d16fc937a23bfe
parentcb4347e8d53257f108a8c963aad4506334d9d993
[ARC] Define SIZE_TYPE and PTRDIFF_TYPE correctly.

This silences tons of -Wformat= warnings when building ARC Linux kernel
with gcc 6.x (and restores the ARC gcc 4.8.x behaviour) which had
similar fix.

gcc/
2016-11-03  Vineet Gupta  <vgupta@synopsys.com>

* config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
(PTRDIFF_TYPE): Define as int.

From-SVN: r241812
gcc/ChangeLog
gcc/config/arc/arc.h