svn commit: r286967 - head/sys/boot/efi
Oliver Pinter
oliver.pinter at hardenedbsd.org
Thu Aug 20 21:23:43 UTC 2015
On 8/20/15, Craig Rodrigues <rodrigc at crodrigues.org> wrote:
> On Thu, Aug 20, 2015 at 11:31 AM, Warner Losh <imp at 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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscribe at freebsd.org"
>
-------------- next part --------------
From 9469d3327fe45fd7ae31b98feffac996ff08471f Mon Sep 17 00:00:00 2001
From: Oliver Pinter <oliver.pinter at 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 at 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;
More information about the svn-src-all
mailing list