This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17064] -falias-noargument-global doesn't eliminate dead stores/loads
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jan 2006 18:15:44 -0000
- Subject: [Bug tree-optimization/17064] -falias-noargument-global doesn't eliminate dead stores/loads
- References: <bug-17064-6527@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from pinskia at gcc dot gnu dot org 2006-01-26 18:15 -------
This is the patch which helps the call clobering but does not fix it all the
way (because a different call clobbering issue):
Index: tree-ssa-alias.c
===================================================================
--- tree-ssa-alias.c (revision 110263)
+++ tree-ssa-alias.c (working copy)
@@ -328,7 +328,8 @@ set_initial_properties (struct alias_inf
}
else if (TREE_CODE (var) == PARM_DECL
&& default_def (var)
- && POINTER_TYPE_P (TREE_TYPE (var)))
+ && POINTER_TYPE_P (TREE_TYPE (var))
+ && flag_argument_noalias > 1)
{
tree def = default_def (var);
get_ptr_info (def)->value_escapes_p = 1;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17064