diff mbox

[MPX,committed] Fix warning in MPX effective target test

Message ID 20160211093045.GA56361@msticlxl57.ims.intel.com
State New
Headers show

Commit Message

Ilya Enkovich Feb. 12, 2016, 1:10 p.m. UTC
Hi,

This patch fixes a warning in test used for effective MPX target check.  Fix allows to use test with g++.  Bootsrapped and tested on x86_64-pc-linux-gnu.  Applied to trunk.

Thanks,
Ilya
--
gcc/testsuite/

2016-02-11  Ilya Enkovich  <enkovich.gnu@gmail.com>

	* lib/mpx-dg.exp: Fix warning in check_effective_target_mpx
	test.
diff mbox

Patch

diff --git a/gcc/testsuite/lib/mpx-dg.exp b/gcc/testsuite/lib/mpx-dg.exp
index fa2faaa..b245c5f 100644
--- a/gcc/testsuite/lib/mpx-dg.exp
+++ b/gcc/testsuite/lib/mpx-dg.exp
@@ -22,7 +22,7 @@  proc check_effective_target_mpx {} {
 	int *foo (int *arg) { return arg; }
 	int main (void)
 	{
-	    int *p = __builtin_malloc (sizeof (int));
+	    int *p = (int *)__builtin_malloc (sizeof (int));
 	    int res = foo (p) == 0;
 	    __builtin_free (p);
 	    return res;