This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Document arithmetic overflow semantics
- From: dewar at gnat dot com (Robert Dewar)
- To: dewar at gnat dot com, sabre at nondot dot org
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Thu, 13 Feb 2003 23:45:37 -0500 (EST)
- Subject: Re: [PATCH] Document arithmetic overflow semantics
> That's not really true... a straight-forward way to "fix" this problem is
> to simply initialize all variables to, for example, zero. In almost all
> cases, optimization would DCE this initialization anyway, so there is
> really very little cost. The only major cases I can think of that the
> initialization would not be killed would be something like this:
Hmm, I am quite dubious about the claim that this would have zero overhead
in practice, but if true, then I agree, it should be done.