This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45605] Missed devirtualization
- From: "hubicka at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Sep 2010 21:25:45 -0000
- Subject: [Bug c++/45605] Missed devirtualization
- References: <bug-45605-176@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #19 from hubicka at gcc dot gnu dot org 2010-09-18 21:25 -------
Subject: Bug 45605
Author: hubicka
Date: Sat Sep 18 21:25:29 2010
New Revision: 164402
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164402
Log:
PR tree-optimization/45605
* cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
* gimple-fold.c (static_object_in_other_unit_p): New function.
(canonicalize_constructor_val): Use it.
(get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
returning NULL.
(gimple_fold_obj_type_ref_known_binfo): Use
static_object_in_other_unit_p.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraphunit.c
trunk/gcc/gimple-fold.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45605