Fix bootstrap
* c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC. From-SVN: r153847
This commit is contained in:
parent
0ebe71e647
commit
c666673bec
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue