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.