This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
gcc/gcc ChangeLog.gomp Makefile.in c-lex.c c-p ...
- From: rth at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: 10 Oct 2005 21:21:29 -0000
- Subject: gcc/gcc ChangeLog.gomp Makefile.in c-lex.c c-p ...
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gomp-20050608-branch
Changes by: rth@gcc.gnu.org 2005-10-10 21:21:29
Modified files:
gcc : ChangeLog.gomp Makefile.in c-lex.c c-parser.c
c-pragma.c c-pragma.h
Log message:
* Makefile.in (GTFILES): Add c-pragma.h.
* c-lex.c (pragma_lex): Remove.
* c-parser.c (enum pragma_omp_kind): Move to c-pragma.h.
(c_parse_init): Move omp pragma registration to init_pragma.
(struct c_token): Rename omp_kind to pragma_kind.
(the_parser): Move earlier in the file.
(c_token_starts_declspecs): False for all pragmas.
(c_parser_declaration_or_fndef): Don't allow PRAGMA_OMP_THREADPRIVATE.
(enum pragma_context, c_parser_pragma): New.
(c_parser_external_declaration): Use it.
(c_parser_compound_statement_nostart): Likewise.
(c_parser_statement_after_labels): Likewise.
(pragma_lex): New.
(c_parser_omp_construct): Don't handle BARRIER or FLUSH here.
(c_parser_new): Merge into ...
(c_parse_file): ... here. Use c_parser_pragma.
* c-pragma.c (registered_pragmas, c_register_pragma_1): New.
(c_register_pragma, c_register_pragma_with_expansion): Use it.
(c_invoke_pragma_handler): New.
(init_pragma): Do omp pragma registration here.
* c-pragma.h (enum pragma_kind): Move from c-parser.c.
(pragma_handler): New.
(c_invoke_pragma_handler): Declare.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.gomp.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.1.6.69&r2=1.1.6.70
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/Makefile.in.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.1501.4.16&r2=1.1501.4.17
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-lex.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.249.4.5&r2=1.249.4.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-parser.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=2.17.4.30&r2=2.17.4.31
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-pragma.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.87.4.4&r2=1.87.4.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-pragma.h.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.47.8.2&r2=1.47.8.3