<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 - [llvm-profdata] nodeduplicate has been violated!"
   href="https://bugs.llvm.org/show_bug.cgi?id=51394">51394</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[llvm-profdata] nodeduplicate has been violated!
          </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>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Miscellaneous Instrumentation passes
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>Wolfgang_Pieb@playstation.sony.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>After
<a href="https://github.com/llvm/llvm-project/commit/c24b7a16b1001a8978335183d958fd0aa482c1d9">https://github.com/llvm/llvm-project/commit/c24b7a16b1001a8978335183d958fd0aa482c1d9</a>
we get the error in the subject line with -flto -fprofile-instr-generate:

1.cpp:
__attribute__((weak)) void f(){};

2.cpp:
int main(){}


<span class="quote">> clang -flto -fprofile-instr-generate -c 1.cpp -o 1.o
> clang -flto -fprofile-instr-generate -c 2.cpp -o 2.o
> llvm-link -o a.o 1.o 1.o 2.o</span >

error: Linking COMDATs named '__profc__Z1fv': nodeduplicate has been violated!

This is a reduction from a large application (game) from one of our licensees.
Not using LTO works fine.</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>