public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-2587] ipa-fnsummary: Include <vector> the proper way
@ 2020-08-06 7:02 Gerald Pfeifer
0 siblings, 0 replies; only message in thread
From: Gerald Pfeifer @ 2020-08-06 7:02 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:85245bda63ab4cdad0a7cb0f94e06ad4b9a121d2
commit r11-2587-g85245bda63ab4cdad0a7cb0f94e06ad4b9a121d2
Author: Gerald Pfeifer <gerald@pfeifer.com>
Date: Thu Aug 6 09:02:15 2020 +0200
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>.
Diff:
---
gcc/ipa-fnsummary.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c
index 49bab04524b..59e52927151 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. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-06 7:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-06 7:02 [gcc r11-2587] ipa-fnsummary: Include <vector> the proper way Gerald Pfeifer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).