Skip to content

Commit

Permalink
* dwarf2out.c (file_table_last_lookup): Move this GC'd declaration
Browse files Browse the repository at this point in the history
	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
  • Loading branch information
sayle committed Sep 12, 2006
1 parent d7bec15 commit 6243525
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2006-09-12 Andrew Pinski <[email protected]>
Roger Sayle <[email protected]>

* 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 <[email protected]>

PR middle-end/28493
Expand Down
5 changes: 3 additions & 2 deletions gcc/dwarf2out.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 6243525

Please sign in to comment.