diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2009-03-27 15:38:25 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2009-03-27 08:38:25 -0700 |
commit | 0f7464f40330f3c81d57aa433f5285fe9f00abd8 (patch) | |
tree | 86c4e87b7ec309a9d09678c94b0f09db73f0679d /gcc | |
parent | a8847a7f30b74d680db07e7d040203306ef0043f (diff) | |
download | gcc-0f7464f40330f3c81d57aa433f5285fe9f00abd8.zip gcc-0f7464f40330f3c81d57aa433f5285fe9f00abd8.tar.gz gcc-0f7464f40330f3c81d57aa433f5285fe9f00abd8.tar.bz2 |
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 %wd on return from
tree_low_cst.
From-SVN: r145112
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-common.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f6031be..45094b2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/c-common.c b/gcc/c-common.c index e1436a2..820d859 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 %<" 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)); } } |