gcc/libgomp/config/nvptx
Thomas Schwinge a5416bf369 Make the OpenMP 'error' directive work for nvptx offloading
... and add a minimum amount of offloading testing.

(Leaving aside that 'fwrite' to 'stderr' probably wouldn't work anyway) the
'fwrite' calls in 'libgomp/error.c:GOMP_warning', 'libgomp/error.c:GOMP_error'
drag in 'isatty', which isn't provided by my nvptx newlib build at present, so
we get, for example:

    [...]
    FAIL: libgomp.c/../libgomp.c-c++-common/declare_target-1.c (test for excess errors)
    Excess errors:
    unresolved symbol isatty
    mkoffload: fatal error: [...]/build-gcc/./gcc/x86_64-pc-linux-gnu-accel-nvptx-none-gcc returned 1 exit status
    [...]

..., and many more.

Fix up for recent commit 0d973c0a0d
"openmp: Implement the error directive".

	libgomp/
	* config/nvptx/error.c (fwrite, exit): Override, too.
	* testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
	of offloading testing.
	* testsuite/libgomp.fortran/error-1.f90: Likewise.
2021-08-22 11:08:26 +02:00
..
affinity-fmt.c Update copyright years. 2021-01-04 10:26:59 +01:00
atomic.c [libgomp, nvptx] Add __sync_compare_and_swap_16 2020-09-14 08:28:56 +02:00
bar.c Update copyright years. 2021-01-04 10:26:59 +01:00
bar.h Update copyright years. 2021-01-04 10:26:59 +01:00
doacross.h Update copyright years. 2021-01-04 10:26:59 +01:00
error.c Make the OpenMP 'error' directive work for nvptx offloading 2021-08-22 11:08:26 +02:00
icv-device.c openmp: Implement omp_get_device_num routine 2021-08-05 23:29:03 +08:00
oacc-parallel.c [libgomp] Truncate config/nvptx/oacc-parallel.c 2018-08-01 13:01:45 -07:00
simple-bar.h Update copyright years. 2021-01-04 10:26:59 +01:00
target.c openmp: Fix up handling of target constructs in offloaded routines [PR100573] 2021-05-26 11:28:42 +02:00
task.c Update copyright years. 2021-01-04 10:26:59 +01:00
team.c Update copyright years. 2021-01-04 10:26:59 +01:00
teams.c Update copyright years. 2021-01-04 10:26:59 +01:00
time.c Update copyright years. 2021-01-04 10:26:59 +01:00