OSDN Git Service

2010-05-13 Martin Jambor <mjambor@suse.cz>
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 May 2010 12:19:02 +0000 (12:19 +0000)
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 May 2010 12:19:02 +0000 (12:19 +0000)
commite4227d049cda6d627df1765ee46f66a25bbcdd3a
tree738b62ee098203af9907f27ef12957227e55a707
parentbb348f6843b09fce6b0b3b14104cd5542bb89b65
2010-05-13  Martin Jambor  <mjambor@suse.cz>

* gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
gimple-fold.c).
* gimple-fold.c (get_base_binfo_for_type): New function.
(gimple_get_relevant_ref_binfo): Likewise.
(gimple_fold_obj_type_ref_known_binfo): Likewise.
(gimple_fold_obj_type_ref): Likewise.
(fold_gimple_call): Simplify condition for folding virtual calls
and call gimple_fold_obj_type_ref.
* gimple.h (gimple_get_relevant_ref_binfo): Declare.
(gimple_fold_obj_type_ref_known_binfo): Likewise.

* testsuite/g++.dg/otr-fold-1.C: New test.
* testsuite/g++.dg/otr-fold-2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159362 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-fold.c
gcc/gimple.c
gcc/gimple.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/otr-fold-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/otr-fold-2.C [new file with mode: 0644]