[LLVMbugs] [Bug 4847] New: [2.6] clang/llc prerelease: wrong assembly generated with -mcmodel=kernel
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Sep 1 00:48:08 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4847
Summary: [2.6] clang/llc prerelease: wrong assembly generated
with -mcmodel=kernel
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
clang -MD -MF arch/x86/kernel/.traps.o.d -nostdinc -isystem
/usr/local/bin/../lib/^Cang/1.0/include -Iinclude
-I/home/edwin/builds/linux-2.6/arch/x86/include -include
include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Wno-format-security
-fno-delete-null-pointer-checks -Wno-unused-value -O2 -m64 -march=core2
-mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args
-DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-Wframe-larger-than=2048 -fno-stack-protector -fno-omit-frame-pointer
-fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign
-fno-strict-overflow -fno-dwarf2-cfi-asm -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(traps)" -D"KBUILD_MODNAME=KBUILD_STR(traps)" -c
-emit-llvm arch/x86/kernel/traps.c
/tmp/cc-O9QBCM.s:1717: Error: suffix or operands invalid for `movq'
If I remove -mcmodel=kernel, then there is no error.
To reproduce, this fails:
$ clang -O1 -mcmodel=kernel -c traps.i
This works:
$ clang -O1 -c traps.i
--
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