This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: detecting integer overflows


On Tue, 2012-10-30 at 01:09 -0600, Michael Buro wrote:
> Recently I came across http://embed.cs.utah.edu/ioc/ which describes a
> sophisticated integer overflow checker for Clang. The reported results
> obtained by analyzing C/C++ open source projects make a convincing
> case for implementing such functionality in gcc/g++ as well. Is
> somebody looking into this?

Not sure, but we've still got a half-broken -ftrapv :)
E.g. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35412
Or like on SH, some of the arithmetic ops get expanded to libcalls and
some (afair SImode plus and minus) end up as normal ops.

Cheers,
Oleg




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