Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Nov 2017 09:38:28 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Bruce Evans <brde@optusnet.com.au>
Cc:        "Rodney W. Grimes" <rgrimes@freebsd.org>, Warner Losh <imp@freebsd.org>,  src-committers <src-committers@freebsd.org>,  "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>,  "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r325954 - in head: . share/mk sys/conf usr.sbin/config
Message-ID:  <CANCZdfpXR3B8g4ZKR5mx_QjNeTck5u6QwBdB=tNXoDw86zJGdA@mail.gmail.com>
In-Reply-To: <20171118190422.V949@besplex.bde.org>
References:  <CANCZdfrrd9JKxN=ZSi17iK_D=rh5R66pkHH%2BmPmy7wENh90k6Q@mail.gmail.com> <201711180134.vAI1Y2ks064138@pdx.rh.CN85.dnsmgr.net> <CANCZdfod-=vqcZ-NoNmkBPE_--tTcEX6NvyZncR0Bqn%2BrwA=QQ@mail.gmail.com> <20171118190422.V949@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Nov 18, 2017 at 3:42 AM, Bruce Evans <brde@optusnet.com.au> wrote:

> since it flags all c99 and newer usages as syntax errors. We've been
>>>>
>>>
> This shouldn't break use of lint on K&R or C90 sources.  But types.h is
> broken.  It no longer supports K&R, C90, or most other things that are
> supposed to be controlled by the visibility ifdefs in it.


Thanks for this insightful analysis. I've clipped the rest of it, which is
more of the same. It can't support the new C compiler construct, and we've
managed to break the old ones. Plus it gives lots of warnings that aren't
useful and doesn't understand several of the idioms we've started using
heavily in the kernel (such as forward struct declaration). Since many of
these problems are in the system kernel headers, the break all non-trivial
uses of lint.

None of these things are ever going to be fixed. It's quite likely the
kernel will never again compile on anything older than a c99 compiler.
While we have a lot of ifdefs to attempt to support older compilers, it's
almost all certainly bit-rotted from lack of use.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpXR3B8g4ZKR5mx_QjNeTck5u6QwBdB=tNXoDw86zJGdA>