+2017-01-18 David Malcolm <dmalcolm@redhat.com>
+
+ * jit.dg/test-threads.c (dejagnu_pass): Remove decl.
+ (dejagnu_fail): Likewise.
+ (dejagnu_note): Likewise.
+ (pass): Provide forward decl, moving true decl to after #include
+ of harness.h.
+ (fail): Likewise.
+ (note): Likewise.
+
2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
* gcc.target/powerpc/p9-xxbr-1.c: New test.
harness.h injects macros before including <dejagnu.h> so that the
pass/fail functions become "dejagnu_pass"/"dejagnu_fail" etc. */
-void dejagnu_pass (const char* fmt, ...);
-void dejagnu_fail (const char* fmt, ...);
-void dejagnu_note (const char* fmt, ...);
+/* Forward decls of our implementations of pass/fail/note. */
+
+inline void
+pass (const char* fmt, ...);
+
+inline void
+fail (const char* fmt, ...);
+
+inline void
+note (const char* fmt, ...);
+
+#define MAKE_DEJAGNU_H_THREADSAFE
+
+/* We also need to provide our own version of TEST_NAME. */
+#define TEST_NAME
+
+/* We can now include all of the relevant selftests. */
+
+#include "all-non-failing-tests.h"
+
+#define TEST_PROVIDES_MAIN
+#define TEST_ESCHEWS_TEST_JIT
+
+/* Now construct a test case from all the other test cases.
+
+ We undefine COMBINED_TEST so that we can now include harness.h
+ "for real". */
+#undef COMBINED_TEST
+#include "harness.h"
/* We now provide our own implementations of "pass"/"fail"/"note", which
call the underlying dejagnu implementations, but with a mutex. */
pthread_mutex_unlock (&dg_mutex);
}
-#define MAKE_DEJAGNU_H_THREADSAFE
-
-/* We also need to provide our own version of TEST_NAME. */
-#define TEST_NAME
-
-/* We can now include all of the relevant selftests. */
-
-#include "all-non-failing-tests.h"
-
-#define TEST_PROVIDES_MAIN
-#define TEST_ESCHEWS_TEST_JIT
-
-/* Now construct a test case from all the other test cases.
-
- We undefine COMBINED_TEST so that we can now include harness.h
- "for real". */
-#undef COMBINED_TEST
-#include "harness.h"
-
struct thread_data
{
pthread_t m_tid;