From owner-freebsd-current@freebsd.org Fri May 8 19:18:25 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A41092DFAFF for ; Fri, 8 May 2020 19:18:25 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49Jg8x1fWkz4DJt; Fri, 8 May 2020 19:18:24 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id 048JIFNY012454 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 8 May 2020 22:18:18 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 048JIFNY012454 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id 048JIF6h012453; Fri, 8 May 2020 22:18:15 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 8 May 2020 22:18:15 +0300 From: Konstantin Belousov To: John Baldwin Cc: Warner Losh , Eric van Gyzen , freebsd-current Subject: Re: ${COMPILER_VERSION} < 40300 Message-ID: <20200508191815.GD44519@kib.kiev.ua> References: <2f15c981-8846-ddef-6593-dadc14933cc5@vangyzen.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.5 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED,SUBJ_ALL_CAPS autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on tom.home X-Rspamd-Queue-Id: 49Jg8x1fWkz4DJt X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.32 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 May 2020 19:18:25 -0000 On Fri, May 08, 2020 at 11:22:51AM -0700, John Baldwin wrote: > On 5/7/20 10:17 AM, Warner Losh wrote: > > On Thu, May 7, 2020 at 10:38 AM Eric van Gyzen wrote: > > > >> If I were to clean up obsolete ${COMPILER_VERSION} tests in the tree, > >> which ones should I keep? I would probably confine it to head, so I > >> could prune quite a few. > >> > > > > Anything in the bootstrap path should remain, especially in the install > > portion of the bootstrap path since we don't require new compilers for > > that. I doubt there's more than one or two of these and there may be zero. > > The rest can go away. > > > > We should also look at taking out the fmake workarounds in the tree too. > > Most of these are in src/Makefile and src/Makefile.inc. > > I think Eric though was asking about and the like. Right now > we still have conditional support for some really old compilers that are > likely to never be used with FreeBSD 13 (ancient Intel icc, gcc 2.95, etc.). > > Like, do we keep support for pre-ANSI C to delete 'const' etc. via > macros? Admittedly there isn't a tremendous amount of cruft in cdefs.h. > What would seem more invasive would be to do things like require C99 and > use 'restrict' directly instead of __restrict, but the first step towards > any of that is probably to remove some of the cruft from cdefs.h and > possibly some other places. I think __restrict still needs to be around, due to C++ not supporting the keyword. Actually there is more urgent need to add some bits to cdefs.h, like c17 and newer POSIX_C_SOURCE. > > (BTW, it would be good to know if it's at all useful to keep any of the > icc bits around.) > > -- > John Baldwin > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"