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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.0

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-14 
12:45:43 UTC ---
Maybe related to the g++.dg/torture/pr43879-1_1.C FAIL.  Fix for that:

Index: tree-ssa-structalias.c
===================================================================
--- tree-ssa-structalias.c      (revision 175011)
+++ tree-ssa-structalias.c      (working copy)
@@ -3925,8 +3925,14 @@ handle_pure_call (gimple stmt, VEC(ce_s,
 static varinfo_t
 get_fi_for_callee (gimple call)
 {
-  tree decl, fn = gimple_call_fn (call);
+  tree decl, fn;
+  struct cgraph_edge *e;

+  e = cgraph_edge (cgraph_get_node (cfun->decl), call);
+  if (e && e->callee && e->callee->decl)
+    return get_vi_for_tree (e->callee->decl);
+
+  fn = gimple_call_fn (call);
   if (fn && TREE_CODE (fn) == OBJ_TYPE_REF)
     fn = OBJ_TYPE_REF_EXPR (fn);

Reply via email to