This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[4.0 PATCH] Avoid ICEs when OBJ_TYPE_REF folding finds a new reachable vtable method (PR middle-end/20991


Hi!

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20991
If OBJ_TYPE_REF folding discovers a method that has been
already finalized by cgraph that was considered previously unreachable in
current TU, it ICEs in cgraph_mark_reachable_node.
But in this particular case nothing bad can happen, we know
there is some other TU unit in which the virtual table of the class is
emitted and that the method will be emitted in that TU.

For 4.1+ best would be to do some limited constant propagation during
inlining and fold OBJ_TYPE_REFs there, which would allow us to inline them.

Bootstrapped/regtested on i386-linux, ok for branch?

	Jakub

Attachment: 1
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]