aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/errfn.c
diff options
context:
space:
mode:
authorMartin v. Löwis <loewis@informatik.hu-berlin.de>1999-04-14 05:34:55 +0000
committerMartin v. Löwis <loewis@gcc.gnu.org>1999-04-14 05:34:55 +0000
commit2de45c0679fc608353e9267941477769b3b18ecd (patch)
treee1d858eaef48804c0e8d8e939fbfdb6f3a5e58bd /gcc/cp/errfn.c
parent853c37e365f729d9ece936f0432138cbf1abdeb5 (diff)
downloadgcc-2de45c0679fc608353e9267941477769b3b18ecd.zip
gcc-2de45c0679fc608353e9267941477769b3b18ecd.tar.gz
gcc-2de45c0679fc608353e9267941477769b3b18ecd.tar.bz2
extend.texi (Deprecated Features): New node.
* extend.texi (Deprecated Features): New node. * invoke.texi (-Wdeprecated): Document. * cp/lang-options.h (-Wdeprecated): New flag. * cp/decl2.c (warn_deprecated): New flag. (lang_decode_option): Deprecated this-is-variable, external-templates, alt-external-templates. Support -Wdeprecated. * cp/errfn.c (cp_deprecated): New function. From-SVN: r26438
Diffstat (limited to 'gcc/cp/errfn.c')
-rw-r--r--gcc/cp/errfn.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/cp/errfn.c b/gcc/cp/errfn.c
index 58a46af..b5d3eec 100644
--- a/gcc/cp/errfn.c
+++ b/gcc/cp/errfn.c
@@ -266,6 +266,17 @@ cp_compiler_error VPROTO((const char *format, ...))
}
void
+cp_deprecated (msg)
+ const char *msg;
+{
+ extern int warn_deprecated;
+ if (!warn_deprecated)
+ return;
+ cp_warning ("%s is deprecated.", msg);
+ cp_warning ("Please see the documentation for details.");
+}
+
+void
cp_sprintf VPROTO((const char *format, ...))
{
#ifndef ANSI_PROTOTYPES