c-common.c (fold_offsetof_1): Use %wd instead of HOST_WIDE_INT_PRINT_DEC.

* c-common.c (fold_offsetof_1): Use %wd instead of
	HOST_WIDE_INT_PRINT_DEC.

From-SVN: r153887
This commit is contained in:
Jakub Jelinek 2009-11-04 08:26:30 +01:00
parent 4999625e0f
commit 00ffc97dfa
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2009-11-04 Jakub Jelinek <jakub@redhat.com>
* c-common.c (fold_offsetof_1): Use %wd instead of
HOST_WIDE_INT_PRINT_DEC.
2009-11-04 Maciej W. Rozycki <macro@linux-mips.org>
* 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 <ubizjak@gmail.com>

View File

@ -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;