re PR tree-optimization/27532 (__builtin_object_size does not handle &a + b.)
authorRichard Guenther <rguenther@suse.de>
Wed, 10 May 2006 19:41:46 +0000 (19:41 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 10 May 2006 19:41:46 +0000 (19:41 +0000)
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

gcc/ChangeLog
gcc/tree-object-size.c

index e598418ae22e707d69f3c33caf79f32b5dee2bcc..1126c490ab3c3a905bc41dc5a4d0dfc26e85daa6 100644 (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
index 9c510bbc00f091fad9e2a0f5538df7f711b45bdb..7a3d77571864e837719b94b4b4635012e6f6b401 100644 (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)