This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Prototyping functions in target header files


>   > Here's an updated version of a patch I sent a few months ago.  This patch
>   > makes it possible to split the various machine/machine.h files into one
>   > that contains only prototypes, and one that contains the rest.  The header
>   > that contains the prototypes is included by several source files immediately
>   > after tree.h/rtl.h.
>   > So far, only i386.h is converted, but converting the other targets is
>   > straightforward.
> Interesting idea.  I like it, though I don't like the idea of changing all
> the .c files again :-)
> 
> Though I guess it's necessary.
> 
> If we're going to use this, I'd like to convert all the non-target files at
> once instead of trying to do it piecemeal like we've done for some stuff in
> the past.  Yes, it's an experiment of some sorts...

So how do you want to proceed?  If you want, I can send you an updated patch
that includes tm_p.h everywhere (for some definition of "everywhere", e.g.
most of the front-end files probably won't need it and might be left out).

Bernd



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]