Add missing is_full_var setting in create_variable_info_for_1
authorTom de Vries <tom@codesourcery.com>
Fri, 23 Oct 2015 09:38:36 +0000 (09:38 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Fri, 23 Oct 2015 09:38:36 +0000 (09:38 +0000)
2015-10-23  Tom de Vries  <tom@codesourcery.com>

* tree-ssa-structalias.c (create_variable_info_for_1): Add missing
setting of is_full_var in case of a single field.

From-SVN: r229218

gcc/ChangeLog
gcc/tree-ssa-structalias.c

index cdc9bfdb439b6285558dfc3a674ab90b33dca371..230cc05aef07d5d237559103caf58ad4bd3a875f 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-23  Tom de Vries  <tom@codesourcery.com>
+
+       * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
+       setting of is_full_var in case of a single field.
+
 2015-10-22  Martin Sebor  <msebor@redhat.com>
 
        PR driver/68043
index 8d86dcbf0ccc92fcb87f8ef36a78fc161f74cd63..db0ab1e9643a86ccbc897aaf37d8431d46b0efc8 100644 (file)
@@ -5693,6 +5693,8 @@ create_variable_info_for_1 (tree decl, const char *name)
 
   vi = new_var_info (decl, name);
   vi->fullsize = tree_to_uhwi (declsize);
+  if (fieldstack.length () == 1)
+    vi->is_full_var = true;
   for (i = 0, newvi = vi;
        fieldstack.iterate (i, &fo);
        ++i, newvi = vi_next (newvi))