[cfe-dev] [RFC] Introduce overflow builtins
zarzycki at apple.com
Fri Mar 30 15:32:07 CDT 2012
Thanks for the update! Have you tried inferring the sign of T* in addition to the size of T* in the API? That would let you simplify this:
Also, have you verified that -Wconversion does the right thing and warns when the sign of the parameters are inconsistent with each other (or the API if you do not make the above simplification)?
On Mar 30, 2012, at 12:24 PM, Xi Wang <xi.wang at gmail.com> wrote:
> I updated the overflow builtins to the form
> __builtin_*_with_overflow(T*, T, T)
> as suggested by Chris and Dave.
> The patch is still available at
> - xi
More information about the cfe-dev