diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-09-12 19:31:09 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-09-12 19:31:09 +0000 |
commit | 62435250a311458a0c952fa71e1c9b35bf7f3cb4 (patch) | |
tree | 06b4263298f257454aecc52ac114b514912bb7fc /gcc/dwarf2out.c | |
parent | d7bec157350258dc9b9fe9def92f6736fde66b2d (diff) | |
download | gcc-62435250a311458a0c952fa71e1c9b35bf7f3cb4.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116903 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 9bf5ffc2120..982d90823de 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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) { |