* 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
+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
}
# 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
}
}