diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-03-27 14:44:13 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-03-27 14:44:13 +0000 |
commit | 482c9a1916e024b3e460c386b4017565948d1136 (patch) | |
tree | f9486a425c2bd5401458d9dc389a46697053b4d1 /gcc | |
parent | cb2885996603e6093f85e3504c8fac95694dd009 (diff) | |
download | gcc-482c9a1916e024b3e460c386b4017565948d1136.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145109 138bc75d-0d04-0410-961f-82ee72b054a4
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 9245f6b2b47..f6031be3a95 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/c-common.c b/gcc/c-common.c index 317c1d7db63..e1436a2e7ee 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)); } } |