This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] fixproto and canadian cross builds
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Paul Brook <paul at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 23 Nov 2005 14:53:53 -0800
- Subject: Re: [RFC] fixproto and canadian cross builds
- References: <200511231856.24635.paul@codesourcery.com>
Paul Brook wrote:
> This suggests two options on what's supposed to happen:
> (a) fix-header should actually be compiled for the "host" environment. If
> host==build we run it, otherwise we just install it and let the user run it
> on the build system.
I think this is the right option, though, probably, we should be using a
build->target fixproto, rather than doing nothing. (Just like we run
the build->target compiler to build libgcc.)
In any case, I'd imagine that whatever do for fixincludes also applies
to these programs; it seems like it should be built and run in the same way.
For Canadian crosses, we have:
if test "x$TARGET_SYSTEM_ROOT" = x; then
if test "x$STMP_FIXPROTO" != x; then
STMP_FIXPROTO=stmp-install-fixproto
fi
fi
I'm not sure what the TARGET_SYSTEM_ROOT check is doing there; I'd think
that ought to be unconditional, given the current Makefile.
> (c) fixproto is only for crufty old systems no-one really cares about. It
> should be disabled by default, and documented to not work for canadian
> crosses.
Hmm. A lot of the *-elf targets have use_fixproto=yes in config.gcc,
which somewhat surpises me; I'd have thought newlib didn't require that.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304