aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2016-11-03 10:52:52 +0000
committerClaudiu Zissulescu <claziss@gcc.gnu.org>2016-11-03 11:52:52 +0100
commitdb64c64e7d150e43721ad00e725d7cb2ccecc7f8 (patch)
tree552f6b3b2047ee7d420a1e1f67d16fc937a23bfe
parentcb4347e8d53257f108a8c963aad4506334d9d993 (diff)
downloadgcc-db64c64e7d150e43721ad00e725d7cb2ccecc7f8.zip
gcc-db64c64e7d150e43721ad00e725d7cb2ccecc7f8.tar.gz
gcc-db64c64e7d150e43721ad00e725d7cb2ccecc7f8.tar.bz2
[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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/arc/arc.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ae117c8..8f0eb5f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-11-03 Vineet Gupta <vgupta@synopsys.com>
+
+ * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
+ (PTRDIFF_TYPE): Define as int.
+
2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* ccmp.c (expand_ccmp_expr_1): Adjust.
diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h
index b146f3a..dd36127 100644
--- a/gcc/config/arc/arc.h
+++ b/gcc/config/arc/arc.h
@@ -409,8 +409,8 @@ 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 PTRDIFF_TYPE "long int"
+#define SIZE_TYPE "unsigned int"
+#define PTRDIFF_TYPE "int"
#define WCHAR_TYPE "int"
#define WCHAR_TYPE_SIZE 32