diff mbox

[debug-early] remove file_table_last_lookup

Message ID 54CBD4FF.1000809@redhat.com
State New
Headers show

Commit Message

Aldy Hernandez Jan. 30, 2015, 7:01 p.m. UTC
We haven't been using this for a looong time.  It never even gets defined.

Removed and committed to branch.

Aldy
commit a8076b015cad17538e369c153f8c7cf888433840
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Tue Jan 27 11:24:53 2015 -0800

    	* dwarf2out.c (file_table_last_lookup): Remove unset variable.
    	(lookup_filename): Remove file_table_last_lookup use.
    	(dwarf2out_c_finalize): Same.
diff mbox

Patch

diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index e3ccda2..188710e 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -3008,9 +3008,6 @@  static GTY(()) struct dwarf_file_data * last_emitted_file;
 /* Number of internal labels generated by gen_internal_sym().  */
 static GTY(()) int label_num;
 
-/* Cached result of previous call to lookup_filename.  */
-static GTY(()) struct dwarf_file_data * file_table_last_lookup;
-
 static GTY(()) vec<die_arg_entry, va_gc> *tmpl_value_parm_die_table;
 
 /* Instances of generic types for which we need to generate debug
@@ -21729,9 +21726,7 @@  dwarf_file_hasher::hash (dwarf_file_data *p)
    section) and references to those files numbers (in the .debug_srcinfo
    and.debug_macinfo sections).  If the filename given as an argument is not
    found in our current list, add it to the list and assign it the next
-   available unique index number.  In order to speed up searches, we remember
-   the index of the filename was looked up last.  This handles the majority of
-   all searches.  */
+   available unique index number.  */
 
 static struct dwarf_file_data *
 lookup_filename (const char *file_name)
@@ -25199,7 +25194,6 @@  dwarf2out_c_finalize (void)
   poc_label_num = 0;
   last_emitted_file = NULL;
   label_num = 0;
-  file_table_last_lookup = NULL;
   tmpl_value_parm_die_table = NULL;
   generic_type_instances = NULL;
   frame_pointer_fb_offset = 0;