OSDN Git Service

* lto.h (lto_elf_file_open): Rename prototype from this ...
authordavek <davek@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Apr 2010 03:41:04 +0000 (03:41 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:35:45 +0000 (14:35 +0900)
(lto_obj_file_open): ... to this.
(lto_elf_file_close): Likewise ...
(lto_obj_file_close): ... and likewise.
(lto_elf_build_section_table): Likewise ...
(lto_obj_build_section_table): ... and likewise.
(lto_elf_begin_section): Likewise ...
(lto_obj_begin_section): ... and likewise.
(lto_elf_append_data): Likewise ...
(lto_obj_append_data): ... and likewise.
(lto_elf_end_section): Likewise ...
(lto_obj_end_section): ... and likewise.
* lto.c (lto_file_read): Update references to the above.
(lto_wpa_write_files): Likewise.
(lto_read_all_file_options): Likewise.
(read_cgraph_and_symbols): Likewise.
* lto-lang.c (LANG_HOOKS_BEGIN_SECTION): Likewise.
(LANG_HOOKS_APPEND_DATA): Likewise.
(LANG_HOOKS_END_SECTION): Likewise.
* lto-elf.c (lto_elf_file_open): Rename from this ...
(lto_obj_file_open): ... to this, updating any references.
(lto_elf_file_close): Likewise ...
(lto_obj_file_close): ... and likewise.
(lto_elf_build_section_table): Likewise ...
(lto_obj_build_section_table): ... and likewise.
(lto_elf_begin_section): Likewise ...
(lto_obj_begin_section): ... and likewise.
(lto_elf_append_data): Likewise ...
(lto_obj_append_data): ... and likewise.
(lto_elf_end_section): Likewise ...
(lto_obj_end_section): ... and likewise.

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

gcc/lto/ChangeLog
gcc/lto/lto.c

index 2ce58d7..069b589 100644 (file)
@@ -1,3 +1,37 @@
+2010-04-26  Dave Korn  <dave.korn.cygwin@gmail.com>
+
+       * lto.h (lto_elf_file_open): Rename prototype from this ...
+       (lto_obj_file_open): ... to this.
+       (lto_elf_file_close): Likewise ...
+       (lto_obj_file_close): ... and likewise.
+       (lto_elf_build_section_table): Likewise ...
+       (lto_obj_build_section_table): ... and likewise.
+       (lto_elf_begin_section): Likewise ...
+       (lto_obj_begin_section): ... and likewise.
+       (lto_elf_append_data): Likewise ...
+       (lto_obj_append_data): ... and likewise.
+       (lto_elf_end_section): Likewise ...
+       (lto_obj_end_section): ... and likewise.
+       * lto.c (lto_file_read): Update references to the above.
+       (lto_wpa_write_files): Likewise.
+       (lto_read_all_file_options): Likewise.
+       (read_cgraph_and_symbols): Likewise.
+       * lto-lang.c (LANG_HOOKS_BEGIN_SECTION): Likewise.
+       (LANG_HOOKS_APPEND_DATA): Likewise.
+       (LANG_HOOKS_END_SECTION): Likewise.
+       * lto-elf.c (lto_elf_file_open): Rename from this ...
+       (lto_obj_file_open): ... to this, updating any references.
+       (lto_elf_file_close): Likewise ...
+       (lto_obj_file_close): ... and likewise.
+       (lto_elf_build_section_table): Likewise ...
+       (lto_obj_build_section_table): ... and likewise.
+       (lto_elf_begin_section): Likewise ...
+       (lto_obj_begin_section): ... and likewise.
+       (lto_elf_append_data): Likewise ...
+       (lto_obj_append_data): ... and likewise.
+       (lto_elf_end_section): Likewise ...
+       (lto_obj_end_section): ... and likewise.
+
 2010-04-21  Jan Hubicka  <jh@suse.cz>
 
        * lto.c (lto_fixup_tree): Do not call wpa fixup.
index 115d1cc..b6001d8 100644 (file)
@@ -378,7 +378,7 @@ lto_file_read (lto_file *file, FILE *resolution_file)
 
   file_data = XCNEW (struct lto_file_decl_data);
   file_data->file_name = file->filename;
-  file_data->section_hash_table = lto_elf_build_section_table (file);
+  file_data->section_hash_table = lto_obj_build_section_table (file);
   file_data->renaming_hash_table = lto_create_renaming_table ();
 
   data = lto_get_section_data (file_data, LTO_section_decls, NULL, &len);
@@ -1040,16 +1040,16 @@ lto_wpa_write_files (void)
       if (cgraph_node_set_needs_ltrans_p (set))
        {
          /* Write all the nodes in SET to TEMP_FILENAME.  */
-         file = lto_elf_file_open (temp_filename, true);
+         file = lto_obj_file_open (temp_filename, true);
          if (!file)
-           fatal_error ("lto_elf_file_open() failed");
+           fatal_error ("lto_obj_file_open() failed");
 
          lto_set_current_out_file (file);
 
          ipa_write_optimization_summaries (set);
 
          lto_set_current_out_file (NULL);
-         lto_elf_file_close (file);
+         lto_obj_file_close (file);
        }
     }
 
@@ -1740,17 +1740,17 @@ lto_read_all_file_options (void)
   for (i = 0; i < num_in_fnames; i++)
     {
       struct lto_file_decl_data *file_data;
-      lto_file *file = lto_elf_file_open (in_fnames[i], false);
+      lto_file *file = lto_obj_file_open (in_fnames[i], false);
       if (!file)
        break;
 
       file_data = XCNEW (struct lto_file_decl_data);
       file_data->file_name = file->filename;
-      file_data->section_hash_table = lto_elf_build_section_table (file);
+      file_data->section_hash_table = lto_obj_build_section_table (file);
 
       lto_read_file_options (file_data);
 
-      lto_elf_file_close (file);
+      lto_obj_file_close (file);
       htab_delete (file_data->section_hash_table);
       free (file_data);
     }
@@ -1813,7 +1813,7 @@ read_cgraph_and_symbols (unsigned nfiles, const char **fnames)
          fflush (stderr);
        }
 
-      current_lto_file = lto_elf_file_open (fnames[i], false);
+      current_lto_file = lto_obj_file_open (fnames[i], false);
       if (!current_lto_file)
        break;
 
@@ -1823,7 +1823,7 @@ read_cgraph_and_symbols (unsigned nfiles, const char **fnames)
 
       all_file_decl_data[last_file_ix++] = file_data;
 
-      lto_elf_file_close (current_lto_file);
+      lto_obj_file_close (current_lto_file);
       current_lto_file = NULL;
     }