<html>
    <head>
      <base href="https://bugs.freedesktop.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 - The cure for all kinds of weirdness caused by list defects in release builds"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=91320">91320</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>The cure for all kinds of weirdness caused by list defects in release builds
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

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

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>glsl-compiler
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>idr@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tschwinger@isonews2.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=117080" name="attach_117080" title="exec_list fix for optimizing compilers">attachment 117080</a> <a href="attachment.cgi?id=117080&action=edit" title="exec_list fix for optimizing compilers">[details]</a></span>
exec_list fix for optimizing compilers

Observed:

Segfaulting and optimization passes that fail to terminate. Problems were
observed with both GCC and Clang.

Expected:

None of it.

Analysis:

Optimizing compilers will ignore modification through the sentinel nodes cast
from the list structure.

Code like 

    while (! list.is_empty()) ... list.pop_head(); ...

breaks, because the compiler assumes that the list structure doesn't change.

Fix:

Good old Amiga-style lists can still work with modern, optimizing compilers as
long as they are told to check for side effects on the sentinels' respective
next / prev pointers. See contained patch - it's actually quite simple and
should leave most optimizations intact.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>