Commit fa7bbfd3 by Marek Polacek Committed by Marek Polacek

a.35.4.c: Fix implicit declarations.

	* gcc.dg/gomp/appendix-a/a.35.4.c: Fix implicit declarations.
	* gcc.dg/gomp/appendix-a/a.35.5.c: Likewise.
	* gcc.dg/gomp/appendix-a/a.35.6.c: Likewise.
	* gcc.dg/gomp/asm-1.c: Likewise.
	* gcc.dg/gomp/for-1.c: Likewise.
	* gcc.dg/gomp/empty.c: Fix defaulting to int.
	* gcc.dg/gomp/sharing-3.c: Likewise.
	* gcc.dg/gomp/udr-3.c: Use -std=gnu89.

From-SVN: r215846
parent 7e9b8219
2014-10-03 Marek Polacek <polacek@redhat.com> 2014-10-03 Marek Polacek <polacek@redhat.com>
* gcc.dg/gomp/appendix-a/a.35.4.c: Fix implicit declarations.
* gcc.dg/gomp/appendix-a/a.35.5.c: Likewise.
* gcc.dg/gomp/appendix-a/a.35.6.c: Likewise.
* gcc.dg/gomp/asm-1.c: Likewise.
* gcc.dg/gomp/for-1.c: Likewise.
* gcc.dg/gomp/empty.c: Fix defaulting to int.
* gcc.dg/gomp/sharing-3.c: Likewise.
* gcc.dg/gomp/udr-3.c: Use -std=gnu89.
2014-10-03 Marek Polacek <polacek@redhat.com>
* gcc.dg/torture/pr24626-2.c: Add function declarations. Fix * gcc.dg/torture/pr24626-2.c: Add function declarations. Fix
defaulting to int. defaulting to int.
* gcc.dg/torture/pr28814.c: Likewise. * gcc.dg/torture/pr28814.c: Likewise.
......
/* { dg-do compile } */ /* { dg-do compile } */
void work (int, int);
void void
wrong4 (int n) wrong4 (int n)
{ {
......
/* { dg-do compile } */ /* { dg-do compile } */
void work (int, int);
void void
wrong5 (int n) wrong5 (int n)
{ {
......
/* { dg-do compile } */ /* { dg-do compile } */
void work (int, int);
void void
wrong6 (int n) wrong6 (int n)
{ {
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fopenmp" } */ /* { dg-options "-O2 -fopenmp" } */
extern int omp_get_thread_num (void);
void void
foo (void) foo (void)
{ {
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O -fopenmp -fdump-tree-ompexp" } */ /* { dg-options "-O -fopenmp -fdump-tree-ompexp" } */
int
main() main()
{ {
#pragma omp parallel #pragma omp parallel
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-fopenmp -fshow-column" } */ /* { dg-options "-fopenmp -fshow-column" } */
void baz (int);
void foo (int j, int k) void foo (int j, int k)
{ {
int i; int i;
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#define N 50 #define N 50
#define CHUNKSIZE 5 #define CHUNKSIZE 5
int
main () main ()
{ {
int i, chunk; int i, chunk;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-fopenmp" } */ /* { dg-options "-fopenmp -std=gnu89" } */
struct S { int s; }; struct S { int s; };
struct T { int t; }; struct T { int t; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment