Date: Sun, 21 Oct 2018 08:00:59 -0700 (PDT) From: "Rodney W. Grimes" <freebsd@pdx.rh.CN85.dnsmgr.net> To: Jan Beich <jbeich@freebsd.org> Cc: Dimitry Andric <dim@freebsd.org>, Glen Barber <gjb@freebsd.org>, src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r339436 - in head: . contrib/gcc gnu/usr.bin/cc/cc_tools lib/clang release sys/conf sys/sys Message-ID: <201810211500.w9LF0xXs005428@pdx.rh.CN85.dnsmgr.net> In-Reply-To: <efcj-r37h-wny@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> Dimitry Andric <dim@FreeBSD.org> writes: > > > On 21 Oct 2018, at 04:08, Jan Beich <jbeich@FreeBSD.org> wrote: > > > >> > >> Glen Barber <gjb@FreeBSD.org> writes: > >> > >>> Modified: head/lib/clang/llvm.build.mk > >>> ============================================================================== > >>> --- head/lib/clang/llvm.build.mk Fri Oct 19 00:24:23 2018 (r339435) > >>> +++ head/lib/clang/llvm.build.mk Fri Oct 19 00:37:47 2018 (r339436) > >>> @@ -17,7 +17,7 @@ CFLAGS+= -I${LLVM_SRCS}/include > >>> CFLAGS+= -DLLVM_BUILD_GLOBAL_ISEL > >>> CFLAGS+= -D__STDC_LIMIT_MACROS > >>> CFLAGS+= -D__STDC_CONSTANT_MACROS > >>> -#CFLAGS+= -DNDEBUG > >>> +CFLAGS+= -DNDEBUG > >> > >> Would Clang still hit asserts instead of crashing with cryptic messages? > > > > In llvm, assertions (and various other internal consistency checks) are > > turned off by defining NDEBUG. So indeed, if something in the internal > > state goes in an unexpected direction, you could get crashes or other > > "interesting" effects. > > > > That said, the resulting executable(s) should run somewhat faster, and > > be somewhat smaller. I think we have always done this for stable > > branches and releases. > > But this commit is for -CURRENT, not -STABLE or -RELEASE. With hat RE: It looks like this should be on the list of RE@ "Stable Branch Creation" check/change list that gets done by RE@ when a stable branch is created so that it is a early commit post branch and not a head commit that is merged post branch. I have forwarded a copy of this issue to internel re@ mail and we whall deal with it for stable/12 as an RE(implicit) commit, and this should probably be reverted from ^head at your descrition. Thanks, Rod <RE > > $ svn cat svn://svn.freebsd.org/base/stable/12/lib/clang/llvm.build.mk | fgrep NDEBUG ~ > #CFLAGS+= -DNDEBUG > > $ svn cat svn://svn.freebsd.org/base/releng/11.2/lib/clang/llvm.build.mk | fgrep NDEBUG > CFLAGS+= -DNDEBUG > > > > > If users encounter such crashes, it will still write reproduction files > > (self-contained .c or .cpp file and a shell script), so those can be > > included in bug reports, and run on a copy of clang with assertions. > > > > -Dimitry -- Rod Grimes rgrimes@freebsd.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810211500.w9LF0xXs005428>