This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Stream out default optimization nodes
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Jan Hubicka <hubicka at ucw dot cz>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Richard Guenther <rguenther at suse dot de>
- Date: Wed, 19 Nov 2014 19:10:04 +0100
- Subject: Re: Stream out default optimization nodes
- Authentication-results: sourceware.org; auth=none
- References: <20141117183824 dot GA5137 at kam dot mff dot cuni dot cz> <CAMe9rOo-R4bnp2GmzD-kudqXucpq7sXXGzVWXEuMFRWLfrThzQ at mail dot gmail dot com> <20141118172702 dot GA32708 at kam dot mff dot cuni dot cz> <CAMe9rOr5ntdKBwBmZZotrqEbfmbU_PZ0gPdaB+3m12S8NrvyWw at mail dot gmail dot com> <20141118172943 dot GB32708 at kam dot mff dot cuni dot cz> <CAMe9rOoR=urMYMHKvQZeBqhPHOJ=Efk0SzV7fYUHzeYK_EPZcg at mail dot gmail dot com>
> I opened:
>
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63963
I am testing the following. This hunk apparently slipped from my earlier patch
Index: tree-streamer-out.c
===================================================================
--- tree-streamer-out.c (revision 217668)
+++ tree-streamer-out.c (working copy)
@@ -676,10 +676,9 @@ write_ts_function_decl_tree_pointers (st
bool ref_p)
{
stream_write_tree (ob, DECL_VINDEX (expr), ref_p);
- /* DECL_STRUCT_FUNCTION is handled by lto_output_function. FIXME lto,
- maybe it should be handled here? */
+ /* DECL_STRUCT_FUNCTION is handled by lto_output_function. */
stream_write_tree (ob, DECL_FUNCTION_PERSONALITY (expr), ref_p);
- /* DECL_FUNCTION_SPECIFIC_TARGET is regenerated. */
+ stream_write_tree (ob, DECL_FUNCTION_SPECIFIC_TARGET (expr), ref_p);
stream_write_tree (ob, DECL_FUNCTION_SPECIFIC_OPTIMIZATION (expr), ref_p);
}
Index: tree-streamer-in.c
===================================================================
--- tree-streamer-in.c (revision 217668)
+++ tree-streamer-in.c (working copy)
@@ -774,7 +774,7 @@ lto_input_ts_function_decl_tree_pointers
DECL_VINDEX (expr) = stream_read_tree (ib, data_in);
/* DECL_STRUCT_FUNCTION is loaded on demand by cgraph_get_body. */
DECL_FUNCTION_PERSONALITY (expr) = stream_read_tree (ib, data_in);
- /* DECL_FUNCTION_SPECIFIC_TARGET is regenerated from attributes. */
+ DECL_FUNCTION_SPECIFIC_TARGET (expr) = stream_read_tree (ib, data_in);
DECL_FUNCTION_SPECIFIC_OPTIMIZATION (expr) = stream_read_tree (ib, data_in);
/* If the file contains a function with an EH personality set,
>
> --
> H.J.