This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp] Parser for OpenMP directives
On Tue, Mar 29, 2005 at 09:20:33AM +0400, Dmitry Kurochkin wrote:
> We can't handle it like pragma weak because of macro expansion. If we
> register threadprivate in omp namespace (like now actually) the macro
> expansion will take place only after threadprivate token, not after
> omp. So we'll have to register one big handler for pragma omp in
> global namespace.
We still handle it like pragma weak by having a list of names
against which declarations are compared, and we set DECL_THREAD_LOCAL.
We do not make threadprivate somehow part of parsing a decl.
Alternately, we make libcpp changes such that cpp does the macro
expansion as soon as it sees "omp", and then subsequent pragma
handling continues as normal.
r~