On 2024-09-14 12:10, Andrew Pinski wrote:
+ /* Note that this is the *opposite* of what we usually do with sizes, + because the maximum offset estimate here will give us a minimum size + estimate and vice versa. */ + enum tree_code code = (object_size_type & OST_MINIMUM + ? MAX_EXPR : MIN_EXPR); + + off = size_binop (code, off, rhs);I suspect this won't work for integer constants which have the what would be the sign bit set.
Oops, yes, I'll send v2. Thanks, Sid