<div dir="ltr">Assuming it still builds on newer GCC,<br><br>Acked-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 8, 2017 at 9:26 AM, Vinson Lee <span dir="ltr"><<a href="mailto:vlee@freedesktop.org" target="_blank">vlee@freedesktop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Fix this build error with GCC 4.4.7.<br>
<br>
  CC     nir/nir_opt_copy_prop_vars.lo<br>
nir/nir_opt_copy_prop_vars.c: In function ‘copy_prop_vars_block’:<br>
nir/nir_opt_copy_prop_vars.c:<wbr>765: error: unknown field ‘deref’ specified in initializer<br>
nir/nir_opt_copy_prop_vars.c:<wbr>765: warning: missing braces around initializer<br>
nir/nir_opt_copy_prop_vars.c:<wbr>765: warning: (near initialization for ‘(anonymous).<anonymous>’)<br>
nir/nir_opt_copy_prop_vars.c:<wbr>765: warning: initialization from incompatible pointer type<br>
<br>
Fixes: 62332d139c8f ("nir: Add a local variable-based copy propagation pass")<br>
Signed-off-by: Vinson Lee <<a href="mailto:vlee@freedesktop.org">vlee@freedesktop.org</a>><br>
---<br>
 src/compiler/nir/nir_opt_copy_<wbr>prop_vars.c |    2 +-<br>
 1 files changed, 1 insertions(+), 1 deletions(-)<br>
<br>
diff --git a/src/compiler/nir/nir_opt_<wbr>copy_prop_vars.c b/src/compiler/nir/nir_opt_<wbr>copy_prop_vars.c<br>
index 8c24cd7..7f17469 100644<br>
--- a/src/compiler/nir/nir_opt_<wbr>copy_prop_vars.c<br>
+++ b/src/compiler/nir/nir_opt_<wbr>copy_prop_vars.c<br>
@@ -762,7 +762,7 @@ copy_prop_vars_block(struct copy_prop_var_state *state,<br>
          } else {<br>
             value = (struct value) {<br>
                .is_ssa = false,<br>
-               .deref = src,<br>
+               { .deref = src },<br>
             };<br>
          }<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
1.7.1<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>