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]
Other format: [Raw text]

Re: [PATCH]: Separate target and host config files


Nathan Sidwell <nathan@codesourcery.com> writes:

> This patch implements the subset idea.  Paolo had sufficient autoconf/m4-fu
> to create the right macros to do this. 

This, I like.  It's even better than the grep idea, because the
indication of whether any given macro is relevant to the target is
right next to the definition of the macro in configure.ac.

> Each #define in the autoheader'd config.in gets wrapped in a #ifndef
> USED_FOR_TARGET, _unless_ we specifically ask it not to.  The
> slightly funky formatting for the macro #endif
> 	]))])
> is necessary to stop autoheader's scanning of the configure file from
> barfing.  This causes two blank lines between each entry of config.in.
> Paolo knows the details.

You might be able to get rid of the extra blank line by writing

#endif[]dnl
]))])

but this is untested, and I wouldn't bother trying very hard to make
it work.  Extra blank lines are harmless, after all.

I think the redefinition of AH_TEMPLATE belongs in configure.ac, not
aclocal.m4, but if the autoconf custom is to put it in aclocal.m4 then
go with that.

I don't see how auto-host.h is now getting included in tconfig.h.

zw


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