https://llvm.org/bugs/show_bug.cgi?id=23621

            Bug ID: 23621
           Summary: Assertion failed: (!isCommon()), function getOffset,
                    file include/llvm/MC/MCSymbol.h, line 69.
           Product: new-bugs
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

This assertion was reported in FreeBSD bug: https://bugs.freebsd.org/200362

The minimized test case is:

void fn1() { __asm__(".comm FOO, 1"); }
void fn2() { fn1(); }

Compile this with any optimization level > 0, and it will assert:

$ ~/obj/237905-trunk-freebsd11-i386-ninja-rel-1/bin/clang -cc1 -emit-obj -O
comm-func.c
Assertion failed: (!isCommon()), function getOffset, file
/share/dim/src/llvm/trunk/include/llvm/MC/MCSymbol.h, line 69.
Abort trap

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to