[Bug tree-optimization/25737] [4.1/4.2 Regression] ACATS tests c974001 and c974013 do not terminate with struct aliasing
ebotcazou at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Mar 23 18:13:00 GMT 2006
------- Comment #14 from ebotcazou at gcc dot gnu dot org 2006-03-23 18:13 -------
The Ada testcase is correctly compiled at -O with the create_sft change and
Index: tree-ssa-structalias.c
===================================================================
--- tree-ssa-structalias.c (revision 112080)
+++ tree-ssa-structalias.c (working copy)
@@ -3661,7 +3661,7 @@ push_fields_onto_fieldstack (tree type,
}
for (field = TYPE_FIELDS (type); field; field = TREE_CHAIN (field))
- if (TREE_CODE (field) == FIELD_DECL)
+ if (TREE_CODE (field) == FIELD_DECL && ! DECL_NONADDRESSABLE_P (field))
{
bool push = false;
int pushed = 0;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25737
More information about the Gcc-bugs
mailing list