This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Speedup configure and build with system.h
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: Michael Matz <matz at suse dot de>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Richard Biener <rguenther at suse dot de>
- Date: Tue, 26 Jan 2016 11:02:15 +0100
- Subject: Re: Speedup configure and build with system.h
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4aOb_kPSVOm1_-r1vVSvWxrA0AyB49kvBVb0GUwVwbe-w at mail dot gmail dot com> <alpine dot LSU dot 2 dot 20 dot 1601251452200 dot 25099 at wotan dot suse dot de>
On Mon, Jan 25, 2016 at 2:53 PM, Michael Matz <matz@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.