aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/class.c2
-rw-r--r--gcc/cp/decl.c1
-rw-r--r--gcc/cp/errfn.c2
-rw-r--r--gcc/cp/parse.c4
-rw-r--r--gcc/cp/parse.y4
-rw-r--r--gcc/cp/ptree.c2
-rw-r--r--gcc/cp/search.c2
-rw-r--r--gcc/cp/xref.c2
9 files changed, 11 insertions, 14 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 8536976..53c12ae 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,9 @@
+Wed Apr 1 18:22:25 1998 Jeffrey A Law (law@cygnus.com)
+
+ * class.c, Make sure system.h is included just after config.h.
+ Delete lingering stdio and errno references too.
+ * decl.c, errfn.c, parse.y, ptree.c search.c, xrefc.: Likewwise.
+
Wed Apr 1 15:38:36 1998 Jason Merrill <jason@yorick.cygnus.com>
* friend.c (is_friend): Fix access control for local classes.
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 73701d2..6f0fcba 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -23,8 +23,8 @@ Boston, MA 02111-1307, USA. */
/* High-level class interface. */
#include "config.h"
-#include "tree.h"
#include "system.h"
+#include "tree.h"
#include "cp-tree.h"
#include "flags.h"
#include "rtl.h"
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index bb916e5..6d0e574 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -29,7 +29,6 @@ Boston, MA 02111-1307, USA. */
#include "config.h"
#include "system.h"
-#include <stdio.h>
#include "tree.h"
#include "rtl.h"
#include "flags.h"
diff --git a/gcc/cp/errfn.c b/gcc/cp/errfn.c
index 30cbfe56..2581a6f 100644
--- a/gcc/cp/errfn.c
+++ b/gcc/cp/errfn.c
@@ -20,8 +20,8 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#include "config.h"
-#include "tree.h"
#include "system.h"
+#include "tree.h"
/* cp_printer is the type of a function which converts an argument into
a string for digestion by printf. The cp_printer function should deal
diff --git a/gcc/cp/parse.c b/gcc/cp/parse.c
index 4247a9e..31b94ca 100644
--- a/gcc/cp/parse.c
+++ b/gcc/cp/parse.c
@@ -117,10 +117,6 @@ char *language_string = "GNU C++";
extern tree void_list_node;
extern struct obstack permanent_obstack;
-#ifndef errno
-extern int errno;
-#endif
-
extern int end_of_file;
/* Like YYERROR but do call yyerror. */
diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y
index 8729cc6..a471c82 100644
--- a/gcc/cp/parse.y
+++ b/gcc/cp/parse.y
@@ -49,10 +49,6 @@ char *language_string = "GNU C++";
extern tree void_list_node;
extern struct obstack permanent_obstack;
-#ifndef errno
-extern int errno;
-#endif
-
extern int end_of_file;
/* Like YYERROR but do call yyerror. */
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c
index 6b7e6a4..dc91cda 100644
--- a/gcc/cp/ptree.c
+++ b/gcc/cp/ptree.c
@@ -21,8 +21,8 @@ Boston, MA 02111-1307, USA. */
#include "config.h"
-#include "tree.h"
#include "system.h"
+#include "tree.h"
#include "cp-tree.h"
void
diff --git a/gcc/cp/search.c b/gcc/cp/search.c
index ed55e3c..72108cd 100644
--- a/gcc/cp/search.c
+++ b/gcc/cp/search.c
@@ -23,8 +23,8 @@ Boston, MA 02111-1307, USA. */
/* High-level class interface. */
#include "config.h"
-#include "tree.h"
#include "system.h"
+#include "tree.h"
#include "cp-tree.h"
#include "obstack.h"
#include "flags.h"
diff --git a/gcc/cp/xref.c b/gcc/cp/xref.c
index 0433089..8a5551c 100644
--- a/gcc/cp/xref.c
+++ b/gcc/cp/xref.c
@@ -21,8 +21,8 @@ Boston, MA 02111-1307, USA. */
#include "config.h"
-#include "tree.h"
#include "system.h"
+#include "tree.h"
#include "cp-tree.h"
#include "input.h"