]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC on return from tree_low_cst.
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 27 Mar 2009 14:44:13 +0000 (14:44 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 27 Mar 2009 14:44:13 +0000 (07:44 -0700)
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.

From-SVN: r145109

gcc/ChangeLog
gcc/c-common.c

index 9245f6b2b47339286314c022939ec1827815ab75..f6031be3a95fba91eb068613fb85376b3fab5abf 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
 
        PR c++/36799
index 317c1d7db6386738d35c668e6bca56d3d078b7c7..e1436a2e7ee35751c65f24eb45a3b20fdf205791 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 %<%ld%> outside bounds of constant string",
+           warning_at (location, 0, "offset %<" HOST_WIDE_INT_PRINT_DEC
+                       "%> outside bounds of constant string",
                        tree_low_cst (intop, 0));
        }
     }