some undefined behaviors in llvm/clang

Hi folks,

Below is a short list of integer undefined behaviors executed by Clang
when compiling the LLVM test suite. They seem pretty self explanatory,
but let me know if not, if you cannot reproduce any of them, or if it
would be better for me to file bugzillas on them. This is on x64 Linux,
using r108984.

Thanks,

John

Hi John,

Below is a short list of integer undefined behaviors executed by Clang
when compiling the LLVM test suite. They seem pretty self explanatory,
but let me know if not, if you cannot reproduce any of them, or if it
would be better for me to file bugzillas on them. This is on x64 Linux,
using r108984.

how did you obtain this interesting info?

Thanks,

Duncan.

See also: http://blog.regehr.org/archives/226

-Chris

My student Peng Li has a hacked clang that emits checks for lots of bad integer behaviors. The code still has rough edges but we'll contribute it soon.

John