This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, i386]: Use std::swap
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: Richard Biener <richard dot guenther at gmail dot com>, Marc Glisse <marc dot glisse at inria dot fr>
- Date: Tue, 11 Nov 2014 09:09:46 +0100
- Subject: Re: [PATCH, i386]: Use std::swap
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4Z1gspEpeVbAsbR6K1NaR+Bg9VfLpAA8png+=xyLoCOqw at mail dot gmail dot com> <4E8B61D5-FBFE-4BC8-A252-9B1580E1E8DE at gmail dot com> <alpine dot DEB dot 2 dot 11 dot 1411102250210 dot 8347 at laptop-mg dot saclay dot inria dot fr>
On Mon, Nov 10, 2014 at 10:51 PM, Marc Glisse <marc.glisse@inria.fr> wrote:
> On Mon, 10 Nov 2014, Richard Biener wrote:
>
>> No extra includes required?
>
>
> <utility> is already included in wide-int.h and rtl.h, should probably move
> those.
Bah, we hit a problem. std::swap has been moved from <algorithm> to
<utility> in C++11, and the patch breaks build on CentOS 5.11
(gcc-4.1.2).
Short of reverting the i386.c patch, is there a quick solution by
including some additional headers?
Uros.