mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-23 04:10:26 +08:00
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:
parent
4999625e0f
commit
00ffc97dfa
@ -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>
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user