[LLVMbugs] [Bug 824] NEW: fails with -mcmodel=kernel on i386

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Jul 9 13:56:30 PDT 2006


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

           Summary: fails with -mcmodel=kernel on i386
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca


This test in gcc/config/i386/i386.c always triggers an error with
"-mcmodel=kernel" is set, regardless of -m32 or -m64 or -march=x86-64 or
-march=i386:

  if ((TARGET_64BIT == 0) != (ix86_cmodel == CM_32))
    error ("code model %qs not supported in the %s bit mode",
           ix86_cmodel_string, TARGET_64BIT ? "64" : "32");

This is needed to get started in building the linux kernel. Are there any
changes to LLVM needed to support this?



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list