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: fixing vs WARN_CFLAGS vs cross builds


On Tue, 2004-03-30 at 17:43, DJ Delorie wrote:
> Yes.  BUILD_CC is 3.2.3, and does not support these:
> cc1: unrecognized option `-Wno-variadic-macros'
> cc1: unrecognized option `-Wold-style-definition'

There is still an unanswered question here.  Why is this failing for
BUILD_CC but not CC or HOST_CC?  This needs further investigation.

I see that these options are in STRICT2_WARN which is not used except in
POSTSTAGE1_FLAGS_TO_PASS, which is only used for stage2 and stage3
builds.  Thus we only use the flags when we know that we are building
ourselves, in which case these options are always safe.

So I still don't see why you are having a problem.  You need to better
explain why your build is failing.  What exactly are you doing that is
causing the failure?

> I have a patch which tests for build!=host and disables WARN_CFLAGS,
> but should fixinc *ever* be built with WARN_CFLAGS?

We could in stage2 and stage3 builds, in which case we know that
CC_FOR_BUILD must be a compiler built from the current sources, as we
can only reach here for native builds.  That seems to be how it
currently works.

Are you perhaps trying to bootstrap a cross compiler somehow?  I don't
see how this can work, but this seems to be the only way to trigger this
failure.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com


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