Date: Sat, 4 Aug 2018 20:22:35 +0100 From: Warner Losh <imp@bsdimp.com> To: Dimitry Andric <dim@freebsd.org> Cc: src-committers <src-committers@freebsd.org>, svn-src-projects@freebsd.org Subject: Re: svn commit: r337324 - in projects/clang700-import/sys: conf modules/fxp Message-ID: <CANCZdfogA8y%2BxD3m30cmHj=iRWU6XaFSQM%2BkjEBgLv%2B97tJekg@mail.gmail.com> In-Reply-To: <201808041538.w74FcJ1f056616@repo.freebsd.org> References: <201808041538.w74FcJ1f056616@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
There is something magical here that needs to be understood... I'll look into it. Warner On Sat, Aug 4, 2018, 4:38 PM Dimitry Andric <dim@freebsd.org> wrote: > Author: dim > Date: Sat Aug 4 15:38:18 2018 > New Revision: 337324 > URL: https://svnweb.freebsd.org/changeset/base/337324 > > Log: > Put in a temporary workaround for strange array access in if_fxp.c. > > Modified: > projects/clang700-import/sys/conf/files > projects/clang700-import/sys/conf/kern.mk > projects/clang700-import/sys/modules/fxp/Makefile > > Modified: projects/clang700-import/sys/conf/files > > ============================================================================== > --- projects/clang700-import/sys/conf/files Sat Aug 4 15:30:56 2018 > (r337323) > +++ projects/clang700-import/sys/conf/files Sat Aug 4 15:38:18 2018 > (r337324) > @@ -1792,7 +1792,8 @@ dev/flash/cqspi.c optional cqspi fdt xdma > dev/flash/mx25l.c optional mx25l > dev/flash/n25q.c optional n25q fdt > dev/flash/qspi_if.m optional cqspi fdt | n25q fdt > -dev/fxp/if_fxp.c optional fxp > +dev/fxp/if_fxp.c optional fxp \ > + compile-with "${NORMAL_C} ${NO_WARRAY_BOUNDS}" > dev/fxp/inphy.c optional fxp > dev/gem/if_gem.c optional gem > dev/gem/if_gem_pci.c optional gem pci > > Modified: projects/clang700-import/sys/conf/kern.mk > > ============================================================================== > --- projects/clang700-import/sys/conf/kern.mk Sat Aug 4 15:30:56 2018 > (r337323) > +++ projects/clang700-import/sys/conf/kern.mk Sat Aug 4 15:38:18 2018 > (r337324) > @@ -25,6 +25,7 @@ NO_WUNNEEDED_INTERNAL_DECL= -Wno-error-unneeded-intern > NO_WSOMETIMES_UNINITIALIZED= -Wno-error-sometimes-uninitialized > NO_WCAST_QUAL= -Wno-error-cast-qual > NO_WTAUTOLOGICAL_POINTER_COMPARE= -Wno-tautological-pointer-compare > +NO_WARRAY_BOUNDS= -Wno-error-array-bounds > # Several other warnings which might be useful in some cases, but not > severe > # enough to error out the whole kernel build. Display them anyway, so > there is > # some incentive to fix them eventually. > > Modified: projects/clang700-import/sys/modules/fxp/Makefile > > ============================================================================== > --- projects/clang700-import/sys/modules/fxp/Makefile Sat Aug 4 > 15:30:56 2018 (r337323) > +++ projects/clang700-import/sys/modules/fxp/Makefile Sat Aug 4 > 15:38:18 2018 (r337324) > @@ -6,3 +6,5 @@ KMOD= if_fxp > SRCS= device_if.h bus_if.h if_fxp.c inphy.c miibus_if.h miidevs.h > pci_if.h > > .include <bsd.kmod.mk> > + > +CWARNFLAGS+= ${NO_WARRAY_BOUNDS} > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfogA8y%2BxD3m30cmHj=iRWU6XaFSQM%2BkjEBgLv%2B97tJekg>