<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 - [nir] src/compiler/nir/nir_loop_analyze.c uninitialized variable"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=109231">109231</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[nir] src/compiler/nir/nir_loop_analyze.c uninitialized variable
          </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>Mesa core
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>oschowa@web.de
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When compiling a release build of a Mesa driver which uses nir and configured
with
'meson -D buildtype=release -D b_ndebug=true ...' gcc 8.2.1 generate this
warning:

[69/241] Compiling C object
'src/compiler/nir/068b2c8@@nir@sta/nir_loop_analyze.c.o'.
../../home/oschowa/mnt/data/_home/storage/builds/mesa/src/compiler/nir/nir_loop_analyze.c:
In function ‘process_loops’:
../../home/oschowa/mnt/data/_home/storage/builds/mesa/src/compiler/nir/nir_loop_analyze.c:270:55:
warning: ‘alu_op’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
                if (alu->src[0].src.ssa == alu_srcs[0] &&
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    alu->src[1].src.ssa == alu_srcs[1] &&
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
                    alu->op == alu_op) {
                    ~~~~~~~~~~~~~~~~~                   
../../home/oschowa/mnt/data/_home/storage/builds/mesa/src/compiler/nir/nir_loop_analyze.c:255:20:
note: ‘alu_op’ was declared here
             nir_op alu_op;


There indeed seems to be a comparison with an uninitialized variable. A debug
build does not trigger this warning.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>