Fixes warnings like;
authorDavid Holsgrove <david.holsgrove@xilinx.com>
Tue, 11 Feb 2014 01:28:00 +0000 (01:28 +0000)
committerMichael Eager <eager@gcc.gnu.org>
Tue, 11 Feb 2014 01:28:00 +0000 (01:28 +0000)
warning: format '%zX' expects argument of type 'size_t',
but argument 3 has type 'unsigned int' [-Wformat]

2013-03-18  David Holsgrove <david.holsgrove@xilinx.com>

 * gcc/config/microblaze/microblaze.h: Define SIZE_TYPE
   and PTRDIFF_TYPE.

From-SVN: r207678

gcc/ChangeLog
gcc/config/microblaze/microblaze.h

index 4522482..08ef8dd 100644 (file)
@@ -1,3 +1,7 @@
+2014-02-10  David Holsgrove <david.holsgrove@xilinx.com>
+
+       * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
+
 2014-02-10  Richard Henderson <rth@redhat.com>
 
        PR target/59927
index 88c0662..5d69d96 100644 (file)
@@ -212,6 +212,12 @@ extern enum pipeline_type microblaze_pipe;
 #define STRICT_ALIGNMENT        1
 #define PCC_BITFIELD_TYPE_MATTERS 1
 
+#undef SIZE_TYPE
+#define SIZE_TYPE "unsigned int"
+
+#undef PTRDIFF_TYPE
+#define PTRDIFF_TYPE "int"
+
 #define CONSTANT_ALIGNMENT(EXP, ALIGN)                                 \
   ((TREE_CODE (EXP) == STRING_CST  || TREE_CODE (EXP) == CONSTRUCTOR)  \
    && (ALIGN) < BITS_PER_WORD                                          \