This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Optimization of offset computations


On Tue, Nov 30, 1999 at 10:01:54AM -0500, Richard Kenner wrote:
> Indeed how about making it more general: adding a TREE_NO_OVERFLOW which
> means that the semantics are such that overflow isn't permitted, so we
> can feel free to optimize in such a way that would make things work
> differently in the case of overflow?

This seems reasonable.  (I would use "is undefined" not
"isn't permitted" in any documentation.)

> If we do it this way, it could also be used for expressions where the
> language has overflow undefined (signed operations in C and all in
> Ada, for exmaple).

Should get marked for C pointer arithmetic as well.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]