[PATCH, MPX, committed] Fix warning in MPX effective target test
Ilya Enkovich
enkovich.gnu@gmail.com
Fri Feb 12 13:11:00 GMT 2016
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;
More information about the Gcc-patches
mailing list