aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/lex.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-06-07 19:23:28 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2004-06-07 19:23:28 +0000
commit3743236e9c2259e46bec32221fcad4db67bfb22b (patch)
tree53fcd5455abcec6a3f5c32bdeb98b5eb0867d110 /gcc/cp/lex.c
parent0b395e1959dcdea573bd9eb19866a522005b0494 (diff)
downloadgcc-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
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r--gcc/cp/lex.c6
1 files changed, 6 insertions, 0 deletions
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;