Skip to content

undefined reference to __mulodi4 #14841

Closed as not planned
Closed as not planned
@llvmbot

Description

@llvmbot
Bugzilla Link 14469
Version 3.1
OS Linux
Blocks llvm/llvm-bugzilla-archive#24345
Attachments test
Reporter LLVM Bugzilla Contributor
CC @apolukhin,@echristo,@RKSimon,@slacka,@nikic,@seanm

Extended Description

Multiplication of two long long int translates into the code that requires to call missing function __mulodi4 if compiled with -ftrapv -m32 (on 64 bit linux)

Please compile the attached code with clang -ftrapv -m32 (at least on a 64 bit machine).

Removing either -ftrapv or -m32 will produce fine executable.

ps:
clang version 3.1 (branches/release_31)
Target: x86_64-unknown-linux-gnu

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions