This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, i386]: Use std::swap


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]