[Bug 244169] [clang] __builtin_mul_overflow() with 64-bit values requires __muloti4 which is missing on 32-bit architectures

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Feb 16 16:53:28 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244169

            Bug ID: 244169
           Summary: [clang] __builtin_mul_overflow() with 64-bit values
                    requires __muloti4 which is missing on 32-bit
                    architectures
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: toolchain at FreeBSD.org
          Reporter: jbeich at FreeBSD.org

$ cc a.c
/tmp/a-667572.o: In function `main':
a.c:(.text+0x50): undefined reference to `__muloti4'
cc: error: linker command failed with exit code 1 (use -v to see invocation)

$ cat a.c
#include <stdint.h>

int main(void)
{
        uint64_t i;
        __builtin_mul_overflow(1, 10, &i);
        return 0;
}

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-toolchain mailing list