This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 --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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]