Hello! > * system.h (string, algorithm): Include only conditionally. > (new): Include always under C++. > * bb-reorder.c (toplevel): Define USES_ALGORITHM. > * final.c (toplevel): Ditto. > * ipa-chkp.c (toplevel): Define USES_STRING. > * genconditions.c (write_header): Make gencondmd.c define > USES_STRING. > * mem-stats.h (mem_usage::print_dash_line): Don't use std::string. > > * config/aarch64/aarch64.c (toplevel): Define USES_STRING. > * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
This patch caused bootstrap failure on non-c++11 bootstrap compiler [1], e.g. CentOS 5.11. The problem is with std::swap, which was defined in header <algorithm> until c++11 [2]. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69464 [2] http://en.cppreference.com/w/cpp/algorithm/swap Uros.