Commit c8798f2c by Martin Liska Committed by Martin Liska

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
parent 9453eee9
2016-09-13 Martin Liska <mliska@suse.cz>
* 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.
2016-09-12 Andrew Pinski <apinski@cavium.com> 2016-09-12 Andrew Pinski <apinski@cavium.com>
* gcc.target/aarch64/thunderxloadpair.c: New testcase. * gcc.target/aarch64/thunderxloadpair.c: New testcase.
......
/* { dg-options "-fprofile-arcs -ftest-coverage -pthread -fprofile-update=atomic" } */ /* { dg-options "-fprofile-arcs -ftest-coverage -pthread -fprofile-update=atomic" } */
/* { dg-do run { target native } } */ /* { dg-do run { target native } } */
/* { dg-require-effective-target profile_update_atomic } */
#include <stdint.h> #include <stdint.h>
#include <pthread.h> #include <pthread.h>
......
/* { dg-options "-O0 -pthread -fprofile-update=atomic" } */ /* { dg-options "-O0 -pthread -fprofile-update=atomic" } */
/* { dg-require-effective-target profile_update_atomic } */
#include <pthread.h> #include <pthread.h>
#define NUM_THREADS 8 #define NUM_THREADS 8
......
...@@ -7699,3 +7699,10 @@ proc check_effective_target_offload_hsa { } { ...@@ -7699,3 +7699,10 @@ proc check_effective_target_offload_hsa { } {
int main () {return 0;} int main () {return 0;}
} "-foffload=hsa" ] } "-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"]
}
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