* 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
+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>
* gcc.target/aarch64/thunderxloadpair.c: New testcase.
/* { dg-options "-fprofile-arcs -ftest-coverage -pthread -fprofile-update=atomic" } */
/* { dg-do run { target native } } */
+/* { dg-require-effective-target profile_update_atomic } */
#include <stdint.h>
#include <pthread.h>
/* { dg-options "-O0 -pthread -fprofile-update=atomic" } */
+/* { dg-require-effective-target profile_update_atomic } */
+
#include <pthread.h>
#define NUM_THREADS 8
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"]
+}