[LLVMbugs] [Bug 832] NEW: register variable âcurrent_stack_pointerâ isnât supported by LLVM backend

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jul 13 19:57:18 PDT 2006


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

           Summary: register variable ‘current_stack_pointer’ isn’t
                    supported by LLVM backend
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca


LLVM can't compile the linux kernel. The current problem boils down to this
one-line testcase:

  register unsigned long current_stack_pointer asm("esp") __attribute__((__used__));

which causes llvm-gcc to fail as follows:

$ llvm-gcc/install/bin/gcc 139.c -c -o 139.o
139.c:1: warning: register variable ‘current_stack_pointer’ isn’t supported by
LLVM backend
139.c:1: warning: register variable ‘current_stack_pointer’ isn’t supported by
LLVM backend
139.c:1: warning: register variable ‘current_stack_pointer’ isn’t supported by
LLVM backend
139.c:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
$ 

I suppose that, long term, support for current_stack_pointer should be added to
the LLVM backend, and worked into llvm-gcc.



------- 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