[LLVMbugs] [Bug 9840] New: assert with Greedy Register Allocator in linux

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 4 05:59:10 PDT 2011


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

           Summary: assert with Greedy Register Allocator in linux
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: pageexec at freemail.hu
                CC: llvmbugs at cs.uiuc.edu, pageexec at freemail.hu
            Blocks: 4068


while compiling linux-2.6.38.4 with clang r130836 i get this assert:

  CC      arch/x86/lib/memcpy_32.o
clang: /llvm/llvm/lib/CodeGen/InlineSpiller.cpp:988: virtual
void<unnamed>::InlineSpiller::spill(llvm::LiveRangeEdit&): Assertion
`edit.getParent().isSpillable() && "Attempting to spill already spilled
value."' failed.
0  libLLVM-3.0svn.so 0xb2580d48
Stack dump:
0.      Program arguments: /llvm/build.i386/image/bin/clang -cc1 -triple
i386-pc-linux-gnu -emit-obj -disable-free -main-file-name memcpy_32.c
-mrelocation-model static -mregparm 3 -mdisable-fp-elim -relaxed-aliasing
-masm-verbose -mconstructor-aliases -no-implicit-float -target-cpu i686
-target-feature -sse -target-feature -sse -target-feature -mmx -target-feature
-sse2 -target-feature -3dnow -target-linker-version 2.21
-momit-leaf-frame-pointer -nostdinc -resource-dir
/llvm/build.i386/image/bin/../lib/clang/3.0 -dependency-file
arch/x86/lib/.memcpy_32.o.d -MT arch/x86/lib/memcpy_32.o -sys-header-deps
-isystem /usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include -include
include/generated/autoconf.h -D __KERNEL__ -D CONFIG_AS_CFI=1 -D
CONFIG_AS_CFI_SIGNAL_FRAME=1 -D CONFIG_AS_CFI_SECTIONS=1 -D KBUILD_STR(s)=#s -D
KBUILD_BASENAME=KBUILD_STR(memcpy_32) -D KBUILD_MODNAME=KBUILD_STR(memcpy_32)
-I arch/x86/include -I include -Os -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -W -Wno-empty-body -Wno-unused-parameter
-Wno-missing-field-initializers -Wno-unused-value -Wno-format
-Wno-unknown-warning-option -Werror-implicit-function-declaration
-Wno-format-security -Wno-sign-compare -Wdeclaration-after-statement
-Wno-pointer-sign -ferror-limit 19 -fmessage-length 277 -ffreestanding -pg
-fwrapv -fgnu-runtime -fno-common -fdiagnostics-show-option -fcolor-diagnostics
-o arch/x86/lib/memcpy_32.o -x c arch/x86/lib/memcpy_32.c
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'arch/x86/lib/memcpy_32.c'.
4.      Running pass 'Greedy Register Allocator' on function '@memmove'
clang: error: unable to execute command: Aborted

the original source code:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.38.y.git;a=blob_plain;f=arch/x86/lib/memcpy_32.c

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