Commit 72c122a2 by Rainer Orth Committed by Rainer Orth

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
parent d8b1c7f4
2014-12-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* lib/mpx-dg.exp (check_effective_target_mpx): Change into link test.
Add main.
2014-12-18 Bin Cheng <bin.cheng@arm.com> 2014-12-18 Bin Cheng <bin.cheng@arm.com>
PR tree-optimization/62178 PR tree-optimization/62178
......
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
# error-free for trivial code, 0 otherwise. # error-free for trivial code, 0 otherwise.
proc check_effective_target_mpx {} { 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 *foo (int *arg) { return arg; }
int main (void) { return foo ((void *)0) == 0; }
} "-fcheck-pointer-bounds -mmpx"] } "-fcheck-pointer-bounds -mmpx"]
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment