Message ID | 871td7ouju.fsf@kepler.schwinge.homeip.net |
---|---|
State | New |
Headers | show |
Thomas Schwinge <thomas@codesourcery.com> writes: > On Tue, 06 Oct 2015 13:55:00 +0200, Andreas Schwab <schwab@linux-m68k.org> wrote: >> Thomas Schwinge <thomas@codesourcery.com> writes: >> >> > | The two regressed test cases use __builtin_printf instead of fprintf to >> > | stderr, but as far as I know, abort is to flush all open streams before >> > | process termination? >> >> It can't, since abort must be async-signal-safe. > > It's still surprising to me that the message written to stderr is lost in > your aarch64-suse-linux-gnu configuration (only): from a quick look, > (current) glibc's stdlib/abort.c tries to actually close/flush all open > streams before process termination. This is <https://sourceware.org/bugzilla/show_bug.cgi?id=15436>. Andreas.
diff --git libgomp/testsuite/libgomp.oacc-c-c++-common/abort-1.c libgomp/testsuite/libgomp.oacc-c-c++-common/abort-1.c index 6a9b1df..296708f 100644 --- libgomp/testsuite/libgomp.oacc-c-c++-common/abort-1.c +++ libgomp/testsuite/libgomp.oacc-c-c++-common/abort-1.c @@ -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 (); diff --git libgomp/testsuite/libgomp.oacc-c-c++-common/abort-3.c libgomp/testsuite/libgomp.oacc-c-c++-common/abort-3.c index 2c8f347..bca425e 100644 --- libgomp/testsuite/libgomp.oacc-c-c++-common/abort-3.c +++ libgomp/testsuite/libgomp.oacc-c-c++-common/abort-3.c @@ -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 ();