re PR tree-optimization/27532 (__builtin_object_size does not handle &a + b.)

2006-05-10  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/27532
	* tree-object-size.c (plus_expr_object_size): Fix typo.

From-SVN: r113682
This commit is contained in:
Richard Guenther 2006-05-10 19:41:46 +00:00 committed by Richard Biener
parent 0fc125eaee
commit 5ac4f3bb75
2 changed files with 6 additions and 1 deletions

View File

@ -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-10 Kazu Hirata <kazu@codesourcery.com>
PR target/24949

View File

@ -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)