re PR lto/63963 (LTO doesn't work with __attribute__((__target__("sse4.2"))))
authorJan Hubicka <hubicka@ucw.cz>
Wed, 19 Nov 2014 20:35:49 +0000 (21:35 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 19 Nov 2014 20:35:49 +0000 (20:35 +0000)
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
gcc/tree-streamer-in.c
gcc/tree-streamer-out.c

index 21a2dfa47679dc90a47cc3747c283ef4c4615f15..6c888f6c7cbef9da32e9f5de0d63262c72980754 100644 (file)
@@ -1,3 +1,11 @@
+2014-11-19  Jan Hubicka  <hubicka@ucw.cz>
+
+       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  <dmalcolm@redhat.com>
 
        PR jit/63854
index fba60483f5e7313a76c31746702ec677a5379b8b..995b64291ebdb99a1fcd77aece5420bd3c317305 100644 (file)
@@ -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,
index f735b5674215a1f5240f8322a3d003b2983582e9..b9594546d914561e282258f40207a7ce1e9a9067 100644 (file)
@@ -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);
 }