aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/gcov.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5556ec9..f1e77e3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2017-01-22 Dimitry Andric <dim@FreeBSD.org>
+
+ * gcov.c (INCLUDE_ALGORITHM): Define.
+ (INCLUDE_VECTOR): Define.
+ No longer include <vector> and <algorithm> directly.
+
2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
* doc/extend.texi (Thread-Local): Change www.akkadia.org reference
diff --git a/gcc/gcov.c b/gcc/gcov.c
index 5fda144..f1067b4 100644
--- a/gcc/gcov.c
+++ b/gcc/gcov.c
@@ -31,6 +31,8 @@ along with Gcov; see the file COPYING3. If not see
probabilities of fall through arcs. */
#include "config.h"
+#define INCLUDE_ALGORITHM
+#define INCLUDE_VECTOR
#include "system.h"
#include "coretypes.h"
#include "tm.h"
@@ -41,8 +43,6 @@ along with Gcov; see the file COPYING3. If not see
#include <getopt.h>
-#include <vector>
-#include <algorithm>
#include "md5.h"
using namespace std;