diff options
author | Martin Liska <mliska@suse.cz> | 2016-09-13 15:30:13 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2016-09-13 13:30:13 +0000 |
commit | c8798f2ce103aaf7f1c903a8babbd815d7b9a9fc (patch) | |
tree | e5688eff6c3835b586e477282cbb879106f6b99d /gcc/testsuite/lib | |
parent | 9453eee910731ae8d0deded6952b6d085652bbfe (diff) | |
download | gcc-c8798f2ce103aaf7f1c903a8babbd815d7b9a9fc.zip gcc-c8798f2ce103aaf7f1c903a8babbd815d7b9a9fc.tar.gz gcc-c8798f2ce103aaf7f1c903a8babbd815d7b9a9fc.tar.bz2 |
Add new effective target: profile_update_atomic
* g++.dg/gcov/gcov-threads-1.C: Use profile_update_atomic
effective target.
* gcc.dg/tree-prof/val-profiler-threads-1.c: Likewise.
* lib/target-supports.exp: Define the new target.
From-SVN: r240111
Diffstat (limited to 'gcc/testsuite/lib')
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 545b3dc..6724a7f 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -7699,3 +7699,10 @@ proc check_effective_target_offload_hsa { } { int main () {return 0;} } "-foffload=hsa" ] } + +# Return 1 if the target support -fprofile-update=atomic +proc check_effective_target_profile_update_atomic {} { + return [check_no_compiler_messages profile_update_atomic assembly { + int main (void) { return 0; } + } "-fprofile-update=atomic -fprofile-generate"] +} |