* [SH][committed] Fix PR 80870
@ 2018-01-21 7:25 Oleg Endo
0 siblings, 0 replies; only message in thread
From: Oleg Endo @ 2018-01-21 7:25 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 369 bytes --]
Hi,
The following fixed PR 80870.
For whatever reason one of the source files in config/sh was still
including <algorithm> and <vector> directly...
Committed as r256926 (trunk), r256928 (GCC 7), r256929 (GCC 6).
Cheers,
Oleg
gcc/ChangeLog:
PR target/80870
* config/sh/sh_optimize_sett_clrt.cc:
Use INCLUDE_ALGORITHM and INCLUDE_VECTOR instead of direct includes.
[-- Attachment #2: sh_pr80870.patch --]
[-- Type: text/x-patch, Size: 682 bytes --]
Index: gcc/config/sh/sh_optimize_sett_clrt.cc
===================================================================
--- gcc/config/sh/sh_optimize_sett_clrt.cc (revision 256924)
+++ gcc/config/sh/sh_optimize_sett_clrt.cc (working copy)
@@ -20,6 +20,8 @@
#define IN_TARGET_CODE 1
#include "config.h"
+#define INCLUDE_ALGORITHM
+#define INCLUDE_VECTOR
#include "system.h"
#include "coretypes.h"
#include "backend.h"
@@ -29,9 +31,6 @@
#include "cfgrtl.h"
#include "tree-pass.h"
-#include <vector>
-#include <algorithm>
-
/*
This pass tries to eliminate unnecessary sett or clrt instructions in cases
where the ccreg value is already known to be the same as the constant set
[-- Attachment #3: sh_pr80870_gcc7_gcc6.patch --]
[-- Type: text/x-patch, Size: 693 bytes --]
Index: gcc/config/sh/sh_optimize_sett_clrt.cc
===================================================================
--- gcc/config/sh/sh_optimize_sett_clrt.cc (revision 256924)
+++ gcc/config/sh/sh_optimize_sett_clrt.cc (working copy)
@@ -18,6 +18,8 @@
<http://www.gnu.org/licenses/>. */
#include "config.h"
+#define INCLUDE_ALGORITHM
+#define INCLUDE_VECTOR
#include "system.h"
#include "coretypes.h"
#include "backend.h"
@@ -27,9 +29,6 @@
#include "cfgrtl.h"
#include "tree-pass.h"
-#include <vector>
-#include <algorithm>
-
/*
This pass tries to eliminate unnecessary sett or clrt instructions in cases
where the ccreg value is already known to be the same as the constant set
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-21 5:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-21 7:25 [SH][committed] Fix PR 80870 Oleg Endo
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).