[Patch] libgcov.c re-factoring

Andrew MacLeod amacleod@redhat.com
Wed Jan 8 03:42:00 GMT 2014


On 01/07/2014 06:47 PM, Xinliang David Li wrote:
> A related question. I have not followed the header file restructuring
> discussion.  Is there a documentation on header file structure and how
> they are organized? In a new .c file, simply including gimple.h would
> require many rounds of iterations to find missing headers via trial
> (compilation) and error.
>
> thanks,
>
>
Not as yet...  right now its in a cleanup phase where we are trying to 
flatten it out so we can get see where things are actually coming from 
and how they are used, and then relocate/reorganize things into sensible 
places.

In an ideal world, Id like to eventually see the core component files, 
tree.h, gimple.h and rtl.h include all the basic files those components 
need, then each .c file can add whatever else is needed...  but we'll 
see when we get closer.
Andrew

PS In reality, for now creating a new .c file probably isn't much 
different than it was before... you find some other .c file, copy the 
#includes from that, and go from there :-)




More information about the Gcc-patches mailing list