This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch to include gansidecl.h in {ht}config.h
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: patch to include gansidecl.h in {ht}config.h
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 04 Nov 1998 14:39:50 -0700
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199810302009.PAA21984@caip.rutgers.edu>you write:
> ---------------------------------------------------------------------------
> >>>>>> Also it appears that, independent of my patch, canadian cross
> compiles are slightly broken (and have been for a while) because of the
> settings of the $vars and $links variables in configure.in.
>
> > vars="host_xm_file tm_file xm_file build_xm_file"
> > links="config.h tm.h tconfig.h hconfig.h"
>
> I think $links has config.h and hconfig.h backwards based on the order
> listed in $vars. My eyeball tells me this would cause config.h to get
> auto-host.h and hconfig.h would get auto-build.h in a canadian cross
> compile. (That's backwards right?)
>
> My patch doesn't touch this since I'm not sure. I just noticed
> it while doing my own stuff.
GCC's notion of host vs build is backwards. It's a pain in the butt. Fixing
it was discussed a while ago, and if I remember right the decision was not to
mess with it (it had some value, but I can't remember what it was).
It's entirely possible we've further confused things by using the normal
host vs build conventions somewhere (if so, we ought to fix that :-)
Are you missing a case where you need to add gansidecl.h to build_xm_file_list
in the last hunk in the outer else arm?
> build_xm_file_list=
> for f in $build_xm_file; do
> if test $f != "auto-build.h"; then
> - if test $f != "auto-host.h"; then
> + if test $f != "auto-host.h" -a $f != "gansidecl.h" ; then
> build_xm_file_list="${build_xm_file_list} \$(srcdir)/co
> nfig/$f"
> else
> - build_xm_file_list="${build_xm_file_list} auto-host.h"
> + build_xm_file_list="${build_xm_file_list} $f"
> fi
> else
> build_xm_file_list="${build_xm_file_list} auto-build.h"