1994-02-23 20:02:37 -05:00
|
|
|
|
# Makefile for GNU C++ compiler.
|
1999-03-14 12:43:56 -05:00
|
|
|
|
# Copyright (C) 1987, 88, 90-5, 1998, 1999 Free Software Foundation, Inc.
|
1994-02-23 20:02:37 -05:00
|
|
|
|
|
|
|
|
|
#This file is part of GNU CC.
|
|
|
|
|
|
|
|
|
|
#GNU CC is free software; you can redistribute it and/or modify
|
|
|
|
|
#it under the terms of the GNU General Public License as published by
|
|
|
|
|
#the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
|
#any later version.
|
|
|
|
|
|
|
|
|
|
#GNU CC is distributed in the hope that it will be useful,
|
|
|
|
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
#GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
#You should have received a copy of the GNU General Public License
|
|
|
|
|
#along with GNU CC; see the file COPYING. If not, write to
|
1995-06-15 17:06:59 -04:00
|
|
|
|
#the Free Software Foundation, 59 Temple Place - Suite 330,
|
|
|
|
|
#Boston, MA 02111-1307, USA.
|
1994-02-23 20:02:37 -05:00
|
|
|
|
|
1994-04-22 04:32:54 -04:00
|
|
|
|
# The makefile built from this file lives in the language subdirectory.
|
1995-06-15 17:06:59 -04:00
|
|
|
|
# Its purpose is to provide support for:
|
1994-04-22 04:32:54 -04:00
|
|
|
|
#
|
|
|
|
|
# 1) recursion where necessary, and only then (building .o's), and
|
|
|
|
|
# 2) building and debugging cc1 from the language subdirectory, and
|
|
|
|
|
# 3) nothing else.
|
|
|
|
|
#
|
|
|
|
|
# The parent makefile handles all other chores, with help from the
|
|
|
|
|
# language makefile fragment, of course.
|
|
|
|
|
#
|
|
|
|
|
# The targets for external use are:
|
|
|
|
|
# all, TAGS, ???mostlyclean, ???clean.
|
1994-02-23 20:02:37 -05:00
|
|
|
|
|
|
|
|
|
# Suppress smart makes who think they know how to automake Yacc files
|
|
|
|
|
.y.c:
|
|
|
|
|
|
1998-08-30 17:17:38 -04:00
|
|
|
|
# It defines the c++ interface name. It should be changed when the
|
|
|
|
|
# c++ interface is changed.
|
|
|
|
|
INTERFACE = 1
|
|
|
|
|
|
1994-02-23 20:02:37 -05:00
|
|
|
|
# Variables that exist for you to override.
|
|
|
|
|
# See below for how to change them for certain systems.
|
|
|
|
|
|
1994-04-28 22:16:48 -04:00
|
|
|
|
ALLOCA =
|
1994-02-23 20:02:37 -05:00
|
|
|
|
|
|
|
|
|
# Various ways of specifying flags for compilations:
|
|
|
|
|
# CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
|
|
|
|
|
# BOOT_CFLAGS is the value of CFLAGS to pass
|
|
|
|
|
# to the stage2 and stage3 compilations
|
|
|
|
|
# XCFLAGS is used for most compilations but not when using the GCC just built.
|
|
|
|
|
XCFLAGS =
|
|
|
|
|
CFLAGS = -g
|
|
|
|
|
BOOT_CFLAGS = -O $(CFLAGS)
|
|
|
|
|
# These exists to be overridden by the x-* and t-* files, respectively.
|
|
|
|
|
X_CFLAGS =
|
|
|
|
|
T_CFLAGS =
|
|
|
|
|
|
|
|
|
|
X_CPPFLAGS =
|
|
|
|
|
T_CPPFLAGS =
|
|
|
|
|
|
1997-09-12 19:25:29 -04:00
|
|
|
|
CC = @CC@
|
1998-08-14 12:43:57 -04:00
|
|
|
|
BISON = `if [ -f ../../bison/bison ] ; then echo ../../bison/bison -L $(srcdir)/../../bison/ ; else echo bison ; fi`
|
1994-12-09 18:19:15 -05:00
|
|
|
|
BISONFLAGS =
|
1998-05-17 20:23:16 -04:00
|
|
|
|
LEX = `if [ -f ../../flex/flex ] ; then echo ../../flex/flex ; else echo flex ; fi`
|
1994-04-22 04:32:54 -04:00
|
|
|
|
LEXFLAGS =
|
1994-02-23 20:02:37 -05:00
|
|
|
|
AR = ar
|
|
|
|
|
AR_FLAGS = rc
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
MAKEINFO = makeinfo
|
|
|
|
|
TEXI2DVI = texi2dvi
|
|
|
|
|
|
|
|
|
|
# Define this as & to perform parallel make on a Sequent.
|
|
|
|
|
# Note that this has some bugs, and it seems currently necessary
|
|
|
|
|
# to compile all the gen* files first by hand to avoid erroneous results.
|
|
|
|
|
P =
|
|
|
|
|
|
1994-04-28 22:16:48 -04:00
|
|
|
|
# This is used in the definition of SUBDIR_USE_ALLOCA.
|
|
|
|
|
# ??? Perhaps it would be better if it just looked for *gcc*.
|
|
|
|
|
OLDCC = cc
|
|
|
|
|
|
1994-02-23 20:02:37 -05:00
|
|
|
|
# This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
|
|
|
|
|
# It omits XCFLAGS, and specifies -B./.
|
|
|
|
|
# It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
|
|
|
|
|
GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS)
|
|
|
|
|
|
|
|
|
|
# Tools to use when building a cross-compiler.
|
|
|
|
|
# These are used because `configure' appends `cross-make'
|
|
|
|
|
# to the makefile when making a cross-compiler.
|
|
|
|
|
|
1998-05-17 21:24:26 -04:00
|
|
|
|
# We don't use cross-make. Instead we use the tools
|
|
|
|
|
# from the build tree, if they are available.
|
|
|
|
|
# program_transform_name and objdir are set by configure.in.
|
|
|
|
|
program_transform_name =
|
|
|
|
|
objdir = .
|
|
|
|
|
|
1997-09-12 19:25:29 -04:00
|
|
|
|
target=@target@
|
|
|
|
|
xmake_file=@dep_host_xmake_file@
|
|
|
|
|
tmake_file=@dep_tmake_file@
|
1994-02-23 20:02:37 -05:00
|
|
|
|
#version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
|
|
|
|
|
#mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
|
|
|
|
|
|
|
|
|
|
# Directory where sources are, from where we are.
|
1997-09-12 19:25:29 -04:00
|
|
|
|
srcdir = @srcdir@
|
|
|
|
|
VPATH = @srcdir@
|
1994-02-23 20:02:37 -05:00
|
|
|
|
|
1994-04-28 22:16:48 -04:00
|
|
|
|
# Additional system libraries to link with.
|
|
|
|
|
CLIB=
|
1999-01-26 20:43:17 -05:00
|
|
|
|
|
|
|
|
|
# Top build directory, relative to here.
|
|
|
|
|
top_builddir = ..
|
|
|
|
|
|
|
|
|
|
# Internationalization library.
|
|
|
|
|
INTLLIBS = @INTLLIBS@
|
1994-04-28 22:16:48 -04:00
|
|
|
|
|
1994-02-23 20:02:37 -05:00
|
|
|
|
# Change this to a null string if obstacks are installed in the
|
|
|
|
|
# system library.
|
|
|
|
|
OBSTACK=obstack.o
|
|
|
|
|
|
|
|
|
|
# Choose the real default target.
|
|
|
|
|
ALL=all
|
|
|
|
|
|
|
|
|
|
# End of variables for you to override.
|
|
|
|
|
|
|
|
|
|
# Definition of `all' is here so that new rules inserted by sed
|
|
|
|
|
# do not specify the default target.
|
|
|
|
|
all: all.indirect
|
|
|
|
|
|
|
|
|
|
# This tells GNU Make version 3 not to put all variables in the environment.
|
|
|
|
|
.NOEXPORT:
|
|
|
|
|
|
|
|
|
|
# sed inserts variable overrides after the following line.
|
|
|
|
|
####target overrides
|
1997-09-12 19:25:29 -04:00
|
|
|
|
@target_overrides@
|
1994-02-23 20:02:37 -05:00
|
|
|
|
####host overrides
|
1997-09-12 19:25:29 -04:00
|
|
|
|
@host_overrides@
|
1994-02-23 20:02:37 -05:00
|
|
|
|
####cross overrides
|
1997-09-12 19:25:29 -04:00
|
|
|
|
@cross_defines@
|
|
|
|
|
@cross_overrides@
|
1994-02-23 20:02:37 -05:00
|
|
|
|
####build overrides
|
1997-09-12 19:25:29 -04:00
|
|
|
|
@build_overrides@
|
1997-06-17 22:25:37 -04:00
|
|
|
|
#
|
1994-02-23 20:02:37 -05:00
|
|
|
|
# Now figure out from those variables how to compile and link.
|
|
|
|
|
|
1998-03-21 18:49:35 -05:00
|
|
|
|
all.indirect: Makefile ../cc1plus$(exeext)
|
1994-02-23 20:02:37 -05:00
|
|
|
|
|
1994-04-01 00:59:59 -05:00
|
|
|
|
# IN_GCC tells obstack.h that we are using gcc's <stddef.h> file.
|
1997-09-12 19:25:29 -04:00
|
|
|
|
INTERNAL_CFLAGS = $(CROSS) -DIN_GCC @extra_c_flags@
|
1994-02-23 20:02:37 -05:00
|
|
|
|
|
|
|
|
|
# This is the variable actually used when we compile.
|
|
|
|
|
ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) $(XCFLAGS)
|
|
|
|
|
|
|
|
|
|
# Likewise.
|
|
|
|
|
ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
|
|
|
|
|
|
1994-04-28 22:16:48 -04:00
|
|
|
|
# Even if ALLOCA is set, don't use it if compiling with GCC.
|
|
|
|
|
|
1994-02-23 20:02:37 -05:00
|
|
|
|
SUBDIR_OBSTACK = `if [ x$(OBSTACK) != x ]; then echo ../$(OBSTACK); else true; fi`
|
1994-04-28 22:16:48 -04:00
|
|
|
|
SUBDIR_USE_ALLOCA = `case "${CC}" in "${OLDCC}") if [ x$(ALLOCA) != x ]; then echo ../$(ALLOCA); else true; fi ;; esac`
|
1994-02-23 20:02:37 -05:00
|
|
|
|
SUBDIR_MALLOC = `if [ x$(MALLOC) != x ]; then echo ../$(MALLOC); else true; fi`
|
|
|
|
|
|
|
|
|
|
# How to link with both our special library facilities
|
|
|
|
|
# and the system's installed libraries.
|
1999-01-26 20:43:17 -05:00
|
|
|
|
LIBS = $(SUBDIR_OBSTACK) $(SUBDIR_USE_ALLOCA) $(SUBDIR_MALLOC) \
|
|
|
|
|
$(INTLLIBS) $(CLIB)
|
1994-02-23 20:02:37 -05:00
|
|
|
|
|
1994-04-28 22:16:48 -04:00
|
|
|
|
# Specify the directories to be searched for header files.
|
|
|
|
|
# Both . and srcdir are used, in that order,
|
|
|
|
|
# so that tm.h and config.h will be found in the compilation
|
|
|
|
|
# subdirectory rather than in the source directory.
|
1998-09-05 19:02:22 -04:00
|
|
|
|
INCLUDES = -I. -I.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../config -I$(srcdir)/../../include
|
1994-04-28 22:16:48 -04:00
|
|
|
|
|
1994-02-23 20:02:37 -05:00
|
|
|
|
# Always use -I$(srcdir)/config when compiling.
|
|
|
|
|
.c.o:
|
|
|
|
|
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
|
|
|
|
|
|
1998-05-04 21:27:06 -04:00
|
|
|
|
# The only suffixes we want for implicit rules are .c and .o.
|
|
|
|
|
.SUFFIXES:
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
1994-02-23 20:02:37 -05:00
|
|
|
|
# This tells GNU make version 3 not to export all the variables
|
|
|
|
|
# defined in this file into the environment.
|
|
|
|
|
.NOEXPORT:
|
1997-06-17 22:25:37 -04:00
|
|
|
|
#
|
1994-02-23 20:02:37 -05:00
|
|
|
|
# Lists of files for various purposes.
|
|
|
|
|
|
|
|
|
|
# Language-specific object files for g++
|
|
|
|
|
|
|
|
|
|
CXX_OBJS = call.o decl.o errfn.o expr.o pt.o sig.o typeck2.o \
|
1996-02-01 14:32:00 -05:00
|
|
|
|
class.o decl2.o error.o lex.o parse.o ptree.o rtti.o spew.o typeck.o cvt.o \
|
1998-05-26 06:47:58 -04:00
|
|
|
|
except.o friend.o init.o method.o search.o semantics.o tree.o xref.o \
|
|
|
|
|
repo.o @extra_cxx_objs@
|
1994-02-23 20:02:37 -05:00
|
|
|
|
|
|
|
|
|
# Language-independent object files.
|
1999-03-23 02:51:12 -05:00
|
|
|
|
OBJS = `cat ../stamp-objlist` ../c-common.o ../c-pragma.o
|
|
|
|
|
OBJDEPS = ../stamp-objlist ../c-common.o ../c-pragma.o
|
1994-02-23 20:02:37 -05:00
|
|
|
|
|
1998-03-21 18:49:35 -05:00
|
|
|
|
compiler: ../cc1plus$(exeext)
|
1998-10-28 17:26:24 -05:00
|
|
|
|
../cc1plus$(exeext): $(P) $(OBJDEPS) $(CXX_OBJS) $(LIBDEPS)
|
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(CXX_OBJS) $(LIBS)
|
1994-02-23 20:02:37 -05:00
|
|
|
|
|
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(srcdir)/../configure
|
|
|
|
|
cd ..; $(SHELL) config.status
|
|
|
|
|
|
1998-03-21 18:49:35 -05:00
|
|
|
|
native: config.status ../cc1plus$(exeext)
|
1997-06-17 22:25:37 -04:00
|
|
|
|
#
|
1994-02-23 20:02:37 -05:00
|
|
|
|
# Compiling object files from source files.
|
|
|
|
|
|
|
|
|
|
# Note that dependencies on obstack.h are not written
|
|
|
|
|
# because that file is not part of GCC.
|
|
|
|
|
|
|
|
|
|
# C++ language specific files.
|
|
|
|
|
|
1994-04-25 14:01:24 -04:00
|
|
|
|
RTL_H = $(srcdir)/../rtl.h $(srcdir)/../rtl.def \
|
|
|
|
|
$(srcdir)/../machmode.h $(srcdir)/../machmode.def
|
|
|
|
|
TREE_H = $(srcdir)/../tree.h $(srcdir)/../real.h $(srcdir)/../tree.def \
|
|
|
|
|
$(srcdir)/../machmode.h $(srcdir)/../machmode.def
|
1998-09-07 10:25:35 -04:00
|
|
|
|
CXX_TREE_H = $(TREE_H) cp-tree.h cp-tree.def
|
1994-11-28 19:59:16 -05:00
|
|
|
|
PARSE_H = $(srcdir)/parse.h
|
|
|
|
|
PARSE_C = $(srcdir)/parse.c
|
1998-06-27 00:44:42 -04:00
|
|
|
|
EXPR_H = $(srcdir)/../expr.h ../insn-codes.h
|
1994-02-23 20:02:37 -05:00
|
|
|
|
|
1997-09-29 23:36:39 -04:00
|
|
|
|
parse.o : $(PARSE_C) $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h lex.h \
|
1998-05-19 03:19:17 -04:00
|
|
|
|
$(srcdir)/../except.h $(srcdir)/../output.h $(srcdir)/../system.h \
|
|
|
|
|
$(srcdir)/../toplev.h
|
1994-02-23 20:02:37 -05:00
|
|
|
|
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(BIG_SWITCHFLAG) \
|
1994-11-28 19:59:16 -05:00
|
|
|
|
`echo $(PARSE_C) | sed 's,^\./,,'`
|
|
|
|
|
|
1998-11-01 15:12:31 -05:00
|
|
|
|
CONFLICTS = expect 36 shift/reduce conflicts and 42 reduce/reduce conflicts.
|
1994-12-09 18:19:15 -05:00
|
|
|
|
$(PARSE_H) : $(PARSE_C)
|
|
|
|
|
$(PARSE_C) : $(srcdir)/parse.y
|
1995-03-15 18:03:59 -05:00
|
|
|
|
@echo $(CONFLICTS)
|
1994-12-09 18:19:15 -05:00
|
|
|
|
cd $(srcdir); $(BISON) $(BISONFLAGS) -d -o parse.c parse.y
|
|
|
|
|
cd $(srcdir); grep '^#define[ ]*YYEMPTY' parse.c >>parse.h
|
|
|
|
|
#$(PARSE_C) $(PARSE_H) : stamp-parse ; @true
|
|
|
|
|
#stamp-parse: $(srcdir)/parse.y
|
1995-03-15 18:03:59 -05:00
|
|
|
|
# @echo $(CONFLICTS)
|
1994-12-09 18:19:15 -05:00
|
|
|
|
# $(BISON) $(BISONFLAGS) -d $(srcdir)/parse.y
|
|
|
|
|
# grep '^#define[ ]*YYEMPTY' y.tab.c >>y.tab.h
|
|
|
|
|
# $(srcdir)/../move-if-change y.tab.c $(PARSE_C)
|
|
|
|
|
# $(srcdir)/../move-if-change y.tab.h $(PARSE_H)
|
|
|
|
|
# cp $(PARSE_C) y.tab.c
|
|
|
|
|
# touch stamp-parse
|
1994-02-23 20:02:37 -05:00
|
|
|
|
|
cplus-dem.c (work_stuff): Replace const_type and volatile_type with type_quals.
* cplus-dem.c (work_stuff): Replace const_type and volatile_type
with type_quals.
(TYPE_UNQUALIFIED): New macro.
(TYPE_QUAL_CONST): Likewise.
(TYPE_QUAL_VOLATILE): Likewise.
(TYPE_QUAL_RESTRICT): Likewise.
(code_for_qualifier): New function.
(qualifier_string): Likewise.
(demangle_qualifier): Likewise.
(internal_cplus_demangle): Use them.
(demangle_signature): Likewise.
(demangle_template_value_parm): Likewise.
(do_type): Likewise.
(demangle_fund_type)): Likewise.
* Makefile.in (hash.h): Run gperf when necessary.
* cp-tree.h (CP_TYPE_READONLY): Remove.
(CP_TYPE_VOLATILE): Likewise.
(CP_TYPE_QUALS): New macro.
(CP_TYPE_CONST_P): Likewise.
(CP_TYPE_VOLATILE_P): Likewise.
(CP_TYPE_RESTRICT_P): Likewise.
(CP_TYPE_CONST_NON_VOLATILE_P): Likewise.
(cp_build_type_variant): Rename to ...
(cp_build_qualified_type): New function.
(c_apply_type_quals_to_decl): Declare.
(SIGNATURE_POINTER_NAME_FORMAT): Modify to allow `restrict'.
(SIGNATURE_REFERENCE_NAME_FORMAT): Likewise.
(cp_type_qual_from_rid): New function.
(compparms): Remove unused parameter. All callers changed.
(cp_type_quals): New function.
(at_least_as_qualified_p): Likewise.
(more_qualified_p): Likewise.
* call.c (standard_conversion): Replace calls to
cp_build_type_variant with cp_build_qualified_type. Use
CP_TYPE_QUALS to get qualifiers and at_least_as_qualified_p to
compare them. Use CP_TYPE_* macros to check qualifiers.
(reference_binding): Likewise.
(implicit_conversion): Likewise.
(add_builtin_candidates): Likewise.
(build_over_call): Likewise.
* class.c (overrides): Compare all qualifiers, not just `const',
on method declarations.
* cvt.c (convert_to_reference): More CP_TYPE_QUALS conversion, etc.
(convert_pointer_to_real): Likewise.
(type_promotes_to): Likewise.
* decl.c (check_for_uninitialized_const_var): New function.
(init_decl_processing): More CP_TYPE_QUALS conversion, etc.
(cp_finish_decl): Use check_for_uninitialized_const_var.
(grokdeclarator): More CP_TYPE_QUALS conversion, etc. Update to
handle `restrict'.
(grok_ctor_properties): Likewise.
(grok_op_properties): Likewise.
(start_function): Likewise.
(rever_static_member_fn): Likewise.
* decl2.c (grok_method_quals): Likewise.
(grokfield): Likewise.
* error.c (dump_readonly_or_volatile): Rename to ...
(dump_qualifiers): New function. Handle `restrict'.
(dump_type_real): Use it.
(dump_aggr_type): Likewise.
(dump_type_prefix): Likewise.
(dump_type_suffix): Likewise.
(dump_function_decl): Likewise.
(cv_as_string): Likewise.
* gxx.gperf: Add __restrict and __restrict__.
* gxxint.texi: Document `u' as used for `__restrict', and a few
other previously undocumented codes.
* hash.h: Regenerated.
* init.c (expand_aggr_init): More CP_TYPE_QUALS conversion, etc.
(build_member_call): Likewise.
(build_new_1): Likewise.
* lex.c (init_parse): Add entry for RID_RESTRICT.
(cons_up_default_function): More CP_TYPE_QUALS conversion, etc.
(cp_type_qual_from_rid): Define.
* lex.h (enum rid): Add RID_RESTRICT.
* method.c (process_modifiers): Deal with `restrict'.
* parse.y (primary): More CP_TYPE_QUALS conversion, etc.
* parse.c: Regenerated.
* pt.c (convert_nontype_argument): More CP_TYPE_QUALS conversion, etc.
(tsubst_aggr_type): Likewise.
(tsubst): Likewise.
(check_cv_quals_for_unify): Likewise.
(unify): Likewise.
* rtti.c (init_rtti_processing): Likewise.
(build_headof): Likewise.
(get_tinfo_var): Likewise.
(buidl_dynamic_cast_1): Likewise. Fix `volatile' handling.
(expand_class_desc): Likewise.
(expand_attr_desc): Likewise.
(synthesize_tinfo_fn): Likewise.
* search.c (covariant_return_p): Likewise. Fix `volatile' handling.
(get_matching_virtual): Likewise.
(expand_upcast_fixups): Likewise.
* sig.c (build_signature_pointer_or_reference_name): Take
type_quals, not constp and volatilep.
(build_signature_pointer_or_reference_type): Likewise.
(match_method_types): More CP_TYPE_QUALS conversion, etc.
(build_signature_pointer_constructor): Likewise.
(build_signature_method_call): Likewise.
* tree.c (build_cplus_array_type): Likewise.
(cp_build_type_variant): Rename to ...
(cp_build_qualified_type): New function. Deal with `__restrict'.
(canonical_type_variant): More CP_TYPE_QUALS conversion, etc.
(build_exception_variant): Likewise.
(mapcar): Likewise.
* typeck.c (qualif_type): Likewise.
(common_type): Likewise.
(comptypes): Likewise.
(comp_cv_target_types): Likewise.
(at_least_as_qualified_p): Define.
(more_qualified_p): Likewise.
(comp_cv_qualification): More CP_TYPE_QUALS conversion, etc.
(compparms): Likewise.
(inline_conversion): Likewise.
(string_conv_p): Likewise.
(build_component_ref): Likewise.
(build_indirect_ref): Likewise.
(build_array_ref): Likewise.
(build_unary_op): Likewise.
(build_conditional_expr): Likewise.
(build_static_cast): Likewise.
(build_c_cast): Likewise.
(build_modify_expr): Likewise.
(convert_For_assignment): Likewise.
(comp_ptr_ttypes_real): Likewise.
(cp_type_quals): New function.
From-SVN: r23258
1998-10-23 10:53:28 -04:00
|
|
|
|
# We used to try to protect people from having to rerun gperf. But,
|
|
|
|
|
# the C front-end already requires this if c-parse.gperf is changed,
|
|
|
|
|
# so we should be consistent.
|
|
|
|
|
$(srcdir)/hash.h: $(srcdir)/gxx.gperf
|
1999-03-31 02:51:10 -05:00
|
|
|
|
gperf -L C -F ', 0, 0' -p -j1 -g -o -t -N is_reserved_word \
|
1998-10-07 05:50:45 -04:00
|
|
|
|
'-k1,4,7,$$' $(srcdir)/gxx.gperf >$(srcdir)/hash.h
|
1994-02-23 20:02:37 -05:00
|
|
|
|
|
1998-10-06 01:04:32 -04:00
|
|
|
|
spew.o : spew.c $(CONFIG_H) $(CXX_TREE_H) $(PARSE_H) $(srcdir)/../flags.h \
|
|
|
|
|
lex.h $(srcdir)/../system.h $(srcdir)/../toplev.h
|
1994-02-23 20:02:37 -05:00
|
|
|
|
lex.o : lex.c $(CONFIG_H) $(CXX_TREE_H) \
|
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
1998-03-31 08:25:46 -05:00
|
|
|
|
$(PARSE_H) input.c $(srcdir)/../flags.h hash.h lex.h \
|
1998-05-13 06:00:46 -04:00
|
|
|
|
$(srcdir)/../c-pragma.h $(srcdir)/../system.h $(srcdir)/../toplev.h \
|
1998-07-20 09:36:43 -04:00
|
|
|
|
$(srcdir)/../output.h $(srcdir)/../mbchar.h
|
1994-04-25 14:01:24 -04:00
|
|
|
|
decl.o : decl.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \
|
1997-09-29 23:36:39 -04:00
|
|
|
|
lex.h decl.h $(srcdir)/../stack.h $(srcdir)/../output.h \
|
1998-11-17 07:51:20 -05:00
|
|
|
|
$(srcdir)/../except.h $(srcdir)/../system.h $(srcdir)/../toplev.h \
|
|
|
|
|
$(srcdir)/../hash.h
|
1994-04-25 14:01:24 -04:00
|
|
|
|
decl2.o : decl2.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \
|
1998-06-27 00:44:42 -04:00
|
|
|
|
lex.h decl.h $(EXPR_H) $(srcdir)/../except.h \
|
toplev.h cleanup...
* Makefile.in (call.o, class.o, decl.o, decl2.o, errfn.o, error.o,
except.o, expr.o, friend.o, init.o, lex.o, method.o, pt.o, repo.o,
rtti.o, search.o, semantics.o, sig.o, tree.o, typeck.o, typeck2.o,
xref.o): Add toplev.h dependencies.
From-SVN: r19590
1998-05-06 12:52:21 -04:00
|
|
|
|
$(srcdir)/../output.h $(srcdir)/../except.h $(srcdir)/../system.h \
|
1998-06-08 13:52:39 -04:00
|
|
|
|
$(srcdir)/../toplev.h $(srcdir)/../dwarf2out.h $(srcdir)/../dwarfout.h
|
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
1998-03-31 08:25:46 -05:00
|
|
|
|
typeck2.o : typeck2.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \
|
toplev.h cleanup...
* Makefile.in (call.o, class.o, decl.o, decl2.o, errfn.o, error.o,
except.o, expr.o, friend.o, init.o, lex.o, method.o, pt.o, repo.o,
rtti.o, search.o, semantics.o, sig.o, tree.o, typeck.o, typeck2.o,
xref.o): Add toplev.h dependencies.
From-SVN: r19590
1998-05-06 12:52:21 -04:00
|
|
|
|
$(srcdir)/../system.h $(srcdir)/../toplev.h
|
1997-09-29 23:36:39 -04:00
|
|
|
|
typeck.o : typeck.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h $(RTL_H) \
|
1998-06-27 00:44:42 -04:00
|
|
|
|
$(EXPR_H) $(srcdir)/../system.h $(srcdir)/../toplev.h
|
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
1998-03-31 08:25:46 -05:00
|
|
|
|
class.o : class.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \
|
tinfo.h (__class_type_info): Fix illegal declaration.
1999-04-02 Mark Mitchell <mark@codesourcery.com>
* tinfo.h (__class_type_info): Fix illegal declaration.
* cp-tree.def (TEMPLATE_ID_EXPR): Update comment.
* cp-tree.h (INHERITED_VALUE_BINDING_P): New macro.
(IDENTIFIER_CLASS_VALUE): Improve documentation.
(is_properly_derived_from): Declare.
(invalidate_class_lookup_cache): Likewise.
(maybe_maybe_note_name_used_in_class): Likewise.
(note_name_declared_in_class): Likewise.
(push_using_decl): Remove duplicate declaration.
(id_in_current_class): Remove declaration.
(push_class_binding): Change prototype.
(clear_identitifer_class_values): Declare.
* call.c (is_properly_derived_from): Make it global.
(build_new_function_call): Be careful about updating candidates.
(build_new_method_call): Handle COMPONENT_REFs. Don't crash when
asked to make illegal calls.
* class.c: Include splay-tree.h.
(class_stack_node): Add names_used slot.
(check_member_decl_is_same_in_complete_scope): Remove.
(add_method): Fix comment. Push the declaration into class
scope.
(finish_struct_1): When popping the class, pop the bindings too.
Remove check for data member/function member conflict.
(finish_struct): Remove calls to
check_member_decl_is_same_in_complete_scope. Change calls to
popclass.
(pushclass): Clear names_used in the class stack entry.
Use invalidate_class_lookup_cache to remove cached entries, rather
than magic values with popclass. Clear IDENTIFIER_CLASS_VALUE
before entering a new class. Remove dead code. Don't mess with
current_function_decl when pushing declarations.
(invalidate_class_lookup_cache): New function, split out from ...
(popclass): Here. Clean up names_used on our way out.
(instantiate_type): Adjust.
(build_self_reference): Don't push the declaration here.
(maybe_note_name_used_in_class): New function.
(note_name_declared_in_class): Likewise.
* decl.c (add_binding): Change prototype.
(find_class_binding_level): New function.
(innermost_nonclass_level): Likewise.
(current_binding_level): Update documentation.
(inner_binding_level): Remove. Replace with current_binding_level
throughout.
(push_binding_level): Remove special handling of
class_binding_level.
(pop_binding_level): Likewise. Use find_class_binding_level.
(suspend_binding_level): Likewise.
(global_bindings_p): Use innermost_nonclass_level.
(toplevel_bindings_p): Likewise.
(namespace_bindings_p): Likewise.
(pseudo_global_level_p): Likewise.
(push_binding): Clear INHERITED_VALUE_BINDING_P.
(add_binding): Check for illegal multiple declarations. Return a
value indicating whether or not the new binding was legal.
(push_local_binding): Skip over class binding levels. Check
return value from add_binding.
(push_class_binding): Set INHERITED_VALUE_BINDING_P. Call
note_name_declared_in_class.
(pushlevel_class): Remove "fake out the rest of the compiler"
code.
(poplevel_class): Reset IDENTIFIER_CLASS_VALUEs.
(clear_identifier_class_values): New function.
(pop_from_top_level): Use it.
(pop_everything): Tweak.
(maybe_process_template_type_declaration): Don't push the
declaration for the template here.
(pushtag): Don't push tag declarations into class scope here.
(pushdecl): Apply DeMorgan's law for readability.
(pushdecl_class_level): Remove special-case code for
TYPE_BEING_DEFINED. Handle OVERLOADs and anonymous unions.
(push_class_level_bindng): Deal with inherited bindings.
(lookup_name_real): Remove special-case code for
TYPE_BEING_DEFINED, and some implicit typename magic.
(grokdeclarator): Handle COMPONENT_REF for a template function.
(build_enumerator): Don't call pushdecl_class_level here.
(id_in_current_class): Remove.
* decl2.c (grokfield): Don't call pushdecl_class_level or
check_template_shadow.
* errfn.c (cp_file_of): Don't declare.
(cp_line_of): Likewise.
* error.c (dump_decl): Handle an OVERLOAD.
(cp_file_of): Likewise.
(cp_line_of): Likewise.
* init.c (build_member_call): Handle a COMPONENT_REF.
* lex.c (do_identifier): Call maybe_note_name_used_in_class, not
pushdecl_class_level.
* method.c (hack_identifier): Build COMPONENT_REFs for references
to member templates as well as member functions. Remove dead
code.
* parse.y (left_curly): Remove.
(nonnested_type): Call maybe_note_name_used_in_class, not
pushdecl_class_level.
* parse.c: Regenerated.
(nested_name_specifier_1): Likewise.
* pt.c (check_explicit_specialization): Adjust, for robustness.
(check_template_shadow): Handle OVERLOADs.
(build_template_decl): Set DECL_CONSTRUCTOR_P on the
TEMPLATE_DECL, if appropriate.
* search.c (envelope_add_decl): Remove.
(dfs_pushdecls): Likewise.
(dfs_compress_decls): Likewise.
(dfs_push_decls): New function.
(dfs_push_type_decls): Likewise.
(setup_class_bindings): Likewise.
(template_self_reference_p): Likewise.
(lookup_field_r): Use it.
(looup_member): Remove old comment. Deal with ambiguity.
(push_class_decls): Use dfs_push_decls and dfs_push_type_decls,
and remove envelope processing.
* semantics.c (begin_class_definition): Let pushclass push
declarations for base classes.
(finish_member_declaration): Push declarations into class scope.
* typeck.c (build_component_ref): Just put an OVERLOAD into the
COMPONENT_REF, not a TREE_LIST of an OVERLOAD.
(build_x_function_call): Deal with OVERLOAD. Handle template-ids.
* Makefile.in (class.o): Depend on splay-tree.h.
From-SVN: r26133
1999-04-02 10:36:57 -05:00
|
|
|
|
$(srcdir)/../system.h $(srcdir)/../toplev.h \
|
|
|
|
|
$(srcdir)/../../include/splay-tree.h
|
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
1998-03-31 08:25:46 -05:00
|
|
|
|
call.o : call.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \
|
toplev.h cleanup...
* Makefile.in (call.o, class.o, decl.o, decl2.o, errfn.o, error.o,
except.o, expr.o, friend.o, init.o, lex.o, method.o, pt.o, repo.o,
rtti.o, search.o, semantics.o, sig.o, tree.o, typeck.o, typeck2.o,
xref.o): Add toplev.h dependencies.
From-SVN: r19590
1998-05-06 12:52:21 -04:00
|
|
|
|
$(srcdir)/../system.h $(srcdir)/../toplev.h
|
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
1998-03-31 08:25:46 -05:00
|
|
|
|
friend.o : friend.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h $(RTL_H) \
|
toplev.h cleanup...
* Makefile.in (call.o, class.o, decl.o, decl2.o, errfn.o, error.o,
except.o, expr.o, friend.o, init.o, lex.o, method.o, pt.o, repo.o,
rtti.o, search.o, semantics.o, sig.o, tree.o, typeck.o, typeck2.o,
xref.o): Add toplev.h dependencies.
From-SVN: r19590
1998-05-06 12:52:21 -04:00
|
|
|
|
$(srcdir)/../system.h $(srcdir)/../toplev.h
|
1997-09-29 23:36:39 -04:00
|
|
|
|
init.o : init.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h $(RTL_H) \
|
1998-06-27 00:44:42 -04:00
|
|
|
|
$(EXPR_H) $(srcdir)/../system.h $(srcdir)/../toplev.h
|
toplev.h cleanup...
* Makefile.in (call.o, class.o, decl.o, decl2.o, errfn.o, error.o,
except.o, expr.o, friend.o, init.o, lex.o, method.o, pt.o, repo.o,
rtti.o, search.o, semantics.o, sig.o, tree.o, typeck.o, typeck2.o,
xref.o): Add toplev.h dependencies.
From-SVN: r19590
1998-05-06 12:52:21 -04:00
|
|
|
|
method.o : method.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../system.h \
|
|
|
|
|
$(srcdir)/../toplev.h
|
1999-01-18 07:49:20 -05:00
|
|
|
|
cvt.o : cvt.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../system.h decl.h \
|
|
|
|
|
$(srcdir)/../flags.h $(srcdir)/../toplev.h $(srcdir)/../convert.h
|
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
1998-03-31 08:25:46 -05:00
|
|
|
|
search.o : search.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../stack.h \
|
1999-03-14 12:43:56 -05:00
|
|
|
|
$(srcdir)/../flags.h $(srcdir)/../system.h $(srcdir)/../toplev.h \
|
|
|
|
|
$(srcdir)/../varray.h
|
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
1998-03-31 08:25:46 -05:00
|
|
|
|
tree.o : tree.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \
|
toplev.h cleanup...
* Makefile.in (call.o, class.o, decl.o, decl2.o, errfn.o, error.o,
except.o, expr.o, friend.o, init.o, lex.o, method.o, pt.o, repo.o,
rtti.o, search.o, semantics.o, sig.o, tree.o, typeck.o, typeck2.o,
xref.o): Add toplev.h dependencies.
From-SVN: r19590
1998-05-06 12:52:21 -04:00
|
|
|
|
$(srcdir)/../system.h $(srcdir)/../toplev.h
|
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
1998-03-31 08:25:46 -05:00
|
|
|
|
ptree.o : ptree.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../system.h
|
|
|
|
|
rtti.o : rtti.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \
|
toplev.h cleanup...
* Makefile.in (call.o, class.o, decl.o, decl2.o, errfn.o, error.o,
except.o, expr.o, friend.o, init.o, lex.o, method.o, pt.o, repo.o,
rtti.o, search.o, semantics.o, sig.o, tree.o, typeck.o, typeck2.o,
xref.o): Add toplev.h dependencies.
From-SVN: r19590
1998-05-06 12:52:21 -04:00
|
|
|
|
$(srcdir)/../system.h $(srcdir)/../toplev.h
|
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
1998-03-31 08:25:46 -05:00
|
|
|
|
except.o : except.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h $(RTL_H) \
|
toplev.h cleanup...
* Makefile.in (call.o, class.o, decl.o, decl2.o, errfn.o, error.o,
except.o, expr.o, friend.o, init.o, lex.o, method.o, pt.o, repo.o,
rtti.o, search.o, semantics.o, sig.o, tree.o, typeck.o, typeck2.o,
xref.o): Add toplev.h dependencies.
From-SVN: r19590
1998-05-06 12:52:21 -04:00
|
|
|
|
$(srcdir)/../except.h $(srcdir)/../system.h $(srcdir)/../toplev.h
|
1994-04-25 14:01:24 -04:00
|
|
|
|
expr.o : expr.c $(CONFIG_H) $(CXX_TREE_H) $(RTL_H) $(srcdir)/../flags.h \
|
1998-06-27 00:44:42 -04:00
|
|
|
|
$(EXPR_H) $(srcdir)/../system.h $(srcdir)/../toplev.h
|
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
1998-03-31 08:25:46 -05:00
|
|
|
|
xref.o : xref.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../input.h \
|
toplev.h cleanup...
* Makefile.in (call.o, class.o, decl.o, decl2.o, errfn.o, error.o,
except.o, expr.o, friend.o, init.o, lex.o, method.o, pt.o, repo.o,
rtti.o, search.o, semantics.o, sig.o, tree.o, typeck.o, typeck2.o,
xref.o): Add toplev.h dependencies.
From-SVN: r19590
1998-05-06 12:52:21 -04:00
|
|
|
|
$(srcdir)/../system.h $(srcdir)/../toplev.h
|
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
1998-03-31 08:25:46 -05:00
|
|
|
|
pt.o : pt.c $(CONFIG_H) $(CXX_TREE_H) decl.h $(PARSE_H) lex.h \
|
toplev.h cleanup...
* Makefile.in (call.o, class.o, decl.o, decl2.o, errfn.o, error.o,
except.o, expr.o, friend.o, init.o, lex.o, method.o, pt.o, repo.o,
rtti.o, search.o, semantics.o, sig.o, tree.o, typeck.o, typeck2.o,
xref.o): Add toplev.h dependencies.
From-SVN: r19590
1998-05-06 12:52:21 -04:00
|
|
|
|
$(srcdir)/../system.h $(srcdir)/../toplev.h
|
|
|
|
|
error.o : error.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../system.h \
|
|
|
|
|
$(srcdir)/../toplev.h
|
|
|
|
|
errfn.o : errfn.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../system.h \
|
|
|
|
|
$(srcdir)/../toplev.h
|
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
1998-03-31 08:25:46 -05:00
|
|
|
|
sig.o : sig.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h \
|
toplev.h cleanup...
* Makefile.in (call.o, class.o, decl.o, decl2.o, errfn.o, error.o,
except.o, expr.o, friend.o, init.o, lex.o, method.o, pt.o, repo.o,
rtti.o, search.o, semantics.o, sig.o, tree.o, typeck.o, typeck2.o,
xref.o): Add toplev.h dependencies.
From-SVN: r19590
1998-05-06 12:52:21 -04:00
|
|
|
|
$(srcdir)/../system.h $(srcdir)/../toplev.h
|
|
|
|
|
repo.o : repo.c $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../system.h \
|
|
|
|
|
$(srcdir)/../toplev.h
|
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
1998-03-31 08:25:46 -05:00
|
|
|
|
semantics.o: semantics.c $(CONFIG_H) $(CXX_TREE_H) lex.h \
|
toplev.h cleanup...
* Makefile.in (call.o, class.o, decl.o, decl2.o, errfn.o, error.o,
except.o, expr.o, friend.o, init.o, lex.o, method.o, pt.o, repo.o,
rtti.o, search.o, semantics.o, sig.o, tree.o, typeck.o, typeck2.o,
xref.o): Add toplev.h dependencies.
From-SVN: r19590
1998-05-06 12:52:21 -04:00
|
|
|
|
$(srcdir)/../except.h $(srcdir)/../system.h $(srcdir)/../toplev.h
|
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
1998-03-31 08:25:46 -05:00
|
|
|
|
|
1998-03-18 05:52:04 -05:00
|
|
|
|
|
1997-06-17 22:25:37 -04:00
|
|
|
|
#
|
1994-02-23 20:02:37 -05:00
|
|
|
|
# These exist for maintenance purposes.
|
|
|
|
|
|
|
|
|
|
# Update the tags table.
|
|
|
|
|
TAGS: force
|
1994-04-22 04:32:54 -04:00
|
|
|
|
cd $(srcdir) ; \
|
|
|
|
|
etags *.c *.h ; \
|
|
|
|
|
echo 'l' | tr 'l' '\f' >> TAGS ; \
|
|
|
|
|
echo 'parse.y,0' >> TAGS ; \
|
1994-02-23 20:02:37 -05:00
|
|
|
|
etags -a ../*.h ../*.c;
|
|
|
|
|
|
1994-04-22 04:32:54 -04:00
|
|
|
|
.PHONY: TAGS
|
1994-02-23 20:02:37 -05:00
|
|
|
|
|
|
|
|
|
force:
|
1997-10-01 13:50:03 -04:00
|
|
|
|
|
|
|
|
|
g++FAQ.info: $(srcdir)/g++FAQ.texi
|
1998-04-30 15:01:09 -04:00
|
|
|
|
$(MAKEINFO) --no-split -o ./g++FAQ.info $(srcdir)/g++FAQ.texi
|
1997-10-01 13:50:03 -04:00
|
|
|
|
|
|
|
|
|
# Preprocess the texi file so that the final document will have
|
|
|
|
|
# hyperlinks.
|
|
|
|
|
# It would be nice if texi2html could do something like this itself.
|
|
|
|
|
|
|
|
|
|
# Assumption 1: the FAQ puts all http: and ftp: links in a @file{...}.
|
|
|
|
|
# Assumption 2: newsgroups are like @file{comp.foo}
|
|
|
|
|
# Assumption 3: email addresses match the regexp shown.
|
|
|
|
|
|
|
|
|
|
g++FAQ.html: $(srcdir)/g++FAQ.texi
|
|
|
|
|
mkdir work
|
|
|
|
|
sed -e 's?@file{\([fth]*p://[^}]*\)}?@strong{<A HREF="\1">\1</A>}?' \
|
|
|
|
|
-e 's?@file{\(comp\.[-a-z+.]*\)}?<A HREF="news:\1">\1</A>?' \
|
|
|
|
|
-e 's?@file{\(gnu\.[-a-z+.]*\)}?<A HREF="news:\1">\1</A>?' \
|
|
|
|
|
-e 's?\([.+a-zA-Z0-9-]*@@[.a-zA-Z0-9-]*[a-zA-Z0-9]\)?<A HREF="mailto:\1">\1</A>?' \
|
|
|
|
|
$(srcdir)/g++FAQ.texi > work/g++FAQ.texi
|
1997-10-01 13:56:23 -04:00
|
|
|
|
cd work; texi2html g++FAQ.texi
|
1997-10-01 13:50:03 -04:00
|
|
|
|
mv work/*.html .
|
|
|
|
|
rm -r work
|
|
|
|
|
|
|
|
|
|
# Make plain-text form.
|
|
|
|
|
|
|
|
|
|
g++FAQ.txt: $(srcdir)/g++FAQ.texi
|
|
|
|
|
$(MAKEINFO) --no-split --no-headers -o - $(srcdir)/g++FAQ.texi |\
|
|
|
|
|
sed '/^Concept Index/,$$d' > g++FAQ.txt
|
|
|
|
|
|