This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/49394] [4.7 Regression] libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc FAILs with -fipa-pta -fnon-call-exceptions
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 14 Jun 2011 12:45:45 +0000
- Subject: [Bug middle-end/49394] [4.7 Regression] libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc FAILs with -fipa-pta -fnon-call-exceptions
- Auto-submitted: auto-generated
- References: <bug-49394-4@http.gcc.gnu.org/bugzilla/>
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);