From: Tom Tromey Date: Tue, 24 Nov 2020 18:50:54 +0000 (-0700) Subject: Do not include parser-defs.h from c-lang.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af30c400ea2ae16742ce194f0490fec4170320d5;p=binutils-gdb.git Do not include parser-defs.h from c-lang.h While working on another series, I noticed that c-lang.h does not need to include parser-defs.h. This patch makes this change, and fixes up the two .c files that needed this include. Tested by rebuilding. gdb/ChangeLog 2020-11-25 Tom Tromey * d-lang.c: Include parser-defs.h. * rust-lang.c: Include parser-defs.h. * c-lang.h: Do not include parser-defs.h. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 50435b6eb59..77aeb77e0d7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2020-11-25 Tom Tromey + + * d-lang.c: Include parser-defs.h. + * rust-lang.c: Include parser-defs.h. + * c-lang.h: Do not include parser-defs.h. + 2020-11-24 Simon Marchi * regcache.h (struct cached_reg): Remove typedef. diff --git a/gdb/c-lang.h b/gdb/c-lang.h index 6c5d0d814c4..896f8e1f27e 100644 --- a/gdb/c-lang.h +++ b/gdb/c-lang.h @@ -28,7 +28,6 @@ struct parser_state; #include "value.h" #include "macroexp.h" -#include "parser-defs.h" #include "gdbsupport/enum-flags.h" diff --git a/gdb/d-lang.c b/gdb/d-lang.c index 2e7b7b64cb8..97cc106b4ea 100644 --- a/gdb/d-lang.c +++ b/gdb/d-lang.c @@ -26,6 +26,7 @@ #include "demangle.h" #include "cp-support.h" #include "gdbarch.h" +#include "parser-defs.h" /* The name of the symbol to use to get the name of the main subprogram. */ static const char D_MAIN[] = "D main"; diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c index 407be569308..fb2f2d5e8e4 100644 --- a/gdb/rust-lang.c +++ b/gdb/rust-lang.c @@ -38,6 +38,7 @@ #include #include #include "cli/cli-style.h" +#include "parser-defs.h" /* See rust-lang.h. */