gcc/testsuite/

* gcc.target/aarch64/aapcs64/aapcs64.exp:
	(additional_flags_for_func_ret): New variable based on $additional_flags
	with -fno-use-caller-save.
	(func-ret-*.c): Use the new variable.

Co-Authored-By: Yufeng Zhang <yufeng.zhang@arm.com>

From-SVN: r212206
This commit is contained in:
James Greenhalgh 2014-07-01 17:58:11 +00:00 committed by Yufeng Zhang
parent 2a4141aa0d
commit 454a17a31e
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2014-07-01 James Greenhalgh <james.greenhalgh@arm.com>
Yufeng Zhang <yufeng.zhang@arm.com>
* gcc.target/aarch64/aapcs64/aapcs64.exp:
(additional_flags_for_func_ret): New variable based on $additional_flags
with -fno-use-caller-save.
(func-ret-*.c): Use the new variable.
2014-07-01 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/59637

View File

@ -48,11 +48,15 @@ foreach src [lsort [glob -nocomplain $srcdir/$subdir/va_arg-*.c]] {
}
# Test function return value.
# Disable -fuse-caller-save to prevent the compiler from generating
# conflicting code.
set additional_flags_for_func_ret $additional_flags
append additional_flags_for_func_ret " -fno-use-caller-save"
foreach src [lsort [glob -nocomplain $srcdir/$subdir/func-ret-*.c]] {
if {[runtest_file_p $runtests $src]} {
c-torture-execute [list $src \
$srcdir/$subdir/abitest.S] \
$additional_flags
$additional_flags_for_func_ret
}
}