Commit 00ffc97d by Jakub Jelinek

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
parent 4999625e
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>
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment