--- Comment #14 from jakub at gcc dot gnu dot org 2006-06-09 21:26 ---
Should be fixed in SVN.
--
jakub at gcc dot gnu dot org changed:
What|Removed |Added
St
--- Comment #13 from jakub at gcc dot gnu dot org 2006-06-09 21:13 ---
Subject: Bug 27746
Author: jakub
Date: Fri Jun 9 21:13:25 2006
New Revision: 114519
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114519
Log:
PR preprocessor/27746
* directives.c (do_pragma)
--- Comment #12 from pinskia at gcc dot gnu dot org 2006-05-25 16:44
---
(In reply to comment #10)
> #define parallel _Pragma("omp parallel")
> int
> main()
> {
> #pragma omp parallel
> {}
> }
This is not invalid according to:
http://gcc.gnu.org/onlinedocs/cpp/Implementation_002
--- Comment #11 from jakub at gcc dot gnu dot org 2006-05-25 15:47 ---
So far fixed the valid cases of _Pragma with -fopenmp I came up, still need to
work some more on the invalid ones.
--
jakub at gcc dot gnu dot org changed:
What|Removed |Added
-
--- Comment #10 from jakub at gcc dot gnu dot org 2006-05-25 12:29 ---
#define parallel _Pragma("omp parallel")
int
main()
{
#pragma omp parallel
{}
}
is ICE on invalid code, OpenMP 2.5 says in 2.1 Directive Format:
Preprocessing tokens following the #pragma omp are subject to ma
--- Comment #9 from pinskia at gcc dot gnu dot org 2006-05-24 03:45 ---
(In reply to comment #8)
> I found out about _Pragma from the following page (at the bottom):
You can work around this bug by using the -save-temps option.
Even though _Pragma is an extension to C++ and C89/90, it is
--- Comment #8 from bowie dot owens at csiro dot au 2006-05-24 03:42
---
I found out about _Pragma from the following page (at the bottom):
http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Function-Attributes.html
While it is not essential behaviour to allow _Pragma's to be generated from
--- Comment #7 from pinskia at gcc dot gnu dot org 2006-05-24 03:33 ---
I should note this is accepted with -save-temps so the preprocessor is doing
the correct thing at least to a point. I bet PR 27747 and 27748 are really all
the same issue.
--
pinskia at gcc dot gnu dot org chang
--- Comment #6 from pinskia at gcc dot gnu dot org 2006-05-24 03:29 ---
(In reply to comment #4)
> The question is does macros allow to stuff in #pragmas.
> I want to say yes.
I changed my mind, no it should not be except for some cases.
Or at least the documented ones. I don't even th
--- Comment #5 from pinskia at gcc dot gnu dot org 2006-05-24 03:24 ---
(In reply to comment #4)
> Anyways here is a non openmp testcase that fails currently but it ICEs
> differently:
And I am going to file a different bug about that.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-05-24 03:23 ---
Here is a reduced testcase:
#define parallel _Pragma("omp parallel")
int
main()
{
#pragma omp parallel
{}
}
The question is does macros allow to stuff in #pragmas.
I want to say yes.
Anyways here is a non open
11 matches
Mail list logo