ipa-fnsummary: Include <vector> the proper way
authorGerald Pfeifer <gerald@pfeifer.com>
Thu, 6 Aug 2020 07:02:15 +0000 (09:02 +0200)
committerGerald Pfeifer <gerald@pfeifer.com>
Thu, 6 Aug 2020 07:02:15 +0000 (09:02 +0200)
This fixes a bootstrap error with clang 10 that would complain
  /usr/include/c++/v1/typeinfo:346:5: error: no member named
  'fancy_abort' in namespace 'std::__1'; did you mean simply
  'fancy_abort'?
It mirrors how this is handled in gcov.c and indirectly includes
<vector> via system.h.

gcc/ChangeLog:

* ipa-fnsummary.c (INCLUDE_VECTOR): Define.
Remove direct inclusion of <vector>.

gcc/ipa-fnsummary.c

index 49bab04524b48d2664ef09b22619a9e9e220e0d0..59e529271511069fc8869fd104814dd8787a4e65 100644 (file)
@@ -52,6 +52,7 @@ along with GCC; see the file COPYING3.  If not see
    inlined performs analysis via its analyze_function method. */
 
 #include "config.h"
+#define INCLUDE_VECTOR
 #include "system.h"
 #include "coretypes.h"
 #include "backend.h"
@@ -82,7 +83,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "gimplify.h"
 #include "stringpool.h"
 #include "attribs.h"
-#include <vector>
 #include "tree-into-ssa.h"
 
 /* Summaries.  */