[Bug c/59708] New: clang-compatible checked arithmetic builtins
josh at joshtriplett dot org
gcc-bugzilla@gcc.gnu.org
Tue Jan 7 06:14:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708
Bug ID: 59708
Summary: clang-compatible checked arithmetic builtins
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: josh at joshtriplett dot org
It would be nice to have a set of builtins for arithmetic operations that check
for overflow, ideally compatible with those available in clang; see
http://clang.llvm.org/docs/LanguageExtensions.html#checked-arithmetic-builtins
for details.
Such builtins could take advantage of native instructions that set overflow
flags, for instance.
More information about the Gcc-bugs
mailing list