Re: $target.h vs $target-protos.h

2018-02-25 Thread Georg-Johann Lay
Sandra Loosemore schrieb: The internals manual says that a backend for $target should have $target.h and $target-protos.h files, but doesn't say what the difference between them is or what belongs in which file. Current practice seems to be a mix of (1) $target.h contains macro definitions a

Re: $target.h vs $target-protos.h

2018-02-23 Thread Richard Sandiford
Joseph Myers writes: > 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 differen

Re: $target.h vs $target-protos.h

2018-02-19 Thread Joseph Myers
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,

Re: $target.h vs $target-protos.h

2018-02-19 Thread Sandra Loosemore
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

Re: $target.h vs $target-protos.h

2018-02-19 Thread Joseph Myers
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

Re: $target.h vs $target-protos.h

2018-02-18 Thread Sandra Loosemore
On 02/18/2018 12:10 PM, Joseph Myers wrote: On Sun, 18 Feb 2018, Sandra Loosemore wrote: So what is the purpose of having a separate $target-protos.h? It looks like the original explanation was , "Because tm_p.h needs to be included a

Re: $target.h vs $target-protos.h

2018-02-18 Thread Joseph Myers
On Sun, 18 Feb 2018, Sandra Loosemore wrote: > So what is the purpose of having a separate $target-protos.h? It looks like the original explanation was , "Because tm_p.h needs to be included after tree.h and rtl.h.". It's certainly sti