Use "struct bcache" in objfiles.h

If objfiles.h is included after bcache.h, then the "bcache" function
will cause a compiler error because "bcache" will be seen as a
function, not a type.  Fix this error by using the "struct" keyword.

gdb/ChangeLog
2019-01-22  Tom Tromey  <tom@tromey.com>

	* objfiles.h (struct objfile_per_bfd_storage): Use "struct"
	keyword for bcache.
This commit is contained in:
Tom Tromey 2019-01-21 13:45:00 -07:00
parent 7af7e9b5d8
commit 6b4d777433
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2019-01-22 Tom Tromey <tom@tromey.com>
* objfiles.h (struct objfile_per_bfd_storage): Use "struct"
keyword for bcache.
2019-01-22 Tom Tromey <tom@tromey.com>
* compile/compile-cplus-types.c: Remove a comment by #include.

View File

@ -240,11 +240,11 @@ struct objfile_per_bfd_storage
/* Byte cache for file names. */
bcache *filename_cache = NULL;
struct bcache *filename_cache = NULL;
/* Byte cache for macros. */
bcache *macro_cache = NULL;
struct bcache *macro_cache = NULL;
/* The gdbarch associated with the BFD. Note that this gdbarch is
determined solely from BFD information, without looking at target