From owner-svn-src-projects@freebsd.org Sat Aug 4 15:38:20 2018 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4ECD2106EF19 for ; Sat, 4 Aug 2018 15:38:20 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E41207CC7D; Sat, 4 Aug 2018 15:38:19 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C13161169A; Sat, 4 Aug 2018 15:38:19 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w74FcJlh056619; Sat, 4 Aug 2018 15:38:19 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w74FcJ1f056616; Sat, 4 Aug 2018 15:38:19 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201808041538.w74FcJ1f056616@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Sat, 4 Aug 2018 15:38:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r337324 - in projects/clang700-import/sys: conf modules/fxp X-SVN-Group: projects X-SVN-Commit-Author: dim X-SVN-Commit-Paths: in projects/clang700-import/sys: conf modules/fxp X-SVN-Commit-Revision: 337324 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Aug 2018 15:38:20 -0000 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 + +CWARNFLAGS+= ${NO_WARRAY_BOUNDS}