<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Integrated assembler outputs not-printable characters for private labels"
   href="http://llvm.org/bugs/show_bug.cgi?id=18928">18928</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Integrated assembler outputs not-printable characters for private labels
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>llc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dpeixott@codeaurora.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When printing an assembly file with private labels the integrated assembler
will output non-printable characters for the generated private label names.

$ cat tt.s 
.syntax unified
foo:
  b 1f
1:
  add r0, r0, r0

$ llvm-mc -triple arm-none-linux < tt.s 
        .text
foo:
        b       ".L11"
".L11":
        add     r0, r0, r0

$ llvm-mc -triple arm-none-linux < tt.s | hexdump -C
00000000  09 2e 74 65 78 74 0a 66  6f 6f 3a 0a 09 62 09 22  |..text.foo:..b."|
00000010  2e 4c 31 02 31 22 0a 22  2e 4c 31 02 31 22 3a 0a  |.L1.1".".L1.1":.|
00000020  09 61 64 64 09 72 30 2c  20 72 30 2c 20 72 30 0a  |.add.r0, r0, r0.|
00000030  0a                                                |.|
00000031

The hexdump output shows that the generated label name "L11" contains the
non-printable character 0x02 between the two 1's in the label name.

We should not output non-printable characters when outputting to an assembly
text file.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>