[LLVMbugs] [Bug 15810] New: _xgetbv not declared

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Apr 21 19:32:14 PDT 2013


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

            Bug ID: 15810
           Summary: _xgetbv not declared
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: jeffrey.beu.uz8yz6yl at hotmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Hello,

Within

Function: static bool OSHasAVXSupport()
Line : 122
File: llvm\lib\Support\Host.cpp

the conclusion of the premise 
#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 160040219 
doesn't appear to be true on my computer. It results in the typical not
declared error. This error results in failed builds for many other components -
I think due to the tablegen program not being built.

Given my version of Visual Studio 2010 is 160040219 I simply removed the = in
>= and everything seemed to compile fine thereafter.

It could be possible the error is localised to my Machine however MSDN doesn't
have xgetbv listed under
VS2010(http://msdn.microsoft.com/en-us/library/azcs88h2%28v=vs.100%29.aspx) but
is does for VS2012(http://msdn.microsoft.com/en-us/library/hh977022.aspx). Also
a quick grep of my include directories doesn't find any matches either. This
leads me to have some confidence it is not localised to my machine.

Thanks for the great work.

Jeff Beu

-- 
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/20130422/ab77f4fd/attachment.html>


More information about the llvm-bugs mailing list