From: Rainer Orth Date: Thu, 18 Dec 2014 11:54:40 +0000 (+0000) Subject: Change mpx effective-target test into link test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=72c122a20e1fd3c6ca878a488a117c11db05ad12;p=gcc.git Change mpx effective-target test into link test * lib/mpx-dg.exp (check_effective_target_mpx): Change into link test. Add main. From-SVN: r218859 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3f33ac66cf5..aa7e8c7409d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-12-18 Rainer Orth + + * lib/mpx-dg.exp (check_effective_target_mpx): Change into link test. + Add main. + 2014-12-18 Bin Cheng PR tree-optimization/62178 diff --git a/gcc/testsuite/lib/mpx-dg.exp b/gcc/testsuite/lib/mpx-dg.exp index de7eba87877..be82ce1cc4d 100644 --- a/gcc/testsuite/lib/mpx-dg.exp +++ b/gcc/testsuite/lib/mpx-dg.exp @@ -18,7 +18,8 @@ # error-free for trivial code, 0 otherwise. proc check_effective_target_mpx {} { - return [check_no_compiler_messages mpx object { + return [check_no_compiler_messages mpx executable { int *foo (int *arg) { return arg; } + int main (void) { return foo ((void *)0) == 0; } } "-fcheck-pointer-bounds -mmpx"] }