Bug 244169 - [clang] __builtin_mul_overflow() with 64-bit values requires __muloti4 which is missing on 32-bit architectures
Summary: [clang] __builtin_mul_overflow() with 64-bit values requires __muloti4 which ...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-toolchain mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-16 16:53 UTC by Jan Beich
Modified: 2020-02-19 19:37 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer 2020-02-16 16:53:28 UTC
$ 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;
}