diff options
author | Mark Mitchell <mark@codesourcery.com> | 2004-06-07 19:23:28 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2004-06-07 19:23:28 +0000 |
commit | 3743236e9c2259e46bec32221fcad4db67bfb22b (patch) | |
tree | 53fcd5455abcec6a3f5c32bdeb98b5eb0867d110 | |
parent | 0b395e1959dcdea573bd9eb19866a522005b0494 (diff) | |
download | gcc-3743236e9c2259e46bec32221fcad4db67bfb22b.zip gcc-3743236e9c2259e46bec32221fcad4db67bfb22b.tar.gz gcc-3743236e9c2259e46bec32221fcad4db67bfb22b.tar.bz2 |
re PR c++/15815 (Update #pragma interface and #pragma implementation documentation.)
PR c++/15815
* lex.c (handle_pragma_interface): Deprecate.
(handle_pragma_implementation): Likewise.
PR c++/15815
* doc/extend.texi: Deprecate #pragma interface and #pragma
implementation.
From-SVN: r82712
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/lex.c | 6 | ||||
-rw-r--r-- | gcc/doc/extend.texi | 6 |
4 files changed, 24 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4ac7e3d..a277a4d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-06-07 Mark Mitchell <mark@codesourcery.com> + + PR c++/15815 + * doc/extend.texi: Deprecate #pragma interface and #pragma + implementation. + 2004-06-07 Alexandre Oliva <aoliva@redhat.com> PR middle-end/15666 diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 6dfe64a..8fff9b0 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,11 @@ 2004-06-07 Mark Mitchell <mark@codesourcery.com> + PR c++/15815 + * lex.c (handle_pragma_interface): Deprecate. + (handle_pragma_implementation): Likewise. + +2004-06-07 Mark Mitchell <mark@codesourcery.com> + PR c++/15766 * parser.c (cp_parser_iteration_statement): Fix typo in error message. diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index d10fa2e..4dddfdd 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -529,6 +529,9 @@ handle_pragma_interface (cpp_reader* dfile ATTRIBUTE_UNUSED ) struct c_fileinfo *finfo; const char *main_filename; + warning ("`#pragma interface' is deprecated and will be removed in a " + "future version of GCC"); + if (fname == (tree)-1) return; else if (fname == 0) @@ -571,6 +574,9 @@ handle_pragma_implementation (cpp_reader* dfile ATTRIBUTE_UNUSED ) const char *main_filename; struct impl_files *ifiles = impl_file_chain; + warning ("`#pragma implementation' is deprecated and will be removed in a " + "future version of GCC"); + if (fname == (tree)-1) return; diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 204c64b..7d608df 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -7942,6 +7942,9 @@ use of the header file. @item #pragma interface @itemx #pragma interface "@var{subdir}/@var{objects}.h" @kindex #pragma interface +This @samp{#pragma} has been deprecated and will be removed in a +future release of GCC. + Use this directive in @emph{header files} that define object classes, to save space in most of the object files that use those classes. Normally, local copies of certain information (backup copies of inline member @@ -7962,6 +7965,9 @@ implementation}. @item #pragma implementation @itemx #pragma implementation "@var{objects}.h" @kindex #pragma implementation +This @samp{#pragma} has been deprecated and will be removed in a +future release of GCC. + Use this pragma in a @emph{main input file}, when you want full output from included header files to be generated (and made globally visible). The included header file, in turn, should use @samp{#pragma interface}. |