[LLVMbugs] [Bug 19843] New: Declaring an alias to a thread variable turns it into a regular variable

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 23 09:38:32 PDT 2014


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

            Bug ID: 19843
           Summary: Declaring an alias to a thread variable turns it into
                    a regular variable
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

clang will compile

static __thread int a = 42;
extern __thread int b __attribute__((alias("a")));
int *f(void) {
  return &a;
}

to

@a = internal global i32 42, align 4
...

commenting 'b' causes it to produce

@a = internal thread_local global i32 42, align 4

-- 
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/20140523/05a7f346/attachment.html>


More information about the llvm-bugs mailing list