From: H.J. Lu Date: Fri, 27 Mar 2009 14:44:13 +0000 (+0000) Subject: c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC on return from tree_low_cst. X-Git-Tag: releases/gcc-4.4.0~158 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8847a7f30b74d680db07e7d040203306ef0043f;p=thirdparty%2Fgcc.git c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC on return from tree_low_cst. 2009-03-27 H.J. Lu * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC on return from tree_low_cst. From-SVN: r145109 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9245f6b2b473..f6031be3a95f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-03-27 H.J. Lu + + * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC + on return from tree_low_cst. + 2009-03-27 Andrew Pinski PR c++/36799 diff --git a/gcc/c-common.c b/gcc/c-common.c index 317c1d7db638..e1436a2e7ee3 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -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)); } }