affinity-1.c: Fix implicit declarations.

* testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
	* testsuite/libgomp.c/nqueens-1.c: Likewise.
	* testsuite/libgomp.c/pr26943-3.c: Likewise.
	* testsuite/libgomp.c/pr26943-4.c: Likewise.
	* testsuite/libgomp.c/pr36802-2.c: Likewise.
	* testsuite/libgomp.c/pr36802-3.c: Likewise.
	* testsuite/libgomp.c/thread-limit-1.c: Likewise.
	* testsuite/libgomp.c/thread-limit-2.c: Likewise.
	* testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
	* testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
	* testsuite/libgomp.c/omp-parallel-for.c: Likewise.
	* testsuite/libgomp.c/omp-parallel-if.c: Likewise.
	* testsuite/libgomp.c/omp-single-1.c: Likewise.
	* testsuite/libgomp.c/omp-single-2.c: Likewise.
	* testsuite/libgomp.c/omp_matvec.c: Likewise.
	* testsuite/libgomp.c/omp_workshare3.c: Likewise.
	* testsuite/libgomp.c/omp_workshare4.c: Likewise.
	* testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
	declarations.

From-SVN: r215922
This commit is contained in:
Marek Polacek 2014-10-06 10:20:45 +00:00 committed by Marek Polacek
parent f8ed2fc24e
commit 44a0c6cbeb
19 changed files with 53 additions and 0 deletions

View File

@ -1,3 +1,25 @@
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.
* testsuite/libgomp.c/pr26943-4.c: Likewise.
* testsuite/libgomp.c/pr36802-2.c: Likewise.
* testsuite/libgomp.c/pr36802-3.c: Likewise.
* testsuite/libgomp.c/thread-limit-1.c: Likewise.
* testsuite/libgomp.c/thread-limit-2.c: Likewise.
* testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
* testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
* testsuite/libgomp.c/omp-parallel-for.c: Likewise.
* testsuite/libgomp.c/omp-parallel-if.c: Likewise.
* testsuite/libgomp.c/omp-single-1.c: Likewise.
* testsuite/libgomp.c/omp-single-2.c: Likewise.
* testsuite/libgomp.c/omp_matvec.c: Likewise.
* testsuite/libgomp.c/omp_workshare3.c: Likewise.
* testsuite/libgomp.c/omp_workshare4.c: Likewise.
* testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
declarations.
2014-10-03 Jakub Jelinek <jakub@redhat.com>
PR libgomp/61200

View File

@ -31,6 +31,7 @@
#ifdef DO_FORK
#include <signal.h>
pid_t waitpid (pid_t, int *, int);
#endif
#ifdef HAVE_PTHREAD_AFFINITY_NP
#include <sched.h>

View File

@ -1,5 +1,6 @@
/* { dg-do run } */
#include <omp.h>
#include <stdio.h>
void

View File

@ -6,6 +6,7 @@
#include <stdio.h>
#include <string.h>
unsigned long int strtoul(const char *, char **, int);
int cnt;
#pragma omp threadprivate (cnt)

View File

@ -15,6 +15,7 @@ void parloop (int *a)
a[i] = i + 3;
}
int
main()
{
int i, a[N];

View File

@ -1,5 +1,6 @@
extern void abort (void);
int
main()
{
int i, a;

View File

@ -8,6 +8,7 @@ foo (void)
return 10;
}
int
main ()
{
int A = 0;

View File

@ -1,5 +1,6 @@
extern void abort (void);
int
main()
{
int i = 0;

View File

@ -9,6 +9,7 @@ struct X
int c;
};
int
main()
{
int i = 0;

View File

@ -16,6 +16,7 @@
#define SIZE 10
int
main ()
{

View File

@ -16,6 +16,7 @@
#define N 50
#define CHUNKSIZE 5
int
main () {
int i, chunk, tid;

View File

@ -15,6 +15,7 @@
#define N 50
#define CHUNKSIZE 5
int
main () {
int i, chunk, tid;

View File

@ -2,6 +2,7 @@
/* { dg-do run } */
extern int omp_set_dynamic (int);
extern void omp_set_nested (int);
extern int omp_get_thread_num (void);
extern void abort (void);
extern void GOMP_barrier (void);

View File

@ -2,6 +2,7 @@
/* { dg-do run } */
extern int omp_set_dynamic (int);
extern void omp_set_nested (int);
extern int omp_get_thread_num (void);
extern void abort (void);
extern void GOMP_barrier (void);

View File

@ -1,6 +1,9 @@
/* PR middle-end/36802 */
extern void abort (void);
extern int omp_set_dynamic (int);
extern void omp_set_nested (int);
extern int omp_get_num_threads (void);
int q;

View File

@ -1,6 +1,9 @@
/* PR middle-end/36802 */
extern void abort (void);
extern int omp_set_dynamic (int);
extern void omp_set_nested (int);
extern int omp_get_num_threads (void);
int q;

View File

@ -1,4 +1,5 @@
extern void abort (void);
extern int omp_get_num_threads (void);
struct Y
{
@ -51,6 +52,7 @@ parallel (int a, int b)
abort ();
}
int
main()
{
parallel (1, 2);

View File

@ -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 ()
{

View File

@ -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 ()
{