2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Mar 2009 15:38:25 +0000 (15:38 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Mar 2009 15:38:25 +0000 (15:38 +0000)
* c-common.c (pointer_int_sum): Use %wd on return from
tree_low_cst.

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

gcc/ChangeLog
gcc/c-common.c

index f6031be..45094b2 100644 (file)
@@ -1,5 +1,10 @@
 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
 
+       * c-common.c (pointer_int_sum): Use %wd on return from
+       tree_low_cst.
+
+2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
+
        * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
        on return from tree_low_cst.
 
index e1436a2..820d859 100644 (file)
@@ -3315,8 +3315,8 @@ pointer_int_sum (location_t location, enum tree_code resultcode,
 
          offset = offset + tree_low_cst (intop, 0);
          if (offset < 0 || offset > max)
-           warning_at (location, 0, "offset %<" HOST_WIDE_INT_PRINT_DEC
-                       "%> outside bounds of constant string",
+           warning_at (location, 0,
+                       "offset %<%wd%> outside bounds of constant string",
                        tree_low_cst (intop, 0));
        }
     }