aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGerald Pfeifer <gerald@pfeifer.com>2020-08-06 09:02:15 +0200
committerGerald Pfeifer <gerald@pfeifer.com>2020-08-06 09:02:15 +0200
commit85245bda63ab4cdad0a7cb0f94e06ad4b9a121d2 (patch)
treeba62dbb771788cd61279e95e2b1692ac85485cb7 /gcc
parentdfdf9085d31a1be25cd434328b0ba466c397edb2 (diff)
downloadgcc-85245bda63ab4cdad0a7cb0f94e06ad4b9a121d2.zip
gcc-85245bda63ab4cdad0a7cb0f94e06ad4b9a121d2.tar.gz
gcc-85245bda63ab4cdad0a7cb0f94e06ad4b9a121d2.tar.bz2
ipa-fnsummary: Include <vector> the proper way
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>.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ipa-fnsummary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c
index 49bab04..59e5292 100644
--- a/gcc/ipa-fnsummary.c
+++ b/gcc/ipa-fnsummary.c
@@ -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. */