[LLVMbugs] [Bug 21716] Feature request: generic __builtin_add_overflow, etc.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Mar 29 15:59:55 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=21716

David Majnemer <david.majnemer at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |---

--- Comment #2 from David Majnemer <david.majnemer at gmail.com> ---
Tobias, this is with regards to variants of __builtin_add_overflow which are
generic over their arguments.

Clang doesn't have this.  Instead it has every variant of unsigned and signed
addition multiplied by the number of different type arguments.  The GCC variant
applied the usual type conversions to find a common type and then performs the
overflow checking.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150329/988749e2/attachment.html>


More information about the llvm-bugs mailing list