[LLVMbugs] [Bug 9245] New: error in backend: expected assembly-time absolute expression
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Feb 18 00:39:53 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=9245
Summary: error in backend: expected assembly-time absolute
expression
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicholas at mxc.ca
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6176)
--> (http://llvm.org/bugs/attachment.cgi?id=6176)
testcase
The linux kernel (2.6.38-rc5) doesn't build because of a problem in llvm-mc and
the BUG() macro which is used throughout.
Please see the C testcase attached. It triggers easily:
$ clang y.c -c -o y.o
fatal error: error in backend: expected assembly-time absolute expression
while having clang emit a .s file and then using GAS to assemble it works fine.
However:
$ clang y.c -S -o y.s
$ llvm-mc -assemble y.s -filetype=obj
LLVM ERROR: expected assembly-time absolute expression
--
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