This is the mail archive of the gcc@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: [RFC] fixproto and canadian cross builds


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


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