aboutsummaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2014-10-06 11:54:24 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2014-10-06 11:54:24 +0000
commitc1d62412c3e5e146a586106ccff7755c8b4a36a6 (patch)
tree868d6cd0e51c82b6d8ba3d1791348c6c08329a7c /libgomp
parent70261a4fb12323f240ca68669f3ec97caecb4a05 (diff)
downloadgcc-c1d62412c3e5e146a586106ccff7755c8b4a36a6.zip
gcc-c1d62412c3e5e146a586106ccff7755c8b4a36a6.tar.gz
gcc-c1d62412c3e5e146a586106ccff7755c8b4a36a6.tar.bz2
affinity-1.c: Include <sys/wait.h>.
* 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. From-SVN: r215927
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 b5de70b..661653e 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 a1a2a12..21f344c 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 ed6c179..9742b7a 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 7571f23..1d9794a 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 ca9ad23..1a97fb6 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 ()