summaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-04-06 14:01:33 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-04-06 14:01:33 +0000
commit922479330da4e69c21f009c322c425bcf490715a (patch)
tree705fdf7fa2c894b86921a9d5b3c46a2bd38525cb /gcc/objc
parentcd5ffd887e5678a166dc4cf1f1e3c76e26ec321d (diff)
downloadgcc-922479330da4e69c21f009c322c425bcf490715a.tar.gz
More system.h cutover patches:
* c-parse.in: Include system.h, and remove stuff now made redundant. * cccp.c: Likewise. * cexp.y: Likewise. * protoize.c: Likewise. Properly check for cpp stringification. * Makefile.in (c-parse.o, cccp.o, cexp.o, protoize.o, unprotoize.o): Depend on system.h. * objc/Make-lang.in (objc-parse.o): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19020 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objc')
-rw-r--r--gcc/objc/Make-lang.in2
-rw-r--r--gcc/objc/objc-parse.c9
-rw-r--r--gcc/objc/objc-parse.y9
3 files changed, 3 insertions, 17 deletions
diff --git a/gcc/objc/Make-lang.in b/gcc/objc/Make-lang.in
index 4b41c9a1433..ebde9d0101b 100644
--- a/gcc/objc/Make-lang.in
+++ b/gcc/objc/Make-lang.in
@@ -71,7 +71,7 @@ cc1obj$(exeext): $(P) $(OBJC_OBJS) $(OBJS) $(LIBDEPS)
objc-parse.o : $(srcdir)/objc/objc-parse.c \
$(CONFIG_H) $(TREE_H) \
$(srcdir)/c-lex.h $(srcdir)/c-tree.h $(srcdir)/input.h \
- $(srcdir)/flags.h $(srcdir)/output.h $(srcdir)/objc/objc-act.h
+ $(srcdir)/flags.h $(srcdir)/output.h $(srcdir)/objc/objc-act.h system.h
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -I$(srcdir)/objc \
-c $(srcdir)/objc/objc-parse.c
diff --git a/gcc/objc/objc-parse.c b/gcc/objc/objc-parse.c
index cf3f3f70804..abb9099469a 100644
--- a/gcc/objc/objc-parse.c
+++ b/gcc/objc/objc-parse.c
@@ -68,9 +68,7 @@
#line 33 "objc-parse.y"
#include "config.h"
-
-#include <stdio.h>
-#include <errno.h>
+#include "system.h"
#include <setjmp.h>
#include "tree.h"
@@ -81,7 +79,6 @@
#include "output.h"
#ifdef MULTIBYTE_CHARS
-#include <stdlib.h>
#include <locale.h>
#endif
@@ -91,10 +88,6 @@
definition here. */
char *language_string = "GNU Obj-C";
-#ifndef errno
-extern int errno;
-#endif
-
/* Like YYERROR but do call yyerror. */
#define YYERROR1 { yyerror ("syntax error"); YYERROR; }
diff --git a/gcc/objc/objc-parse.y b/gcc/objc/objc-parse.y
index 807ad5a952c..c216d438ae1 100644
--- a/gcc/objc/objc-parse.y
+++ b/gcc/objc/objc-parse.y
@@ -32,9 +32,7 @@ Boston, MA 02111-1307, USA. */
%{
#include "config.h"
-
-#include <stdio.h>
-#include <errno.h>
+#include "system.h"
#include <setjmp.h>
#include "tree.h"
@@ -45,7 +43,6 @@ Boston, MA 02111-1307, USA. */
#include "output.h"
#ifdef MULTIBYTE_CHARS
-#include <stdlib.h>
#include <locale.h>
#endif
@@ -55,10 +52,6 @@ Boston, MA 02111-1307, USA. */
definition here. */
char *language_string = "GNU Obj-C";
-#ifndef errno
-extern int errno;
-#endif
-
/* Like YYERROR but do call yyerror. */
#define YYERROR1 { yyerror ("syntax error"); YYERROR; }