* [PATCH, MPX, committed] Fix warning in MPX effective target test
@ 2016-02-12 13:11 Ilya Enkovich
0 siblings, 0 replies; only message in thread
From: Ilya Enkovich @ 2016-02-12 13:11 UTC (permalink / raw)
To: gcc-patches
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-02-12 13:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-12 13:11 [PATCH, MPX, committed] Fix warning in MPX effective target test Ilya Enkovich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).