diff options
author | Richard Guenther <rguenther@suse.de> | 2006-05-10 19:41:46 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2006-05-10 19:41:46 +0000 |
commit | 5ac4f3bb75a7e96a6180eabe1fd274a7318e2e08 (patch) | |
tree | fd15203767b0a7d68f078301e3193907f9381d45 /gcc/tree-object-size.c | |
parent | 0fc125eaee86d038abe5edfb479dc830089a69f4 (diff) | |
download | gcc-5ac4f3bb75a7e96a6180eabe1fd274a7318e2e08.zip gcc-5ac4f3bb75a7e96a6180eabe1fd274a7318e2e08.tar.gz gcc-5ac4f3bb75a7e96a6180eabe1fd274a7318e2e08.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-object-size.c')
-rw-r--r-- | gcc/tree-object-size.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-object-size.c b/gcc/tree-object-size.c index 9c510bb..7a3d775 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) |