Hi Martin,
On 28.10.21 18:28, Martin Sebor wrote:
There are a number of bug reports of _Pragma not working right
in macros, including (and especially) to control diagnostics:
https://gcc.gnu.org/bugzilla/buglist.cgi?quicksearch=_Pragma%20macro&list_id=328003
Just by the description this change
On Fri, Oct 29, 2021 at 06:20:15PM +0200, Tobias Burnus wrote:
> On 29.10.21 13:06, Jakub Jelinek wrote:
> > On Thu, Oct 28, 2021 at 05:51:59PM +0200, Tobias Burnus wrote:
> > > libcpp/ChangeLog:
> > >
> > > PR c++/102409
> > > * directives.c (destringize_and_run): Add PRAGMA_OP to the
>
On 29.10.21 13:06, Jakub Jelinek wrote:
On Thu, Oct 28, 2021 at 05:51:59PM +0200, Tobias Burnus wrote:
libcpp/ChangeLog:
PR c++/102409
* directives.c (destringize_and_run): Add PRAGMA_OP to the
CPP_PRAGMA token's flags to mark is as coming from _Pragma.
* include/cpplib.h (P
On Thu, Oct 28, 2021 at 05:51:59PM +0200, Tobias Burnus wrote:
> libcpp/ChangeLog:
>
> PR c++/102409
> * directives.c (destringize_and_run): Add PRAGMA_OP to the
> CPP_PRAGMA token's flags to mark is as coming from _Pragma.
> * include/cpplib.h (PRAGMA_OP): #define, to be u
On 10/28/21 9:51 AM, Tobias Burnus wrote:
Before this patch, running
#define TEST(T) T
#define PARALLEL(X) TEST(X)
PARALLEL(
for (int i = 0; i < N; i++) { \
_Pragma("omp ordered") \
S[0] += C[i] + D[i]; \
})
through 'gcc -E' yielded
#pragma omp ordered
for (int i = 0;
Before this patch, running
#define TEST(T) T
#define PARALLEL(X) TEST(X)
PARALLEL(
for (int i = 0; i < N; i++) { \
_Pragma("omp ordered") \
S[0] += C[i] + D[i]; \
})
through 'gcc -E' yielded
#pragma omp ordered
for (int i = 0; i < N; i++) { S[0] += C[i] + D[i]; }
Note that