[llvm-bugs] [Bug 35921] New: Attribute Target MultiVersioning differences with gcc

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jan 11 17:42:04 PST 2018


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

            Bug ID: 35921
           Summary: Attribute Target MultiVersioning differences with gcc
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: erich.keane at intel.com, llvm-bugs at lists.llvm.org

Given

int __attribute__((target("sse4.2"))) foo_overload(int);
int __attribute__((target("default"))) foo_overload(int);

int bar() {
  return  foo_overload(1);
}


gcc will put the resolver in a comdat:

        .section       
.text._Z12foo_overloadi.resolver,"axG", at progbits,_Z12foo_overloadi.resolver,comdat

clang will not.

Neither gcc nor clang will use hidden visibility if -fvisibility=hidden is
passed, but it is not clear why they don't.

-- 
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/20180112/82077cff/attachment.html>


More information about the llvm-bugs mailing list