From: David Holsgrove Subject: [PATCH 7/8] [Patch, microblaze]: Add SIZE_TYPE and PTRDIFF_TYPE to microblaze.h Fixes warnings like; warning: format '%zX' expects argument of type 'size_t', but argument 3 has type 'unsigned int' [-Wformat] Changelog 2013-03-18 David Holsgrove * gcc/config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE. Signed-off-by: David Holsgrove Upstream-Status: Pending diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h index add69e8..367e986 100644 --- a/gcc/config/microblaze/microblaze.h +++ b/gcc/config/microblaze/microblaze.h @@ -228,6 +228,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 \ -- 1.7.5.4