<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - .file directive suppresses debuginfo"
   href="https://bugs.llvm.org/show_bug.cgi?id=38695">38695</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>.file directive suppresses debuginfo
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>MC
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>brian.cain@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The presence of ".file" mutes debug info generated by the assembler as of
r328208 – logic in AsmParser::enabledGenDwarfForAssembly().

~~~~~~~~~


$ cat file_.S 
//.file 1 "file.S"
.file "file_other.S"
.text

f1:
              nop
.size f1, .-f1

$ /local/mnt/workspace/install/gcc-8.1/bin/gcc-8.1 -g -o out.o -c file_.S ;
objdump -t out.o 

out.o:     file format elf64-x86-64

SYMBOL TABLE:
0000000000000000 l    df *ABS*              0000000000000000 file_other.S
0000000000000000 l    d  .text   0000000000000000 .text
0000000000000000 l    d  .data  0000000000000000 .data
0000000000000000 l    d  .bss    0000000000000000 .bss
0000000000000000 l       .text     0000000000000001 f1
0000000000000000 l    d  .debug_info    0000000000000000 .debug_info
0000000000000000 l    d  .debug_abbrev             0000000000000000
.debug_abbrev
0000000000000000 l    d  .debug_line    0000000000000000 .debug_line
0000000000000000 l    d  .debug_aranges           0000000000000000
.debug_aranges


$ /local/mnt/workspace/install/clang_nightly_2018_Jul27/bin/clang  -g -o out.o
-c file_.S ; objdump -t out.o 

out.o:     file format elf64-x86-64

SYMBOL TABLE:
0000000000000000 l    df *ABS*              0000000000000000 file_other.S
0000000000000000 l       .text     0000000000000001 f1</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>