------- Comment #2 from rguenth at gcc dot gnu dot org 2006-05-10 14:48 ------- Looks more like a typo in tree-object-size.c:plus_expr_object_size
Index: tree-object-size.c =================================================================== *** tree-object-size.c (revision 113669) --- tree-object-size.c (working copy) *************** plus_expr_object_size (struct object_siz *** 595,601 **** { unsigned HOST_WIDE_INT off = tree_low_cst (op1, 1); ! bytes = compute_builtin_object_size (value, object_size_type); if (off > offset_limit) bytes = unknown[object_size_type]; else if (off > bytes) --- 595,601 ---- { unsigned HOST_WIDE_INT off = tree_low_cst (op1, 1); ! bytes = compute_builtin_object_size (op0, object_size_type); if (off > offset_limit) bytes = unknown[object_size_type]; else if (off > bytes) mine. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC|dnovillo at redhat dot com | AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot |dot org |org Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2006-05-10 14:48:34 date| | Summary|CCP produces non-gimple |__builtin_object_size does |statements |not handle &a + b. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27532