From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57717 invoked by alias); 19 Feb 2018 17:51:15 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 57628 invoked by uid 89); 19 Feb 2018 17:51:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 19 Feb 2018 17:51:13 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-03.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1enpap-0001Jw-Qy from joseph_myers@mentor.com for gcc@gcc.gnu.org; Mon, 19 Feb 2018 09:51:11 -0800 Received: from digraph.polyomino.org.uk (137.202.0.87) by SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Mon, 19 Feb 2018 17:51:08 +0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.86_2) (envelope-from ) id 1enpal-0005oT-By; Mon, 19 Feb 2018 17:51:07 +0000 Date: Mon, 19 Feb 2018 17:51:00 -0000 From: Joseph Myers To: Sandra Loosemore CC: "gcc@gcc.gnu.org" Subject: Re: $target.h vs $target-protos.h In-Reply-To: <78fe56ae-65f8-1562-c25d-58b299c210aa@codesourcery.com> Message-ID: References: <61ee64bd-482c-e40f-a835-08d44e747825@codesourcery.com> <78fe56ae-65f8-1562-c25d-58b299c210aa@codesourcery.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-ClientProxiedBy: svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) To SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) X-SW-Source: 2018-02/txt/msg00149.txt.bz2 On Mon, 19 Feb 2018, Sandra Loosemore wrote: > On 02/19/2018 09:45 AM, Joseph Myers wrote: > > On Sun, 18 Feb 2018, Sandra Loosemore wrote: > > > > > Thanks, this makes sense. I think I could produce a documentation patch > > > that > > > explains that the difference is early vs late inclusion, and explains that > > > any > > > declarations involving tree or rtx types must go in $target-protos.h > > > because > > > those types are not defined when $target.h is included. > > > > That's not the case now for tree or rtx types, since they're (forward) > > declared in coretypes.h. It may still be the case for some types, but not > > those. > > OK, I think I misunderstood your previous message -- it's the > machine_mode-related types that have the circular dependency, but rtx and tree > no longer do. Is that right? The machine_mode-related types don't either (since coretypes.h includes insn-modes.h and machmode.h). Some types may well still have that dependency, but I don't know which. -- Joseph S. Myers joseph@codesourcery.com