Skip to content

clang validates extended assembly constraints even when -fno-integrated-as is set #3

@nickdesaulniers

Description

@nickdesaulniers

upstream bug: https://llvm.org/pr33587

TL;DR

Clang will validate extended inline assembly, even if the code gets compiled out. This conflicts with some macros that involve switching on the sizeof a type.

The validity check is done early in the front-end partly because the backend (as it stands today) cannot handle inline-asm instructions that have constraints that are not valid for the input or output operands

Metadata

Metadata

Assignees

No one assigned

    Labels

    [ARCH] x86This bug impacts ARCH=i386[BUG] llvmA bug that should be fixed in upstream LLVMknown differenceknown difference between GNU and LLVM; maybe unresolvablewontfixThis will not be worked on

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions