]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
dwarf2out.c (file_table_last_lookup): Move this GC'd declaration outside of #ifdef...
authorAndrew Pinski <pinskia@physics.uc.edu>
Tue, 12 Sep 2006 19:31:09 +0000 (19:31 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 12 Sep 2006 19:31:09 +0000 (19:31 +0000)
* dwarf2out.c (file_table_last_lookup): Move this GC'd declaration
outside of #ifdef DWARF2_DEBUGGING_INFO to fix bootstrap failure
on platforms that don't use dwarf for debug info.

Co-Authored-By: Roger Sayle <roger@eyesopen.com>
From-SVN: r116903

gcc/ChangeLog
gcc/dwarf2out.c

index 1d41322072036111dc1c38deb290ad3871745161..35c029b188a6cee8ccce6f66f12aed99fea37e42 100644 (file)
@@ -1,3 +1,10 @@
+2006-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
+           Roger Sayle  <roger@eyesopen.com>
+
+       * dwarf2out.c (file_table_last_lookup): Move this GC'd declaration
+       outside of #ifdef DWARF2_DEBUGGING_INFO to fix bootstrap failure
+       on platforms that don't use dwarf for debug info.
+
 2006-09-12  Jason Merrill  <jason@redhat.com>
 
        PR middle-end/28493
index 9bf5ffc212059cbab9d432f4b25b3c15d512b7da..982d90823de23a4a712fdcec22849d4713f1b0f1 100644 (file)
@@ -3998,6 +3998,9 @@ 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;
+
 #ifdef DWARF2_DEBUGGING_INFO
 
 /* Offset from the "steady-state frame pointer" to the frame base,
@@ -13522,8 +13525,6 @@ file_table_hash (const void *p_p)
    the index of the filename was looked up last.  This handles the majority of
    all searches.  */
 
-static GTY(()) struct dwarf_file_data * file_table_last_lookup;
-
 static struct dwarf_file_data *
 lookup_filename (const char *file_name)
 {