Date: Thu, 20 Aug 2015 23:23:36 +0200 From: Oliver Pinter <oliver.pinter@hardenedbsd.org> To: Craig Rodrigues <rodrigc@crodrigues.org> Cc: Warner Losh <imp@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org> Subject: Re: svn commit: r286967 - head/sys/boot/efi Message-ID: <CAPQ4ffvVuLGf_yAzKjLVvx%2B=Fm46JvzPN1Gy4vvswec4S1DKnA@mail.gmail.com> In-Reply-To: <CAG=rPVf6G2W2-WV3ovCk4=81mbrf5k=hDneJZWkm-hMYGEcY-g@mail.gmail.com> References: <201508201831.t7KIV6Vn076975@repo.freebsd.org> <CAG=rPVf6G2W2-WV3ovCk4=81mbrf5k=hDneJZWkm-hMYGEcY-g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On 8/20/15, Craig Rodrigues <rodrigc@crodrigues.org> wrote: > On Thu, Aug 20, 2015 at 11:31 AM, Warner Losh <imp@freebsd.org> wrote: > >> The flags -mno-aes -mno-avx only exist for clang, not gcc, so >> add them only to the clang CFLAGS. >> >> > It would be more accurate to say that these flags do not exist for gcc 4.2. > They do exist for gcc 4.7: > https://gcc.gnu.org/onlinedocs/gcc-4.7.1/gcc/i386-and-x86_002d64-Options.html The attached one patch still needs to hyperv's hv_kvp_daemon with gcc. After applied this fix, I get a buildable world. The kernel still fails on aesni module, but that's a known problem with gcc 4.2.1. > > -- > Craig > _______________________________________________ > svn-src-head@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org" > [-- Attachment #2 --] From 9469d3327fe45fd7ae31b98feffac996ff08471f Mon Sep 17 00:00:00 2001 From: Oliver Pinter <oliver.pinter@hardenedbsd.org> Date: Thu, 20 Aug 2015 22:49:49 +0200 Subject: [PATCH] FBSD: silence build error with gcc --- hv_kvp_daemon.o --- cc1: warnings being treated as errors /usr/data/source/git/opBSD/opBSD.git/usr.sbin/hyperv/tools/../../../contrib/hyperv/tools/hv_kvp_daemon.c: In function 'kvp_get_ip_info': /usr/data/source/git/opBSD/opBSD.git/usr.sbin/hyperv/tools/../../../contrib/hyperv/tools/hv_kvp_daemon.c:814: warning: 'ip_buffer' may be used uninitialized in this function *** [hv_kvp_daemon.o] Error code 1 Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org> diff --git a/contrib/hyperv/tools/hv_kvp_daemon.c b/contrib/hyperv/tools/hv_kvp_daemon.c index 1c31d3f..50ae3ed 100644 --- a/contrib/hyperv/tools/hv_kvp_daemon.c +++ b/contrib/hyperv/tools/hv_kvp_daemon.c @@ -811,7 +811,7 @@ kvp_get_ip_info(int family, char *if_name, int op, int error = 0; char *buffer; size_t buffer_length; - struct hv_kvp_ipaddr_value *ip_buffer; + struct hv_kvp_ipaddr_value *ip_buffer = NULL; char cidr_mask[5]; int weight; int i;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPQ4ffvVuLGf_yAzKjLVvx%2B=Fm46JvzPN1Gy4vvswec4S1DKnA>
