* system.h (string, algorithm): Include only conditionally.
(new): Include always under C++.
* bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
* final.c (toplevel): Ditto.
* ipa-chkp.c (toplevel): Define INCLUDE_STRING.
* genconditions.c (write_header): Make gencondmd.c define
INCLUDE_STRING.
* mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
* config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
* common/config/aarch64/aarch64-common.c (toplevel): Ditto.
From-SVN: r232736
+2016-01-22 Michael Matz <matz@suse.de>
+
+ * system.h (string, algorithm): Include only conditionally.
+ (new): Include always under C++.
+ * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
+ * final.c (toplevel): Ditto.
+ * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
+ * genconditions.c (write_header): Make gencondmd.c define
+ INCLUDE_STRING.
+ * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
+
+ * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
+ * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
+
2016-01-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
* gcc.target/powerpc/pr63354.c: Restrict to Linux targets with
*/
#include "config.h"
+#define INCLUDE_ALGORITHM /* stable_sort */
#include "system.h"
#include "coretypes.h"
#include "backend.h"
<http://www.gnu.org/licenses/>. */
#include "config.h"
+#define INCLUDE_STRING
#include "system.h"
#include "coretypes.h"
#include "tm.h"
<http://www.gnu.org/licenses/>. */
#include "config.h"
+#define INCLUDE_STRING
#include "system.h"
#include "coretypes.h"
#include "backend.h"
function_epilogue. Those instructions never exist as rtl. */
#include "config.h"
+#define INCLUDE_ALGORITHM /* reverse */
#include "system.h"
#include "coretypes.h"
#include "backend.h"
machine description file. */\n\
\n\
#include \"bconfig.h\"\n\
+#define INCLUDE_STRING\n\
#include \"system.h\"\n\
\n\
/* It is necessary, but not entirely safe, to include the headers below\n\
<http://www.gnu.org/licenses/>. */
#include "config.h"
+#define INCLUDE_STRING
#include "system.h"
#include "coretypes.h"
#include "backend.h"
static inline void
print_dash_line (size_t count = 140)
{
- fprintf (stderr, "%s\n", std::string (count, '-').c_str ());
+ while (count--)
+ fputc ('-', stderr);
+ fputc ('\n', stderr);
}
/* Dump header with NAME. */
the ctype macros through safe-ctype.h */
#ifdef __cplusplus
+#ifdef INCLUDE_STRING
# include <string>
#endif
+#endif
/* There are an extraordinary number of issues with <ctype.h>.
The last straw is that it varies with the locale. Use libiberty's
#endif
#ifdef __cplusplus
+#ifdef INCLUDE_ALGORITHM
# include <algorithm>
+#endif
# include <cstring>
+# include <new>
# include <utility>
#endif