This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/25737] [4.1/4.2 Regression] ACATS tests c974001 and c974013 do not terminate with struct aliasing
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Mar 2006 18:13:31 -0000
- Subject: [Bug tree-optimization/25737] [4.1/4.2 Regression] ACATS tests c974001 and c974013 do not terminate with struct aliasing
- References: <bug-25737-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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