Unbreak build with --disable-analyzer
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 30 Nov 2020 22:37:50 +0000 (17:37 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Mon, 30 Nov 2020 22:37:50 +0000 (17:37 -0500)
commitc1c6750f8d3d88708e4fe9994124e7afa089d939
tree5d9131ecddc661d05e842f3d797c7300bc751afa
parentdccae0f42e9e052b7721e805858d10d3ec345685
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.
gcc/analyzer/analyzer-pass.cc