This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/36926] [4.4 Regression] Revision 138092 breaks building of xalancbmk



------- Comment #7 from jamborm at gcc dot gnu dot org  2008-07-25 14:09 -------
OK, I think I have it.  It was a stupid mistake on my side.  The
following patch seems to fix it:

Subject: Fix PR 36926

2008-07-25  Martin Jambor  <mjambor@suse.cz>

        PR 36926
        * ipa-prop.c (ipa_analyze_call_uses): Call
        ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.


Index: iinln/gcc/ipa-prop.c
===================================================================
--- iinln.orig/gcc/ipa-prop.c
+++ iinln/gcc/ipa-prop.c
@@ -741,7 +741,7 @@ ipa_analyze_call_uses (struct ipa_node_p
      pointer that is a parameter to this function. */
   n1 = PHI_ARG_DEF (def, 0);
   n2 = PHI_ARG_DEF (def, 1);
-  if (SSA_NAME_IS_DEFAULT_DEF (n1) || SSA_NAME_IS_DEFAULT_DEF (n2))
+  if (!ipa_is_ssa_with_stmt_def (n1) || !ipa_is_ssa_with_stmt_def (n2))
     return;
   d1 = SSA_NAME_DEF_STMT (n1);
   d2 = SSA_NAME_DEF_STMT (n2);


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36926


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]