[lto] More minor formatting changes

Diego Novillo dnovillo@google.com
Sat Dec 20 09:44:00 GMT 2008


Found while fixing another bug.

Tested on x86_64.


Diego.



	* lto-function-out.c (copy_function): Tidy.
	* lto-section-in.c (lto_original_decl_name): Likewise.

lto/ChangeLog

	* lto.c (lto_1_to_1_map): Likewise.

Index: lto-function-out.c
===================================================================
--- lto-function-out.c	(revision 142832)
+++ lto-function-out.c	(working copy)
@@ -2454,7 +2454,7 @@ copy_function (struct cgraph_node *node)
     lto_get_section_name (LTO_section_function_body, name);
   size_t i, j;
   struct lto_in_decl_state *in_state;
-  struct lto_out_decl_state *out_state = lto_get_out_decl_state();
+  struct lto_out_decl_state *out_state = lto_get_out_decl_state ();
 
   lto_begin_section (section_name);
   free (section_name);
Index: lto-section-in.c
===================================================================
--- lto-section-in.c	(revision 142823)
+++ lto-section-in.c	(working copy)
@@ -431,7 +431,7 @@ lto_original_decl_name (struct lto_file_
   struct lto_renaming_slot r_slot;
 
   r_slot.new_name = name;
-  slot = (struct lto_renaming_slot *)htab_find (renaming_hash_table, &r_slot);
+  slot = (struct lto_renaming_slot *) htab_find (renaming_hash_table, &r_slot);
   if (slot)
     return slot->old_name;
   else
Index: lto/lto.c
===================================================================
--- lto/lto.c	(revision 142823)
+++ lto/lto.c	(working copy)
@@ -501,7 +501,7 @@ free_section_data (struct lto_file_decl_
 static GTY (()) VEC(cgraph_node_set ,gc) *lto_cgraph_node_sets;
 
 /* Group cgrah nodes by input files.  This is used mainly for testing
-   right now. */
+   right now.  */
 
 static void
 lto_1_to_1_map (void)
@@ -527,9 +527,9 @@ lto_1_to_1_map (void)
 
   for (node = cgraph_nodes; node; node = node->next)
     {
-      /* We assume file_data are unique. */
+      /* We assume file_data are unique.  */
       file_data = node->local.lto_file_data;
-      gcc_assert(file_data);
+      gcc_assert (file_data);
 
       slot = pointer_map_contains (pmap, file_data);
       if (slot)



More information about the Gcc-patches mailing list