From: Thomas Schwinge Date: Mon, 26 Oct 2015 16:25:04 +0000 (+0100) Subject: abort might not flush all open streams before process termination X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bdeb752cf843f95086d96ca7f8908c99a6c81750;p=gcc.git abort might not flush all open streams before process termination libgomp/ * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr. * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise. From-SVN: r229382 --- diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index fa9027b1428..afc49ae164c 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,5 +1,8 @@ 2015-10-26 Thomas Schwinge + * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr. + * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise. + * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit acc_device_nvidia usage. * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise. diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/abort-1.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/abort-1.c index 6a9b1df0fa6..296708ff789 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/abort-1.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/abort-1.c @@ -1,11 +1,12 @@ /* { dg-do run } */ +#include #include int main (void) { - __builtin_printf ("CheCKpOInT\n"); + fprintf (stderr, "CheCKpOInT\n"); #pragma acc parallel { abort (); diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/abort-3.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/abort-3.c index 2c8f347ed01..bca425e8473 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/abort-3.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/abort-3.c @@ -1,11 +1,12 @@ /* { dg-do run } */ +#include #include int main (void) { - __builtin_printf ("CheCKpOInT\n"); + fprintf (stderr, "CheCKpOInT\n"); #pragma acc kernels { abort ();