[LLVMbugs] [Bug 23621] New: Assertion failed: (!isCommon()), function getOffset, file include/llvm/MC/MCSymbol.h, line 69.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 21 10:56:32 PDT 2015


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: unassignedbugs at nondot.org
          Reporter: dimitry at andric.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150521/9f2b8be8/attachment.html>


More information about the llvm-bugs mailing list