]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fixes warnings like;
authorDavid Holsgrove <david.holsgrove@xilinx.com>
Tue, 11 Feb 2014 01:29:30 +0000 (01:29 +0000)
committerMichael Eager <eager@gcc.gnu.org>
Tue, 11 Feb 2014 01:29:30 +0000 (01:29 +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: r207679

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

index adba0b93037b5444a0585e51c8b59e3d004fd2e5..78e74a723b97c5b1a61c3aac1eb85d035ac7f6bc 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 Biener  <rguenther@suse.de>
 
        Backport from mainline
index bc4d9a128d1de46ca1669c6d7ab897e0f48f7cb7..948520a7000c7f4fbd6476e97148c5e99a26b546 100644 (file)
@@ -213,6 +213,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                                          \