diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c195eae3557c..6f82e1e39ed5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-11-04 Jakub Jelinek + + * c-common.c (fold_offsetof_1): Use %wd instead of + HOST_WIDE_INT_PRINT_DEC. + 2009-11-04 Maciej W. Rozycki * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Don't define @@ -134,7 +139,7 @@ PR c++/38699 * c-common.c (fold_offsetof_1): Issue errors when the member designator - of the offsetoff expression is not legitimate. + of the offsetof expression is not legitimate. 2009-11-03 Uros Bizjak diff --git a/gcc/c-common.c b/gcc/c-common.c index 50f316df72f8..a9ca9608db18 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -8403,8 +8403,7 @@ fold_offsetof_1 (tree expr, tree stop_ref) HOST_WIDE_INT index = int_cst_value (t); if (index > int_cst_value (nelts)) warning (OPT_Warray_bounds, - "index " HOST_WIDE_INT_PRINT_DEC " denotes an offset " - "greater than size of %qT", + "index %wd denotes an offset greater than size of %qT", index, TREE_TYPE (TREE_OPERAND (expr, 0))); } break;