-
- Downloads
sol2-c.c (solaris_register_pragmas): Use c_register_pragma_with_expansion.
gcc:
2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
* config/sol2-c.c (solaris_register_pragmas): Use
c_register_pragma_with_expansion.
* config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
* c-pragma.c (c_register_pragma): Update call to
cpp_register_pragma.
(c_register_pragma_with_expansion): New function.
(init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
* c-pragma.h (c_register_pragma_with_expansion): New prototype.
* doc/extend.texi (Solaris Pragmas): Mention macro expansion for
#pragma align.
* doc/tm.texi (c_register_pragma_with_expansion,
HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
gcc/testsuite:
2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
* gcc.dg/pragma-align-2.c: Test macro expansion.
* gcc.dg/pragma-pack-2.c: New test.
libcpp:
2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
* internal.h (struct lexer_state): Add in_deferred_pragma.
* directives.c (struct pragma_entry): Add allow_expansion.
(insert_pragma_entry): Take allow_expansion flag.
(register_pragma): Likewise.
(cpp_register_pragma): Likewise.
(_cpp_init_internal_pragmas): Update calls to cpp_register_pragma.
(do_pragma): Honor allow_expansion.
(cpp_handle_deferred_pragma): Set in_deferred_pragma.
* include/cpplib.h (cpp_register_pragma): Update prototype.
Co-Authored-By:
Joseph Myers <joseph@codesourcery.com>
From-SVN: r91117
Showing
- gcc/ChangeLog 16 additions, 0 deletionsgcc/ChangeLog
- gcc/c-pragma.c 13 additions, 2 deletionsgcc/c-pragma.c
- gcc/c-pragma.h 3 additions, 1 deletiongcc/c-pragma.h
- gcc/config/sol2-c.c 1 addition, 1 deletiongcc/config/sol2-c.c
- gcc/config/sol2.h 3 additions, 0 deletionsgcc/config/sol2.h
- gcc/doc/extend.texi 4 additions, 1 deletiongcc/doc/extend.texi
- gcc/doc/tm.texi 15 additions, 3 deletionsgcc/doc/tm.texi
- gcc/testsuite/ChangeLog 5 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/pragma-align-2.c 13 additions, 1 deletiongcc/testsuite/gcc.dg/pragma-align-2.c
- gcc/testsuite/gcc.dg/pragma-pack-2.c 48 additions, 0 deletionsgcc/testsuite/gcc.dg/pragma-pack-2.c
- libcpp/ChangeLog 13 additions, 0 deletionslibcpp/ChangeLog
- libcpp/directives.c 33 additions, 15 deletionslibcpp/directives.c
- libcpp/include/cpplib.h 1 addition, 1 deletionlibcpp/include/cpplib.h
- libcpp/internal.h 3 additions, 0 deletionslibcpp/internal.h
Loading
Please register or sign in to comment