[LLVMbugs] [Bug 11247] New: as complains about "junk at end of line" when run from llvm-ld

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 27 14:36:06 PDT 2011


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: unassignedbugs at nondot.org
        ReportedBy: scott+llvm+bugzilla at pakin.org
                CC: llvmbugs at cs.uiuc.edu


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,"", at progbits
  .Lsection_info:
      .section        .debug_abbrev,"", at progbits
  .Lsection_abbrev:
      .section        .debug_aranges,"", at progbits
      .section        .debug_macinfo,"", at progbits
      .section        .debug_line,"", at 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.



More information about the llvm-bugs mailing list