From fa7bbfd3c8cfc4a690f0d4247e69d7698cdb1319 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Fri, 3 Oct 2014 11:18:06 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 11 +++++++++++ gcc/testsuite/gcc.dg/gomp/appendix-a/a.35.4.c | 2 ++ gcc/testsuite/gcc.dg/gomp/appendix-a/a.35.5.c | 2 ++ gcc/testsuite/gcc.dg/gomp/appendix-a/a.35.6.c | 2 ++ gcc/testsuite/gcc.dg/gomp/asm-1.c | 2 ++ gcc/testsuite/gcc.dg/gomp/empty.c | 1 + gcc/testsuite/gcc.dg/gomp/for-1.c | 2 ++ gcc/testsuite/gcc.dg/gomp/sharing-3.c | 1 + gcc/testsuite/gcc.dg/gomp/udr-3.c | 2 +- 9 files changed, 24 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f78fb8c60cc..7f4de02c25c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2014-10-03 Marek Polacek + + * 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 * gcc.dg/torture/pr24626-2.c: Add function declarations. Fix diff --git a/gcc/testsuite/gcc.dg/gomp/appendix-a/a.35.4.c b/gcc/testsuite/gcc.dg/gomp/appendix-a/a.35.4.c index 5bb6b80b396..8562fca9c6d 100644 --- a/gcc/testsuite/gcc.dg/gomp/appendix-a/a.35.4.c +++ b/gcc/testsuite/gcc.dg/gomp/appendix-a/a.35.4.c @@ -1,5 +1,7 @@ /* { dg-do compile } */ +void work (int, int); + void wrong4 (int n) { diff --git a/gcc/testsuite/gcc.dg/gomp/appendix-a/a.35.5.c b/gcc/testsuite/gcc.dg/gomp/appendix-a/a.35.5.c index 7b4aee1c06b..90d2966cbca 100644 --- a/gcc/testsuite/gcc.dg/gomp/appendix-a/a.35.5.c +++ b/gcc/testsuite/gcc.dg/gomp/appendix-a/a.35.5.c @@ -1,5 +1,7 @@ /* { dg-do compile } */ +void work (int, int); + void wrong5 (int n) { diff --git a/gcc/testsuite/gcc.dg/gomp/appendix-a/a.35.6.c b/gcc/testsuite/gcc.dg/gomp/appendix-a/a.35.6.c index d18188b1752..6260be73068 100644 --- a/gcc/testsuite/gcc.dg/gomp/appendix-a/a.35.6.c +++ b/gcc/testsuite/gcc.dg/gomp/appendix-a/a.35.6.c @@ -1,5 +1,7 @@ /* { dg-do compile } */ +void work (int, int); + void wrong6 (int n) { diff --git a/gcc/testsuite/gcc.dg/gomp/asm-1.c b/gcc/testsuite/gcc.dg/gomp/asm-1.c index ced31f3b113..2b428c0cc51 100644 --- a/gcc/testsuite/gcc.dg/gomp/asm-1.c +++ b/gcc/testsuite/gcc.dg/gomp/asm-1.c @@ -2,6 +2,8 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fopenmp" } */ +extern int omp_get_thread_num (void); + void foo (void) { diff --git a/gcc/testsuite/gcc.dg/gomp/empty.c b/gcc/testsuite/gcc.dg/gomp/empty.c index 6a21c0460ec..c7aba8ffbae 100644 --- a/gcc/testsuite/gcc.dg/gomp/empty.c +++ b/gcc/testsuite/gcc.dg/gomp/empty.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O -fopenmp -fdump-tree-ompexp" } */ +int main() { #pragma omp parallel diff --git a/gcc/testsuite/gcc.dg/gomp/for-1.c b/gcc/testsuite/gcc.dg/gomp/for-1.c index 384293e8275..80e0d0be844 100644 --- a/gcc/testsuite/gcc.dg/gomp/for-1.c +++ b/gcc/testsuite/gcc.dg/gomp/for-1.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ /* { dg-options "-fopenmp -fshow-column" } */ +void baz (int); + void foo (int j, int k) { int i; diff --git a/gcc/testsuite/gcc.dg/gomp/sharing-3.c b/gcc/testsuite/gcc.dg/gomp/sharing-3.c index 36f72e3abb9..4a3019848cf 100644 --- a/gcc/testsuite/gcc.dg/gomp/sharing-3.c +++ b/gcc/testsuite/gcc.dg/gomp/sharing-3.c @@ -3,6 +3,7 @@ #define N 50 #define CHUNKSIZE 5 +int main () { int i, chunk; diff --git a/gcc/testsuite/gcc.dg/gomp/udr-3.c b/gcc/testsuite/gcc.dg/gomp/udr-3.c index bdfcce1d0b6..96450cd50e2 100644 --- a/gcc/testsuite/gcc.dg/gomp/udr-3.c +++ b/gcc/testsuite/gcc.dg/gomp/udr-3.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-fopenmp" } */ +/* { dg-options "-fopenmp -std=gnu89" } */ struct S { int s; }; struct T { int t; }; -- 2.30.2