<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 --- - One definition rule violation in lib/Analysis"
   href="http://llvm.org/bugs/show_bug.cgi?id=20915">20915</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>One definition rule violation in lib/Analysis
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>octoploid@yandex.com
          </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>gcc trunk has a new warning -Wodr that reports odr violations when 
building with -flto. It shows the following issue:

[278/983] Linking CXX shared library lib/libLLVMAnalysis.so
/var/tmp/llvm-project/llvm/lib/Analysis/InstructionSimplify.cpp:44:0: warning:
type ‘struct Query’ violates one definition rule [-Wodr]
 struct Query {
 ^
/var/tmp/llvm-project/llvm/lib/Analysis/ValueTracking.cpp:65:0: note: a
different type is defined in another translation unit
 struct Query {
 ^
/var/tmp/llvm-project/llvm/lib/Analysis/InstructionSimplify.cpp:45:21: note:
the first difference of corresponding definitions is field ‘DL’
   const DataLayout *DL;
                     ^
/var/tmp/llvm-project/llvm/lib/Analysis/ValueTracking.cpp:66:0: note: a field
with different name is defined in another translation unit
   ExclInvsSet ExclInvs;
 ^

Unfortunately gcc crashes later in the build process. I will attach a full
list of odr violations once that ICE gets fixed.</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>