summaryrefslogtreecommitdiff
path: root/gcc/tree-object-size.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-06-15 18:48:00 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-06-15 18:48:00 +0000
commit56b5c9636cbbbd5c46b364ec7bf6aef88d94f469 (patch)
treec2567d96144f56a506baa00e1f8b8846efc146f9 /gcc/tree-object-size.c
parentbb07cfdf42933ab55e9a7d3a2bc407c38122515e (diff)
downloadgcc-56b5c9636cbbbd5c46b364ec7bf6aef88d94f469.tar.gz
* tree-object-size.c (addr_object_size): Fix a pasto in the last
change. * gcc.dg/builtin-object-size-7.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148503 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-object-size.c')
-rw-r--r--gcc/tree-object-size.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-object-size.c b/gcc/tree-object-size.c
index dbd8af482da..ebef69c1ad3 100644
--- a/gcc/tree-object-size.c
+++ b/gcc/tree-object-size.c
@@ -317,7 +317,7 @@ addr_object_size (struct object_size_info *osi, const_tree ptr,
&& tree_int_cst_lt (pt_var_size, bytes2))
bytes2 = size_zero_node;
else
- bytes2 = size_binop (MINUS_EXPR, var_size, bytes2);
+ bytes2 = size_binop (MINUS_EXPR, pt_var_size, bytes2);
bytes = size_binop (MIN_EXPR, bytes, bytes2);
}
}