backport: target-supports.exp (check_avx2_hw_available): Fix breakage due NULL being undefined.

Backport from mainline
	2017-08-23  Daniel Santos  <daniel.santos@pobox.com>

	* lib/target-supports.exp (check_avx2_hw_available):
	Fix breakage due NULL being undefined.

From-SVN: r251336
This commit is contained in:
Uros Bizjak 2017-08-24 16:30:51 +02:00 committed by Uros Bizjak
parent 6de5fdb3d8
commit 9c1c75946f
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2017-05-19 Uros Bizjak <ubizjak@gmail.com>
Backport from mainline
2017-08-23 Daniel Santos <daniel.santos@pobox.com>
* lib/target-supports.exp (check_avx2_hw_available):
Fix breakage due NULL being undefined.
2017-08-23 Peter Bergner <bergner@vnet.ibm.com>
Backport from mainline

View File

@ -1777,6 +1777,7 @@ proc check_avx2_hw_available { } {
expr 0
} else {
check_runtime_nocache avx2_hw_available {
#include <stddef.h>
#include "cpuid.h"
int main ()
{