Fix bootstrap

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

From-SVN: r153847
This commit is contained in:
Dodji Seketeli 2009-11-03 12:05:39 +00:00 committed by Dodji Seketeli
parent 0ebe71e647
commit c666673bec
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-11-03 Dodji Seketeli <dodji@redhat.com>
* c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
2009-11-03 Dodji Seketeli <dodji@redhat.com>
PR c++/38699

View File

@ -7679,7 +7679,8 @@ 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 %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)));
}
break;