Re: [committed] openmp: Implement the error directive

2021-08-20 Thread Jakub Jelinek via Gcc-patches
On Sat, Aug 21, 2021 at 12:21:41AM +0200, Thomas Schwinge wrote: > Fix up for recent commit 0d973c0a0d90a0a302e7eda1a4d9709be3c5b102 > "openmp: Implement the error directive". > --- > libgomp/config/nvptx/error.c | 32 +-- > .../testsuite/libgomp.c-c++-common/error

Re: [committed] openmp: Implement the error directive

2021-08-20 Thread Thomas Schwinge
Hi! On 2021-08-20T15:54:34+0200, I wrote: > On 2021-08-20T15:21:12+0200, Jakub Jelinek wrote: >> On Fri, Aug 20, 2021 at 03:11:45PM +0200, Thomas Schwinge wrote: >>> > --- libgomp/error.c.jj2021-08-19 12:53:44.693106618 +0200 >>> > +++ libgomp/error.c 2021-08-19 17:58:55.633203432 +0200

Re: [committed] openmp: Implement the error directive

2021-08-20 Thread Thomas Schwinge
Hi Jakub! On 2021-08-20T15:21:12+0200, Jakub Jelinek wrote: > On Fri, Aug 20, 2021 at 03:11:45PM +0200, Thomas Schwinge wrote: >> > --- libgomp/error.c.jj2021-08-19 12:53:44.693106618 +0200 >> > +++ libgomp/error.c 2021-08-19 17:58:55.633203432 +0200 >> >> > +void >> > +GOMP_warning (co

Re: [committed] openmp: Implement the error directive

2021-08-20 Thread Jakub Jelinek via Gcc-patches
On Fri, Aug 20, 2021 at 03:11:45PM +0200, Thomas Schwinge wrote: > > --- libgomp/error.c.jj2021-08-19 12:53:44.693106618 +0200 > > +++ libgomp/error.c 2021-08-19 17:58:55.633203432 +0200 > > > +void > > +GOMP_warning (const char *msg, size_t msglen) > > +{ > > + if (msg && msglen == (si

Re: [committed] openmp: Implement the error directive

2021-08-20 Thread Thomas Schwinge
Hi! On 2021-08-20T15:11:45+0200, I wrote: > On 2021-08-20T11:45:29+0200, Jakub Jelinek via Gcc-patches > wrote: >> --- libgomp/error.c.jj 2021-08-19 12:53:44.693106618 +0200 >> +++ libgomp/error.c 2021-08-19 17:58:55.633203432 +0200 > >> +void >> +GOMP_warning (const char *msg, size_t msg

Re: [committed] openmp: Implement the error directive

2021-08-20 Thread Thomas Schwinge
Hi! On 2021-08-20T11:45:29+0200, Jakub Jelinek via Gcc-patches wrote: > --- libgomp/error.c.jj2021-08-19 12:53:44.693106618 +0200 > +++ libgomp/error.c 2021-08-19 17:58:55.633203432 +0200 > +void > +GOMP_warning (const char *msg, size_t msglen) > +{ > + if (msg && msglen == (size_t)

Re: [Patch] Fortran: Add OpenMP's error directive (was: [committed] openmp: Implement the error directive)

2021-08-20 Thread Jakub Jelinek via Gcc-patches
On Fri, Aug 20, 2021 at 12:00:10PM +0200, Tobias Burnus wrote: > gcc/fortran/ChangeLog: > > * dump-parse-tree.c (show_omp_clauses): Handle 'at', 'severity' > and 'message' clauses. > (show_omp_node, show_code_node): Handle EXEC_OMP_ERROR. > * gfortran.h (gfc_statement): Add

[Patch] Fortran: Add OpenMP's error directive (was: [committed] openmp: Implement the error directive)

2021-08-20 Thread Tobias Burnus
Hi Jakub, hi all, On 20.08.21 11:45, Jakub Jelinek wrote: This patch implements the error directive. Depending on clauses it is either a compile time diagnostics (in that case diagnosed right away) or runtime diagnostics (libgomp API call that diagnoses at runtime), The attached patch does li

[committed] openmp: Implement the error directive

2021-08-20 Thread Jakub Jelinek via Gcc-patches
Hi! This patch implements the error directive. Depending on clauses it is either a compile time diagnostics (in that case diagnosed right away) or runtime diagnostics (libgomp API call that diagnoses at runtime), and either fatal or warning (error or warning at compile time or fatal error vs. err