[llvm-bugs] [Bug 30384] New: Host.cpp fails to build using Xcode 4.6.3: use of undeclared identifier '__get_cpuid_max'

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 14 11:33:09 PDT 2016


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

            Bug ID: 30384
           Summary: Host.cpp fails to build using Xcode 4.6.3: use of
                    undeclared identifier '__get_cpuid_max'
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: jeremyhu at apple.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Using clang clang-425.0.28 (based on 3.2svn), Host.cpp fails to compile with:


lib/Support/Host.cpp:751:7: error: use of undeclared identifier
'__get_cpuid_max'
  if(!__get_cpuid_max(0, &Vendor))
      ^
1 error generated.
make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/Host.cpp.o] Error 1

---

Regressed in:

commit e422546afbbfc6c8df94b906120d8a9c9e500b31
Author: Alina Sbirlea <asbirlea at google.com>
Date:   Wed Jul 20 18:15:29 2016 +0000

    [cpu-detection] Cleanup of Host.cpp.

    Summary:
    Mirroring most cleanup changed from compiler-rt/lib/builtins/cpu_model.
    x86 methods are still returning a bool.

    Reviewers: llvm-commits, echristo, craig.topper, sanjoy

    Subscribers: mehdi_amini

    Differential Revision: https://reviews.llvm.org/D22480

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276149
91177308-0d34-0410-b5e6-96231b3b80d8

-- 
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/20160914/924bb26d/attachment-0001.html>


More information about the llvm-bugs mailing list