re PR lto/50430 (Constructors of static external vars are throwed away leading to...
commit5548ca3540bccbc908a45942896d635ea5f1c23f
authorJan Hubicka <jh@suse.cz>
Fri, 16 Sep 2011 14:40:06 +0000 (16 16:40 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 16 Sep 2011 14:40:06 +0000 (16 14:40 +0000)
treedc560379a51d19b0978ff07480f41317ecd72bb1
parent8549d9e16c2b3a127de7b61b6dfb76c67edd612e
re PR lto/50430 (Constructors of static external vars are throwed away leading to missed optimizations (and ipa-cp ICE).)

PR lto/50430
* gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
error_mark_node in the DECL_INITIAL of vtable.

From-SVN: r178908
gcc/ChangeLog
gcc/gimple-fold.c