From: Tom de Vries Date: Fri, 23 Oct 2015 09:38:36 +0000 (+0000) Subject: Add missing is_full_var setting in create_variable_info_for_1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=498dbe0a138483d114cee051cbbdac9747236880;p=gcc.git Add missing is_full_var setting in create_variable_info_for_1 2015-10-23 Tom de Vries * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cdc9bfdb439..230cc05aef0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-10-23 Tom de Vries + + * 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 PR driver/68043 diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 8d86dcbf0cc..db0ab1e9643 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -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))