From owner-svn-src-stable-11@freebsd.org Tue Sep 12 06:21:44 2017 Return-Path: Delivered-To: svn-src-stable-11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC74FE1B82E; Tue, 12 Sep 2017 06:21:44 +0000 (UTC) (envelope-from rlibby@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 mx1.freebsd.org (Postfix) with ESMTPS id 79DF8639E2; Tue, 12 Sep 2017 06:21:44 +0000 (UTC) (envelope-from rlibby@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v8C6LhFZ060775; Tue, 12 Sep 2017 06:21:43 GMT (envelope-from rlibby@FreeBSD.org) Received: (from rlibby@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v8C6LhQp060772; Tue, 12 Sep 2017 06:21:43 GMT (envelope-from rlibby@FreeBSD.org) Message-Id: <201709120621.v8C6LhQp060772@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rlibby set sender to rlibby@FreeBSD.org using -f From: Ryan Libby Date: Tue, 12 Sep 2017 06:21:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r323485 - in stable/11/sys/boot: arm/uboot efi/boot1 efi/loader X-SVN-Group: stable-11 X-SVN-Commit-Author: rlibby X-SVN-Commit-Paths: in stable/11/sys/boot: arm/uboot efi/boot1 efi/loader X-SVN-Commit-Revision: 323485 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for only the 11-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Sep 2017 06:21:44 -0000 Author: rlibby Date: Tue Sep 12 06:21:43 2017 New Revision: 323485 URL: https://svnweb.freebsd.org/changeset/base/323485 Log: MFC r316119 (by ngie): self_reloc.c: Pass -Wno-error=maybe-uninitialized to gcc versions greater than 4.2.1 Modified: stable/11/sys/boot/arm/uboot/Makefile stable/11/sys/boot/efi/boot1/Makefile stable/11/sys/boot/efi/loader/Makefile Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/boot/arm/uboot/Makefile ============================================================================== --- stable/11/sys/boot/arm/uboot/Makefile Tue Sep 12 06:19:19 2017 (r323484) +++ stable/11/sys/boot/arm/uboot/Makefile Tue Sep 12 06:21:43 2017 (r323485) @@ -15,6 +15,10 @@ UBLDR_LOADADDR?= 0x1000000 # Architecture-specific loader code SRCS= start.S conf.c self_reloc.c vers.c +.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} > 40201 +CWARNFLAGS.self_reloc.c+= -Wno-error=maybe-uninitialized +.endif + .if !defined(LOADER_NO_DISK_SUPPORT) LOADER_DISK_SUPPORT?= yes .else Modified: stable/11/sys/boot/efi/boot1/Makefile ============================================================================== --- stable/11/sys/boot/efi/boot1/Makefile Tue Sep 12 06:19:19 2017 (r323484) +++ stable/11/sys/boot/efi/boot1/Makefile Tue Sep 12 06:21:43 2017 (r323485) @@ -27,6 +27,10 @@ SRCS= boot1.c self_reloc.c start.S ufs_module.c SRCS+= zfs_module.c .endif +.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} > 40201 +CWARNFLAGS.self_reloc.c+= -Wno-error=maybe-uninitialized +.endif + CFLAGS+= -I. CFLAGS+= -I${.CURDIR}/../include CFLAGS+= -I${.CURDIR}/../include/${MACHINE} Modified: stable/11/sys/boot/efi/loader/Makefile ============================================================================== --- stable/11/sys/boot/efi/loader/Makefile Tue Sep 12 06:19:19 2017 (r323484) +++ stable/11/sys/boot/efi/loader/Makefile Tue Sep 12 06:21:43 2017 (r323485) @@ -31,6 +31,10 @@ CWARNFLAGS.zfs.c+= -Wno-array-bounds CWARNFLAGS.zfs.c+= -Wno-missing-prototypes .endif +.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} > 40201 +CWARNFLAGS.self_reloc.c+= -Wno-error=maybe-uninitialized +.endif + # We implement a slightly non-standard %S in that it always takes a # CHAR16 that's common in UEFI-land instead of a wchar_t. This only # seems to matter on arm64 where wchar_t defaults to an int instead