gcov.c (INCLUDE_ALGORITHM): Define.
authorDimitry Andric <dim@FreeBSD.org>
Sun, 22 Jan 2017 15:48:21 +0000 (15:48 +0000)
committerGerald Pfeifer <gerald@gcc.gnu.org>
Sun, 22 Jan 2017 15:48:21 +0000 (15:48 +0000)
* gcov.c (INCLUDE_ALGORITHM): Define.
(INCLUDE_VECTOR): Define.
No longer include <vector> and <algorithm> directly.

From-SVN: r244758

gcc/ChangeLog
gcc/gcov.c

index 5556ec9e333cd9419b2ec5168291b4bf10e44c55..f1e77e3a2e9b9a8cf05a977392fd1619f49bb627 100644 (file)
@@ -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
index 5fda144b027c0b6138cf736928110988464c0334..f1067b4986c78db088bf03b452ff5a45ef3cd4a5 100644 (file)
@@ -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;