On Mon, Jan 25, 2016 at 2:53 PM, Michael Matz <m...@suse.de> wrote: > Hi, > > On Mon, 25 Jan 2016, Uros Bizjak wrote: > >> 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 > > Meh. Can you try the attached patch with a configure test (it includes > the generated files)? It works for me with 4.3.4, and should make your > build include <algorithm> always.
Yes, this patch works for me and allows bootstrap with gcc-4.1.2 to finish. Thanks, Uros.