Unbreak build with --disable-analyzer
I broke the build with --disable-analyzer with
g:66dde7bc64b75d4a338266333c9c490b12d49825, due to:
../../src/gcc/analyzer/analyzer-pass.cc: In member function ‘virtual unsigned int {anonymous}::pass_analyzer::execute(function*)’:
../../src/gcc/analyzer/analyzer-pass.cc:86:3: error: ‘sorry_no_analyzer’ was not declared in this scope
86 | sorry_no_analyzer ();
| ^~~~~~~~~~~~~~~~~
Fixed by including the relevant header file.
Sorry about the breakage.
gcc/analyzer/ChangeLog:
* analyzer-pass.cc: Include "analyzer/analyzer.h" for the
declaration of sorry_no_analyzer; include "tree.h" and
"function.h" as these are needed by it.
This commit is contained in:
parent
dccae0f42e
commit
c1c6750f8d
@ -25,6 +25,9 @@ along with GCC; see the file COPYING3. If not see
|
||||
#include "tree-pass.h"
|
||||
#include "diagnostic.h"
|
||||
#include "options.h"
|
||||
#include "tree.h"
|
||||
#include "function.h"
|
||||
#include "analyzer/analyzer.h"
|
||||
#include "analyzer/engine.h"
|
||||
|
||||
namespace {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user