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....@gmail.com>

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


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;

Reply via email to