<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 - clang with -gdwarf-2 produces seemingly spurious warnings on assembly file"
   href="https://bugs.llvm.org/show_bug.cgi?id=37657">37657</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang with -gdwarf-2 produces seemingly spurious warnings on assembly file
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>DebugInfo
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>waltl@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre><span class="quote">> cat sec.S</span >
.section ".foo", "ax", @progbits
<span class="quote">> clang -c -gdwarf-2 sec.S</span >
sec.S:1:1: warning: DWARF2 only supports one section per compilation unit
.section ".foo", "ax", @progbits
^
<span class="quote">> clang --target=sparc-myriad-rtems-elf -mcpu=ma2450 -integrated-as -g -c sec.S</span >
/usr/local/google/home/waltl/sec.S:1:1: warning: DWARF2 only supports one
section per compilation unit
.section ".foo", "ax", @progbits
^

It's not clear why the assembler is complaining even though there is only one
section in the input file.  According to <a href="https://reviews.llvm.org/D6379">https://reviews.llvm.org/D6379</a>, at
least some of these warnings are spurious.

Myriad uses dwarf-2, so it gets all these warnings, which we are working around
by passing -g0 for assembly files.</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>