[LLVMbugs] [Bug 22441] New: Clang generates high-alignment common-linkage GlobalVariables in MSVC compatibility mode

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 2 22:29:35 PST 2015


http://llvm.org/bugs/show_bug.cgi?id=22441

            Bug ID: 22441
           Summary: Clang generates high-alignment common-linkage
                    GlobalVariables in MSVC compatibility mode
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: michael.m.kuperstein at intel.com
                CC: david.majnemer at gmail.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

For this:

typedef union __declspec(align(64)) foo_t {
    double a[8];
} foo_t;

foo_t bar;

In MSVC-compatibility mode (and for C only) we generate a GlobalVariable with
align 64 and common linkage. This causes a backend failure, since it can not
emit the corresponding global symbol into the PE/COFF object.

-- 
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/20150203/697bf0f6/attachment.html>


More information about the llvm-bugs mailing list