[LLVMbugs] [Bug 11834] New: On Linux the CPUName depended on the host, while on Windows “generic” CPUName is chosen .

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 23 05:47:53 PST 2012


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

             Bug #: 11834
           Summary: On Linux the CPUName depended on the host, while on
                    Windows “generic” CPUName is chosen.
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: marina.yatsina at intel.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 7932
  --> http://llvm.org/bugs/attachment.cgi?id=7932
Fix for the bug

I was investigating a strange behavior I've encountered in X86Subtarget which
caused different CPUName to be chosen for Windows and Linux. On Linux the
chosen CPUName depends on the host, while on Windows “generic” CPUName is
chosen. I mapped the problem to commit 134741 to the LLVM trunk. 

The macros added in that commit are defined only for Linux and they are not
defined for Windows. I've added a fix which I attached to this bug.

commit 134741:
http://www.llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86Subtarget.cpp?r1=134678&r2=134741&diff_format=h

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list