abort might not flush all open streams before process termination
authorThomas Schwinge <thomas@codesourcery.com>
Mon, 26 Oct 2015 16:25:04 +0000 (17:25 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Mon, 26 Oct 2015 16:25:04 +0000 (17:25 +0100)
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

libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-c-c++-common/abort-1.c
libgomp/testsuite/libgomp.oacc-c-c++-common/abort-3.c

index fa9027b14288ccc7fd6158db5614921f5196c453..afc49ae164c5cb04a8f2c642384cc1e5e50bbad9 100644 (file)
@@ -1,5 +1,8 @@
 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
 
+       * 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.
index 6a9b1df0fa6b2e18a650c80eca01443b193666f1..296708ff78936cd32e55e8284e9a9638d6e9ad6b 100644 (file)
@@ -1,11 +1,12 @@
 /* { dg-do run } */
 
+#include <stdio.h>
 #include <stdlib.h>
 
 int
 main (void)
 {
-  __builtin_printf ("CheCKpOInT\n");
+  fprintf (stderr, "CheCKpOInT\n");
 #pragma acc parallel
   {
     abort ();
index 2c8f347ed0170b53dc28fc91ca8044b28c67ca3c..bca425e847318e62e3baba4ff453a349a453eb04 100644 (file)
@@ -1,11 +1,12 @@
 /* { dg-do run } */
 
+#include <stdio.h>
 #include <stdlib.h>
 
 int
 main (void)
 {
-  __builtin_printf ("CheCKpOInT\n");
+  fprintf (stderr, "CheCKpOInT\n");
 #pragma acc kernels
   {
     abort ();