From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94331 invoked by alias); 26 Jan 2016 10:02:20 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 94310 invoked by uid 89); 26 Jan 2016 10:02:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:753 X-HELO: mail-oi0-f41.google.com Received: from mail-oi0-f41.google.com (HELO mail-oi0-f41.google.com) (209.85.218.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 26 Jan 2016 10:02:17 +0000 Received: by mail-oi0-f41.google.com with SMTP id p187so105184609oia.2 for ; Tue, 26 Jan 2016 02:02:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=zEiUIvcUQ66xt36UXwcdTedmYHYUOx9z8XzCLLsVX5o=; b=HYiLO/m/KJ1cOoG0emPDiKNoYdMr4DmH1Xaev6ftZJjruYnyAjPJU04MQXf5XGZKFV bMBfbjcwKQI4L3aLqYNiQkc2MLUDz4i/+5/om17mn5IQ+l8ijELg5vQQeBg3UzEEGrEz 41Og6I654usI5LvEE3eW3E2j6QjcN9TYPDVvcMfpiKtpBgktaD/GGKgT+ql2OA6jxAU/ uBNRAoet8VGrt7UbJqoiWd7aopak0coZRHS29e3ORORSWZsnzjutltCOo7KHoMeTKuNJ oX/uqHr0HBfhrfMDBq5ucafSEOg7wGFqAPy8n6GVm4G3LJuumBCCoLoo1G5eFBR139DO RwLA== X-Gm-Message-State: AG10YOQZCZtVXEyqoEmvVPSltgnP52X1tb1ejQhuWOOUHvrMAs++NT0TSR4m5tZ0ag6jGL90vXB016Z9pQzfrA== MIME-Version: 1.0 X-Received: by 10.202.75.205 with SMTP id y196mr16688689oia.130.1453802535127; Tue, 26 Jan 2016 02:02:15 -0800 (PST) Received: by 10.60.143.4 with HTTP; Tue, 26 Jan 2016 02:02:15 -0800 (PST) In-Reply-To: References: Date: Tue, 26 Jan 2016 10:02:00 -0000 Message-ID: Subject: Re: Speedup configure and build with system.h From: Uros Bizjak To: Michael Matz Cc: "gcc-patches@gcc.gnu.org" , Richard Biener Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2016-01/txt/msg01948.txt.bz2 On Mon, Jan 25, 2016 at 2:53 PM, Michael Matz 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 >> 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 always. Yes, this patch works for me and allows bootstrap with gcc-4.1.2 to finish. Thanks, Uros.