http://llvm.org/bugs/show_bug.cgi?id=11247
Summary: as complains about "junk at end of line" when run from
llvm-ld
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: compile-fail
Severity: normal
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=7539)
--> (http://llvm.org/bugs/attachment.cgi?id=7539)
"Hello, world" -- although any program should trigger the same bug
Something seems to be screwed up with the way the x86_64 code generator is
mapping metadata to assembly directives. The following works fine:
$ clang -emit-llvm -S -o hello.ll hello.c
$ llvm-as hello.ll
$ llvm-ld -native -o hello hello.bc
However, when I compile with -g, badness happens:
$ clang -g -emit-llvm -S -o hello.ll hello.c
$ llvm-as hello.ll
$ llvm-ld -native -o hello hello.bc
hello.s: Assembler messages:
hello.s:2: Error: junk at end of line, first unrecognized character is `"'
llvm-ld:
$ head hello.s
.file "hello.bc"
.file 1 "/tmp" "hello.c"
.section .debug_info,"",@progbits
.Lsection_info:
.section .debug_abbrev,"",@progbits
.Lsection_abbrev:
.section .debug_aranges,"",@progbits
.section .debug_macinfo,"",@progbits
.section .debug_line,"",@progbits
.Lsection_line:
This is with the trunk build from a few minutes ago:
$ svn info
Path: .
URL: http://llvm.org/svn/llvm-project/llvm/trunk
Repository Root: http://llvm.org/svn/llvm-project
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
Revision: 143148
Node Kind: directory
Schedule: normal
Last Changed Author: ddunbar
Last Changed Rev: 143148
Last Changed Date: 2011-10-27 15:25:09 -0600 (Thu, 27 Oct 2011)
-- Scott
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs