This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/57084] 483. xalancbmk run fails with -O2 -flto for i686
- From: "hubicka at ucw dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 03 May 2013 12:17:20 +0000
- Subject: [Bug lto/57084] 483. xalancbmk run fails with -O2 -flto for i686
- Auto-submitted: auto-generated
- References: <bug-57084-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57084
--- Comment #3 from Jan Hubicka <hubicka at ucw dot cz> 2013-05-03 12:17:20 UTC ---
> @@ -1993,6 +1994,18 @@ ipa_intraprocedural_devirtualization (gi
> token = OBJ_TYPE_REF_TOKEN (otr);
> fndecl = gimple_get_virt_method_for_binfo (tree_low_cst (token, 1),
> binfo);
> + if (!fndecl)
> + return NULL_TREE;
> +
> + callee = cgraph_get_node (fndecl);
> + if (!callee || callee->global.inlined_to)
> + {
> + if (!canonicalize_constructor_val (fndecl, NULL)
fndecl = canonicalize_constructor_val (fndecl, NULL)
Why do you need TREE_PUBLIC check?
Honza