On Mon, Oct 06, 2014 at 12:18:33PM +0200, Marek Polacek wrote:
> --- gcc/libgomp/testsuite/libgomp.c/affinity-1.c
> +++ gcc/libgomp/testsuite/libgomp.c/affinity-1.c
> @@ -31,6 +31,7 @@
>
> #ifdef DO_FORK
> #include <signal.h>
> +pid_t waitpid (pid_t, int *, int);
I'd #include <sys/wait.h> here instead.
> --- gcc/libgomp/testsuite/libgomp.c/nqueens-1.c
> +++ gcc/libgomp/testsuite/libgomp.c/nqueens-1.c
> @@ -6,6 +6,7 @@
> #include <stdio.h>
> #include <string.h>
>
> +unsigned long int strtoul(const char *, char **, int);
and #include <stdlib.h> here.
> --- gcc/libgomp/testsuite/libgomp.c/thread-limit-1.c
> +++ gcc/libgomp/testsuite/libgomp.c/thread-limit-1.c
> @@ -4,6 +4,11 @@
> #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);
> +
> int
> main ()
> {
> diff --git gcc/libgomp/testsuite/libgomp.c/thread-limit-2.c
> gcc/libgomp/testsuite/libgomp.c/thread-limit-2.c
> index 0fc9dae..ca9ad23 100644
> --- gcc/libgomp/testsuite/libgomp.c/thread-limit-2.c
> +++ gcc/libgomp/testsuite/libgomp.c/thread-limit-2.c
> @@ -4,6 +4,11 @@
> #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);
Please #include <omp.h> in the above two tests instead.
Thanks.
Jakub