This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
gcc/libcpp directives.c internal.h lex.c inclu ...
- From: rth at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: 29 Sep 2005 09:03:51 -0000
- Subject: gcc/libcpp directives.c internal.h lex.c inclu ...
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gomp-20050608-branch
Changes by: rth@gcc.gnu.org 2005-09-29 09:03:51
Modified files:
libcpp : directives.c internal.h lex.c
libcpp/include : cpplib.h
Added files:
libcpp : ChangeLog.gomp
Log message:
* directives.c (struct pragma_entry): Add is_deferred. Add ident
entry to value union.
(end_directive): Don't eat the line if in_deferred_pragma.
(insert_pragma_entry): Remove.
(new_pragma_entry): New.
(register_pragma_1): Split out of register_pragma. Only handle
the lookup tree and return the new entry.
(cpp_register_pragma): Fill in the pragma entry here.
(cpp_register_deferred_pragma): New.
(register_pragma_internal): New.
(_cpp_init_internal_pragmas): Use register_pragma_internal.
(do_pragma): Allow pragma expansion after namespace. For deferred
pragmas, don't slurp the line into a string.
(cpp_handle_deferred_pragma): Remove.
* internal.h (struct lexer_state): Add pragma_allow_expansion.
* lex.c (_cpp_lex_token): Allow _cpp_handle_directive to return
a token. Update the line number correctly if so.
(_cpp_lex_direct): Emit CPP_PRAGMA_EOL tokens.
(cpp_token_val_index): Return CPP_TOKEN_FLD_PRAGMA for pragmas.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/ChangeLog.gomp.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/directives.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.16.4.1&r2=1.16.4.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/internal.h.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.15.8.1&r2=1.15.8.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/lex.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.10.4.2&r2=1.10.4.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/include/cpplib.h.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.12.4.2&r2=1.12.4.3