Skip to content

Clang-cl generates a call to an undefined symbol __udivti3 #25679

Open
@llvmbot

Description

@llvmbot
Bugzilla Link 25305
Version trunk
OS Windows NT
Blocks #48113
Attachments Build with: clang-cl main.c
Reporter LLVM Bugzilla Contributor
CC @amccarth-google,@asl,@compnerd,@topperc,@RKSimon,@nickdesaulniers,@rengolin,@rnk,@stbergmann,@yurybura

Extended Description

While attempting to build a (very) old version of libtomcrypt with Clang-cl (64-bit r250698), it appears a call to an undefined function is being generated:

main-ff9827.obj : error LNK2019: unresolved external symbol __udivti3 referenced in function main

I've attached a minimal reproduce case. This appears to be due to the "attribute((mode(TI)))" on the typedef.

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillaclang:codegenIR generation bugs: mangling, exceptions, etc.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions