aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mark@markmitchell.com>1998-09-07 11:35:39 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1998-09-07 11:35:39 +0000
commit4d6e34ea2b60f51729e3740562afa40e50be0a78 (patch)
tree38a8f31f9400b5ef6a232c7684fa3ff012adec26
parentb32067b2e223e4048a7e2e1689e639bfaa80900a (diff)
downloadgcc-4d6e34ea2b60f51729e3740562afa40e50be0a78.zip
gcc-4d6e34ea2b60f51729e3740562afa40e50be0a78.tar.gz
gcc-4d6e34ea2b60f51729e3740562afa40e50be0a78.tar.bz2
cp-tree.h (cp_error): Prototype.
* cp-tree.h (cp_error): Prototype. (cp_error_at): Likewise. (cp_warning): Likewise. (cp_warning_at): Likewise. (cp_pedwarn): Likewise. (cp_pedwarn_at): Likewise. (cp_compiler_error): Likewise. (cp_sprintf): Likewise. (cp_enable_warning): Likewise. * errfn.c: Remove hack to avoid error-function prototypes when including cp-tree.h. Co-Authored-By: Kaveh R. Ghazi <ghazi@caip.rutgers.edu> From-SVN: r22308
-rw-r--r--gcc/cp/ChangeLog15
-rw-r--r--gcc/cp/cp-tree.h18
-rw-r--r--gcc/cp/errfn.c3
3 files changed, 23 insertions, 13 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index a4fc494..8a00599 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,18 @@
+1998-09-07 Mark Mitchell <mark@markmitchell.com>
+ and Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * cp-tree.h (cp_error): Prototype.
+ (cp_error_at): Likewise.
+ (cp_warning): Likewise.
+ (cp_warning_at): Likewise.
+ (cp_pedwarn): Likewise.
+ (cp_pedwarn_at): Likewise.
+ (cp_compiler_error): Likewise.
+ (cp_sprintf): Likewise.
+ (cp_enable_warning): Likewise.
+ * errfn.c: Remove hack to avoid error-function prototypes when
+ including cp-tree.h.
+
1998-09-06 Mark Mitchell <mark@markmitchell.com>
* cp-error.def: New file.
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 829eeb37..43e1797 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -2640,16 +2640,14 @@ extern tree handle_class_head PROTO((tree, tree, tree));
extern tree lookup_arg_dependent PROTO((tree, tree, tree));
/* in errfn.c */
-#ifndef NO_CP_ERROR_FNS
-extern void cp_error ();
-extern void cp_error_at ();
-extern void cp_warning ();
-extern void cp_warning_at ();
-extern void cp_pedwarn ();
-extern void cp_pedwarn_at ();
-extern void cp_compiler_error ();
-extern void cp_sprintf ();
-#endif
+extern void cp_error PVPROTO((error_code, ...));
+extern void cp_error_at PVPROTO((error_code, ...));
+extern void cp_warning PVPROTO((error_code, ...));
+extern void cp_warning_at PVPROTO((error_code, ...));
+extern void cp_pedwarn PVPROTO((error_code, ...));
+extern void cp_pedwarn_at PVPROTO((error_code, ...));
+extern void cp_compiler_error PVPROTO((error_code, ...));
+extern void cp_sprintf PVPROTO((error_code, ...));
extern void cp_enable_warning PROTO((int, int));
/* in error.c */
diff --git a/gcc/cp/errfn.c b/gcc/cp/errfn.c
index 28e754f..11c6825 100644
--- a/gcc/cp/errfn.c
+++ b/gcc/cp/errfn.c
@@ -23,9 +23,6 @@ Boston, MA 02111-1307, USA. */
#include "system.h"
#include "tree.h"
#include "toplev.h"
-/* The declarations of cp_error and such here are incompatible with
- those in cp-tree.h. */
-#define NO_CP_ERROR_FNS
#include "cp-tree.h"
/* cp_printer is the type of a function which converts an argument into