From patchwork Tue Feb 27 23:27:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Edelsohn X-Patchwork-Id: 878866 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-473970-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="GH3IJu1a"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zrZcR706kz9s0q for ; Wed, 28 Feb 2018 10:27:51 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=hG5mhTfChhpVFn/273fYVP0UJ1G0sy1ADw45qgNID6wgkm vBEXRMy2otYQSyCsvMOuBjjaiwIjEhY2N0HM95pRMMk6hsktEpdpXPHgbi0e6p0D GEDpTxYemLL8DlvD+V1zgTEfrRZxXkQ6X6117xP7wbw0zQZubM2VZDzObMtG0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=TrQUJYYgrh3YjHBXHwTQEZp9WAk=; b=GH3IJu1a2rKGmZyjeL8U bvjJghaW8PqrX+YCIq30cray7JRpL1EioAFy1shHn5PQukHLCD/LCI/WmFfxz7AM TrDZuINPaN9TrvyD9NawP3EFJa0/6OE4GSNKvrN/8CeghwBJvMdNXdqZwFZTdM7W B4MVmM7g3Badh+KWyouQHCs= Received: (qmail 106640 invoked by alias); 27 Feb 2018 23:27:43 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 106627 invoked by uid 89); 27 Feb 2018 23:27:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.0 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-lf0-f42.google.com Received: from mail-lf0-f42.google.com (HELO mail-lf0-f42.google.com) (209.85.215.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 27 Feb 2018 23:27:42 +0000 Received: by mail-lf0-f42.google.com with SMTP id 70so792670lfw.2 for ; Tue, 27 Feb 2018 15:27:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ECGYZoVxa2HuXa+cx/QI+vqmerwJQRW1fh1e9cD6IsY=; b=ORZBha44mh8pGoEiMApRa/YA/J3/0/h4XXlb4EnNJlzDErzQTpKwt9vBBy/XhBmk3D cI+3mQq/PCZWE1QjGRq4yq4q6J5MbsBacAzFmbjgmwKS/D3higl2UOjzkJdE5tQ5rpa/ B4dzRwgTrinHOuEHRemky1CHreDECStj9/GX2VknbaMB27ob59wyrf1+2jn/QEzbvaGW lmVwaEFRlLy7ufDA8C2S/kjm9G4MHvHux2OGH4ki/3rAFND0F5y3nVorM8cTIIhmKUeB 0X38HgTJZalDlhgP2lOfBZ21kuKSeyp5n0UMP8qkLfOg2GufdPp5guAMr944bEcKL7Ti 2+qg== X-Gm-Message-State: APf1xPC17xMLcxgYxk37m4SEoPpXz+gUYlIvXljK2lzQh93blJRKLT4+ K/c+85i1Uqc8QpPjhkMX4dYx7JAw4U9SWyNlH7BeUQ== X-Google-Smtp-Source: AG47ELt/1rY4IrgrqFa8SfbH5D5z0iykp+cWwzn/sfNGUgJ3eXMiQE4gwW4qFWCv8MnMLdOh4ORdEvM8KzFFFYt0xhY= X-Received: by 10.25.234.148 with SMTP id y20mr11355717lfi.53.1519774059486; Tue, 27 Feb 2018 15:27:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.46.64.133 with HTTP; Tue, 27 Feb 2018 15:27:38 -0800 (PST) From: David Edelsohn Date: Tue, 27 Feb 2018 18:27:38 -0500 Message-ID: Subject: [PATCH] Fix pt.c bootstrap breakage To: GCC Patches , Jason Merrill , Jakub Jelinek , Martin Sebor The recent change to pt.c broke bootstrap by including C++ header file directly and including it first. This patch changes to the necessary method which includes the header file via system.h. Okay? Thanks, David * pt.c: Don't include string. Define INCLUDE_STRING before system.h. Index: pt.c =================================================================== --- pt.c (revision 258045) +++ pt.c (working copy) @@ -24,8 +24,8 @@ all methods must be provided in header files; can't use a source file that contains only the method templates and "just win". */ -#include #include "config.h" +#define INCLUDE_STRING #include "system.h" #include "coretypes.h" #include "cp-tree.h"