]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* lto-cgraph.c (lto_output_node, input_node): Set/get init/fini priority
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Jun 2014 06:33:35 +0000 (06:33 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Jun 2014 06:33:35 +0000 (06:33 +0000)
directly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211886 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/lto-cgraph.c

index 105f4ac3ac1805c23fa20c81505e497e856a2cec..c01cda33cb4f6017d6bcc71b7ea18a9e37d477f4 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
+
+       * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini priority
+       directly.
+
 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
 
        * loop-invariant.c (pre_check_invariant_p): New function.
index 54942cf9e364db211e975f9c49017d2567409352..1683704153857199b13a96e1902501747876a76f 100644 (file)
@@ -558,9 +558,9 @@ lto_output_node (struct lto_simple_output_block *ob, struct cgraph_node *node,
     }
   streamer_write_hwi_stream (ob->main_stream, node->profile_id);
   if (DECL_STATIC_CONSTRUCTOR (node->decl))
-    streamer_write_hwi_stream (ob->main_stream, DECL_INIT_PRIORITY (node->decl));
+    streamer_write_hwi_stream (ob->main_stream, node->get_init_priority ());
   if (DECL_STATIC_DESTRUCTOR (node->decl))
-    streamer_write_hwi_stream (ob->main_stream, DECL_FINI_PRIORITY (node->decl));
+    streamer_write_hwi_stream (ob->main_stream, node->get_fini_priority ());
 }
 
 /* Output the varpool NODE to OB. 
@@ -1215,9 +1215,9 @@ input_node (struct lto_file_decl_data *file_data,
     node->alias_target = get_alias_symbol (node->decl);
   node->profile_id = streamer_read_hwi (ib);
   if (DECL_STATIC_CONSTRUCTOR (node->decl))
-    SET_DECL_INIT_PRIORITY (node->decl, streamer_read_hwi (ib));
+    node->set_init_priority (streamer_read_hwi (ib));
   if (DECL_STATIC_DESTRUCTOR (node->decl))
-    SET_DECL_FINI_PRIORITY (node->decl, streamer_read_hwi (ib));
+    node->set_fini_priority (streamer_read_hwi (ib));
   return node;
 }