aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2006-05-29 09:54:11 +0000
committerJakub Jelinek <jakub@redhat.com>2006-05-29 09:54:11 +0000
commit271cb64927be7c8dc662d29c29d53f2204414268 (patch)
tree6b45168281c51fa44387ce5f3dd3f0d4141ad5fa
parenta41c0a6dbcbe826e65f1255272b38a3907fb7111 (diff)
2006-05-10 Richard Guenther <rguenther@suse.de>
PR tree-optimization/27532 * tree-object-size.c (plus_expr_object_size): Fix typo. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/redhat/gcc-4_1-branch@114193 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-object-size.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 429613f0e61..45c31d54aae 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-10 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/27532
+ * tree-object-size.c (plus_expr_object_size): Fix typo.
+
2006-05-23 Alexandre Oliva <aoliva@redhat.com>
* simplify-rtx.c (simplify_subreg): Adjust REG_OFFSET for
diff --git a/gcc/tree-object-size.c b/gcc/tree-object-size.c
index 178dc98d627..fc25f248259 100644
--- a/gcc/tree-object-size.c
+++ b/gcc/tree-object-size.c
@@ -595,7 +595,7 @@ plus_expr_object_size (struct object_size_info *osi, tree var, tree value)
{
unsigned HOST_WIDE_INT off = tree_low_cst (op1, 1);
- bytes = compute_builtin_object_size (value, object_size_type);
+ bytes = compute_builtin_object_size (op0, object_size_type);
if (off > offset_limit)
bytes = unknown[object_size_type];
else if (off > bytes)