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 middle-end/49394] [4.7 Regression] libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc FAILs with -fipa-pta -fnon-call-exceptions


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);


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