OSDN Git Service

* c-common.c (fold_offsetof_1): Use %wd instead of
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Nov 2009 07:26:30 +0000 (07:26 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Nov 2009 07:26:30 +0000 (07:26 +0000)
HOST_WIDE_INT_PRINT_DEC.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153887 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-common.c

index c195eae..6f82e1e 100644 (file)
@@ -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
 
        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>
 
index 50f316d..a9ca960 100644 (file)
@@ -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;