This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ patch] Move FINAL flag to middle-end trees.
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: Jason Merrill <jason at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 23 Aug 2013 16:51:12 +0200
- Subject: Re: [C++ patch] Move FINAL flag to middle-end trees.
- References: <20130822095937 dot GF16124 at kam dot mff dot cuni dot cz> <52162B9B dot 5060905 at redhat dot com> <20130822152254 dot GC19256 at kam dot mff dot cuni dot cz> <521769A8 dot 3010204 at redhat dot com> <20130823135755 dot GB22972 at kam dot mff dot cuni dot cz> <521770DA dot 300 at redhat dot com> <20130823143616 dot GA27462 at kam dot mff dot cuni dot cz>
> Hi,
> this is patch I am testing. Does it look OK?
> Index: cp/pt.c
> ===================================================================
> --- cp/pt.c (revision 201910)
> +++ cp/pt.c (working copy)
> @@ -8730,7 +8730,8 @@ instantiate_class_template_1 (tree type)
> /* Adjust visibility for template arguments. */
> determine_visibility (TYPE_MAIN_DECL (type));
> }
> - CLASSTYPE_FINAL (type) = CLASSTYPE_FINAL (pattern);
> + if (CLASS_TYPE_P (type))
> + CLASSTYPE_FINAL (type) = CLASSTYPE_FINAL (pattern);
Sadly we ICE here because BINFO of type is not built yet.
I tried to move the code after xref_binfos and it does seem to lead to errors
while building libstdc++ PCH. Any idea what to do here?
Honza