From 61204ad95c0af99bc890e70c68cffd4999ec5bc3 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Wed, 19 Nov 2014 21:35:49 +0100 Subject: [PATCH] re PR lto/63963 (LTO doesn't work with __attribute__((__target__("sse4.2")))) PR bootstrap/63963 * tree-streamer-out.c (write_ts_function_decl_tree_pointers): Stream out DECL_FUNCTION_SPECIFIC_TARGET * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): Stream in DECL_FUNCTION_SPECIFIC_TARGET. From-SVN: r217809 --- gcc/ChangeLog | 8 ++++++++ gcc/tree-streamer-in.c | 2 +- gcc/tree-streamer-out.c | 5 ++--- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 21a2dfa4767..6c888f6c7cb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2014-11-19 Jan Hubicka + + PR bootstrap/63963 + * tree-streamer-out.c (write_ts_function_decl_tree_pointers): Stream out + DECL_FUNCTION_SPECIFIC_TARGET + * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): Stream in + DECL_FUNCTION_SPECIFIC_TARGET. + 2014-11-19 David Malcolm PR jit/63854 diff --git a/gcc/tree-streamer-in.c b/gcc/tree-streamer-in.c index fba60483f5e..995b64291eb 100644 --- a/gcc/tree-streamer-in.c +++ b/gcc/tree-streamer-in.c @@ -774,7 +774,7 @@ lto_input_ts_function_decl_tree_pointers (struct lto_input_block *ib, 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, diff --git a/gcc/tree-streamer-out.c b/gcc/tree-streamer-out.c index f735b567421..b9594546d91 100644 --- a/gcc/tree-streamer-out.c +++ b/gcc/tree-streamer-out.c @@ -676,10 +676,9 @@ write_ts_function_decl_tree_pointers (struct output_block *ob, tree expr, 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); } -- 2.30.2