summaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-06 11:54:24 +0000
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-06 11:54:24 +0000
commit542ae458063b83922178095bbbe1c2fbace2da41 (patch)
tree868d6cd0e51c82b6d8ba3d1791348c6c08329a7c /libgomp
parent120ce989e2cf37f97f34b5f6941cabf0ab838341 (diff)
downloadgcc-542ae458063b83922178095bbbe1c2fbace2da41.tar.gz
* testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
* testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>. * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h> * testsuite/libgomp.c/thread-limit-2.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215927 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp')
-rw-r--r--libgomp/ChangeLog7
-rw-r--r--libgomp/testsuite/libgomp.c/affinity-1.c2
-rw-r--r--libgomp/testsuite/libgomp.c/nqueens-1.c2
-rw-r--r--libgomp/testsuite/libgomp.c/thread-limit-1.c6
-rw-r--r--libgomp/testsuite/libgomp.c/thread-limit-2.c6
5 files changed, 11 insertions, 12 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index b5de70b45c3..661653e1ac8 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,5 +1,12 @@
2014-10-06 Marek Polacek <polacek@redhat.com>
+ * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
+ * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
+ * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
+ * testsuite/libgomp.c/thread-limit-2.c: Likewise.
+
+2014-10-06 Marek Polacek <polacek@redhat.com>
+
* testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
* testsuite/libgomp.c/nqueens-1.c: Likewise.
* testsuite/libgomp.c/pr26943-3.c: Likewise.
diff --git a/libgomp/testsuite/libgomp.c/affinity-1.c b/libgomp/testsuite/libgomp.c/affinity-1.c
index a1a2a12e56c..21f344cada3 100644
--- a/libgomp/testsuite/libgomp.c/affinity-1.c
+++ b/libgomp/testsuite/libgomp.c/affinity-1.c
@@ -31,7 +31,7 @@
#ifdef DO_FORK
#include <signal.h>
-pid_t waitpid (pid_t, int *, int);
+#include <sys/wait.h>
#endif
#ifdef HAVE_PTHREAD_AFFINITY_NP
#include <sched.h>
diff --git a/libgomp/testsuite/libgomp.c/nqueens-1.c b/libgomp/testsuite/libgomp.c/nqueens-1.c
index ed6c17921ea..9742b7a18df 100644
--- a/libgomp/testsuite/libgomp.c/nqueens-1.c
+++ b/libgomp/testsuite/libgomp.c/nqueens-1.c
@@ -5,8 +5,8 @@
#include <omp.h>
#include <stdio.h>
#include <string.h>
+#include <stdlib.h>
-unsigned long int strtoul(const char *, char **, int);
int cnt;
#pragma omp threadprivate (cnt)
diff --git a/libgomp/testsuite/libgomp.c/thread-limit-1.c b/libgomp/testsuite/libgomp.c/thread-limit-1.c
index 7571f23e24d..1d9794a7a4f 100644
--- a/libgomp/testsuite/libgomp.c/thread-limit-1.c
+++ b/libgomp/testsuite/libgomp.c/thread-limit-1.c
@@ -3,11 +3,7 @@
#include <stdlib.h>
#include <unistd.h>
-
-extern int omp_get_thread_limit (void);
-extern int omp_set_dynamic (int);
-extern void omp_set_nested (int);
-extern int omp_get_num_threads (void);
+#include <omp.h>
int
main ()
diff --git a/libgomp/testsuite/libgomp.c/thread-limit-2.c b/libgomp/testsuite/libgomp.c/thread-limit-2.c
index ca9ad23b31f..1a97fb62985 100644
--- a/libgomp/testsuite/libgomp.c/thread-limit-2.c
+++ b/libgomp/testsuite/libgomp.c/thread-limit-2.c
@@ -3,11 +3,7 @@
#include <stdlib.h>
#include <unistd.h>
-
-extern int omp_get_thread_limit (void);
-extern int omp_set_dynamic (int);
-extern void omp_set_nested (int);
-extern int omp_get_num_threads (void);
+#include <omp.h>
int
main ()