call.c: Include system.h.

* call.c: Include system.h.  Remove includes, declarations and
        defines provided by system.h.
        * class.c, cvt.c, decl.c, decl2.c, errfn.c error.c: Likewise.
        * except.c, expr.c friend.c, g++spec.c, init.c, input.c: Likewise.
        * lex.c, parse.y, pt.c, ptree.c repo.c rtti.c, search.c: Likewise.
        * semantics.c, sig.c, spew.c, tree.c, typeck.c: Likewise.
        * typeck2.c, xref.c: Likewise.
        * Makefile.in: Dependencies updated as appropriate.
        * Make-lang.in: Likewise.
system.h cutover from the cp subdir

From-SVN: r18917
This commit is contained in:
Jeffrey A Law 1998-03-31 13:25:46 +00:00 committed by Jeff Law
parent 97be8f06eb
commit 8d052bc70c
31 changed files with 861 additions and 956 deletions

View File

@ -1,3 +1,15 @@
Tue Mar 31 13:43:57 1998 Jeffrey A Law (law@cygnus.com)
* call.c: Include system.h. Remove includes, declarations and
defines provided by system.h.
* class.c, cvt.c, decl.c, decl2.c, errfn.c error.c: Likewise.
* except.c, expr.c friend.c, g++spec.c, init.c, input.c: Likewise.
* lex.c, parse.y, pt.c, ptree.c repo.c rtti.c, search.c: Likewise.
* semantics.c, sig.c, spew.c, tree.c, typeck.c: Likewise.
* typeck2.c, xref.c: Likewise.
* Makefile.in: Dependencies updated as appropriate.
* Make-lang.in: Likewise.
Mon Mar 30 12:15:00 1998 Mark Mitchell <mmitchell@usa.net>
* pt.c (fn_type_unification): Allow incomplete unification without

View File

@ -86,7 +86,8 @@ g++spec.o: $(srcdir)/cp/g++spec.c
# It'd be nice if we could find an easier way to do this---rather than have
# to track changes to the toplevel gcc Makefile as well.
# We depend on g++.c last, to make it obvious where it came from.
g++.o: $(CONFIG_H) multilib.h config.status $(lang_specs_files) g++.c
g++.o: $(CONFIG_H) multilib.h config.status $(lang_specs_files) g++.c \
system.h
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
$(DRIVER_DEFINES) \
-DLANG_SPECIFIC_DRIVER \

View File

@ -198,7 +198,7 @@ PARSE_H = $(srcdir)/parse.h
PARSE_C = $(srcdir)/parse.c
parse.o : $(PARSE_C) $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h lex.h \
$(srcdir)/../except.h $(srcdir)/../output.h
$(srcdir)/../except.h $(srcdir)/../output.h $(srcdir)/../system.h
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(BIG_SWITCHFLAG) \
`echo $(PARSE_C) | sed 's,^\./,,'`
@ -227,39 +227,53 @@ $(srcdir)/hash.h:
$(srcdir)/gxx.gperf >$(srcdir)/hash.h
spew.o : spew.c $(CONFIG_H) $(CXX_TREE_H) \
$(PARSE_H) $(srcdir)/../flags.h lex.h
$(PARSE_H) $(srcdir)/../flags.h lex.h $(srcdir)/../system.h
lex.o : lex.c $(CONFIG_H) $(CXX_TREE_H) \
$(PARSE_H) input.c $(srcdir)/../flags.h hash.h lex.h $(srcdir)/../c-pragma.h
$(PARSE_H) input.c $(srcdir)/../flags.h hash.h lex.h \
$(srcdir)/../c-pragma.h $(srcdir)/../system.h
decl.o : decl.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \
lex.h decl.h $(srcdir)/../stack.h $(srcdir)/../output.h \
$(srcdir)/../except.h
$(srcdir)/../except.h $(srcdir)/../system.h
decl2.o : decl2.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \
lex.h decl.h $(srcdir)/../expr.h ../insn-codes.h $(srcdir)/../except.h \
$(srcdir)/../output.h $(srcdir)/../except.h
typeck2.o : typeck2.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h
$(srcdir)/../output.h $(srcdir)/../except.h $(srcdir)/../system.h
typeck2.o : typeck2.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \
$(srcdir)/../system.h
typeck.o : typeck.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h $(RTL_H) \
$(srcdir)/../expr.h ../insn-codes.h
class.o : class.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h
call.o : call.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h
friend.o : friend.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h $(RTL_H)
$(srcdir)/../expr.h ../insn-codes.h $(srcdir)/../system.h
class.o : class.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \
$(srcdir)/../system.h
call.o : call.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \
$(srcdir)/../system.h
friend.o : friend.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h $(RTL_H) \
$(srcdir)/../system.h
init.o : init.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h $(RTL_H) \
$(srcdir)/../expr.h ../insn-codes.h
$(srcdir)/../expr.h ../insn-codes.h $(srcdir)/../system.h
method.o : method.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../system.h
cvt.o : cvt.c $(CONFIG_H) $(CXX_TREE_H)
search.o : search.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../stack.h $(srcdir)/../flags.h
tree.o : tree.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h
ptree.o : ptree.c $(CONFIG_H) $(CXX_TREE_H)
rtti.o : rtti.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h
except.o : except.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h $(RTL_H) $(srcdir)/../except.h
cvt.o : cvt.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../system.h
search.o : search.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../stack.h \
$(srcdir)/../flags.h $(srcdir)/../system.h
tree.o : tree.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \
$(srcdir)/../system.h
ptree.o : ptree.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../system.h
rtti.o : rtti.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \
$(srcdir)/../system.h
except.o : except.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h $(RTL_H) \
$(srcdir)/../except.h $(srcdir)/../system.h
expr.o : expr.c $(CONFIG_H) $(CXX_TREE_H) $(RTL_H) $(srcdir)/../flags.h \
$(srcdir)/../expr.h ../insn-codes.h
xref.o : xref.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../input.h
pt.o : pt.c $(CONFIG_H) $(CXX_TREE_H) decl.h $(PARSE_H) lex.h
error.o : error.c $(CONFIG_H) $(CXX_TREE_H)
errfn.o : errfn.c $(CONFIG_H) $(CXX_TREE_H)
sig.o : sig.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h
repo.o : repo.c $(CONFIG_H) $(CXX_TREE_H)
semantics.o: semantics.c $(CONFIG_H) $(CXX_TREE_H) lex.h $(srcdir)/../except.h
$(srcdir)/../expr.h ../insn-codes.h $(srcdir)/../system.h
xref.o : xref.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../input.h \
$(srcdir)/../system.h
pt.o : pt.c $(CONFIG_H) $(CXX_TREE_H) decl.h $(PARSE_H) lex.h \
$(srcdir)/../system.h
error.o : error.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../system.h
errfn.o : errfn.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../system.h
sig.o : sig.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \
$(srcdir)/../system.h
repo.o : repo.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../system.h
semantics.o: semantics.c $(CONFIG_H) $(CXX_TREE_H) lex.h \
$(srcdir)/../except.h $(srcdir)/../system.h
#
# These exist for maintenance purposes.

View File

@ -25,15 +25,11 @@ Boston, MA 02111-1307, USA. */
#include "config.h"
#include "tree.h"
#include <stdio.h>
#include "system.h"
#include "cp-tree.h"
#include "output.h"
#include "flags.h"
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include "obstack.h"
#define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free

View File

@ -24,7 +24,7 @@ Boston, MA 02111-1307, USA. */
#include "config.h"
#include "tree.h"
#include <stdio.h>
#include "system.h"
#include "cp-tree.h"
#include "flags.h"
#include "rtl.h"

View File

@ -26,16 +26,12 @@ Boston, MA 02111-1307, USA. */
but what kind of conversions it does will depend on the language. */
#include "config.h"
#include <stdio.h>
#include "system.h"
#include "tree.h"
#include "flags.h"
#include "cp-tree.h"
#include "convert.h"
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
extern tree static_aggregates;
static tree cp_convert_to_pointer PROTO((tree, tree));

View File

@ -28,6 +28,7 @@ Boston, MA 02111-1307, USA. */
line numbers. For example, the CONST_DECLs for enum values. */
#include "config.h"
#include "system.h"
#include <stdio.h>
#include "tree.h"
#include "rtl.h"
@ -35,21 +36,12 @@ Boston, MA 02111-1307, USA. */
#include "cp-tree.h"
#include "decl.h"
#include "lex.h"
#include <sys/types.h>
#include <signal.h>
#include "obstack.h"
#include "defaults.h"
#include "output.h"
#include "except.h"
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef NEED_DECLARATION_FREE
extern void free PROTO((void *));
#endif
#define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free

View File

@ -28,7 +28,7 @@ Boston, MA 02111-1307, USA. */
line numbers. For example, the CONST_DECLs for enum values. */
#include "config.h"
#include <stdio.h>
#include "system.h"
#include "tree.h"
#include "rtl.h"
#include "flags.h"
@ -40,14 +40,6 @@ Boston, MA 02111-1307, USA. */
#include "expr.h"
#include "defaults.h"
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
static tree get_sentry PROTO((tree));
static void mark_vtable_entries PROTO((tree));
static void import_export_template PROTO((tree));

View File

@ -21,8 +21,7 @@ Boston, MA 02111-1307, USA. */
#include "config.h"
#include "tree.h"
#include <stdio.h>
#include <ctype.h>
#include "system.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

View File

@ -20,15 +20,10 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#include "config.h"
#include <stdio.h>
#include <sys/types.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include "system.h"
#include "tree.h"
#include "cp-tree.h"
#include "obstack.h"
#include <ctype.h>
typedef char* cp_printer ();

View File

@ -23,7 +23,7 @@ Boston, MA 02111-1307, USA. */
#include "config.h"
#include <stdio.h>
#include "system.h"
#include "tree.h"
#include "rtl.h"
#include "cp-tree.h"

View File

@ -21,7 +21,7 @@ Boston, MA 02111-1307, USA. */
#include "config.h"
#include <stdio.h>
#include "system.h"
#include "rtl.h"
#include "tree.h"
#include "flags.h"

View File

@ -19,17 +19,13 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#include "config.h"
#include <stdio.h>
#include "system.h"
#include "tree.h"
#include "rtl.h"
#include "cp-tree.h"
#include "flags.h"
#include "output.h"
#ifdef HAVE_STRING_H
#include <string.h>
#endif
static void add_friend PROTO((tree, tree));
static void add_friends PROTO((tree, tree, tree));

View File

@ -20,19 +20,10 @@ Boston, MA 02111-1307, USA. */
#include "config.h"
#include <sys/types.h>
#include <stdio.h>
#include "system.h"
#include "gansidecl.h"
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
/* This bit is set if we saw a `-xfoo' language specification. */
#define LANGSPEC (1<<1)
/* This bit is set if they did `-lm' or `-lmath'. */

View File

@ -22,7 +22,7 @@ Boston, MA 02111-1307, USA. */
/* High-level class interface. */
#include "config.h"
#include <stdio.h>
#include "system.h"
#include "tree.h"
#include "rtl.h"
#include "cp-tree.h"

View File

@ -29,7 +29,7 @@ Boston, MA 02111-1307, USA. */
lex.c for very minor efficiency gains (primarily in function
inlining). */
#include <stdio.h>
#include "system.h"
extern FILE *finput;

View File

@ -26,9 +26,7 @@ Boston, MA 02111-1307, USA. */
#define YYDEBUG 1
#include "config.h"
#include <sys/types.h>
#include <stdio.h>
#include <errno.h>
#include "system.h"
#include <setjmp.h>
#include "input.h"
#include "tree.h"
@ -59,26 +57,6 @@ Boston, MA 02111-1307, USA. */
extern double atof ();
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#else
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#endif
#ifdef NEED_DECLARATION_INDEX
extern char *index ();
#endif
#ifdef NEED_DECLARATION_RINDEX
extern char *rindex ();
#endif
#ifndef errno
extern int errno; /* needed for VAX. */
#endif
#define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free

File diff suppressed because it is too large Load Diff

View File

@ -32,8 +32,7 @@ Boston, MA 02111-1307, USA. */
#include "config.h"
#include <stdio.h>
#include <errno.h>
#include "system.h"
#include "tree.h"
#include "input.h"

View File

@ -26,7 +26,7 @@ Boston, MA 02111-1307, USA. */
file that contains only the method templates and "just win". */
#include "config.h"
#include <stdio.h>
#include "system.h"
#include "obstack.h"
#include "tree.h"
@ -39,10 +39,6 @@ Boston, MA 02111-1307, USA. */
#include "defaults.h"
#include "except.h"
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
/* The type of functions taking a tree, and some additional data, and
returning an int. */
typedef int (*tree_fn_t) PROTO((tree, void*));

View File

@ -22,7 +22,7 @@ Boston, MA 02111-1307, USA. */
#include "config.h"
#include "tree.h"
#include <stdio.h>
#include "system.h"
#include "cp-tree.h"
void

View File

@ -26,28 +26,15 @@ Boston, MA 02111-1307, USA. */
explicit code. */
#include "config.h"
#include <stdio.h>
#include "system.h"
#include "tree.h"
#include "cp-tree.h"
#include "input.h"
#include "obstack.h"
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#else
extern char * getenv ();
#endif
#ifdef NEED_DECLARATION_RINDEX
extern char *rindex ();
#endif
extern char *getpwd PROTO((void));
static tree repo_get_id PROTO((tree));
static char *save_string PROTO((char *, int));
static char *extract_string PROTO((char **));
static char *get_base_filename PROTO((char *));
static void open_repo_file PROTO((char *));
@ -210,14 +197,6 @@ repo_template_instantiated (t, extern_p)
}
}
static char *
save_string (s, len)
char *s;
int len;
{
return obstack_copy0 (&temporary_obstack, s, len);
}
/* Parse a reasonable subset of shell quoting syntax. */
static char *

View File

@ -21,7 +21,7 @@ Boston, MA 02111-1307, USA. */
#include "config.h"
#include <stdio.h>
#include "system.h"
#include "tree.h"
#include "cp-tree.h"
#include "flags.h"

View File

@ -24,7 +24,7 @@ Boston, MA 02111-1307, USA. */
#include "config.h"
#include "tree.h"
#include <stdio.h>
#include "system.h"
#include "cp-tree.h"
#include "obstack.h"
#include "flags.h"

View File

@ -25,7 +25,7 @@
02111-1307, USA. */
#include "config.h"
#include <stdio.h>
#include "system.h"
#include "tree.h"
#include "cp-tree.h"
#include "except.h"

View File

@ -21,7 +21,7 @@ Boston, MA 02111-1307, USA. */
#include "config.h"
#include <stdio.h>
#include "system.h"
#include "obstack.h"
#include "tree.h"
#include "cp-tree.h"

View File

@ -24,7 +24,7 @@ Boston, MA 02111-1307, USA. */
when compiling parse.c and spew.c. */
#include "config.h"
#include <stdio.h>
#include "system.h"
#include "input.h"
#include "tree.h"
#include "lex.h"

View File

@ -20,7 +20,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#include "config.h"
#include <stdio.h>
#include "system.h"
#include "obstack.h"
#include "tree.h"
#include "cp-tree.h"
@ -32,14 +32,6 @@ Boston, MA 02111-1307, USA. */
#include <varargs.h>
#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef NEED_DECLARATION_FREE
extern void free PROTO((void *));
#endif
extern void compiler_error ();
static tree get_identifier_list PROTO((tree));

View File

@ -30,7 +30,7 @@ Boston, MA 02111-1307, USA. */
like a strange sort of assignment). */
#include "config.h"
#include <stdio.h>
#include "system.h"
#include "tree.h"
#include "rtl.h"
#include "cp-tree.h"
@ -38,10 +38,6 @@ Boston, MA 02111-1307, USA. */
#include "output.h"
#include "expr.h"
#ifdef HAVE_STRING_H
#include <string.h>
#endif
extern void compiler_error ();
static tree convert_for_assignment PROTO((tree, tree, char*, tree,

View File

@ -31,7 +31,7 @@ Boston, MA 02111-1307, USA. */
like a strange sort of assignment). */
#include "config.h"
#include <stdio.h>
#include "system.h"
#include "tree.h"
#include "cp-tree.h"
#include "flags.h"

View File

@ -22,30 +22,12 @@ Boston, MA 02111-1307, USA. */
#include "config.h"
#include "tree.h"
#include <stdio.h>
#include "system.h"
#include "cp-tree.h"
#include "input.h"
#include <ctype.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern char *getpwd PROTO((void));
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifdef NEED_DECLARATION_RINDEX
extern char *rindex ();
#endif
/* The character(s) used to join a directory specification (obtained with
getwd or equivalent) with a non-absolute file name. */