Subject: Re: Compiling an kernel with egcs?
To: Todd Vierling <tv@NetBSD.ORG>
From: None <>
List: current-users
Date: 04/12/1998 22:27:39
In message <>, Todd Vierli
ng writes:
>Hm.  It works for me, as long as -Wno-main is _after_ -Wall.  Code check
>shows that -Wno-main does what it's told.  I'm contemplating a "clean" way
>of adding this option to kernel Makefiles without breaking them on gcc 2.7.
>Particulary, I have to check if the FSF distribution of gcc 2.8 accepts
>-Wno-main, or if it is only an egcs thing.

It should.

I thought my original patch was smart enough to decide whether or not
to warn for main "correctly" - maybe I botched.  I.e., -Wno-main should
have overridden -Wall.

>There's a flag_hosted that is set/unset by -f{,no-}freestanding, but nothing
>in the egcs 1.0.2 code seems to use it.

It may some day.  :)