Commit b56973d1 by Richard Guenther Committed by Richard Biener

c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.

2009-11-03  Richard Guenther  <rguenther@suse.de>

	* c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.

From-SVN: r153846
parent 90bc4002
2009-11-03 Richard Guenther <rguenther@suse.de>
* c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
2009-11-03 Dodji Seketeli <dodji@redhat.com> 2009-11-03 Dodji Seketeli <dodji@redhat.com>
PR c++/38699 PR c++/38699
...@@ -8403,7 +8403,8 @@ fold_offsetof_1 (tree expr, tree stop_ref) ...@@ -8403,7 +8403,8 @@ fold_offsetof_1 (tree expr, tree stop_ref)
HOST_WIDE_INT index = int_cst_value (t); HOST_WIDE_INT index = int_cst_value (t);
if (index > int_cst_value (nelts)) if (index > int_cst_value (nelts))
warning (OPT_Warray_bounds, warning (OPT_Warray_bounds,
"index %ld denotes an offset greater than size of %qT", "index " HOST_WIDE_INT_PRINT_DEC " denotes an offset "
"greater than size of %qT",
index, TREE_TYPE (TREE_OPERAND (expr, 0))); index, TREE_TYPE (TREE_OPERAND (expr, 0)));
} }
break; 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