1992-02-03 17:08:59 -05:00
|
|
|
|
# Makefile for GNU C compiler.
|
1999-01-06 14:54:35 -05:00
|
|
|
|
# Copyright (C) 1987, 88, 90-98, 1999 Free Software Foundation, Inc.
|
1992-02-03 17:08:59 -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 07:33:25 -04:00
|
|
|
|
#the Free Software Foundation, 59 Temple Place - Suite 330,
|
|
|
|
|
#Boston MA 02111-1307, USA.
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# The targets for external use include:
|
|
|
|
|
# all, doc, proto, install, install-cross, install-cross-rest,
|
1995-04-25 18:07:11 -04:00
|
|
|
|
# uninstall, TAGS, mostlyclean, clean, distclean, maintainer-clean,
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# stage1, stage2, stage3, stage4.
|
|
|
|
|
|
1992-03-20 17:22:14 -05:00
|
|
|
|
# Suppress smart makes who think they know how to automake Yacc files
|
|
|
|
|
.y.c:
|
|
|
|
|
|
1997-05-18 08:31:46 -04:00
|
|
|
|
# Directory where sources are, from where we are.
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Variables that exist for you to override.
|
|
|
|
|
# See below for how to change them for certain systems.
|
|
|
|
|
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
# List of language subdirectories.
|
|
|
|
|
# This is overridden by configure.
|
1997-05-18 08:31:46 -04:00
|
|
|
|
SUBDIRS =@subdirs@
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Selection of languages to be made.
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
# This is overridden by configure.
|
1998-11-25 20:48:34 -05:00
|
|
|
|
CONFIG_LANGUAGES = @all_languages@
|
|
|
|
|
LANGUAGES = c proto gcov$(exeext) $(CONFIG_LANGUAGES)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1999-03-18 16:59:35 -05:00
|
|
|
|
# Languages should create dependencies of $(INTL_TARGETS) on generated
|
|
|
|
|
# sources in Make-lang.in. Example:
|
|
|
|
|
# $(INTL_TARGETS): $(srcdir)/cp/parse.c
|
|
|
|
|
INTL_TARGETS = intl.all intl.install intl.distdir
|
|
|
|
|
|
1996-06-18 06:23:45 -04:00
|
|
|
|
# Selection of languages to be made during stage1 build.
|
|
|
|
|
# This is overridden by configure.
|
1997-05-18 08:31:46 -04:00
|
|
|
|
BOOT_LANGUAGES = c @all_boot_languages@
|
1996-06-18 06:23:45 -04:00
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
ALLOCA =
|
1992-06-28 11:31:14 -04:00
|
|
|
|
ALLOCA_FLAGS =
|
1992-07-07 14:27:34 -04:00
|
|
|
|
ALLOCA_FINISH = true
|
1992-02-03 17:08:59 -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
|
1998-08-30 18:20:57 -04:00
|
|
|
|
# WARN_CFLAGS are the warning flags to pass to stage2 and stage3.
|
|
|
|
|
# (And for stage 1 if the native compiler is GCC.) It is
|
1998-02-11 17:26:23 -05:00
|
|
|
|
# separate from BOOT_CFLAGS because people tend to override optimization
|
|
|
|
|
# flags and we'd like them to still have warnings turned on. They are free
|
|
|
|
|
# to explicitly turn warnings off if they wish.
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# XCFLAGS is used for most compilations but not when using the GCC just built.
|
1996-02-12 20:41:12 -05:00
|
|
|
|
# TCFLAGS is used for compilations with the GCC just built.
|
1992-02-03 17:08:59 -05:00
|
|
|
|
XCFLAGS =
|
1996-02-12 20:41:12 -05:00
|
|
|
|
TCFLAGS =
|
1998-08-30 18:20:57 -04:00
|
|
|
|
CFLAGS = -g @stage1_warn_cflags@
|
1997-09-19 01:21:34 -04:00
|
|
|
|
BOOT_CFLAGS = -O2 $(CFLAGS)
|
1998-02-11 17:26:23 -05:00
|
|
|
|
WARN_CFLAGS = -W -Wall
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# These exists to be overridden by the x-* and t-* files, respectively.
|
|
|
|
|
X_CFLAGS =
|
|
|
|
|
T_CFLAGS =
|
|
|
|
|
|
|
|
|
|
X_CPPFLAGS =
|
|
|
|
|
T_CPPFLAGS =
|
|
|
|
|
|
1999-01-26 20:43:17 -05:00
|
|
|
|
AWK = @AWK@
|
1997-07-10 13:07:44 -04:00
|
|
|
|
CC = @CC@
|
1998-05-17 20:23:16 -04:00
|
|
|
|
# srcdir might be a relative pathname which won't be valid in a subdirectory,
|
|
|
|
|
# so we must use objdir/srcdir instead to make it safe. objdir is always
|
|
|
|
|
# a full pathname.
|
|
|
|
|
BISON = `if [ -f $(objdir)/../bison/bison ] ; then case $(srcdir) in \
|
|
|
|
|
/*) echo $(objdir)/../bison/bison -L $(srcdir)/../bison/ ;; \
|
|
|
|
|
*) echo $(objdir)/../bison/bison -L $(objdir)/$(srcdir)/../bison/ ;; \
|
1998-09-03 18:43:40 -04:00
|
|
|
|
esac; else echo bison ; fi`
|
1993-05-23 01:18:39 -04:00
|
|
|
|
BISONFLAGS =
|
1998-05-17 20:23:16 -04:00
|
|
|
|
LEX = `if [ -f $(objdir)/../flex/flex ] ; then echo $(objdir)/../flex/flex ; else echo flex ; fi`
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
LEXFLAGS =
|
1992-02-03 17:08:59 -05:00
|
|
|
|
AR = ar
|
|
|
|
|
AR_FLAGS = rc
|
1997-11-02 16:19:36 -05:00
|
|
|
|
LN = @symbolic_link@
|
1997-06-27 19:36:01 -04:00
|
|
|
|
DLLTOOL = dlltool
|
1992-02-03 17:08:59 -05:00
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
# on sysV, define this as cp.
|
1997-05-18 08:31:46 -04:00
|
|
|
|
INSTALL = @INSTALL@
|
1997-09-11 16:39:08 -04:00
|
|
|
|
# Some systems may be missing symbolic links, regular links, or both.
|
|
|
|
|
# Allow configure to check this and use "ln -s", "ln", or "cp" as appropriate.
|
|
|
|
|
LN=@LN@
|
|
|
|
|
LN_S=@LN_S@
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# These permit overriding just for certain files.
|
1997-09-13 18:52:49 -04:00
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
1999-03-02 02:40:24 -05:00
|
|
|
|
MAKEINFO = `if [ -f $(objdir)/../texinfo/makeinfo/Makefile ] ; \
|
|
|
|
|
then echo $(objdir)/../texinfo/makeinfo/makeinfo ; \
|
|
|
|
|
else echo makeinfo ; fi`
|
1996-01-06 16:11:54 -05:00
|
|
|
|
MAKEINFOFLAGS =
|
1993-05-06 09:26:26 -04:00
|
|
|
|
TEXI2DVI = texi2dvi
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
# For GNUmake: let us decide what gets passed to recursive makes.
|
|
|
|
|
MAKEOVERRIDES =
|
1997-05-18 08:31:46 -04:00
|
|
|
|
@SET_MAKE@
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# 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 =
|
|
|
|
|
|
|
|
|
|
# How to invoke ranlib.
|
|
|
|
|
RANLIB = ranlib
|
|
|
|
|
# Test to use to see whether ranlib exists on the system.
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
RANLIB_TEST = \
|
|
|
|
|
[ -f $(RANLIB) ] \
|
1999-03-24 20:07:20 -05:00
|
|
|
|
|| [ -f /usr/bin/ranlib -o -f /bin/ranlib ]
|
1998-11-24 07:46:07 -05:00
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Compiler to use for compiling libgcc1.a.
|
|
|
|
|
# OLDCC should not be the GNU C compiler,
|
|
|
|
|
# since that would compile typical libgcc1.a functions such as mulsi3
|
|
|
|
|
# into infinite recursions.
|
|
|
|
|
OLDCC = cc
|
|
|
|
|
|
|
|
|
|
# CFLAGS for use with OLDCC, for compiling libgcc1.a.
|
|
|
|
|
# NOTE: -O does not work on some Unix systems!
|
|
|
|
|
CCLIBFLAGS = -O
|
|
|
|
|
|
1992-03-20 17:22:14 -05:00
|
|
|
|
# Version of ar to use when compiling libgcc1.a.
|
1992-02-03 17:08:59 -05:00
|
|
|
|
OLDAR = ar
|
1997-07-10 13:07:44 -04:00
|
|
|
|
OLDAR_FLAGS = qc
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1993-01-14 15:10:31 -05:00
|
|
|
|
# Target to use when installing include directory. Either
|
|
|
|
|
# install-headers-tar or install-headers-cpio.
|
1997-05-18 08:31:46 -04:00
|
|
|
|
INSTALL_HEADERS_DIR = @build_install_headers_dir@
|
1993-01-14 15:10:31 -05:00
|
|
|
|
|
1995-09-28 14:02:22 -04:00
|
|
|
|
# Header files that are made available under the same name
|
|
|
|
|
# to programs compiled with GCC.
|
|
|
|
|
USER_H = $(srcdir)/ginclude/stdarg.h $(srcdir)/ginclude/stddef.h \
|
|
|
|
|
$(srcdir)/ginclude/varargs.h $(srcdir)/ginclude/va-alpha.h \
|
|
|
|
|
$(srcdir)/ginclude/va-h8300.h $(srcdir)/ginclude/va-i860.h \
|
|
|
|
|
$(srcdir)/ginclude/va-i960.h $(srcdir)/ginclude/va-mips.h \
|
1997-06-25 15:07:40 -04:00
|
|
|
|
$(srcdir)/ginclude/va-m88k.h $(srcdir)/ginclude/va-mn10200.h \
|
|
|
|
|
$(srcdir)/ginclude/va-mn10300.h $(srcdir)/ginclude/va-pa.h \
|
1995-09-28 14:02:22 -04:00
|
|
|
|
$(srcdir)/ginclude/va-pyr.h $(srcdir)/ginclude/va-sparc.h \
|
|
|
|
|
$(srcdir)/ginclude/va-clipper.h $(srcdir)/ginclude/va-spur.h \
|
1997-03-24 15:15:16 -05:00
|
|
|
|
$(srcdir)/ginclude/va-m32r.h $(srcdir)/ginclude/va-sh.h \
|
1997-09-10 03:50:16 -04:00
|
|
|
|
$(srcdir)/ginclude/va-v850.h $(srcdir)/ginclude/va-arc.h \
|
1995-09-28 14:02:22 -04:00
|
|
|
|
$(srcdir)/ginclude/iso646.h $(srcdir)/ginclude/va-ppc.h \
|
1998-10-13 19:35:08 -04:00
|
|
|
|
$(srcdir)/ginclude/va-c4x.h $(EXTRA_HEADERS) $(LANG_EXTRA_HEADERS) \
|
1998-05-30 19:24:33 -04:00
|
|
|
|
$(srcdir)/ginclude/proto.h $(srcdir)/ginclude/stdbool.h
|
1995-09-28 14:02:22 -04:00
|
|
|
|
|
|
|
|
|
# Target to use whe installing assert.h. Some systems may
|
|
|
|
|
# want to set this empty.
|
|
|
|
|
INSTALL_ASSERT_H = install-assert-h
|
|
|
|
|
|
1995-03-15 18:44:51 -05:00
|
|
|
|
# The GCC to use for compiling libgcc2.a, enquire, and libgcc1-test.
|
1992-06-30 21:25:23 -04:00
|
|
|
|
# Usually the one we just built.
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Don't use this as a dependency--use $(GCC_PASSES) or $(GCC_PARTS).
|
1999-05-20 18:22:34 -04:00
|
|
|
|
GCC_FOR_TARGET = ./xgcc -B./ -B$(build_tooldir)/bin/ -I$(build_tooldir)/include
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
|
|
|
|
|
# It omits XCFLAGS, and specifies -B./.
|
1993-12-23 08:11:50 -05:00
|
|
|
|
# It also specifies -I./include to find, e.g., stddef.h.
|
1996-02-12 20:41:12 -05:00
|
|
|
|
GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) -I./include $(TCFLAGS)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1994-11-17 16:03:59 -05:00
|
|
|
|
# Sed command to transform gcc to installed name. Overwritten by configure.
|
1997-10-07 11:59:26 -04:00
|
|
|
|
program_transform_name = @program_transform_name@
|
1997-11-22 02:55:18 -05:00
|
|
|
|
program_transform_cross_name = s,^,$(target_alias)-,
|
1994-11-17 16:03:59 -05:00
|
|
|
|
|
1998-05-17 20:48:07 -04:00
|
|
|
|
build_canonical = @build_canonical@
|
|
|
|
|
host_canonical = @host_canonical@
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# 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
|
|
|
|
# Use the tools from the build tree, if they are available.
|
|
|
|
|
|
|
|
|
|
# objdir is set by configure.
|
|
|
|
|
objdir = @objdir@
|
|
|
|
|
|
|
|
|
|
AR_FOR_TARGET = ` \
|
|
|
|
|
if [ -f $(objdir)/../binutils/ar ] ; then \
|
|
|
|
|
echo $(objdir)/../binutils/ar ; \
|
|
|
|
|
else \
|
|
|
|
|
if [ "$(host_canonical)" = "$(target)" ] ; then \
|
|
|
|
|
echo ar; \
|
|
|
|
|
else \
|
|
|
|
|
t='$(program_transform_name)'; echo ar | sed -e $$t ; \
|
|
|
|
|
fi; \
|
|
|
|
|
fi`
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
AR_FLAGS_FOR_TARGET = rc
|
1998-05-17 21:24:26 -04:00
|
|
|
|
RANLIB_FOR_TARGET = ` \
|
|
|
|
|
if [ -f $(objdir)/../binutils/ranlib ] ; then \
|
|
|
|
|
echo $(objdir)/../binutils/ranlib ; \
|
|
|
|
|
else \
|
|
|
|
|
if [ "$(host_canonical)" = "$(target)" ] ; then \
|
|
|
|
|
echo ranlib; \
|
|
|
|
|
else \
|
|
|
|
|
t='$(program_transform_name)'; echo ranlib | sed -e $$t ; \
|
|
|
|
|
fi; \
|
|
|
|
|
fi`
|
|
|
|
|
RANLIB_TEST_FOR_TARGET = \
|
|
|
|
|
[ -f $(RANLIB_FOR_TARGET) ] \
|
|
|
|
|
|| ( [ "$(host_canonical)" = "$(target)" ] \
|
|
|
|
|
&& [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )
|
|
|
|
|
|
1992-09-04 00:40:25 -04:00
|
|
|
|
# Dir to search for system headers. Overridden by cross-make.
|
|
|
|
|
SYSTEM_HEADER_DIR = /usr/include
|
|
|
|
|
|
1993-10-21 14:41:48 -04:00
|
|
|
|
# Control whether to run fixproto.
|
|
|
|
|
STMP_FIXPROTO = stmp-fixproto
|
1993-07-26 04:49:02 -04:00
|
|
|
|
|
1994-12-22 12:16:22 -05:00
|
|
|
|
# Test to see whether <limits.h> exists in the system header files.
|
|
|
|
|
LIMITS_H_TEST = [ -f $(SYSTEM_HEADER_DIR)/limits.h ]
|
|
|
|
|
|
1992-05-10 15:07:04 -04:00
|
|
|
|
# There may be a premade insn-attrtab.c for this machine.
|
|
|
|
|
# (You could rebuild it with genattrtab as usual, but it takes a long time.)
|
|
|
|
|
# PREMADE_ATTRTAB is the file name of the file to use.
|
|
|
|
|
# PREMADE_ATTRTAB_MD is the md file it corresponds to.
|
|
|
|
|
PREMADE_ATTRTAB_MD = Makefile # Guaranteed not to cmp equal to md.
|
|
|
|
|
PREMADE_ATTRTAB =
|
|
|
|
|
|
1997-05-18 08:31:46 -04:00
|
|
|
|
target=@target@
|
1997-06-09 19:17:07 -04:00
|
|
|
|
target_alias=@target_alias@
|
1997-05-18 08:31:46 -04:00
|
|
|
|
xmake_file=@dep_host_xmake_file@
|
|
|
|
|
tmake_file=@dep_tmake_file@
|
|
|
|
|
out_file=$(srcdir)/config/@out_file@
|
|
|
|
|
out_object_file=@out_object_file@
|
|
|
|
|
md_file=$(srcdir)/config/@md_file@
|
|
|
|
|
tm_file=@tm_file_list@
|
|
|
|
|
build_xm_file=@build_xm_file_list@
|
|
|
|
|
host_xm_file=@host_xm_file_list@
|
|
|
|
|
lang_specs_files=@lang_specs_files@
|
|
|
|
|
lang_options_files=@lang_options_files@
|
1998-08-30 11:50:47 -04:00
|
|
|
|
lang_tree_files=@lang_tree_files@
|
1997-06-27 18:49:22 -04:00
|
|
|
|
GCC_THREAD_FILE=@thread_file@
|
1998-09-02 19:48:01 -04:00
|
|
|
|
OBJC_BOEHM_GC=@objc_boehm_gc@
|
1998-11-11 17:14:01 -05:00
|
|
|
|
JAVAGC=@JAVAGC@
|
1997-12-24 18:56:08 -05:00
|
|
|
|
GTHREAD_FLAGS=@gthread_flags@
|
1998-06-25 22:13:51 -04:00
|
|
|
|
# Be prepared for gcc2 merges.
|
|
|
|
|
gcc_version=@gcc_version@
|
|
|
|
|
gcc_version_trigger=@gcc_version_trigger@
|
|
|
|
|
version=$(gcc_version)
|
1993-10-30 03:40:59 -04:00
|
|
|
|
mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# Common prefix for installation directories.
|
|
|
|
|
# NOTE: This directory must exist when you start installation.
|
1997-05-18 08:31:46 -04:00
|
|
|
|
prefix = @prefix@
|
1993-01-19 03:54:40 -05:00
|
|
|
|
# Directory in which to put localized header files. On the systems with
|
|
|
|
|
# gcc as the native cc, `local_prefix' may not be `prefix' which is
|
|
|
|
|
# `/usr'.
|
1993-05-18 16:48:27 -04:00
|
|
|
|
# NOTE: local_prefix *should not* default from prefix.
|
1997-05-18 08:31:46 -04:00
|
|
|
|
local_prefix = @local_prefix@
|
1992-03-20 17:22:14 -05:00
|
|
|
|
# Directory in which to put host dependent programs and libraries
|
1997-05-18 08:31:46 -04:00
|
|
|
|
exec_prefix = @exec_prefix@
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Directory in which to put the executable for the command `gcc'
|
1997-05-18 08:31:46 -04:00
|
|
|
|
bindir = @bindir@
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Directory in which to put the directories used by the compiler.
|
1997-05-18 08:31:46 -04:00
|
|
|
|
libdir = @libdir@
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Directory in which the compiler finds executables, libraries, etc.
|
1996-07-18 18:06:04 -04:00
|
|
|
|
libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(version)
|
1999-01-22 01:46:43 -05:00
|
|
|
|
# Used to produce a relative $(gcc_tooldir) in gcc.o
|
1998-10-01 21:05:51 -04:00
|
|
|
|
unlibsubdir = ../../..
|
1999-01-22 02:17:21 -05:00
|
|
|
|
# Directory in which to find other cross-compilation tools and headers.
|
1999-03-02 04:29:26 -05:00
|
|
|
|
dollar = @dollar@
|
1999-01-22 02:17:21 -05:00
|
|
|
|
# Used in install-cross.
|
|
|
|
|
gcc_tooldir = @gcc_tooldir@
|
|
|
|
|
# Since tooldir does not exist at build-time, use -B$(build_tooldir)/bin/
|
|
|
|
|
build_tooldir = $(exec_prefix)/$(target_alias)
|
1994-03-12 19:41:22 -05:00
|
|
|
|
# Directory in which the compiler finds g++ includes.
|
1999-03-02 04:25:31 -05:00
|
|
|
|
gcc_gxx_include_dir= @gcc_gxx_include_dir@
|
1993-06-05 04:10:50 -04:00
|
|
|
|
# Directory to search for site-specific includes.
|
1993-01-27 13:11:43 -05:00
|
|
|
|
includedir = $(local_prefix)/include
|
1992-10-06 16:39:15 -04:00
|
|
|
|
# assertdir is overridden in cross-make.
|
1993-05-18 23:55:08 -04:00
|
|
|
|
# (But this currently agrees with what is in cross-make.)
|
1999-01-22 01:46:43 -05:00
|
|
|
|
assertdir = $(gcc_tooldir)/include
|
1993-05-18 16:48:27 -04:00
|
|
|
|
# where the info files go
|
1997-05-18 08:31:46 -04:00
|
|
|
|
infodir = @infodir@
|
1999-03-01 19:59:28 -05:00
|
|
|
|
# Where cpp should go besides $prefix/bin if necessary
|
|
|
|
|
cpp_install_dir = @cpp_install_dir@
|
1999-01-26 20:43:17 -05:00
|
|
|
|
# where the locale files go
|
|
|
|
|
datadir = $(prefix)/@DATADIRNAME@
|
|
|
|
|
localedir = $(datadir)/locale
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Extension (if any) to put in installed man-page filename.
|
|
|
|
|
manext = .1
|
1995-02-21 17:54:50 -05:00
|
|
|
|
objext = .o
|
1997-12-31 06:48:25 -05:00
|
|
|
|
exeext = @host_exeext@
|
|
|
|
|
build_exeext = @build_exeext@
|
1995-02-21 17:54:50 -05:00
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Directory in which to put man pages.
|
1998-11-19 01:49:46 -05:00
|
|
|
|
mandir = @mandir@
|
|
|
|
|
man1dir = $(mandir)/man1
|
1992-10-31 16:00:49 -05:00
|
|
|
|
# Dir for temp files.
|
|
|
|
|
tmpdir = /tmp
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1999-01-26 20:43:17 -05:00
|
|
|
|
# Top build directory, relative to here.
|
|
|
|
|
top_builddir = .
|
|
|
|
|
|
|
|
|
|
# Whether we were configured with NLS.
|
|
|
|
|
USE_NLS = @USE_NLS@
|
|
|
|
|
|
|
|
|
|
# Internationalization library.
|
|
|
|
|
INTLLIBS = @INTLLIBS@
|
|
|
|
|
|
|
|
|
|
# List of internationalization subdirectories.
|
|
|
|
|
POSUB = @POSUB@
|
|
|
|
|
INTL_SUBDIRS = intl $(POSUB)
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Additional system libraries to link with.
|
|
|
|
|
CLIB=
|
|
|
|
|
|
|
|
|
|
# Change this to a null string if obstacks are installed in the
|
|
|
|
|
# system library.
|
|
|
|
|
OBSTACK=obstack.o
|
|
|
|
|
|
1998-05-07 07:44:09 -04:00
|
|
|
|
# Configure will set these if you need vfprintf and possibly _doprnt support.
|
|
|
|
|
VFPRINTF=@vfprintf@
|
|
|
|
|
DOPRINT=@doprint@
|
|
|
|
|
|
1993-07-05 11:35:24 -04:00
|
|
|
|
# Specify the rule for actually making libgcc.a,
|
|
|
|
|
LIBGCC = libgcc.a
|
|
|
|
|
# and the rule for installing it.
|
|
|
|
|
INSTALL_LIBGCC = install-libgcc
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Specify the rule for actually making libgcc1.a.
|
1992-03-20 17:22:14 -05:00
|
|
|
|
# The value may be empty; that means to do absolutely nothing
|
|
|
|
|
# with or for libgcc1.a.
|
1992-02-03 17:08:59 -05:00
|
|
|
|
LIBGCC1 = libgcc1.a
|
|
|
|
|
|
1993-09-09 14:18:07 -04:00
|
|
|
|
# Specify the rule for making libgcc1.a for a cross-compiler.
|
|
|
|
|
# The default rule assumes that libgcc1.a is supplied by the user.
|
|
|
|
|
CROSS_LIBGCC1 = libgcc1.cross
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Specify the rule for actually making libgcc2.a.
|
|
|
|
|
LIBGCC2 = libgcc2.a
|
|
|
|
|
|
|
|
|
|
# Options to use when compiling libgcc2.a.
|
|
|
|
|
# -g1 causes output of debug info only for file-scope entities.
|
|
|
|
|
# we use this here because that should be enough, and also
|
|
|
|
|
# so that -g1 will be tested.
|
1997-10-26 13:21:28 -05:00
|
|
|
|
#
|
1997-12-04 04:41:53 -05:00
|
|
|
|
LIBGCC2_DEBUG_CFLAGS = -g1
|
1998-06-09 06:34:59 -04:00
|
|
|
|
LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(TARGET_LIBGCC2_CFLAGS) $(LIBGCC2_DEBUG_CFLAGS) $(GTHREAD_FLAGS) -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED @inhibit_libc@
|
1993-04-08 10:53:33 -04:00
|
|
|
|
|
|
|
|
|
# Additional options to use when compiling libgcc2.a.
|
|
|
|
|
# Some targets override this to -Iinclude
|
|
|
|
|
LIBGCC2_INCLUDES =
|
|
|
|
|
|
1995-08-13 18:04:59 -04:00
|
|
|
|
# Additional target-dependent options for compiling libgcc2.a.
|
|
|
|
|
TARGET_LIBGCC2_CFLAGS =
|
|
|
|
|
|
1993-04-08 10:53:33 -04:00
|
|
|
|
# Things which must be built before building libgcc2.a.
|
|
|
|
|
# Some targets override this to stmp-int-hdrs
|
|
|
|
|
LIBGCC2_DEPS =
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1995-03-15 18:44:51 -05:00
|
|
|
|
# libgcc1-test target (must also be overridable for a target)
|
|
|
|
|
LIBGCC1_TEST = libgcc1-test
|
1993-09-21 22:30:41 -04:00
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# List of extra executables that should be compiled for this target machine
|
|
|
|
|
# that are used for compiling from source code to object code.
|
|
|
|
|
# The rules for compiling them should be in the t-* file for the machine.
|
1997-05-18 08:31:46 -04:00
|
|
|
|
EXTRA_PASSES =@extra_passes@
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1992-03-20 17:22:14 -05:00
|
|
|
|
# Like EXTRA_PASSES, but these are used when linking.
|
1997-05-18 08:31:46 -04:00
|
|
|
|
EXTRA_PROGRAMS = @extra_programs@
|
1992-03-20 17:22:14 -05:00
|
|
|
|
|
|
|
|
|
# List of extra object files that should be compiled for this target machine.
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# The rules for compiling them should be in the t-* file for the machine.
|
1997-05-18 08:31:46 -04:00
|
|
|
|
EXTRA_PARTS = @extra_parts@
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1992-03-20 17:22:14 -05:00
|
|
|
|
# List of extra object files that should be compiled and linked with
|
|
|
|
|
# compiler proper (cc1, cc1obj, cc1plus).
|
1997-05-18 08:31:46 -04:00
|
|
|
|
EXTRA_OBJS = @extra_objs@
|
1992-03-20 17:22:14 -05:00
|
|
|
|
|
1995-09-12 17:39:08 -04:00
|
|
|
|
# List of extra object files that should be compiled and linked with
|
|
|
|
|
# the gcc driver.
|
1997-05-18 08:31:46 -04:00
|
|
|
|
EXTRA_GCC_OBJS =@host_extra_gcc_objs@
|
1995-09-12 17:39:08 -04:00
|
|
|
|
|
1992-05-24 15:40:47 -04:00
|
|
|
|
# List of additional header files to install.
|
|
|
|
|
# Often this is edited directly by `configure'.
|
1997-05-18 08:31:46 -04:00
|
|
|
|
EXTRA_HEADERS =@extra_headers_list@
|
1992-05-24 15:40:47 -04:00
|
|
|
|
|
1998-04-06 16:51:28 -04:00
|
|
|
|
# Set this to `collect2' to enable use of collect2.
|
1997-05-18 08:31:46 -04:00
|
|
|
|
USE_COLLECT2 = @will_use_collect2@
|
1999-06-10 23:12:22 -04:00
|
|
|
|
# If we might be using collect2, then this variable will be set to
|
|
|
|
|
# -DUSE_COLLECT2. toplev.c, collect2.c and libgcc2.c all need to
|
|
|
|
|
# if we may be using collect2.
|
1997-06-09 20:26:06 -04:00
|
|
|
|
MAYBE_USE_COLLECT2 = @maybe_use_collect2@
|
1992-04-04 16:34:42 -05:00
|
|
|
|
# It is convenient for configure to add the assignment at the beginning,
|
|
|
|
|
# so don't override it here.
|
1998-04-06 16:51:28 -04:00
|
|
|
|
USE_COLLECT2 = collect2$(exeext)
|
1992-04-04 16:34:42 -05:00
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# List of extra C and assembler files to add to libgcc1.a.
|
|
|
|
|
# Assembler files should have names ending in `.asm'.
|
|
|
|
|
LIB1FUNCS_EXTRA =
|
|
|
|
|
|
|
|
|
|
# List of extra C and assembler files to add to libgcc2.a.
|
|
|
|
|
# Assembler files should have names ending in `.asm'.
|
|
|
|
|
LIB2FUNCS_EXTRA =
|
|
|
|
|
|
1999-03-01 19:59:28 -05:00
|
|
|
|
# Handle cpp installation.
|
|
|
|
|
INSTALL_CPP=
|
|
|
|
|
UNINSTALL_CPP=
|
|
|
|
|
|
1998-05-23 20:44:00 -04:00
|
|
|
|
# We do not try to build float.h anymore. Let configure select the
|
|
|
|
|
# appropriate pre-built float.h file for the target.
|
1999-03-01 14:15:49 -05:00
|
|
|
|
FLOAT_H=@float_h_file@
|
1998-05-23 20:44:00 -04:00
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Program to convert libraries.
|
|
|
|
|
LIBCONVERT =
|
|
|
|
|
|
|
|
|
|
# Control whether header files are installed.
|
|
|
|
|
INSTALL_HEADERS=install-headers
|
|
|
|
|
|
1993-05-13 18:30:37 -04:00
|
|
|
|
# Options for tar when copying trees. So HPUX can override it.
|
|
|
|
|
TAROUTOPTS = xpBf
|
|
|
|
|
|
1992-10-23 03:24:42 -04:00
|
|
|
|
# Additional directories of header files to run fixincludes on.
|
1993-06-16 15:45:41 -04:00
|
|
|
|
# These should be directories searched automatically by default
|
|
|
|
|
# just as /usr/include is.
|
|
|
|
|
# *Do not* use this for directories that happen to contain
|
|
|
|
|
# header files, but are not searched automatically by default.
|
1992-10-23 03:24:42 -04:00
|
|
|
|
# On most systems, this is empty.
|
|
|
|
|
OTHER_FIXINCLUDES_DIRS=
|
|
|
|
|
|
1997-02-15 17:54:15 -05:00
|
|
|
|
# A list of all the language-specific executables.
|
|
|
|
|
# This is overridden by configure.
|
(LANGUAGES, COMPILERS, .PHONY, stmp-int-hdrs): Remove specific references to ObjC compiler and source files.
(LANGUAGES, COMPILERS, .PHONY, stmp-int-hdrs): Remove specific references to
ObjC compiler and source files.
({mostly,dist,maintainer,}clean, install-normal): Likewise
(OBJC_OBJS, OBJC, OBJECTIVE-C, cc1obj, objc-runtime): Rules deleted.
(libobjc.a, sublibobjc.a, objc-parse.{o, c, y}): Rules deleted.
(objc-headers, install-libobjc): Rules deleted.
From-SVN: r14281
1997-06-21 20:41:52 -04:00
|
|
|
|
COMPILERS = cc1$(exeext) @all_compilers@
|
1997-02-15 17:54:15 -05:00
|
|
|
|
|
1992-06-23 22:36:02 -04:00
|
|
|
|
# List of things which should already be built whenever we try to use xgcc
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# to compile anything (without linking).
|
1998-03-21 18:47:27 -05:00
|
|
|
|
GCC_PASSES=xgcc$(exeext) cc1$(exeext) cpp$(exeext) $(EXTRA_PASSES)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1992-06-23 22:36:02 -04:00
|
|
|
|
# List of things which should already be built whenever we try to use xgcc
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# to link anything.
|
1993-07-05 11:35:24 -04:00
|
|
|
|
GCC_PARTS=$(GCC_PASSES) $(LIBGCC) $(EXTRA_PROGRAMS) $(USE_COLLECT2) $(EXTRA_PARTS)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# Directory to link to, when using the target `maketest'.
|
|
|
|
|
DIR = ../gcc
|
|
|
|
|
|
1993-10-01 18:16:34 -04:00
|
|
|
|
# Guaranteed to not exist when not passing md through cpp.
|
1993-12-21 18:41:11 -05:00
|
|
|
|
# This value is overridden directly by configure.
|
1993-10-01 18:16:34 -04:00
|
|
|
|
MD_FILE = md-cpp-not-used
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Flags to use when cross-building GCC.
|
|
|
|
|
# Prefix to apply to names of object files when using them
|
|
|
|
|
# to run on the machine we are compiling on.
|
|
|
|
|
HOST_PREFIX=
|
|
|
|
|
# Prefix to apply to names of object files when compiling them
|
|
|
|
|
# to run on the machine we are compiling on.
|
|
|
|
|
# The default for this variable is chosen to keep these rules
|
|
|
|
|
# out of the way of the other rules for compiling the same source files.
|
|
|
|
|
HOST_PREFIX_1=loser-
|
|
|
|
|
HOST_CC=$(CC)
|
|
|
|
|
HOST_CFLAGS=$(ALL_CFLAGS)
|
1992-03-20 17:22:14 -05:00
|
|
|
|
HOST_CLIB=$(CLIB)
|
1999-01-26 20:43:17 -05:00
|
|
|
|
HOST_INTLLIBS=$(INTLLIBS)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
HOST_LDFLAGS=$(LDFLAGS)
|
|
|
|
|
HOST_CPPFLAGS=$(ALL_CPPFLAGS)
|
1992-03-20 17:22:14 -05:00
|
|
|
|
HOST_ALLOCA=$(ALLOCA)
|
|
|
|
|
HOST_MALLOC=$(MALLOC)
|
|
|
|
|
HOST_OBSTACK=$(OBSTACK)
|
1998-05-07 07:44:09 -04:00
|
|
|
|
HOST_VFPRINTF=$(VFPRINTF)
|
|
|
|
|
HOST_DOPRINT=$(DOPRINT)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1994-11-17 16:03:59 -05:00
|
|
|
|
# Actual name to use when installing a native compiler.
|
1997-11-22 02:55:18 -05:00
|
|
|
|
GCC_INSTALL_NAME = `t='$(program_transform_name)'; echo gcc | sed -e $$t`
|
1999-03-26 17:55:35 -05:00
|
|
|
|
CPP_INSTALL_NAME = `t='$(program_transform_name)'; echo cpp | sed -e $$t`
|
1998-06-22 14:32:14 -04:00
|
|
|
|
PROTOIZE_INSTALL_NAME = `t='$(program_transform_name)'; echo protoize | sed -e $$t`
|
|
|
|
|
UNPROTOIZE_INSTALL_NAME = `t='$(program_transform_name)'; echo unprotoize | sed -e $$t`
|
1999-01-17 22:32:53 -05:00
|
|
|
|
GCOV_INSTALL_NAME = `t='$(program_transform_name)'; echo gcov | sed -e $$t`
|
1994-11-17 16:03:59 -05:00
|
|
|
|
|
|
|
|
|
# Actual name to use when installing a cross-compiler.
|
1997-11-22 02:55:18 -05:00
|
|
|
|
GCC_CROSS_NAME = `t='$(program_transform_cross_name)'; echo gcc | sed -e $$t`
|
1998-06-22 14:32:14 -04:00
|
|
|
|
PROTOIZE_CROSS_NAME = `t='$(program_transform_cross_name)'; echo protoize | sed -e $$t`
|
|
|
|
|
UNPROTOIZE_CROSS_NAME = `t='$(program_transform_cross_name)'; echo unprotoize | sed -e $$t`
|
1994-11-17 16:03:59 -05:00
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Choose the real default target.
|
|
|
|
|
ALL=all.internal
|
|
|
|
|
|
|
|
|
|
# Choose the real install target.
|
1993-01-14 15:10:31 -05:00
|
|
|
|
INSTALL_TARGET=install-normal
|
|
|
|
|
|
1997-08-19 11:36:20 -04:00
|
|
|
|
# Setup the testing framework, if you have one
|
|
|
|
|
EXPECT = `if [ -f $${rootme}/../expect/expect ] ; then \
|
|
|
|
|
echo $${rootme}/../expect/expect ; \
|
|
|
|
|
else echo expect ; fi`
|
|
|
|
|
|
|
|
|
|
RUNTEST = `if [ -f $${srcdir}/../dejagnu/runtest ] ; then \
|
|
|
|
|
echo $${srcdir}/../dejagnu/runtest ; \
|
|
|
|
|
else echo runtest; fi`
|
|
|
|
|
RUNTESTFLAGS =
|
|
|
|
|
|
1994-05-18 19:08:30 -04:00
|
|
|
|
# Extra symbols for fixproto to define when parsing headers.
|
|
|
|
|
FIXPROTO_DEFINES =
|
|
|
|
|
|
1994-11-18 23:09:58 -05:00
|
|
|
|
# Extra flags to use when compiling crt{begin,end}.o.
|
|
|
|
|
CRTSTUFF_T_CFLAGS =
|
|
|
|
|
|
1996-03-04 18:39:06 -05:00
|
|
|
|
# Extra flags to use when compiling [m]crt0.o.
|
|
|
|
|
CRT0STUFF_T_CFLAGS =
|
|
|
|
|
|
1997-11-02 16:19:36 -05:00
|
|
|
|
# "t" or nothing, for building multilibbed versions of, say, crtbegin.o.
|
|
|
|
|
T =
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# 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.
|
|
|
|
|
# The real definition is under `all.internal' (for native compilers)
|
|
|
|
|
# or `all.cross' (for cross compilers).
|
1992-03-20 17:22:14 -05:00
|
|
|
|
all: all.indirect
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1992-06-10 04:29:36 -04:00
|
|
|
|
# This tells GNU Make version 3 not to put all variables in the environment.
|
|
|
|
|
.NOEXPORT:
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# sed inserts variable overrides after the following line.
|
1992-08-18 06:51:20 -04:00
|
|
|
|
####target overrides
|
1997-05-18 08:31:46 -04:00
|
|
|
|
@target_overrides@
|
|
|
|
|
|
1992-08-18 06:51:20 -04:00
|
|
|
|
####host overrides
|
1997-05-18 08:31:46 -04:00
|
|
|
|
@host_overrides@
|
|
|
|
|
|
1992-08-18 06:51:20 -04:00
|
|
|
|
####cross overrides
|
1997-05-18 08:31:46 -04:00
|
|
|
|
@cross_defines@
|
|
|
|
|
@cross_overrides@
|
|
|
|
|
|
1992-10-18 01:30:48 -04:00
|
|
|
|
####build overrides
|
1997-05-18 08:31:46 -04:00
|
|
|
|
@build_overrides@
|
1997-06-09 15:19:18 -04:00
|
|
|
|
#
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Now figure out from those variables how to compile and link.
|
|
|
|
|
|
1992-03-20 17:22:14 -05:00
|
|
|
|
all.indirect: $(ALL)
|
|
|
|
|
|
Makefile.in (pexecute.o): Use pexecute.c from libiberty.
* Makefile.in (pexecute.o): Use pexecute.c from libiberty. Provide
explicit rules for building. Similarly for alloca, vfprintf,
choose-temp and mkstemp, getopt, getopt1, and obstack.
(INCLUDES): Add $(srcdir)/../include.
* pexecute.c, alloca.c, vfprintf.c, choose-temp.c, mkstemp.c: Delete.
* getopt.h, getopt.c getopt1.c, obstack.c, obstack.h: Likewise.
From-SVN: r22258
1998-09-05 08:24:04 -04:00
|
|
|
|
# IN_GCC tells various files that system.h, toplev.c, etc are available.
|
1998-12-17 07:35:30 -05:00
|
|
|
|
INTERNAL_CFLAGS = $(CROSS) -DIN_GCC $(SCHED_CFLAGS) @extra_c_flags@
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# This is the variable actually used when we compile.
|
1998-12-17 07:35:30 -05:00
|
|
|
|
# If you change this line, you probably also need to change the definition
|
|
|
|
|
# of HOST_CFLAGS in build-make to match.
|
1997-07-18 22:49:31 -04:00
|
|
|
|
ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) $(XCFLAGS) \
|
1998-12-17 07:35:30 -05:00
|
|
|
|
@DEFS@
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# Likewise.
|
|
|
|
|
ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
|
|
|
|
|
|
|
|
|
|
# Even if ALLOCA is set, don't use it if compiling with GCC.
|
1997-11-04 21:25:26 -05:00
|
|
|
|
USE_ALLOCA= ${ALLOCA}
|
|
|
|
|
USE_HOST_ALLOCA= ` case "${HOST_ALLOCA}" in ?*) echo ${HOST_PREFIX}${HOST_ALLOCA} ;; esac `
|
1992-03-20 17:22:14 -05:00
|
|
|
|
USE_HOST_MALLOC= ` case "${HOST_MALLOC}" in ?*) echo ${HOST_PREFIX}${HOST_MALLOC} ;; esac `
|
|
|
|
|
USE_HOST_OBSTACK= ` case "${HOST_OBSTACK}" in ?*) echo ${HOST_PREFIX}${HOST_OBSTACK} ;; esac `
|
1998-05-07 07:44:09 -04:00
|
|
|
|
USE_HOST_VFPRINTF= ` case "${HOST_VFPRINTF}" in ?*) echo ${HOST_PREFIX}${HOST_VFPRINTF} ;; esac `
|
|
|
|
|
USE_HOST_DOPRINT= ` case "${HOST_DOPRINT}" in ?*) echo ${HOST_PREFIX}${HOST_DOPRINT} ;; esac `
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# Dependency on obstack, alloca, malloc or whatever library facilities
|
|
|
|
|
# are not installed in the system libraries.
|
|
|
|
|
# We don't use USE_ALLOCA because backquote expansion doesn't work in deps.
|
1999-01-26 20:43:17 -05:00
|
|
|
|
LIBDEPS= $(INTLLIBS) $(OBSTACK) $(ALLOCA) $(MALLOC) $(VFPRINTF) $(DOPRINT)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# Likewise, for use in the tools that must run on this machine
|
|
|
|
|
# even if we are cross-building GCC.
|
|
|
|
|
# We don't use USE_ALLOCA because backquote expansion doesn't work in deps.
|
1999-01-26 20:43:17 -05:00
|
|
|
|
HOST_LIBDEPS= $(HOST_PREFIX)$(HOST_INTLLIBS) $(HOST_PREFIX)$(HOST_OBSTACK) $(HOST_PREFIX)$(HOST_ALLOCA) $(HOST_PREFIX)$(HOST_MALLOC) $(HOST_PREFIX)$(HOST_VFPRINTF) $(HOST_PREFIX)$(HOST_DOPRINT)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# How to link with both our special library facilities
|
|
|
|
|
# and the system's installed libraries.
|
1999-01-26 20:43:17 -05:00
|
|
|
|
LIBS = $(OBSTACK) $(USE_ALLOCA) $(MALLOC) $(INTLLIBS) @LIBS@ $(VFPRINTF) $(DOPRINT) $(CLIB) ../libiberty/libiberty.a
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# Likewise, for use in the tools that must run on this machine
|
|
|
|
|
# even if we are cross-building GCC.
|
1992-03-20 17:22:14 -05:00
|
|
|
|
HOST_LIBS = $(USE_HOST_OBSTACK) $(USE_HOST_ALLOCA) $(USE_HOST_MALLOC) \
|
1999-01-26 20:43:17 -05:00
|
|
|
|
$(HOST_INTLLIBS) $(USE_HOST_VFPRINTF) $(USE_HOST_DOPRINT) \
|
|
|
|
|
$(HOST_CLIB)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
Makefile.in (HOST_RTL): Add $(HOST_PREFIX)bitmap.o.
* Makefile.in (HOST_RTL): Add $(HOST_PREFIX)bitmap.o.
(rtl.o, emit-rtl.o): Add dependency on bitmap.h.
($(HOST_PREFIX_1)rtl.o): Likewise.
($(HOST_PREFIX_1)bitmap.o): New host object.
* emit-rtl.c (toplevel): Include bitmap.h.
(gen_rtx): Handle 't' and 'b' nodes.
* print-rtl.c (print_rtx): Handle printing NOTE_INSN_LIVE notes.
Print block number for block begin/end notes. Print 't' type
nodes as a pointer. Know that the 3rd argument of live range
start/stop notes is really a range_info rtx. If type is 'b', print
out argument as a bitmap.
* rtl.c: Include bitmap.c.
(copy_rtx): Copy tree nodes as is. Copy bitmaps if type is 'b'.
(note_insn_name): Add NOTE_INSN_RANGE_{START,END}, NOTE_INSN_LIVE.
* rtl.def (RANGE_LIVE): New node to hold live information while we
recalculate the basic blocks.
(RANGE_REG, RANGE_INFO): New rtl types for live range splitting.
(RANGE_VAR): New node, to hold information saved in symbol node for New
communicating live range information to the debug output functions.
* rtl.h (rtunion_def): Add rttree and rtbit fields.
(XBITMAP, XTREE): New accessor macros.
(NOTE_LIVE_INFO): Overload NOTE_SOURCE_FILE for NOTE_INSN_LIVE notes.
(NOTE_RANGE_INFO): Similarly for NOTE_INSN_RANGE_{START,END} notes.
(NOTE_BLOCK_LIVE_RANGE_BLOCK): Define.
(NOTE_INSN_RANGE_START, NOTE_INSN_RANGE_END, NOTE_INSN_LIVE): New notes.
(RANGE_LIVE_{BITMAP,ORIG_BLOCK}): New accessor macros.
(RANGE_REG_{SYMBOL,BLOCK}_NODE, RANGE_VAR_*): New accessor macros.
(RANGE_INFO_*): Likewise.
* sched.c (sched_analyze): Keep live range start/stop notes.
(unlink_other_notes): Likewise.
* haifa-sched.c (sched_analyze): Keep live range start/stop notes.
(unlink_other_notes): Likewise.
* tree.h (BLOCK_LIVE_RANGE_{START,END,VAR_FLAG}): New accessor macros.
(BLOCK_LIVE_RANGE_FLAG): Likewise.
(DECL_LIVE_RANGE_RTL): Likewise.
(struct tree_block): Add live_range_flag, live_range_var_flag,
live_range_start and live_range_end.
(struct tree_decl): Add live_range_rtl field.
* gengenrtl.c (type_from_format): Handle 'b' and 't'.
(accessor_from_format): Likewise.
Co-Authored-By: Jeffrey A Law <law@cygnus.com>
From-SVN: r19727
1998-05-13 17:13:47 -04:00
|
|
|
|
HOST_RTL = $(HOST_PREFIX)rtl.o $(HOST_PREFIX)bitmap.o
|
1992-02-03 17:08:59 -05:00
|
|
|
|
HOST_RTLANAL = $(HOST_PREFIX)rtlanal.o
|
1992-05-05 23:33:12 -04:00
|
|
|
|
HOST_PRINT = $(HOST_PREFIX)print-rtl.o
|
1992-02-03 17:08:59 -05: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 08:09:54 -04:00
|
|
|
|
INCLUDES = -I. -I$(srcdir) -I$(srcdir)/config -I$(srcdir)/../include
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# Always use -I$(srcdir)/config when compiling.
|
|
|
|
|
.c.o:
|
|
|
|
|
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
|
|
|
|
|
|
|
|
|
|
# This tells GNU make version 3 not to export all the variables
|
|
|
|
|
# defined in this file into the environment.
|
|
|
|
|
.NOEXPORT:
|
1997-06-09 15:19:18 -04:00
|
|
|
|
#
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
# Support for additional languages (other than c and objc).
|
|
|
|
|
# ??? objc can be supported this way too (leave for later).
|
|
|
|
|
|
|
|
|
|
# These next lines are overridden by configure.
|
1997-05-18 08:31:46 -04:00
|
|
|
|
LANG_MAKEFILES = @all_lang_makefiles@
|
|
|
|
|
LANG_STAGESTUFF = @all_stagestuff@
|
|
|
|
|
LANG_DIFF_EXCLUDES = @all_diff_excludes@
|
|
|
|
|
LANG_LIB2FUNCS = @all_lib2funcs@
|
|
|
|
|
LANG_EXTRA_HEADERS = @all_headers@
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
|
|
|
|
|
# Flags to pass to recursive makes.
|
|
|
|
|
# CC is set by configure. Hosts without symlinks need special handling
|
|
|
|
|
# because we need CC="stage1/xgcc -Bstage1/" to work in the language
|
|
|
|
|
# subdirectories.
|
|
|
|
|
# ??? The choices here will need some experimenting with.
|
1999-04-26 20:39:48 -04:00
|
|
|
|
ORDINARY_FLAGS_TO_PASS = \
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
"AR_FLAGS_FOR_TARGET=$(AR_FLAGS_FOR_TARGET)" \
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
"AR_FOR_TARGET=$(AR_FOR_TARGET)" \
|
|
|
|
|
"BISON=$(BISON)" \
|
|
|
|
|
"BISONFLAGS=$(BISONFLAGS)" \
|
|
|
|
|
"CFLAGS=$(CFLAGS)" \
|
1996-09-14 20:38:47 -04:00
|
|
|
|
"CLIB=$(CLIB)" \
|
1994-11-28 18:52:57 -05:00
|
|
|
|
"GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
"LDFLAGS=$(LDFLAGS)" \
|
|
|
|
|
"LEX=$(LEX)" \
|
|
|
|
|
"LEXFLAGS=$(LEXFLAGS)" \
|
1997-09-11 16:39:08 -04:00
|
|
|
|
"LN=$(LN)" \
|
|
|
|
|
"LN_S=$(LN_S)" \
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
"MAKEINFO=$(MAKEINFO)" \
|
|
|
|
|
"MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
|
|
|
|
|
"RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
|
|
|
|
|
"RANLIB_TEST_FOR_TARGET=$(RANLIB_TEST_FOR_TARGET)" \
|
|
|
|
|
"SHELL=$(SHELL)" \
|
1997-05-18 08:31:46 -04:00
|
|
|
|
"STAGE_PREFIX=@stage_prefix_set_by_configure@" \
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
"exeext=$(exeext)" \
|
1997-12-31 06:48:25 -05:00
|
|
|
|
"build_exeext=$(build_exeext)" \
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
"objext=$(objext)" \
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
"exec_prefix=$(exec_prefix)" \
|
|
|
|
|
"prefix=$(prefix)" \
|
1998-01-17 15:29:12 -05:00
|
|
|
|
"local_prefix=$(local_prefix)" \
|
1999-03-02 04:25:31 -05:00
|
|
|
|
"gxx_include_dir=$(gcc_gxx_include_dir)" \
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
"tooldir=$(tooldir)" \
|
1999-01-22 01:46:43 -05:00
|
|
|
|
"gcc_tooldir=$(gcc_tooldir)" \
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
"bindir=$(bindir)" \
|
1999-01-26 20:43:17 -05:00
|
|
|
|
"libsubdir=$(libsubdir)" \
|
|
|
|
|
"datadir=$(datadir)" \
|
|
|
|
|
"distdir=../tmp/\$$(subdir)" \
|
|
|
|
|
"localedir=$(localedir)"
|
1999-04-26 20:39:48 -04:00
|
|
|
|
FLAGS_TO_PASS = $(ORDINARY_FLAGS_TO_PASS) "CC=@cc_set_by_configure@"
|
1999-01-26 20:43:17 -05:00
|
|
|
|
PREPEND_DOTDOT_TO_RELATIVE_PATHS = sed \
|
|
|
|
|
-e 's|^ *[^ /][^ /]*/|%&|' \
|
|
|
|
|
-e 's| -B| -B%|g' \
|
|
|
|
|
-e 's|% *[^- /]|%&|g' \
|
|
|
|
|
-e 's|%% *|../|g' \
|
|
|
|
|
-e 's|%||g'
|
|
|
|
|
SUBDIR_FLAGS_TO_PASS = $(ORDINARY_FLAGS_TO_PASS) \
|
1999-04-02 09:56:49 -05:00
|
|
|
|
"CC=`echo @quoted_cc_set_by_configure@ | $(PREPEND_DOTDOT_TO_RELATIVE_PATHS)`"
|
1997-06-09 15:19:18 -04:00
|
|
|
|
#
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Lists of files for various purposes.
|
|
|
|
|
|
1997-08-02 16:59:17 -04:00
|
|
|
|
# Language-specific object files for C and Objective C.
|
|
|
|
|
C_AND_OBJC_OBJS = c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o \
|
|
|
|
|
c-aux-info.o c-common.o c-iterate.o @extra_c_objs@
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Language-specific object files for C.
|
1997-08-02 16:59:17 -04:00
|
|
|
|
C_OBJS = c-parse.o c-lang.o $(C_AND_OBJC_OBJS)
|
1997-07-29 18:07:34 -04:00
|
|
|
|
|
1997-08-12 00:07:19 -04:00
|
|
|
|
SCHED_PREFIX = @sched_prefix@
|
|
|
|
|
SCHED_CFLAGS = @sched_cflags@
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Language-independent object files.
|
|
|
|
|
OBJS = toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o \
|
1996-07-23 15:58:32 -04:00
|
|
|
|
function.o stmt.o except.o expr.o calls.o expmed.o explow.o optabs.o \
|
1999-01-26 20:43:17 -05:00
|
|
|
|
intl.o varasm.o rtl.o print-rtl.o rtlanal.o emit-rtl.o genrtl.o real.o \
|
|
|
|
|
dbxout.o sdbout.o dwarfout.o dwarf2out.o xcoffout.o bitmap.o alias.o gcse.o \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o varray.o \
|
1999-01-26 20:43:17 -05:00
|
|
|
|
regclass.o regmove.o local-alloc.o global.o reload.o reload1.o caller-save.o \
|
1997-08-12 00:07:19 -04:00
|
|
|
|
insn-peep.o reorg.o $(SCHED_PREFIX)sched.o final.o recog.o reg-stack.o \
|
1999-03-10 17:03:36 -05:00
|
|
|
|
insn-opinit.o insn-recog.o insn-extract.o insn-output.o insn-emit.o lcm.o \
|
1998-07-20 09:35:38 -04:00
|
|
|
|
profile.o insn-attrtab.o $(out_object_file) getpwd.o $(EXTRA_OBJS) convert.o \
|
1999-03-23 02:51:12 -05:00
|
|
|
|
mbchar.o dyn-string.o splay-tree.o graph.o sbitmap.o resource.o hash.o
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# GEN files are listed separately, so they can be built before doing parallel
|
|
|
|
|
# makes for cc1 or cc1plus. Otherwise sequent parallel make attempts to load
|
|
|
|
|
# them before rtl.o is compiled.
|
1998-01-08 16:17:05 -05:00
|
|
|
|
GEN= genemit genoutput genrecog genextract genflags gencodes genconfig \
|
1998-05-28 20:09:05 -04:00
|
|
|
|
genpeep gengenrtl gencheck
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1998-06-10 08:58:43 -04:00
|
|
|
|
CCCP=@cpp_main@
|
1995-03-16 17:01:13 -05:00
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Files to be copied away after each stage in building.
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
STAGESTUFF = *$(objext) insn-flags.h insn-config.h insn-codes.h \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \
|
1999-01-26 20:43:17 -05:00
|
|
|
|
insn-attr.h insn-attrtab.c insn-opinit.c tree-check.h \
|
1998-06-29 17:40:49 -04:00
|
|
|
|
s-flags s-config s-codes s-mlib s-under\
|
|
|
|
|
s-output s-recog s-emit s-extract s-peep s-check \
|
1998-04-04 08:32:39 -05:00
|
|
|
|
s-attr s-attrtab s-opinit s-crt s-crtS s-crt0 \
|
1997-12-31 06:48:25 -05:00
|
|
|
|
genemit$(build_exeext) genoutput$(build_exeext) genrecog$(build_exeext) \
|
|
|
|
|
genextract$(build_exeext) genflags$(build_exeext) gencodes$(build_exeext) \
|
|
|
|
|
genconfig$(build_exeext) genpeep$(build_exeext) genattrtab$(build_exeext) \
|
1998-02-18 02:42:20 -05:00
|
|
|
|
genattr$(build_exeext) genopinit$(build_exeext) gengenrtl$(build_exeext) \
|
1998-05-28 20:09:05 -04:00
|
|
|
|
gencheck$(build_exeext) \
|
1999-03-26 17:55:35 -05:00
|
|
|
|
xgcc$(exeext) xcpp$(exeext) cc1$(exeext) cpp$(exeext) $(EXTRA_PASSES) \
|
1997-06-25 16:55:15 -04:00
|
|
|
|
$(EXTRA_PARTS) $(EXTRA_PROGRAMS) gcc-cross$(exeext) \
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
$(CCCP)$(exeext) cc1obj$(exeext) enquire$(exeext) \
|
|
|
|
|
protoize$(exeext) unprotoize$(exeext) \
|
(out_file, md_file, tm_file, {build,host}_xm_file):
New symbols, to be overridden by configure.
(insn-*): Use $(md_file), not md.
(aux-output.o): Use $(out_file), not aux-output.c.
($(MD_FILE)): Rework to use new conventions.
(gen*.o, bi-*.o): Depend on $(build_xm_file), not hconfig.h.
(scan.o, fix-header.o, scan-decls.o): Likewise.
(distclean): Adjust files removed for new convention.
From jason@cygnus.com:
(STAGESTUFF): Add underscore.c.
(underscore.c): Rename temporary files to begin with 'tmp-' so that they will
be removed by 'make mostlyclean'.
From-SVN: r9608
1995-05-10 08:26:52 -04:00
|
|
|
|
specs collect2$(exeext) $(USE_COLLECT2) underscore.c \
|
1997-03-28 17:34:21 -05:00
|
|
|
|
gcov$(exeext) *.bp \
|
1995-06-05 18:56:00 -04:00
|
|
|
|
*.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop \
|
1999-03-05 08:21:21 -05:00
|
|
|
|
*.dbr *.jump2 *.sched *.cse2 *.sched2 *.stack *.gcse *.flow2 \
|
1998-11-24 07:46:07 -05:00
|
|
|
|
*.[si] libcpp.a \
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
$(LANG_STAGESTUFF)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# Members of libgcc1.a.
|
|
|
|
|
LIB1FUNCS = _mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 \
|
1995-01-27 20:57:10 -05:00
|
|
|
|
_lshrsi3 _ashrsi3 _ashlsi3 \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
_divdf3 _muldf3 _negdf2 _adddf3 _subdf3 \
|
|
|
|
|
_fixdfsi _fixsfsi _floatsidf _floatsisf _truncdfsf2 _extendsfdf2 \
|
|
|
|
|
_addsf3 _negsf2 _subsf3 _mulsf3 _divsf3 \
|
|
|
|
|
_eqdf2 _nedf2 _gtdf2 _gedf2 _ltdf2 _ledf2 \
|
|
|
|
|
_eqsf2 _nesf2 _gtsf2 _gesf2 _ltsf2 _lesf2
|
|
|
|
|
|
|
|
|
|
# Library members defined in libgcc2.c.
|
|
|
|
|
LIB2FUNCS = _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 \
|
1995-01-27 20:57:10 -05:00
|
|
|
|
_lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 \
|
1992-07-09 18:30:39 -04:00
|
|
|
|
_udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
_fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi \
|
1993-04-04 03:15:20 -04:00
|
|
|
|
_fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi \
|
1993-10-07 19:37:16 -04:00
|
|
|
|
_fixtfdi _fixunstfdi _floatditf \
|
1997-11-20 18:17:48 -05:00
|
|
|
|
__gcc_bcmp _varargs __dummy _eprintf \
|
|
|
|
|
_bb _shtab _clear_cache _trampoline __main _exit \
|
1998-06-09 06:34:59 -04:00
|
|
|
|
_ctors _pure
|
|
|
|
|
|
|
|
|
|
LIB2FUNCS_EH = _eh
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1997-12-21 08:45:20 -05:00
|
|
|
|
FPBIT_FUNCS = _pack_sf _unpack_sf _addsub_sf _mul_sf _div_sf \
|
|
|
|
|
_fpcmp_parts_sf _compare_sf _eq_sf _ne_sf _gt_sf _ge_sf \
|
|
|
|
|
_lt_sf _le_sf _si_to_sf _sf_to_si _negate_sf _make_sf \
|
|
|
|
|
_sf_to_df
|
|
|
|
|
|
|
|
|
|
DPBIT_FUNCS = _pack_df _unpack_df _addsub_df _mul_df _div_df \
|
|
|
|
|
_fpcmp_parts_df _compare_df _eq_df _ne_df _gt_df _ge_df \
|
|
|
|
|
_lt_df _le_df _si_to_df _df_to_si _negate_df _make_df \
|
|
|
|
|
_df_to_sf
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# The files that "belong" in CONFIG_H are deliberately omitted
|
|
|
|
|
# because having them there would not be useful in actual practice.
|
|
|
|
|
# All they would do is cause complete recompilation every time
|
|
|
|
|
# one of the machine description files is edited.
|
|
|
|
|
# That may or may not be what one wants to do.
|
|
|
|
|
# If it is, rm *.o is an easy way to do it.
|
(out_file, md_file, tm_file, {build,host}_xm_file):
New symbols, to be overridden by configure.
(insn-*): Use $(md_file), not md.
(aux-output.o): Use $(out_file), not aux-output.c.
($(MD_FILE)): Rework to use new conventions.
(gen*.o, bi-*.o): Depend on $(build_xm_file), not hconfig.h.
(scan.o, fix-header.o, scan-decls.o): Likewise.
(distclean): Adjust files removed for new convention.
From jason@cygnus.com:
(STAGESTUFF): Add underscore.c.
(underscore.c): Rename temporary files to begin with 'tmp-' so that they will
be removed by 'make mostlyclean'.
From-SVN: r9608
1995-05-10 08:26:52 -04:00
|
|
|
|
# CONFIG_H = $(host_xm_file) $(tm_file)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
CONFIG_H =
|
configure.in (host_xm_file, [...]): Arrange to include gansidecl.h in {ht}config.h & tm.h just before the config/...
* configure.in (host_xm_file, build_xm_file, xm_file, tm_file):
Arrange to include gansidecl.h in {ht}config.h & tm.h just
before the config/ directory headers.
(tm_file_list, host_xm_file_list, build_xm_file_list): Handle
gansidecl.h in the list of dependencies.
* Makefile.in (RTL_BASE_H): Don't depend on gansidecl.h.
(TREE_H, DEMANGLE_H, RECOG_H, REGS_H, libgcc2.a, stmp-multilib,
mbchar.o, collect2.o, pexecute.o, vfprintf.o, splay-tree.o, gcc.o,
gencheck.o, choose-temp.o, mkstemp.o, mkstemp.o, prefix.o,
dyn-string.o, cexp.o, cccp.o, cppmain.o, cpplib.o, cpperror.o,
cppexp.o, cppfiles.o, cpphash.o, cppalloc.o, scan-decls.o):
Likewise.
* cccp.c: Don't include gansidecl.h.
* cexp.y: Likewise.
* collect2.c: Likewise.
* config/c4x/c4x.c: Likewise.
* config/v850/v850.h: Likewise.
* cppalloc.c: Likewise.
* cpperror.c: Likewise.
* cppexp.c: Likewise.
* cppfiles.c: Likewise.
* cpphash.c: Likewise.
* cpplib.c: Likewise.
* cppmain.c: Likewise.
* cppulp.c: Likewise.
* demangle.h: Likewise.
* doprint.c: Likewise.
* dyn-string.c: Likewise.
* eh-common.h: Likewise.
* fix-header.c: Likewise.
* frame.c: Likewise.
* gcc.c: Likewise.
* gcov.c: Likewise.
* gen-protos.c: Likewise.
* gencheck.c: Likewise.
* halfpic.h: Likewise.
* hash.c: Likewise.
* machmode.h: Likewise.
* mbchar.c: Likewise.
* prefix.c: Likewise.
* protoize.c: Likewise.
* recog.h: Likewise.
* rtl.h: Likewise.
* scan-decls.c: Likewise.
* tree.h: Likewise.
* varray.h: Likewise.
From-SVN: r23558
1998-11-07 08:00:46 -05:00
|
|
|
|
RTL_BASE_H = rtl.h rtl.def machmode.h machmode.def
|
1998-01-08 16:17:05 -05:00
|
|
|
|
RTL_H = $(RTL_BASE_H) genrtl.h
|
configure.in (host_xm_file, [...]): Arrange to include gansidecl.h in {ht}config.h & tm.h just before the config/...
* configure.in (host_xm_file, build_xm_file, xm_file, tm_file):
Arrange to include gansidecl.h in {ht}config.h & tm.h just
before the config/ directory headers.
(tm_file_list, host_xm_file_list, build_xm_file_list): Handle
gansidecl.h in the list of dependencies.
* Makefile.in (RTL_BASE_H): Don't depend on gansidecl.h.
(TREE_H, DEMANGLE_H, RECOG_H, REGS_H, libgcc2.a, stmp-multilib,
mbchar.o, collect2.o, pexecute.o, vfprintf.o, splay-tree.o, gcc.o,
gencheck.o, choose-temp.o, mkstemp.o, mkstemp.o, prefix.o,
dyn-string.o, cexp.o, cccp.o, cppmain.o, cpplib.o, cpperror.o,
cppexp.o, cppfiles.o, cpphash.o, cppalloc.o, scan-decls.o):
Likewise.
* cccp.c: Don't include gansidecl.h.
* cexp.y: Likewise.
* collect2.c: Likewise.
* config/c4x/c4x.c: Likewise.
* config/v850/v850.h: Likewise.
* cppalloc.c: Likewise.
* cpperror.c: Likewise.
* cppexp.c: Likewise.
* cppfiles.c: Likewise.
* cpphash.c: Likewise.
* cpplib.c: Likewise.
* cppmain.c: Likewise.
* cppulp.c: Likewise.
* demangle.h: Likewise.
* doprint.c: Likewise.
* dyn-string.c: Likewise.
* eh-common.h: Likewise.
* fix-header.c: Likewise.
* frame.c: Likewise.
* gcc.c: Likewise.
* gcov.c: Likewise.
* gen-protos.c: Likewise.
* gencheck.c: Likewise.
* halfpic.h: Likewise.
* hash.c: Likewise.
* machmode.h: Likewise.
* mbchar.c: Likewise.
* prefix.c: Likewise.
* protoize.c: Likewise.
* recog.h: Likewise.
* rtl.h: Likewise.
* scan-decls.c: Likewise.
* tree.h: Likewise.
* varray.h: Likewise.
From-SVN: r23558
1998-11-07 08:00:46 -05:00
|
|
|
|
TREE_H = tree.h real.h tree.def machmode.h machmode.def tree-check.h
|
1999-01-11 19:07:36 -05:00
|
|
|
|
BASIC_BLOCK_H = basic-block.h bitmap.h sbitmap.h
|
1998-12-08 08:34:37 -05:00
|
|
|
|
DEMANGLE_H = $(srcdir)/../include/demangle.h
|
configure.in (host_xm_file, [...]): Arrange to include gansidecl.h in {ht}config.h & tm.h just before the config/...
* configure.in (host_xm_file, build_xm_file, xm_file, tm_file):
Arrange to include gansidecl.h in {ht}config.h & tm.h just
before the config/ directory headers.
(tm_file_list, host_xm_file_list, build_xm_file_list): Handle
gansidecl.h in the list of dependencies.
* Makefile.in (RTL_BASE_H): Don't depend on gansidecl.h.
(TREE_H, DEMANGLE_H, RECOG_H, REGS_H, libgcc2.a, stmp-multilib,
mbchar.o, collect2.o, pexecute.o, vfprintf.o, splay-tree.o, gcc.o,
gencheck.o, choose-temp.o, mkstemp.o, mkstemp.o, prefix.o,
dyn-string.o, cexp.o, cccp.o, cppmain.o, cpplib.o, cpperror.o,
cppexp.o, cppfiles.o, cpphash.o, cppalloc.o, scan-decls.o):
Likewise.
* cccp.c: Don't include gansidecl.h.
* cexp.y: Likewise.
* collect2.c: Likewise.
* config/c4x/c4x.c: Likewise.
* config/v850/v850.h: Likewise.
* cppalloc.c: Likewise.
* cpperror.c: Likewise.
* cppexp.c: Likewise.
* cppfiles.c: Likewise.
* cpphash.c: Likewise.
* cpplib.c: Likewise.
* cppmain.c: Likewise.
* cppulp.c: Likewise.
* demangle.h: Likewise.
* doprint.c: Likewise.
* dyn-string.c: Likewise.
* eh-common.h: Likewise.
* fix-header.c: Likewise.
* frame.c: Likewise.
* gcc.c: Likewise.
* gcov.c: Likewise.
* gen-protos.c: Likewise.
* gencheck.c: Likewise.
* halfpic.h: Likewise.
* hash.c: Likewise.
* machmode.h: Likewise.
* mbchar.c: Likewise.
* prefix.c: Likewise.
* protoize.c: Likewise.
* recog.h: Likewise.
* rtl.h: Likewise.
* scan-decls.c: Likewise.
* tree.h: Likewise.
* varray.h: Likewise.
From-SVN: r23558
1998-11-07 08:00:46 -05:00
|
|
|
|
RECOG_H = recog.h
|
1998-06-27 00:42:25 -04:00
|
|
|
|
EXPR_H = expr.h insn-codes.h
|
configure.in (host_xm_file, [...]): Arrange to include gansidecl.h in {ht}config.h & tm.h just before the config/...
* configure.in (host_xm_file, build_xm_file, xm_file, tm_file):
Arrange to include gansidecl.h in {ht}config.h & tm.h just
before the config/ directory headers.
(tm_file_list, host_xm_file_list, build_xm_file_list): Handle
gansidecl.h in the list of dependencies.
* Makefile.in (RTL_BASE_H): Don't depend on gansidecl.h.
(TREE_H, DEMANGLE_H, RECOG_H, REGS_H, libgcc2.a, stmp-multilib,
mbchar.o, collect2.o, pexecute.o, vfprintf.o, splay-tree.o, gcc.o,
gencheck.o, choose-temp.o, mkstemp.o, mkstemp.o, prefix.o,
dyn-string.o, cexp.o, cccp.o, cppmain.o, cpplib.o, cpperror.o,
cppexp.o, cppfiles.o, cpphash.o, cppalloc.o, scan-decls.o):
Likewise.
* cccp.c: Don't include gansidecl.h.
* cexp.y: Likewise.
* collect2.c: Likewise.
* config/c4x/c4x.c: Likewise.
* config/v850/v850.h: Likewise.
* cppalloc.c: Likewise.
* cpperror.c: Likewise.
* cppexp.c: Likewise.
* cppfiles.c: Likewise.
* cpphash.c: Likewise.
* cpplib.c: Likewise.
* cppmain.c: Likewise.
* cppulp.c: Likewise.
* demangle.h: Likewise.
* doprint.c: Likewise.
* dyn-string.c: Likewise.
* eh-common.h: Likewise.
* fix-header.c: Likewise.
* frame.c: Likewise.
* gcc.c: Likewise.
* gcov.c: Likewise.
* gen-protos.c: Likewise.
* gencheck.c: Likewise.
* halfpic.h: Likewise.
* hash.c: Likewise.
* machmode.h: Likewise.
* mbchar.c: Likewise.
* prefix.c: Likewise.
* protoize.c: Likewise.
* recog.h: Likewise.
* rtl.h: Likewise.
* scan-decls.c: Likewise.
* tree.h: Likewise.
* varray.h: Likewise.
From-SVN: r23558
1998-11-07 08:00:46 -05:00
|
|
|
|
REGS_H = regs.h varray.h machmode.h machmode.def
|
1997-06-09 15:19:18 -04:00
|
|
|
|
#
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
# Language makefile fragments.
|
|
|
|
|
|
|
|
|
|
# The following targets define the interface between us and the languages.
|
|
|
|
|
#
|
|
|
|
|
# all.build, all.cross, start.encap, rest.encap,
|
|
|
|
|
# info, dvi,
|
|
|
|
|
# install-normal, install-common, install-info, install-man,
|
|
|
|
|
# uninstall, distdir,
|
1995-04-25 18:07:11 -04:00
|
|
|
|
# mostlyclean, clean, distclean, extraclean, maintainer-clean,
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
# stage1, stage2, stage3, stage4
|
|
|
|
|
#
|
|
|
|
|
# Each language is linked in with a series of hooks (since we can't use `::'
|
|
|
|
|
# targets). The name of each hooked is "lang.${target_name}" (eg: lang.info).
|
|
|
|
|
# Configure computes and adds these here.
|
|
|
|
|
|
|
|
|
|
####language hooks
|
1997-05-18 08:31:46 -04:00
|
|
|
|
@language_hooks@
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
|
|
|
|
|
# sed inserts language fragments after the following line.
|
|
|
|
|
####language fragments
|
1997-05-18 08:31:46 -04:00
|
|
|
|
@language_fragments@
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
|
|
|
|
|
# End of language makefile fragments.
|
1997-06-09 15:19:18 -04:00
|
|
|
|
#
|
1998-05-06 15:03:14 -04:00
|
|
|
|
# The only suffixes we want for implicit rules are .c and .o, so clear
|
|
|
|
|
# the list and add them. This speeds up GNU Make, and allows -r to work.
|
|
|
|
|
.SUFFIXES:
|
|
|
|
|
.SUFFIXES: .c .o
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1997-07-21 14:05:29 -04:00
|
|
|
|
Makefile: $(srcdir)/Makefile.in config.status $(srcdir)/version.c \
|
1997-07-22 12:25:19 -04:00
|
|
|
|
$(xmake_file) $(tmake_file) $(LANG_MAKEFILES)
|
|
|
|
|
$(SHELL) $(srcdir)/configure.frag $(srcdir) "$(SUBDIRS)" \
|
|
|
|
|
"$(xmake_file)" "$(tmake_file)"
|
1995-02-21 17:54:50 -05:00
|
|
|
|
cp config.status config.run
|
1998-11-25 20:48:34 -05:00
|
|
|
|
LANGUAGES="$(CONFIG_LANGUAGES)" $(SHELL) config.run
|
1995-02-25 10:18:34 -05:00
|
|
|
|
rm -f config.run
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1997-06-25 15:08:47 -04:00
|
|
|
|
$(srcdir)/configure: $(srcdir)/configure.in
|
1997-05-18 08:31:46 -04:00
|
|
|
|
cd $(srcdir); autoconf
|
|
|
|
|
|
1997-07-19 03:03:46 -04:00
|
|
|
|
# cstamp-h.in controls rebuilding of config.in.
|
1997-07-21 14:05:29 -04:00
|
|
|
|
# It is named cstamp-h.in and not stamp-h.in so the mostlyclean rule doesn't
|
|
|
|
|
# delete it. A stamp file is needed as autoheader won't update the file if
|
|
|
|
|
# nothing has changed.
|
1997-07-19 03:03:46 -04:00
|
|
|
|
# It remains in the source directory and is part of the distribution.
|
|
|
|
|
# This follows what is done in shellutils, fileutils, etc.
|
1997-07-21 14:55:54 -04:00
|
|
|
|
# "echo timestamp" is used instead of touch to be consistent with other
|
|
|
|
|
# packages that use autoconf (??? perhaps also to avoid problems with patch?).
|
1997-07-19 03:03:46 -04:00
|
|
|
|
# ??? Newer versions have a maintainer mode that may be useful here.
|
|
|
|
|
$(srcdir)/config.in: $(srcdir)/cstamp-h.in
|
|
|
|
|
$(srcdir)/cstamp-h.in: $(srcdir)/configure.in $(srcdir)/acconfig.h
|
1997-07-18 22:56:22 -04:00
|
|
|
|
cd $(srcdir) && autoheader
|
1998-05-28 20:00:05 -04:00
|
|
|
|
@rm -f $(srcdir)/cstamp-h.in
|
1997-07-21 14:55:54 -04:00
|
|
|
|
echo timestamp > $(srcdir)/cstamp-h.in
|
1998-04-14 04:32:34 -04:00
|
|
|
|
auto-host.h: cstamp-h ; @true
|
1997-07-19 03:03:46 -04:00
|
|
|
|
cstamp-h: config.in config.status
|
1998-11-25 20:48:34 -05:00
|
|
|
|
CONFIG_HEADERS=auto-host.h:config.in LANGUAGES="$(CONFIG_LANGUAGES)" $(SHELL) config.status
|
1997-07-18 22:49:31 -04:00
|
|
|
|
|
1997-07-21 14:05:29 -04:00
|
|
|
|
# Really, really stupid make features, such as SUN's KEEP_STATE, may force
|
|
|
|
|
# a target to build even if it is up-to-date. So we must verify that
|
|
|
|
|
# config.status does not exist before failing.
|
1997-08-29 11:10:18 -04:00
|
|
|
|
config.status: configure version.c
|
1997-07-21 14:05:29 -04:00
|
|
|
|
@if [ ! -f config.status ] ; then \
|
|
|
|
|
echo You must configure gcc. Look at the INSTALL file for details.; \
|
|
|
|
|
false; \
|
|
|
|
|
else \
|
1998-11-25 20:48:34 -05:00
|
|
|
|
LANGUAGES="$(CONFIG_LANGUAGES)" $(SHELL) config.status --recheck; \
|
1997-07-21 14:05:29 -04:00
|
|
|
|
fi
|
|
|
|
|
|
1999-02-22 03:49:36 -05:00
|
|
|
|
all.internal: start.encap rest.encap doc
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# This is what to compile if making a cross-compiler.
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
# Note that we can compile enquire using the cross-compiler just built,
|
1993-02-26 22:35:40 -05:00
|
|
|
|
# although we can't run it on this machine.
|
1998-05-23 18:41:17 -04:00
|
|
|
|
all.cross: native gcc-cross specs stmp-headers $(STMP_FIXPROTO) $(LIBGCC) \
|
1999-02-22 03:49:36 -05:00
|
|
|
|
$(LIBGCC1_TEST) $(EXTRA_PARTS) lang.all.cross doc
|
1992-10-18 01:30:48 -04:00
|
|
|
|
# This is what to compile if making gcc with a cross-compiler.
|
1999-03-26 17:55:35 -05:00
|
|
|
|
all.build: native xgcc$(exeext) xcpp$(exeext) $(EXTRA_PARTS) lang.all.build
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# This is what must be made before installing GCC and converting libraries.
|
1999-03-26 17:55:35 -05:00
|
|
|
|
start.encap: native xgcc$(exeext) xcpp$(exeext) specs $(LIBGCC1) \
|
|
|
|
|
xlimits.h lang.start.encap
|
1994-04-01 01:19:45 -05:00
|
|
|
|
# These can't be made until after GCC can run.
|
1998-05-23 18:41:17 -04:00
|
|
|
|
rest.encap: stmp-headers $(STMP_FIXPROTO) $(LIBGCC) $(EXTRA_PARTS) lang.rest.encap
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# This is what is made with the host's compiler
|
|
|
|
|
# whether making a cross compiler or not.
|
1999-01-26 20:43:17 -05:00
|
|
|
|
native: config.status auto-host.h cpp$(exeext) intl.all $(LANGUAGES) \
|
1997-07-25 15:26:32 -04:00
|
|
|
|
$(EXTRA_PASSES) $(EXTRA_PROGRAMS) $(USE_COLLECT2)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# Define the names for selecting languages in LANGUAGES.
|
1998-03-21 18:47:27 -05:00
|
|
|
|
C c: cc1$(exeext)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
PROTO: proto
|
|
|
|
|
|
1994-12-19 17:49:45 -05:00
|
|
|
|
# Tell GNU make these are phony targets.
|
(LANGUAGES, COMPILERS, .PHONY, stmp-int-hdrs): Remove specific references to ObjC compiler and source files.
(LANGUAGES, COMPILERS, .PHONY, stmp-int-hdrs): Remove specific references to
ObjC compiler and source files.
({mostly,dist,maintainer,}clean, install-normal): Likewise
(OBJC_OBJS, OBJC, OBJECTIVE-C, cc1obj, objc-runtime): Rules deleted.
(libobjc.a, sublibobjc.a, objc-parse.{o, c, y}): Rules deleted.
(objc-headers, install-libobjc): Rules deleted.
From-SVN: r14281
1997-06-21 20:41:52 -04:00
|
|
|
|
.PHONY: C c PROTO proto
|
1994-12-19 17:49:45 -05:00
|
|
|
|
|
1992-05-27 18:11:24 -04:00
|
|
|
|
# On the target machine, finish building a cross compiler.
|
|
|
|
|
# This does the things that can't be done on the host machine.
|
1999-03-01 14:15:49 -05:00
|
|
|
|
rest.cross: $(LIBGCC) specs
|
1992-05-27 18:11:24 -04:00
|
|
|
|
|
1995-03-15 18:44:51 -05:00
|
|
|
|
# Verify that it works to compile and link libgcc1-test.
|
1992-05-21 13:39:30 -04:00
|
|
|
|
# If it does, then there are sufficient replacements for libgcc1.a.
|
1995-03-15 18:44:51 -05:00
|
|
|
|
libgcc1-test: libgcc1-test.o native $(GCC_PARTS)
|
1995-05-10 14:22:00 -04:00
|
|
|
|
@echo "Testing libgcc1. Ignore linker warning messages."
|
1995-03-15 18:44:51 -05:00
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) libgcc1-test.o -o libgcc1-test \
|
1996-03-25 17:57:48 -05:00
|
|
|
|
-nostartfiles -nostdlib `$(GCC_FOR_TARGET) --print-libgcc-file-name`
|
1998-03-21 18:47:27 -05:00
|
|
|
|
libgcc1-test.o: libgcc1-test.c native xgcc$(exeext)
|
1995-03-15 18:44:51 -05:00
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) -c $(srcdir)/libgcc1-test.c
|
1992-05-21 13:39:30 -04:00
|
|
|
|
|
1992-05-27 18:11:24 -04:00
|
|
|
|
# Recompile all the language-independent object files.
|
|
|
|
|
# This is used only if the user explicitly asks for it.
|
1992-02-03 17:08:59 -05:00
|
|
|
|
compilations: ${OBJS}
|
|
|
|
|
|
1994-04-29 01:01:27 -04:00
|
|
|
|
# Create a list of the language-independent object files so the language
|
|
|
|
|
# subdirectories needn't mention their names explicitly.
|
1998-01-20 03:55:07 -05:00
|
|
|
|
stamp-objlist: $(OBJS)
|
|
|
|
|
echo " $(OBJS)" | sed -e 's, \([a-z0-9]\), ../\1,g' -e 's/\.o/$(objext)/g' >stamp-objlist
|
1994-04-29 01:01:27 -04:00
|
|
|
|
|
1992-06-23 22:36:02 -04:00
|
|
|
|
# We call this executable `xgcc' rather than `gcc'
|
|
|
|
|
# to avoid confusion if the current directory is in the path
|
|
|
|
|
# and CC is `gcc'. It is renamed to `gcc' when it is installed.
|
1999-03-25 18:36:47 -05:00
|
|
|
|
xgcc$(exeext): gcc.o gccspec.o version.o intl.o prefix.o \
|
1999-02-08 09:17:04 -05:00
|
|
|
|
version.o $(LIBDEPS) $(EXTRA_GCC_OBJS)
|
1999-03-25 18:36:47 -05:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gcc.o gccspec.o intl.o \
|
|
|
|
|
prefix.o version.o $(EXTRA_GCC_OBJS) $(LIBS)
|
1992-05-27 18:11:24 -04:00
|
|
|
|
|
1999-03-26 17:55:35 -05:00
|
|
|
|
# We call this executable `xcpp' rather than `cpp'
|
|
|
|
|
# since the real preprocessor is named `cpp'. It too is renamed
|
|
|
|
|
# when it is installed.
|
|
|
|
|
# The only difference from xgcc is that it's linked with cppspec.o
|
|
|
|
|
# instead of gccspec.o.
|
|
|
|
|
xcpp$(exeext): gcc.o cppspec.o version.o intl.o prefix.o \
|
|
|
|
|
version.o $(LIBDEPS) $(EXTRA_GCC_OBJS)
|
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gcc.o cppspec.o intl.o \
|
|
|
|
|
prefix.o version.o $(EXTRA_GCC_OBJS) $(LIBS)
|
|
|
|
|
|
1992-05-27 18:11:24 -04:00
|
|
|
|
# Dump a specs file to make -B./ read these specs over installed ones.
|
1998-03-21 18:47:27 -05:00
|
|
|
|
specs: xgcc$(exeext)
|
1994-11-15 19:17:27 -05:00
|
|
|
|
$(GCC_FOR_TARGET) -dumpspecs > tmp-specs
|
|
|
|
|
mv tmp-specs specs
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1992-06-23 22:36:02 -04:00
|
|
|
|
# We do want to create an executable named `xgcc', so we can use it to
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# compile libgcc2.a.
|
|
|
|
|
# Also create gcc-cross, so that install-common will install properly.
|
1998-03-21 18:47:27 -05:00
|
|
|
|
gcc-cross: xgcc$(exeext)
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
cp xgcc$(exeext) gcc-cross$(exeext)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1998-10-28 17:31:06 -05:00
|
|
|
|
cc1$(exeext): $(P) $(OBJS) $(C_OBJS) $(LIBDEPS)
|
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(C_OBJS) $(LIBS)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1992-09-04 00:40:25 -04:00
|
|
|
|
# Build the version of limits.h that we will install.
|
|
|
|
|
xlimits.h: glimits.h limitx.h limity.h
|
1994-12-22 12:16:22 -05:00
|
|
|
|
if $(LIMITS_H_TEST) ; then \
|
1994-11-15 19:17:27 -05:00
|
|
|
|
cat $(srcdir)/limitx.h $(srcdir)/glimits.h $(srcdir)/limity.h > tmp-xlimits.h; \
|
1992-09-04 00:40:25 -04:00
|
|
|
|
else \
|
1994-11-15 19:17:27 -05:00
|
|
|
|
cat $(srcdir)/glimits.h > tmp-xlimits.h; \
|
1992-09-04 00:40:25 -04:00
|
|
|
|
fi
|
1994-11-15 19:17:27 -05:00
|
|
|
|
mv tmp-xlimits.h xlimits.h
|
1997-06-09 15:19:18 -04:00
|
|
|
|
#
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Build libgcc.a.
|
|
|
|
|
# This is done in two parts because some functions, in libgcc1.c,
|
1992-06-23 22:36:02 -04:00
|
|
|
|
# must be compiled with something other than GCC,
|
|
|
|
|
# while the rest, in libgcc2.c, must be compiled with xgcc.
|
|
|
|
|
# That means we can't do libgcc2.c until after xgcc, cc1, etc.
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# Use this as value of LIBGCC1 to cause conversion to GNU library format.
|
|
|
|
|
# LIBCONVERT should put its output in libgcc1.conv.
|
|
|
|
|
libgcc1.conv: libgcc1.a
|
|
|
|
|
$(LIBCONVERT) libgcc1.a libgcc1.conv
|
|
|
|
|
|
|
|
|
|
# Use this as value of LIBGCC1 to inhibit use of libgcc1.c entirely.
|
|
|
|
|
# Make an empty file instead.
|
1993-01-13 17:37:01 -05:00
|
|
|
|
libgcc1.null: $(GCC_PASSES)
|
1998-03-28 18:43:54 -05:00
|
|
|
|
echo "void __foo () {}" > dummy.c
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) -c dummy.c
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) libgcc1.null dummy$(objext)
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
rm -f dummy$(objext) dummy.c
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1992-07-05 18:57:06 -04:00
|
|
|
|
# This is $(LIBGCC1) for a cross-compiler.
|
|
|
|
|
# We have no automatic way of building libgcc1.a,
|
|
|
|
|
# so it's up to the installer to find a way to do that.
|
|
|
|
|
# This rule deliberately does not depend on libgcc1.a
|
|
|
|
|
# so that it will fail if the installer hasn't provided it.
|
|
|
|
|
libgcc1.cross:
|
|
|
|
|
mv libgcc1.a libgcc1.cross || (echo You must find a way to make libgcc1.a; false)
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Compile the library of arithmetic subroutines with the native compiler.
|
1992-06-23 22:36:02 -04:00
|
|
|
|
# Don't compile it with GCC!
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# (That would cause most arithmetic functions to call themselves.)
|
1996-01-15 20:56:34 -05:00
|
|
|
|
#
|
|
|
|
|
# NOTE: If you modify these rules substantially, please be sure to
|
|
|
|
|
# check at least config/i386/t-sco5 and possibly other makefile
|
|
|
|
|
# fragments.
|
1992-02-03 17:08:59 -05:00
|
|
|
|
libgcc1.a: libgcc1.c $(CONFIG_H) $(LIB1FUNCS_EXTRA) config.status
|
|
|
|
|
-rm -f tmplibgcc1.a
|
|
|
|
|
# Actually build it in tmplibgcc1.a, then rename at end,
|
|
|
|
|
# so that libgcc1.a itself remains nonexistent if compilation is aborted.
|
|
|
|
|
# -e causes any failing command to make this rule fail.
|
|
|
|
|
# -e doesn't work in certain shells, so we test $$? as well.
|
1993-08-31 17:06:04 -04:00
|
|
|
|
# lynx has a broken ar, it always complains when the initial library is
|
|
|
|
|
# empty, thus this command works only if we don't do -e
|
|
|
|
|
# There is a trailing backslash (\) deleted from the following line.
|
|
|
|
|
# set -e;
|
1992-02-03 17:08:59 -05:00
|
|
|
|
for name in $(LIB1FUNCS); \
|
|
|
|
|
do \
|
|
|
|
|
echo $${name}; \
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
rm -f $${name}$(objext); \
|
1996-01-15 20:56:34 -05:00
|
|
|
|
$(OLDCC) -DIN_LIBGCC1 $(CCLIBFLAGS) $(INCLUDES) -c -DL$${name} $(srcdir)/libgcc1.c; \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
mv libgcc1$(objext) $${name}$(objext); \
|
|
|
|
|
$(OLDAR) $(OLDAR_FLAGS) tmplibgcc1.a $${name}$(objext); \
|
|
|
|
|
rm -f $${name}$(objext); \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
done
|
|
|
|
|
# Some shells crash when a loop has no items.
|
|
|
|
|
# So make sure there is always at least one--`..'.
|
|
|
|
|
# Then ignore it.
|
|
|
|
|
# We don't use -e here because there are if statements
|
|
|
|
|
# that should not make the command give up when the if condition is false.
|
|
|
|
|
# Instead, we test for failure after each command where it matters.
|
1994-05-06 11:31:51 -04:00
|
|
|
|
for file in .. $(LIB1FUNCS_EXTRA); \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
do \
|
|
|
|
|
if [ x$${file} != x.. ]; then \
|
1995-10-19 18:41:23 -04:00
|
|
|
|
name=`echo $${file} | sed -e 's/[.][cS]$$//' -e 's/[.]asm$$//'`; \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
echo $${name}; \
|
|
|
|
|
if [ $${name}.asm = $${file} ]; then \
|
1992-10-31 16:00:49 -05:00
|
|
|
|
cp $${file} $${name}.s || exit 1; file=$${name}.s; \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
else true; fi; \
|
1996-01-15 20:56:34 -05:00
|
|
|
|
$(OLDCC) -DIN_LIBGCC1 $(CCLIBFLAGS) $(INCLUDES) -c $${file}; \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
$(OLDAR) $(OLDAR_FLAGS) tmplibgcc1.a $${name}$(objext); \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
rm -f $${name}.s $${name}$(objext); \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
else true; \
|
|
|
|
|
fi; \
|
|
|
|
|
done
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
-if $(RANLIB_TEST_FOR_TARGET) ; then \
|
|
|
|
|
$(RANLIB_FOR_TARGET) tmplibgcc1.a; \
|
|
|
|
|
else true; fi
|
1992-02-03 17:08:59 -05:00
|
|
|
|
mv tmplibgcc1.a libgcc1.a
|
|
|
|
|
|
1994-07-11 18:36:14 -04:00
|
|
|
|
# Build libgcc1.a from assembler source. LIB1ASMFUNCS is the list of
|
|
|
|
|
# functions. LIB1ASMSRC is the name of the source file in the config
|
|
|
|
|
# subdirectory.
|
|
|
|
|
libgcc1-asm.a: libgcc2.ready config.status $(srcdir)/config/$(LIB1ASMSRC)
|
|
|
|
|
-rm -f tmplibgcc1.a libgcc1.S
|
|
|
|
|
cp $(srcdir)/config/$(LIB1ASMSRC) libgcc1.S
|
|
|
|
|
# Actually build it in tmplibgcc1.a, then rename at end,
|
|
|
|
|
# so that libgcc1-asm.a itself remains nonexistent if compilation is aborted.
|
|
|
|
|
# -e causes any failing command to make this rule fail.
|
|
|
|
|
# -e doesn't work in certain shells, so we test $$? as well.
|
|
|
|
|
# lynx has a broken ar, it always complains when the initial library is
|
|
|
|
|
# empty, thus this command works only if we don't do -e
|
|
|
|
|
# There is a trailing backslash (\) deleted from the following line.
|
|
|
|
|
# set -e;
|
|
|
|
|
for name in $(LIB1ASMFUNCS); \
|
|
|
|
|
do \
|
|
|
|
|
echo $${name}; \
|
|
|
|
|
$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) -c -DL$${name} libgcc1.S; \
|
|
|
|
|
if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
mv libgcc1$(objext) $${name}$(objext); \
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) tmplibgcc1.a $${name}$(objext); \
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
rm -f $${name}$(objext); \
|
1994-07-11 18:36:14 -04:00
|
|
|
|
done
|
|
|
|
|
-rm -f libgcc1.S
|
|
|
|
|
mv tmplibgcc1.a libgcc1-asm.a
|
|
|
|
|
|
1995-02-13 17:14:59 -05:00
|
|
|
|
# Generate assembly versions of the functions required for libgcc1.
|
|
|
|
|
# You'll still need to massage the code by hand (possibly hacking
|
|
|
|
|
# underscores and local labels) but this will get you started.
|
|
|
|
|
libgcc1.S: libgcc1.c $(CONFIG_H) config.status
|
|
|
|
|
-rm -f libgcc1.S
|
|
|
|
|
touch libgcc1.S
|
|
|
|
|
for name in $(LIB1FUNCS); \
|
|
|
|
|
do \
|
|
|
|
|
echo $${name}; \
|
1996-01-15 20:56:34 -05:00
|
|
|
|
$(OLDCC) -DIN_LIBGCC1 $(CCLIBFLAGS) $(INCLUDES) -S -DL$${name} $(srcdir)/libgcc1.c; \
|
1995-02-13 17:14:59 -05:00
|
|
|
|
if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
|
|
|
|
|
echo '#ifdef ' L$${name} >> libgcc1.S; \
|
|
|
|
|
cat libgcc1.s >> libgcc1.S; \
|
|
|
|
|
echo '#endif /*' L$${name} '*/' >> libgcc1.S; \
|
|
|
|
|
echo "" >> libgcc1.S; \
|
|
|
|
|
done
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Compiling libgcc2.a requires making sure that cc1, etc. have been compiled.
|
|
|
|
|
# But recompiling cc1 should not force recompilation of libgcc2.a.
|
|
|
|
|
# If you want to force recompilation, delete libgcc2.a.
|
1998-05-23 20:44:00 -04:00
|
|
|
|
libgcc2.ready: $(GCC_PASSES) $(LIBGCC2_DEPS) stmp-int-hdrs $(STMP_FIXPROTO)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-if [ -f libgcc2.ready ] ; then \
|
|
|
|
|
true; \
|
|
|
|
|
else \
|
|
|
|
|
touch libgcc2.ready; \
|
|
|
|
|
fi
|
|
|
|
|
|
1997-09-15 22:07:50 -04:00
|
|
|
|
LIB2ADD = $(srcdir)/frame.c $(LIB2FUNCS_EXTRA) $(LANG_LIB2FUNCS)
|
1997-12-21 08:45:20 -05:00
|
|
|
|
libgcc2.a: libgcc2.c libgcc2.ready $(CONFIG_H) $(FPBIT) $(DPBIT) $(LIB2ADD) \
|
configure.in (host_xm_file, [...]): Arrange to include gansidecl.h in {ht}config.h & tm.h just before the config/...
* configure.in (host_xm_file, build_xm_file, xm_file, tm_file):
Arrange to include gansidecl.h in {ht}config.h & tm.h just
before the config/ directory headers.
(tm_file_list, host_xm_file_list, build_xm_file_list): Handle
gansidecl.h in the list of dependencies.
* Makefile.in (RTL_BASE_H): Don't depend on gansidecl.h.
(TREE_H, DEMANGLE_H, RECOG_H, REGS_H, libgcc2.a, stmp-multilib,
mbchar.o, collect2.o, pexecute.o, vfprintf.o, splay-tree.o, gcc.o,
gencheck.o, choose-temp.o, mkstemp.o, mkstemp.o, prefix.o,
dyn-string.o, cexp.o, cccp.o, cppmain.o, cpplib.o, cpperror.o,
cppexp.o, cppfiles.o, cpphash.o, cppalloc.o, scan-decls.o):
Likewise.
* cccp.c: Don't include gansidecl.h.
* cexp.y: Likewise.
* collect2.c: Likewise.
* config/c4x/c4x.c: Likewise.
* config/v850/v850.h: Likewise.
* cppalloc.c: Likewise.
* cpperror.c: Likewise.
* cppexp.c: Likewise.
* cppfiles.c: Likewise.
* cpphash.c: Likewise.
* cpplib.c: Likewise.
* cppmain.c: Likewise.
* cppulp.c: Likewise.
* demangle.h: Likewise.
* doprint.c: Likewise.
* dyn-string.c: Likewise.
* eh-common.h: Likewise.
* fix-header.c: Likewise.
* frame.c: Likewise.
* gcc.c: Likewise.
* gcov.c: Likewise.
* gen-protos.c: Likewise.
* gencheck.c: Likewise.
* halfpic.h: Likewise.
* hash.c: Likewise.
* machmode.h: Likewise.
* mbchar.c: Likewise.
* prefix.c: Likewise.
* protoize.c: Likewise.
* recog.h: Likewise.
* rtl.h: Likewise.
* scan-decls.c: Likewise.
* tree.h: Likewise.
* varray.h: Likewise.
From-SVN: r23558
1998-11-07 08:00:46 -05:00
|
|
|
|
machmode.h longlong.h frame.h gbl-ctors.h config.status
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Actually build it in tmplibgcc2.a, then rename at end,
|
|
|
|
|
# so that libgcc2.a itself remains nonexistent if compilation is aborted.
|
|
|
|
|
-rm -f tmplibgcc2.a
|
|
|
|
|
# -e causes any failing command to make this rule fail.
|
|
|
|
|
# -e doesn't work in certain shells, so we test $$? as well.
|
1993-08-31 17:06:04 -04:00
|
|
|
|
# lynx has a broken ar, it always complains when the initial library is
|
|
|
|
|
# empty, thus this command works only if we don't do -e
|
|
|
|
|
# There is a trailing backslash (\) deleted from the following line.
|
|
|
|
|
# set -e;
|
1992-02-03 17:08:59 -05:00
|
|
|
|
for name in $(LIB2FUNCS); \
|
|
|
|
|
do \
|
|
|
|
|
echo $${name}; \
|
1992-03-20 17:22:14 -05:00
|
|
|
|
$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) -c -DL$${name} \
|
1999-06-10 23:12:22 -04:00
|
|
|
|
$(MAYBE_USE_COLLECT2) $(srcdir)/libgcc2.c -o $${name}$(objext); \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) tmplibgcc2.a $${name}$(objext); \
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
rm -f $${name}$(objext); \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
done
|
1998-06-09 06:34:59 -04:00
|
|
|
|
for name in $(LIB2FUNCS_EH); \
|
|
|
|
|
do \
|
|
|
|
|
echo $${name}; \
|
|
|
|
|
$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -fexceptions $(INCLUDES) -c \
|
|
|
|
|
-DL$${name} $(srcdir)/libgcc2.c -o $${name}$(objext); \
|
|
|
|
|
if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) tmplibgcc2.a $${name}$(objext); \
|
1998-06-09 06:34:59 -04:00
|
|
|
|
rm -f $${name}$(objext); \
|
|
|
|
|
done
|
1997-12-21 08:45:20 -05:00
|
|
|
|
if [ x$(FPBIT) != x ]; then \
|
|
|
|
|
for name in $(FPBIT_FUNCS); \
|
|
|
|
|
do \
|
|
|
|
|
echo $${name}; \
|
|
|
|
|
$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) -c -DL$${name} \
|
|
|
|
|
-DFINE_GRAINED_LIBRARIES $(FPBIT) -o $${name}$(objext); \
|
|
|
|
|
if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) tmplibgcc2.a $${name}$(objext); \
|
1997-12-21 08:45:20 -05:00
|
|
|
|
rm -f $${name}$(objext); \
|
|
|
|
|
done; \
|
|
|
|
|
else true; fi;
|
|
|
|
|
if [ x$(DPBIT) != x ]; then \
|
|
|
|
|
for name in $(DPBIT_FUNCS); \
|
|
|
|
|
do \
|
|
|
|
|
echo $${name}; \
|
|
|
|
|
$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) -c -DL$${name} \
|
|
|
|
|
-DFINE_GRAINED_LIBRARIES $(DPBIT) -o $${name}$(objext); \
|
|
|
|
|
if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) tmplibgcc2.a $${name}$(objext); \
|
1997-12-21 08:45:20 -05:00
|
|
|
|
rm -f $${name}$(objext); \
|
|
|
|
|
done; \
|
|
|
|
|
else true; fi;
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Some shells crash when a loop has no items.
|
|
|
|
|
# So make sure there is always at least one--`..'.
|
|
|
|
|
# Then ignore it.
|
|
|
|
|
# We don't use -e here because there are if statements
|
|
|
|
|
# that should not make the command give up when the if condition is false.
|
|
|
|
|
# Instead, we test for failure after each command where it matters.
|
1997-09-15 22:07:50 -04:00
|
|
|
|
for file in $(LIB2ADD); do \
|
|
|
|
|
name=`echo $${file} | sed -e 's/[.][cSo]$$//' -e 's/[.]asm$$//' -e 's/[.]txt$$//'`; \
|
|
|
|
|
oname=` echo $${name} | sed -e 's,.*/,,'`; \
|
|
|
|
|
if [ $${name}.txt = $${file} ]; then \
|
|
|
|
|
for f in .. `cat $${file}`; do if [ x$${f} != x.. ]; then \
|
|
|
|
|
$(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
AR_FOR_TARGET="$(AR_FOR_TARGET)" \
|
|
|
|
|
AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" CC="$(CC)" \
|
1997-09-15 22:07:50 -04:00
|
|
|
|
CFLAGS="$(CFLAGS)" HOST_PREFIX="$(HOST_PREFIX)" \
|
|
|
|
|
HOST_PREFIX_1="$(HOST_PREFIX_1)" \
|
|
|
|
|
LANGUAGES="$(LANGUAGES)" \
|
|
|
|
|
LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" $${f}; \
|
1996-09-22 08:25:52 -04:00
|
|
|
|
if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) tmplibgcc2.a $${f}; \
|
1997-09-15 22:07:50 -04:00
|
|
|
|
rm -f $${f}; \
|
|
|
|
|
else true; \
|
|
|
|
|
fi; done; \
|
|
|
|
|
else \
|
|
|
|
|
echo $${name}; \
|
|
|
|
|
if [ $${name}.asm = $${file} ]; then \
|
|
|
|
|
cp $${file} $${name}.s || exit 1; file=$${name}.s; \
|
|
|
|
|
else true; fi; \
|
|
|
|
|
$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) -c $${file}; \
|
|
|
|
|
if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) tmplibgcc2.a $${oname}$(objext); \
|
1997-09-15 22:07:50 -04:00
|
|
|
|
rm -f $${name}.s $${oname}$(objext); \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
fi; \
|
|
|
|
|
done
|
|
|
|
|
mv tmplibgcc2.a libgcc2.a
|
|
|
|
|
# These lines were deleted from above the mv command
|
|
|
|
|
# because ranlibing libgcc.a itself should suffice.
|
|
|
|
|
# -if [ x${HPUX_GAS} = x ] ; then \
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
# if $(RANLIB_TEST_FOR_TARGET) ; then \
|
|
|
|
|
# $(RANLIB_FOR_TARGET) tmplibgcc2.a;
|
|
|
|
|
# else true; fi; \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# else true; fi
|
|
|
|
|
|
|
|
|
|
# Combine the various libraries into a single library, libgcc.a.
|
|
|
|
|
libgcc.a: $(LIBGCC1) $(LIBGCC2)
|
|
|
|
|
-rm -rf tmplibgcc.a libgcc.a tmpcopy
|
|
|
|
|
mkdir tmpcopy
|
1992-03-20 17:22:14 -05:00
|
|
|
|
-if [ x$(LIBGCC1) != x ]; \
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
then (cd tmpcopy; $(AR_FOR_TARGET) x ../$(LIBGCC1)); \
|
1992-03-20 17:22:14 -05:00
|
|
|
|
else true; \
|
|
|
|
|
fi
|
1993-07-28 14:03:59 -04:00
|
|
|
|
# Some versions of ar (specifically the one in RISC/os 5.x), create an
|
|
|
|
|
# unwritable table of contents file, and then print an error message when
|
|
|
|
|
# the second ar command tries to overwrite this file. To avoid the error
|
|
|
|
|
# message from ar, we make sure all files are writable.
|
1993-12-23 18:12:32 -05:00
|
|
|
|
-(cd tmpcopy; chmod +w * > /dev/null 2>&1)
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
(cd tmpcopy; $(AR_FOR_TARGET) x ../$(LIBGCC2))
|
|
|
|
|
(cd tmpcopy; $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) ../tmplibgcc.a *$(objext))
|
1992-02-03 17:08:59 -05:00
|
|
|
|
rm -rf tmpcopy
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
-if $(RANLIB_TEST_FOR_TARGET) ; then \
|
|
|
|
|
$(RANLIB_FOR_TARGET) tmplibgcc.a; \
|
|
|
|
|
else true; fi
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Actually build it in tmplibgcc.a, then rename at end,
|
|
|
|
|
# so that libgcc.a itself remains nonexistent if compilation is aborted.
|
|
|
|
|
mv tmplibgcc.a libgcc.a
|
|
|
|
|
|
1994-06-15 04:03:05 -04:00
|
|
|
|
# Use the genmultilib shell script to generate the information the gcc
|
|
|
|
|
# driver program needs to select the library directory based on the
|
|
|
|
|
# switches.
|
1998-04-04 08:32:39 -05:00
|
|
|
|
multilib.h: s-mlib; @true
|
|
|
|
|
s-mlib: $(srcdir)/genmultilib Makefile
|
1996-08-12 12:36:42 -04:00
|
|
|
|
$(SHELL) $(srcdir)/genmultilib \
|
|
|
|
|
"$(MULTILIB_OPTIONS)" \
|
|
|
|
|
"$(MULTILIB_DIRNAMES)" \
|
|
|
|
|
"$(MULTILIB_MATCHES)" \
|
|
|
|
|
"$(MULTILIB_EXCEPTIONS)" \
|
|
|
|
|
"$(MULTILIB_EXTRA_OPTS)" > tmp-mlib.h
|
|
|
|
|
$(srcdir)/move-if-change tmp-mlib.h multilib.h
|
1998-04-04 08:32:39 -05:00
|
|
|
|
touch s-mlib
|
1994-06-15 04:03:05 -04:00
|
|
|
|
|
|
|
|
|
# Build multiple copies of libgcc.a, one for each target switch.
|
|
|
|
|
stmp-multilib: $(LIBGCC1) libgcc2.c libgcc2.ready $(CONFIG_H) \
|
configure.in (host_xm_file, [...]): Arrange to include gansidecl.h in {ht}config.h & tm.h just before the config/...
* configure.in (host_xm_file, build_xm_file, xm_file, tm_file):
Arrange to include gansidecl.h in {ht}config.h & tm.h just
before the config/ directory headers.
(tm_file_list, host_xm_file_list, build_xm_file_list): Handle
gansidecl.h in the list of dependencies.
* Makefile.in (RTL_BASE_H): Don't depend on gansidecl.h.
(TREE_H, DEMANGLE_H, RECOG_H, REGS_H, libgcc2.a, stmp-multilib,
mbchar.o, collect2.o, pexecute.o, vfprintf.o, splay-tree.o, gcc.o,
gencheck.o, choose-temp.o, mkstemp.o, mkstemp.o, prefix.o,
dyn-string.o, cexp.o, cccp.o, cppmain.o, cpplib.o, cpperror.o,
cppexp.o, cppfiles.o, cpphash.o, cppalloc.o, scan-decls.o):
Likewise.
* cccp.c: Don't include gansidecl.h.
* cexp.y: Likewise.
* collect2.c: Likewise.
* config/c4x/c4x.c: Likewise.
* config/v850/v850.h: Likewise.
* cppalloc.c: Likewise.
* cpperror.c: Likewise.
* cppexp.c: Likewise.
* cppfiles.c: Likewise.
* cpphash.c: Likewise.
* cpplib.c: Likewise.
* cppmain.c: Likewise.
* cppulp.c: Likewise.
* demangle.h: Likewise.
* doprint.c: Likewise.
* dyn-string.c: Likewise.
* eh-common.h: Likewise.
* fix-header.c: Likewise.
* frame.c: Likewise.
* gcc.c: Likewise.
* gcov.c: Likewise.
* gen-protos.c: Likewise.
* gencheck.c: Likewise.
* halfpic.h: Likewise.
* hash.c: Likewise.
* machmode.h: Likewise.
* mbchar.c: Likewise.
* prefix.c: Likewise.
* protoize.c: Likewise.
* recog.h: Likewise.
* rtl.h: Likewise.
* scan-decls.c: Likewise.
* tree.h: Likewise.
* varray.h: Likewise.
From-SVN: r23558
1998-11-07 08:00:46 -05:00
|
|
|
|
frame.h \
|
1997-09-15 22:07:50 -04:00
|
|
|
|
$(LIB2ADD) machmode.h longlong.h gbl-ctors.h config.status
|
1994-06-15 04:03:05 -04:00
|
|
|
|
for i in `$(GCC_FOR_TARGET) --print-multi-lib`; do \
|
|
|
|
|
dir=`echo $$i | sed -e 's/;.*$$//'`; \
|
|
|
|
|
flags=`echo $$i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
|
|
|
|
|
$(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
AR_FOR_TARGET="$(AR_FOR_TARGET)" \
|
|
|
|
|
AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" \
|
|
|
|
|
CC="$(CC)" CFLAGS="$(CFLAGS)" \
|
|
|
|
|
RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)" \
|
|
|
|
|
RANLIB_TEST_FOR_TARGET="$(RANLIB_TEST_FOR_TARGET)" \
|
1997-08-17 19:48:47 -04:00
|
|
|
|
LANGUAGES="$(LANGUAGES)" \
|
1994-06-15 04:03:05 -04:00
|
|
|
|
HOST_PREFIX="$(HOST_PREFIX)" HOST_PREFIX_1="$(HOST_PREFIX_1)" \
|
1994-07-21 02:07:22 -04:00
|
|
|
|
LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS) $${flags}" \
|
1996-10-29 15:49:42 -05:00
|
|
|
|
MULTILIB_CFLAGS="$${flags}" \
|
1994-07-21 02:07:22 -04:00
|
|
|
|
LIBGCC1="$(LIBGCC1)" LIBGCC2="$(LIBGCC2)" \
|
|
|
|
|
dir="$${dir}" stmp-multilib-sub; \
|
1994-12-19 17:49:45 -05:00
|
|
|
|
if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
|
1994-06-15 04:03:05 -04:00
|
|
|
|
done
|
|
|
|
|
touch stmp-multilib
|
|
|
|
|
|
1994-07-21 02:07:22 -04:00
|
|
|
|
# Subroutine of stmp-multilib so make -n works.
|
|
|
|
|
stmp-multilib-sub:
|
1996-10-29 15:49:42 -05:00
|
|
|
|
rm -f $(LIBGCC2)
|
|
|
|
|
if [ -d $(dir) ]; then \
|
|
|
|
|
cd $(dir); \
|
|
|
|
|
rm -f libgcc.a $(EXTRA_MULTILIB_PARTS); \
|
1997-02-07 12:48:54 -05:00
|
|
|
|
else true; \
|
1996-10-29 15:49:42 -05:00
|
|
|
|
fi
|
1994-07-21 02:07:22 -04:00
|
|
|
|
$(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
AR_FOR_TARGET="$(AR_FOR_TARGET)" \
|
|
|
|
|
AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" \
|
|
|
|
|
CC="$(CC)" CFLAGS="$(CFLAGS)" \
|
1994-07-21 02:07:22 -04:00
|
|
|
|
HOST_PREFIX="$(HOST_PREFIX)" HOST_PREFIX_1="$(HOST_PREFIX_1)" \
|
1997-08-17 19:48:47 -04:00
|
|
|
|
LANGUAGES="$(LANGUAGES)" \
|
1994-07-21 02:07:22 -04:00
|
|
|
|
LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" $(LIBGCC2)
|
|
|
|
|
if [ x$(LIBGCC1) != xlibgcc1-asm.a ]; \
|
|
|
|
|
then true; \
|
|
|
|
|
else rm -f $(LIBGCC1); \
|
|
|
|
|
fi
|
|
|
|
|
if [ x$(LIBGCC1) != xlibgcc1-asm.a ]; \
|
|
|
|
|
then true; \
|
|
|
|
|
else \
|
|
|
|
|
$(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
AR_FOR_TARGET="$(AR_FOR_TARGET)" \
|
|
|
|
|
AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" \
|
|
|
|
|
CC="$(CC)" CFLAGS="$(CFLAGS)" \
|
1994-07-21 02:07:22 -04:00
|
|
|
|
HOST_PREFIX="$(HOST_PREFIX)" HOST_PREFIX_1="$(HOST_PREFIX_1)" \
|
1997-08-17 19:48:47 -04:00
|
|
|
|
LANGUAGES="$(LANGUAGES)" \
|
1994-07-21 02:07:22 -04:00
|
|
|
|
LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" $(LIBGCC1); \
|
|
|
|
|
fi
|
|
|
|
|
rm -rf tmplibgcc.a tmpcopy
|
|
|
|
|
mkdir tmpcopy
|
|
|
|
|
if [ x$(LIBGCC1) != x ]; \
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
then (cd tmpcopy; $(AR_FOR_TARGET) x ../$(LIBGCC1)); \
|
1994-07-21 02:07:22 -04:00
|
|
|
|
else true; \
|
|
|
|
|
fi
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
(cd tmpcopy; $(AR_FOR_TARGET) x ../$(LIBGCC2))
|
|
|
|
|
(cd tmpcopy; $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) ../tmplibgcc.a *$(objext))
|
1994-07-21 02:07:22 -04:00
|
|
|
|
rm -rf libgcc2.a tmpcopy
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
if $(RANLIB_TEST_FOR_TARGET) ; then \
|
|
|
|
|
$(RANLIB_FOR_TARGET) tmplibgcc.a; \
|
|
|
|
|
else true; fi
|
1994-07-21 02:07:22 -04:00
|
|
|
|
if [ -d $(dir) ]; then true; else mkdir $(dir); fi
|
|
|
|
|
mv tmplibgcc.a $(dir)/libgcc.a
|
1996-10-29 15:49:42 -05:00
|
|
|
|
for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
|
|
|
|
|
$(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
AR_FOR_TARGET="$(AR_FOR_TARGET)" \
|
|
|
|
|
AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" \
|
|
|
|
|
CC="$(CC)" CFLAGS="$(CFLAGS)" \
|
1996-10-29 15:49:42 -05:00
|
|
|
|
HOST_PREFIX="$(HOST_PREFIX)" HOST_PREFIX_1="$(HOST_PREFIX_1)" \
|
1997-08-18 16:51:37 -04:00
|
|
|
|
LANGUAGES="$(LANGUAGES)" \
|
1996-10-29 15:49:42 -05:00
|
|
|
|
MULTILIB_CFLAGS="$(MULTILIB_CFLAGS)" T="t" t$${f}; \
|
|
|
|
|
mv t$${f} $(dir)/$${f}; \
|
1997-02-07 12:48:54 -05:00
|
|
|
|
else true; \
|
1996-10-29 15:49:42 -05:00
|
|
|
|
fi; done
|
1994-07-21 02:07:22 -04:00
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Compile two additional files that are linked with every program
|
1995-07-26 08:18:04 -04:00
|
|
|
|
# linked using GCC on systems using COFF or ELF, for the sake of C++
|
|
|
|
|
# constructors.
|
1997-12-06 19:31:01 -05:00
|
|
|
|
$(T)crtbegin.o: crtstuff.c $(GCC_PASSES) $(CONFIG_H) \
|
|
|
|
|
defaults.h frame.h gbl-ctors.h
|
1996-12-09 17:31:23 -05:00
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -g0 \
|
1997-09-15 22:07:50 -04:00
|
|
|
|
-finhibit-size-directive -fno-inline-functions -fno-exceptions $(CRTSTUFF_T_CFLAGS) \
|
1996-12-09 17:31:23 -05:00
|
|
|
|
-c $(srcdir)/crtstuff.c -DCRT_BEGIN -o $(T)crtbegin$(objext)
|
1996-10-29 15:49:42 -05:00
|
|
|
|
|
1997-12-06 19:31:01 -05:00
|
|
|
|
$(T)crtend.o: crtstuff.c $(GCC_PASSES) $(CONFIG_H) \
|
|
|
|
|
defaults.h frame.h gbl-ctors.h
|
1996-12-09 17:31:23 -05:00
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -g0 \
|
1997-09-15 22:07:50 -04:00
|
|
|
|
-finhibit-size-directive -fno-inline-functions -fno-exceptions $(CRTSTUFF_T_CFLAGS) \
|
1996-12-09 17:31:23 -05:00
|
|
|
|
-c $(srcdir)/crtstuff.c -DCRT_END -o $(T)crtend$(objext)
|
1995-07-26 08:18:04 -04:00
|
|
|
|
|
|
|
|
|
# On some systems we also want to install versions of these files
|
|
|
|
|
# compiled using PIC for use in shared libraries.
|
1998-04-04 08:32:39 -05:00
|
|
|
|
crtbeginS.o crtendS.o: s-crtS ; @true
|
1995-07-26 08:18:04 -04:00
|
|
|
|
|
1998-04-04 08:32:39 -05:00
|
|
|
|
s-crtS: crtstuff.c $(GCC_PASSES) $(CONFIG_H) \
|
1997-12-06 19:31:01 -05:00
|
|
|
|
defaults.h frame.h gbl-ctors.h
|
1996-01-15 20:56:34 -05:00
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS_S) \
|
1998-06-21 12:34:31 -04:00
|
|
|
|
-DCRT_BEGIN -DCRTSTUFFS_O -finhibit-size-directive -fno-inline-functions \
|
|
|
|
|
-fno-exceptions -g0 -c $(srcdir)/crtstuff.c
|
1995-07-26 08:18:04 -04:00
|
|
|
|
mv crtstuff$(objext) crtbeginS$(objext)
|
1996-01-15 20:56:34 -05:00
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS_S) \
|
1998-06-21 12:34:31 -04:00
|
|
|
|
-DCRT_END -DCRTSTUFFS_O -finhibit-size-directive -fno-inline-functions \
|
|
|
|
|
-fno-exceptions -g0 -c $(srcdir)/crtstuff.c -o crtendS$(objext)
|
1998-04-04 08:32:39 -05:00
|
|
|
|
touch s-crtS
|
1996-03-04 18:39:06 -05:00
|
|
|
|
|
|
|
|
|
# Compile the start modules crt0.o and mcrt0.o that are linked with every program
|
1998-04-04 08:32:39 -05:00
|
|
|
|
crt0.o: s-crt0 ; @true
|
|
|
|
|
mcrt0.o: s-crt0; @true
|
1996-03-04 18:39:06 -05:00
|
|
|
|
|
1998-04-04 08:32:39 -05:00
|
|
|
|
s-crt0: $(CRT0_S) $(MCRT0_S) $(GCC_PASSES) $(CONFIG_H)
|
1996-03-04 18:39:06 -05:00
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(CRT0STUFF_T_CFLAGS) \
|
|
|
|
|
-o crt0.o -c $(CRT0_S)
|
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(CRT0STUFF_T_CFLAGS) \
|
|
|
|
|
-o mcrt0.o -c $(MCRT0_S)
|
1998-04-04 08:32:39 -05:00
|
|
|
|
touch s-crt0
|
1997-06-09 15:19:18 -04:00
|
|
|
|
#
|
1992-02-03 17:08:59 -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-11-03 18:55:32 -05:00
|
|
|
|
c-parse.o : $(srcdir)/c-parse.c $(CONFIG_H) $(TREE_H) c-lex.h \
|
toplev.h cleanups...
* toplev.c: Include toplev.h.
* Makefile.in (c-common.o, c-convert.o, c-decl.o, c-iterate.o,
c-lex.o, c-parse.o, c-pragma.o, c-typeck.o, calls.o, convert.o,
dwarf2out.o, except.o, expr.o, final.o, fold-const.o, function.o,
hash.o, profile.o, real.o, reg-stack.o, regclass.o, reload.o,
reload1.o, stmt.o, stor-layout.o, tlink.o, tree.o, varasm.o): Add
toplev.h dependency.
From-SVN: r19589
1998-05-06 12:43:15 -04:00
|
|
|
|
$(srcdir)/c-parse.h c-tree.h input.h flags.h system.h toplev.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/c-parse.c
|
1994-12-05 00:39:41 -05:00
|
|
|
|
$(srcdir)/c-parse.h: $(srcdir)/c-parse.c
|
|
|
|
|
$(srcdir)/c-parse.c: $(srcdir)/c-parse.y
|
1999-04-20 18:43:31 -04:00
|
|
|
|
cd $(srcdir); $(BISON) $(BISONFLAGS) -d -o c-parse.c c-parse.y
|
1995-05-28 18:48:30 -04:00
|
|
|
|
$(srcdir)/c-parse.y: c-parse.in
|
1995-12-13 19:05:37 -05:00
|
|
|
|
echo '/*WARNING: This file is automatically generated!*/' >tmp-c-parse.y
|
1993-04-08 20:20:09 -04:00
|
|
|
|
sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
|
|
|
|
|
-e "/^ifc$$/d" -e "/^end ifc$$/d" \
|
1995-12-13 19:05:37 -05:00
|
|
|
|
$(srcdir)/c-parse.in >>tmp-c-parse.y
|
1994-07-05 19:27:56 -04:00
|
|
|
|
$(srcdir)/move-if-change tmp-c-parse.y $(srcdir)/c-parse.y
|
1993-04-08 20:20:09 -04:00
|
|
|
|
|
1995-05-28 18:48:30 -04:00
|
|
|
|
$(srcdir)/c-gperf.h: c-parse.gperf
|
1999-03-31 02:43:52 -05:00
|
|
|
|
gperf -L C -F ', 0, 0' -p -j1 -i 1 -g -o -t -G -N is_reserved_word \
|
1998-10-07 05:57:38 -04:00
|
|
|
|
-k1,3,$$ $(srcdir)/c-parse.gperf >tmp-gperf.h
|
1994-07-05 19:27:56 -04:00
|
|
|
|
$(srcdir)/move-if-change tmp-gperf.h $(srcdir)/c-gperf.h
|
1994-03-04 17:15:44 -05:00
|
|
|
|
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
c-decl.o : c-decl.c $(CONFIG_H) system.h $(TREE_H) c-tree.h c-lex.h flags.h \
|
toplev.h cleanups...
* toplev.c: Include toplev.h.
* Makefile.in (c-common.o, c-convert.o, c-decl.o, c-iterate.o,
c-lex.o, c-parse.o, c-pragma.o, c-typeck.o, calls.o, convert.o,
dwarf2out.o, except.o, expr.o, final.o, fold-const.o, function.o,
hash.o, profile.o, real.o, reg-stack.o, regclass.o, reload.o,
reload1.o, stmt.o, stor-layout.o, tlink.o, tree.o, varasm.o): Add
toplev.h dependency.
From-SVN: r19589
1998-05-06 12:43:15 -04:00
|
|
|
|
output.h toplev.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
c-typeck.o : c-typeck.c $(CONFIG_H) system.h $(TREE_H) c-tree.h flags.h \
|
1999-01-26 20:43:17 -05:00
|
|
|
|
intl.h output.h $(EXPR_H) $(RTL_H) toplev.h
|
1998-06-18 02:46:35 -04:00
|
|
|
|
c-lang.o : c-lang.c $(CONFIG_H) system.h $(TREE_H) c-tree.h c-lex.h toplev.h \
|
|
|
|
|
output.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
c-lex.o : c-lex.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) c-lex.h c-tree.h \
|
1999-01-26 20:43:17 -05:00
|
|
|
|
$(srcdir)/c-parse.h input.h intl.h flags.h $(srcdir)/c-gperf.h c-pragma.h \
|
1998-07-20 09:35:38 -04:00
|
|
|
|
toplev.h output.h mbchar.h
|
c-aux-info.c, [...]: Include toplev.h for real declaration of trim_filename.
1999-04-17 20:11 -0400 Zack Weinberg <zack@rabi.columbia.edu>
* c-aux-info.c, emit-rtl.c, explow.c, expmed.c, gcse.c,
haifa-sched.c, optabs.c, reorg.c, resource.c, sched.c: Include
toplev.h for real declaration of trim_filename.
* Makefile.in: Update dependencies.
From-SVN: r26523
1999-04-17 13:14:58 -04:00
|
|
|
|
c-aux-info.o : c-aux-info.c $(CONFIG_H) system.h $(TREE_H) c-tree.h flags.h \
|
|
|
|
|
toplev.h
|
toplev.h cleanups...
* toplev.c: Include toplev.h.
* Makefile.in (c-common.o, c-convert.o, c-decl.o, c-iterate.o,
c-lex.o, c-parse.o, c-pragma.o, c-typeck.o, calls.o, convert.o,
dwarf2out.o, except.o, expr.o, final.o, fold-const.o, function.o,
hash.o, profile.o, real.o, reg-stack.o, regclass.o, reload.o,
reload1.o, stmt.o, stor-layout.o, tlink.o, tree.o, varasm.o): Add
toplev.h dependency.
From-SVN: r19589
1998-05-06 12:43:15 -04:00
|
|
|
|
c-convert.o : c-convert.c $(CONFIG_H) system.h $(TREE_H) flags.h toplev.h
|
1998-05-28 02:47:21 -04:00
|
|
|
|
c-pragma.o: c-pragma.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) except.h \
|
|
|
|
|
function.h defaults.h c-pragma.h toplev.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
c-iterate.o: c-iterate.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) c-tree.h \
|
1998-06-27 00:42:25 -04:00
|
|
|
|
flags.h toplev.h $(EXPR_H)
|
configure.in (host_xm_file, [...]): Arrange to include gansidecl.h in {ht}config.h & tm.h just before the config/...
* configure.in (host_xm_file, build_xm_file, xm_file, tm_file):
Arrange to include gansidecl.h in {ht}config.h & tm.h just
before the config/ directory headers.
(tm_file_list, host_xm_file_list, build_xm_file_list): Handle
gansidecl.h in the list of dependencies.
* Makefile.in (RTL_BASE_H): Don't depend on gansidecl.h.
(TREE_H, DEMANGLE_H, RECOG_H, REGS_H, libgcc2.a, stmp-multilib,
mbchar.o, collect2.o, pexecute.o, vfprintf.o, splay-tree.o, gcc.o,
gencheck.o, choose-temp.o, mkstemp.o, mkstemp.o, prefix.o,
dyn-string.o, cexp.o, cccp.o, cppmain.o, cpplib.o, cpperror.o,
cppexp.o, cppfiles.o, cpphash.o, cppalloc.o, scan-decls.o):
Likewise.
* cccp.c: Don't include gansidecl.h.
* cexp.y: Likewise.
* collect2.c: Likewise.
* config/c4x/c4x.c: Likewise.
* config/v850/v850.h: Likewise.
* cppalloc.c: Likewise.
* cpperror.c: Likewise.
* cppexp.c: Likewise.
* cppfiles.c: Likewise.
* cpphash.c: Likewise.
* cpplib.c: Likewise.
* cppmain.c: Likewise.
* cppulp.c: Likewise.
* demangle.h: Likewise.
* doprint.c: Likewise.
* dyn-string.c: Likewise.
* eh-common.h: Likewise.
* fix-header.c: Likewise.
* frame.c: Likewise.
* gcc.c: Likewise.
* gcov.c: Likewise.
* gen-protos.c: Likewise.
* gencheck.c: Likewise.
* halfpic.h: Likewise.
* hash.c: Likewise.
* machmode.h: Likewise.
* mbchar.c: Likewise.
* prefix.c: Likewise.
* protoize.c: Likewise.
* recog.h: Likewise.
* rtl.h: Likewise.
* scan-decls.c: Likewise.
* tree.h: Likewise.
* varray.h: Likewise.
From-SVN: r23558
1998-11-07 08:00:46 -05:00
|
|
|
|
mbchar.o: mbchar.c $(CONFIG_H) system.h mbchar.h
|
1998-11-24 18:19:05 -05:00
|
|
|
|
graph.o: graph.c $(CONFIG_H) system.h toplev.h flags.h output.h $(RTL_H) \
|
1999-01-11 19:07:36 -05:00
|
|
|
|
hard-reg-set.h $(BASIC_BLOCK_H)
|
|
|
|
|
sbitmap.o: sbitmap.c $(CONFIG_H) system.h $(RTL_H) flags.h $(BASIC_BLOCK_H)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1999-02-09 15:55:29 -05:00
|
|
|
|
COLLECT2_OBJS = collect2.o tlink.o hash.o intl.o underscore.o version.o
|
|
|
|
|
collect2$(exeext): $(COLLECT2_OBJS) $(LIBDEPS)
|
1992-10-18 01:30:48 -04:00
|
|
|
|
# Don't try modifying collect2 (aka ld) in place--it might be linking this.
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
-rm -f collect2$(exeext)
|
1999-01-26 20:43:17 -05:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(COLLECT2_OBJS) $(LIBS)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1999-01-26 20:43:17 -05:00
|
|
|
|
collect2.o : collect2.c $(CONFIG_H) system.h gstab.h intl.h \
|
1998-12-10 05:48:27 -05:00
|
|
|
|
$(srcdir)/../include/obstack.h $(DEMANGLE_H) collect2.h
|
1993-01-02 03:33:03 -05:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
1996-07-18 18:06:04 -04:00
|
|
|
|
-DTARGET_MACHINE=\"$(target_alias)\" $(MAYBE_USE_COLLECT2) \
|
1993-01-02 03:33:03 -05:00
|
|
|
|
-c `echo $(srcdir)/collect2.c | sed 's,^\./,,'`
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1998-12-10 05:48:27 -05:00
|
|
|
|
tlink.o: tlink.c $(DEMANGLE_H) hash.h $(CONFIG_H) system.h toplev.h collect2.h
|
toplev.h cleanups...
* toplev.c: Include toplev.h.
* Makefile.in (c-common.o, c-convert.o, c-decl.o, c-iterate.o,
c-lex.o, c-parse.o, c-pragma.o, c-typeck.o, calls.o, convert.o,
dwarf2out.o, except.o, expr.o, final.o, fold-const.o, function.o,
hash.o, profile.o, real.o, reg-stack.o, regclass.o, reload.o,
reload1.o, stmt.o, stor-layout.o, tlink.o, tree.o, varasm.o): Add
toplev.h dependency.
From-SVN: r19589
1998-05-06 12:43:15 -04:00
|
|
|
|
hash.o: hash.c hash.h system.h toplev.h
|
1998-08-18 06:26:35 -04:00
|
|
|
|
|
configure.in (host_xm_file, [...]): Arrange to include gansidecl.h in {ht}config.h & tm.h just before the config/...
* configure.in (host_xm_file, build_xm_file, xm_file, tm_file):
Arrange to include gansidecl.h in {ht}config.h & tm.h just
before the config/ directory headers.
(tm_file_list, host_xm_file_list, build_xm_file_list): Handle
gansidecl.h in the list of dependencies.
* Makefile.in (RTL_BASE_H): Don't depend on gansidecl.h.
(TREE_H, DEMANGLE_H, RECOG_H, REGS_H, libgcc2.a, stmp-multilib,
mbchar.o, collect2.o, pexecute.o, vfprintf.o, splay-tree.o, gcc.o,
gencheck.o, choose-temp.o, mkstemp.o, mkstemp.o, prefix.o,
dyn-string.o, cexp.o, cccp.o, cppmain.o, cpplib.o, cpperror.o,
cppexp.o, cppfiles.o, cpphash.o, cppalloc.o, scan-decls.o):
Likewise.
* cccp.c: Don't include gansidecl.h.
* cexp.y: Likewise.
* collect2.c: Likewise.
* config/c4x/c4x.c: Likewise.
* config/v850/v850.h: Likewise.
* cppalloc.c: Likewise.
* cpperror.c: Likewise.
* cppexp.c: Likewise.
* cppfiles.c: Likewise.
* cpphash.c: Likewise.
* cpplib.c: Likewise.
* cppmain.c: Likewise.
* cppulp.c: Likewise.
* demangle.h: Likewise.
* doprint.c: Likewise.
* dyn-string.c: Likewise.
* eh-common.h: Likewise.
* fix-header.c: Likewise.
* frame.c: Likewise.
* gcc.c: Likewise.
* gcov.c: Likewise.
* gen-protos.c: Likewise.
* gencheck.c: Likewise.
* halfpic.h: Likewise.
* hash.c: Likewise.
* machmode.h: Likewise.
* mbchar.c: Likewise.
* prefix.c: Likewise.
* protoize.c: Likewise.
* recog.h: Likewise.
* rtl.h: Likewise.
* scan-decls.c: Likewise.
* tree.h: Likewise.
* varray.h: Likewise.
From-SVN: r23558
1998-11-07 08:00:46 -05:00
|
|
|
|
vfprintf.o: $(srcdir)/../libiberty/vfprintf.c $(CONFIG_H) system.h
|
1998-09-05 06:41:24 -04:00
|
|
|
|
rm -f vfprintf.c
|
|
|
|
|
$(LN_S) $(srcdir)/../libiberty/vfprintf.c vfprintf.c
|
|
|
|
|
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) vfprintf.c
|
|
|
|
|
|
invoke.texi: Document -flang-isoc9x.
* invoke.texi: Document -flang-isoc9x.
* Makefile.in (OBJS): Add splay-tree.o.
(c-common.o): Depend on rtl.h.
(splay-tree.o): List dependencies and provide build rule.
* rtl.h (record_alias_subset): New function.
* alias.c: Include splay-tree.h.
(alias_set_entry): New type.
(CHECK_ALIAS_SETS_FOR_CONSISTENCY): Remove.
(DIFFERENT_ALIAS_SETS_P): Use mem_in_disjoint_alias_sets_p.
(mems_in_disjoin_alias_sets_p): New function.
(alias_set_compare): Likewise.
(insert_subset_children): Likewise.
(get_alias_set_entry): Likewise.
* tree.h (TYPE_RESTRICT): New macro.
(TYPE_UNQUALIFIED): New manifest constant.
(TYPE_QUAL_CONST): Likewise
(TYPE_QUAL_VOLATILE): Likewise.
(TYPE_QUAL_RESTRICT): Likewise.
(tree_type): Add restrict_flag. Reduce count of free bits.
(DECL_POINTER_ALIAS_SET): New macro.
(DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
(tree_decl): Add pointer_alias_set.
(build_qualified_type): New function.
(build_type_variant): Define in terms of build_qualified_type.
* tree.c (set_type_quals): New function.
(make_node): Initializae DECL_POINTER_ALIAS_SET.
(build_type_attribute_variant): Use build_qualified_type and
set_type_quals.
(build_type_variant): Rename, and modify, to become...
(build_qualified_type): New function.
(build_complex_type): Use set_type_quals.
* c-tree.h (C_TYPE_OBJECT_P): New macro.
(C_TYPE_FUNCTION_P): Likewise.
(C_TYPE_INCOMPLETE_P): Likewise.
(C_TYPE_OBJECT_OR_INCOMPLETE_P): Likewise.
(c_apply_type_quals_to_decl): New function.
(c_build_qualified_type): New function.
(c_build_type_variant): Define in terms of c_build_qualified_type.
(flag_isoc9x): Declare.
* c-typeck.c (qualify_type): Use c_build_qualified_type.
(common_type): Change to use TYPE_QUALS.
(comptypes): Likewise.
(convert_for_assignment): Likewise.
* c-aux-info.c (gen_type): Likewise. Deal with `restrict'.
* c-decl.c (flag_isoc9x): Define.
(c_decode_option): Handle -flang-isoc9x.
(grokdeclarator): Update to handle restrict. Use TYPE_QUALS,
c_build_qualified_type, etc. Use c_apply_type_quals_to_decl.
* c-lex.c (init_lex): Deal with restrict.
(init_lex): Don't treat restrict as a reserved word in
-traditional mode, or without -flang-isoc9x.
* c-lex.h (rid): Add RID_RESTRICT.
* c-parse.gperf (restrict, __restrict, __restrict__): Make
equivalent to RID_RESTRICT.
* c-parse.in (TYPE_QUAL): Update comment.
* c-common.c: Include rtl.h.
(c_find_base_decl): New function.
(c_build_type_variant): Rename, and modify, to become ...
(c_build_qualified_type): New function.
(c_apply_type_quals_to_decl): Likewise.
(c_get_alias_set): For INDIRECT_REFs, check to see if we can find
a particular alias set for the reference.
* toplev.c (documented_lang_options): Add -flang-isoc9x.
From-SVN: r23212
1998-10-21 05:53:40 -04:00
|
|
|
|
splay-tree.o: $(srcdir)/../libiberty/splay-tree.c \
|
configure.in (host_xm_file, [...]): Arrange to include gansidecl.h in {ht}config.h & tm.h just before the config/...
* configure.in (host_xm_file, build_xm_file, xm_file, tm_file):
Arrange to include gansidecl.h in {ht}config.h & tm.h just
before the config/ directory headers.
(tm_file_list, host_xm_file_list, build_xm_file_list): Handle
gansidecl.h in the list of dependencies.
* Makefile.in (RTL_BASE_H): Don't depend on gansidecl.h.
(TREE_H, DEMANGLE_H, RECOG_H, REGS_H, libgcc2.a, stmp-multilib,
mbchar.o, collect2.o, pexecute.o, vfprintf.o, splay-tree.o, gcc.o,
gencheck.o, choose-temp.o, mkstemp.o, mkstemp.o, prefix.o,
dyn-string.o, cexp.o, cccp.o, cppmain.o, cpplib.o, cpperror.o,
cppexp.o, cppfiles.o, cpphash.o, cppalloc.o, scan-decls.o):
Likewise.
* cccp.c: Don't include gansidecl.h.
* cexp.y: Likewise.
* collect2.c: Likewise.
* config/c4x/c4x.c: Likewise.
* config/v850/v850.h: Likewise.
* cppalloc.c: Likewise.
* cpperror.c: Likewise.
* cppexp.c: Likewise.
* cppfiles.c: Likewise.
* cpphash.c: Likewise.
* cpplib.c: Likewise.
* cppmain.c: Likewise.
* cppulp.c: Likewise.
* demangle.h: Likewise.
* doprint.c: Likewise.
* dyn-string.c: Likewise.
* eh-common.h: Likewise.
* fix-header.c: Likewise.
* frame.c: Likewise.
* gcc.c: Likewise.
* gcov.c: Likewise.
* gen-protos.c: Likewise.
* gencheck.c: Likewise.
* halfpic.h: Likewise.
* hash.c: Likewise.
* machmode.h: Likewise.
* mbchar.c: Likewise.
* prefix.c: Likewise.
* protoize.c: Likewise.
* recog.h: Likewise.
* rtl.h: Likewise.
* scan-decls.c: Likewise.
* tree.h: Likewise.
* varray.h: Likewise.
From-SVN: r23558
1998-11-07 08:00:46 -05:00
|
|
|
|
$(srcdir)/../include/splay-tree.h $(srcdir)/../include/libiberty.h
|
invoke.texi: Document -flang-isoc9x.
* invoke.texi: Document -flang-isoc9x.
* Makefile.in (OBJS): Add splay-tree.o.
(c-common.o): Depend on rtl.h.
(splay-tree.o): List dependencies and provide build rule.
* rtl.h (record_alias_subset): New function.
* alias.c: Include splay-tree.h.
(alias_set_entry): New type.
(CHECK_ALIAS_SETS_FOR_CONSISTENCY): Remove.
(DIFFERENT_ALIAS_SETS_P): Use mem_in_disjoint_alias_sets_p.
(mems_in_disjoin_alias_sets_p): New function.
(alias_set_compare): Likewise.
(insert_subset_children): Likewise.
(get_alias_set_entry): Likewise.
* tree.h (TYPE_RESTRICT): New macro.
(TYPE_UNQUALIFIED): New manifest constant.
(TYPE_QUAL_CONST): Likewise
(TYPE_QUAL_VOLATILE): Likewise.
(TYPE_QUAL_RESTRICT): Likewise.
(tree_type): Add restrict_flag. Reduce count of free bits.
(DECL_POINTER_ALIAS_SET): New macro.
(DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
(tree_decl): Add pointer_alias_set.
(build_qualified_type): New function.
(build_type_variant): Define in terms of build_qualified_type.
* tree.c (set_type_quals): New function.
(make_node): Initializae DECL_POINTER_ALIAS_SET.
(build_type_attribute_variant): Use build_qualified_type and
set_type_quals.
(build_type_variant): Rename, and modify, to become...
(build_qualified_type): New function.
(build_complex_type): Use set_type_quals.
* c-tree.h (C_TYPE_OBJECT_P): New macro.
(C_TYPE_FUNCTION_P): Likewise.
(C_TYPE_INCOMPLETE_P): Likewise.
(C_TYPE_OBJECT_OR_INCOMPLETE_P): Likewise.
(c_apply_type_quals_to_decl): New function.
(c_build_qualified_type): New function.
(c_build_type_variant): Define in terms of c_build_qualified_type.
(flag_isoc9x): Declare.
* c-typeck.c (qualify_type): Use c_build_qualified_type.
(common_type): Change to use TYPE_QUALS.
(comptypes): Likewise.
(convert_for_assignment): Likewise.
* c-aux-info.c (gen_type): Likewise. Deal with `restrict'.
* c-decl.c (flag_isoc9x): Define.
(c_decode_option): Handle -flang-isoc9x.
(grokdeclarator): Update to handle restrict. Use TYPE_QUALS,
c_build_qualified_type, etc. Use c_apply_type_quals_to_decl.
* c-lex.c (init_lex): Deal with restrict.
(init_lex): Don't treat restrict as a reserved word in
-traditional mode, or without -flang-isoc9x.
* c-lex.h (rid): Add RID_RESTRICT.
* c-parse.gperf (restrict, __restrict, __restrict__): Make
equivalent to RID_RESTRICT.
* c-parse.in (TYPE_QUAL): Update comment.
* c-common.c: Include rtl.h.
(c_find_base_decl): New function.
(c_build_type_variant): Rename, and modify, to become ...
(c_build_qualified_type): New function.
(c_apply_type_quals_to_decl): Likewise.
(c_get_alias_set): For INDIRECT_REFs, check to see if we can find
a particular alias set for the reference.
* toplev.c (documented_lang_options): Add -flang-isoc9x.
From-SVN: r23212
1998-10-21 05:53:40 -04:00
|
|
|
|
rm -f splay-tree.c
|
|
|
|
|
$(LN_S) $(srcdir)/../libiberty/splay-tree.c splay-tree.c
|
|
|
|
|
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) splay-tree.c
|
|
|
|
|
|
1998-04-04 08:32:39 -05:00
|
|
|
|
underscore.c: s-under ; @true
|
1995-08-21 13:07:54 -04:00
|
|
|
|
|
1998-04-04 08:32:39 -05:00
|
|
|
|
s-under: $(GCC_PASSES)
|
(out_file, md_file, tm_file, {build,host}_xm_file):
New symbols, to be overridden by configure.
(insn-*): Use $(md_file), not md.
(aux-output.o): Use $(out_file), not aux-output.c.
($(MD_FILE)): Rework to use new conventions.
(gen*.o, bi-*.o): Depend on $(build_xm_file), not hconfig.h.
(scan.o, fix-header.o, scan-decls.o): Likewise.
(distclean): Adjust files removed for new convention.
From jason@cygnus.com:
(STAGESTUFF): Add underscore.c.
(underscore.c): Rename temporary files to begin with 'tmp-' so that they will
be removed by 'make mostlyclean'.
From-SVN: r9608
1995-05-10 08:26:52 -04:00
|
|
|
|
echo "int xxy_us_dummy;" >tmp-dum.c
|
|
|
|
|
$(GCC_FOR_TARGET) -S tmp-dum.c
|
|
|
|
|
echo '/*WARNING: This file is automatically generated!*/' >tmp-under.c
|
|
|
|
|
if grep _xxy_us_dummy tmp-dum.s > /dev/null ; then \
|
|
|
|
|
echo "int prepends_underscore = 1;" >>tmp-under.c; \
|
1995-05-04 17:25:31 -04:00
|
|
|
|
else \
|
(out_file, md_file, tm_file, {build,host}_xm_file):
New symbols, to be overridden by configure.
(insn-*): Use $(md_file), not md.
(aux-output.o): Use $(out_file), not aux-output.c.
($(MD_FILE)): Rework to use new conventions.
(gen*.o, bi-*.o): Depend on $(build_xm_file), not hconfig.h.
(scan.o, fix-header.o, scan-decls.o): Likewise.
(distclean): Adjust files removed for new convention.
From jason@cygnus.com:
(STAGESTUFF): Add underscore.c.
(underscore.c): Rename temporary files to begin with 'tmp-' so that they will
be removed by 'make mostlyclean'.
From-SVN: r9608
1995-05-10 08:26:52 -04:00
|
|
|
|
echo "int prepends_underscore = 0;" >>tmp-under.c; \
|
1995-05-04 17:25:31 -04:00
|
|
|
|
fi
|
(out_file, md_file, tm_file, {build,host}_xm_file):
New symbols, to be overridden by configure.
(insn-*): Use $(md_file), not md.
(aux-output.o): Use $(out_file), not aux-output.c.
($(MD_FILE)): Rework to use new conventions.
(gen*.o, bi-*.o): Depend on $(build_xm_file), not hconfig.h.
(scan.o, fix-header.o, scan-decls.o): Likewise.
(distclean): Adjust files removed for new convention.
From jason@cygnus.com:
(STAGESTUFF): Add underscore.c.
(underscore.c): Rename temporary files to begin with 'tmp-' so that they will
be removed by 'make mostlyclean'.
From-SVN: r9608
1995-05-10 08:26:52 -04:00
|
|
|
|
$(srcdir)/move-if-change tmp-under.c underscore.c
|
|
|
|
|
-rm -f tmp-dum.c tmp-dum.s
|
1998-04-04 08:32:39 -05:00
|
|
|
|
touch s-under
|
1995-05-04 17:25:31 -04:00
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# A file used by all variants of C.
|
|
|
|
|
|
toplev.h cleanups...
* toplev.c: Include toplev.h.
* Makefile.in (c-common.o, c-convert.o, c-decl.o, c-iterate.o,
c-lex.o, c-parse.o, c-pragma.o, c-typeck.o, calls.o, convert.o,
dwarf2out.o, except.o, expr.o, final.o, fold-const.o, function.o,
hash.o, profile.o, real.o, reg-stack.o, regclass.o, reload.o,
reload1.o, stmt.o, stor-layout.o, tlink.o, tree.o, varasm.o): Add
toplev.h dependency.
From-SVN: r19589
1998-05-06 12:43:15 -04:00
|
|
|
|
c-common.o : c-common.c $(CONFIG_H) system.h $(TREE_H) c-tree.h c-lex.h \
|
1998-10-28 15:08:34 -05:00
|
|
|
|
flags.h toplev.h output.h c-pragma.h $(RTL_H)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# Language-independent files.
|
|
|
|
|
|
1996-12-07 11:53:42 -05:00
|
|
|
|
DRIVER_DEFINES = \
|
1998-10-06 21:29:42 -04:00
|
|
|
|
-DSTANDARD_STARTFILE_PREFIX=\"$(libdir)/\" \
|
1992-03-20 17:22:14 -05:00
|
|
|
|
-DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-lib/\" \
|
1993-12-22 13:38:50 -05:00
|
|
|
|
-DDEFAULT_TARGET_VERSION=\"$(version)\" \
|
1996-07-18 18:06:04 -04:00
|
|
|
|
-DDEFAULT_TARGET_MACHINE=\"$(target_alias)\" \
|
1998-10-06 21:29:42 -04:00
|
|
|
|
-DTOOLDIR_BASE_PREFIX=\"$(exec_prefix)/\"
|
1999-01-26 20:43:17 -05:00
|
|
|
|
gcc.o: gcc.c $(CONFIG_H) system.h intl.h multilib.h \
|
|
|
|
|
Makefile $(lang_specs_files) prefix.h
|
1996-12-07 11:53:42 -05:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
|
|
|
|
$(DRIVER_DEFINES) \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-c `echo $(srcdir)/gcc.c | sed 's,^\./,,'`
|
|
|
|
|
|
1999-03-25 18:36:47 -05:00
|
|
|
|
gccspec.o: gccspec.c $(CONFIG_H) system.h
|
1999-03-26 17:55:35 -05:00
|
|
|
|
cppspec.o: cppspec.c $(CONFIG_H) system.h
|
1999-03-25 18:36:47 -05:00
|
|
|
|
|
1998-05-21 15:20:37 -04:00
|
|
|
|
tree-check.h: s-check ; @true
|
1998-06-27 17:40:51 -04:00
|
|
|
|
s-check : gencheck $(srcdir)/move-if-change
|
1998-05-21 15:20:37 -04:00
|
|
|
|
./gencheck > tmp-check.h
|
|
|
|
|
$(srcdir)/move-if-change tmp-check.h tree-check.h
|
|
|
|
|
touch s-check
|
|
|
|
|
|
1999-01-26 20:43:17 -05:00
|
|
|
|
gencheck : gencheck.o $(lang_tree_files) $(HOST_LIBDEPS)
|
1998-05-21 15:20:37 -04:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
|
|
|
|
gencheck.o $(HOST_LIBS)
|
|
|
|
|
|
1999-01-26 20:43:17 -05:00
|
|
|
|
gencheck.o : gencheck.c tree.def $(CONFIG_H) hconfig.h system.h
|
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
|
|
|
|
|
$(srcdir)/gencheck.c
|
1998-05-26 18:49:49 -04:00
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
dumpvers: dumpvers.c
|
|
|
|
|
|
|
|
|
|
version.o: version.c
|
Makefile.in (pexecute.o): Use pexecute.c from libiberty.
* Makefile.in (pexecute.o): Use pexecute.c from libiberty. Provide
explicit rules for building. Similarly for alloca, vfprintf,
choose-temp and mkstemp, getopt, getopt1, and obstack.
(INCLUDES): Add $(srcdir)/../include.
* pexecute.c, alloca.c, vfprintf.c, choose-temp.c, mkstemp.c: Delete.
* getopt.h, getopt.c getopt1.c, obstack.c, obstack.h: Likewise.
From-SVN: r22258
1998-09-05 08:24:04 -04:00
|
|
|
|
obstack.o: $(srcdir)/../libiberty/obstack.c $(CONFIG_H)
|
|
|
|
|
rm -f obstack.c
|
|
|
|
|
$(LN_S) $(srcdir)/../libiberty/obstack.c obstack.c
|
|
|
|
|
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) obstack.c
|
|
|
|
|
|
Makefile.in (gcc.o, [...]): Depend on prefix.h.
* Makefile.in (gcc.o, prefix.o, cccp.o, cpplib.o): Depend on prefix.h.
* cccp.c: Include prefix.h, don't prototype prefix.c functions.
(new_include_prefix): Constify char* parameters.
* cppfiles.c (read_name_map): Likewise.
(append_include_chain): Likewise. Also, use a writable char* copy
of parameter `dir' which we then modify, rather than using the
parameter itself to store the new writable string.
(remap_filename): Constify some variables. Also, use a writable
char* to store an allocated string which we will be modifying.
* cpplib.c: Include prefix.h, don't prototype prefix.c functions.
(cpp_start_read): Constify variable `str'.
* cpplib.h (append_include_chain): Constify a char* parameter.
* gcc.c Include prefix.h, don't prototype prefix.c functions.
(add_prefix, save_string): Constify char* parameters.
(fatal, error): Add ATTRIBUTE_PRINTF_1 to prototypes.
* prefix.c: Include prefix.h.
(get_key_value, translate_name, save_string, update_path,
set_std_prefix): Constify various char* parameters and variables.
(save_string): Use xmalloc, not malloc.
(translate_name): Use a writable temporary variable to create and
modify a string before setting it to a const char*.
* prefix.h: New file to prototype functions exported from prefix.c.
From-SVN: r24498
1999-01-05 14:11:22 -05:00
|
|
|
|
prefix.o: prefix.c $(CONFIG_H) system.h Makefile prefix.h
|
1997-11-02 16:19:36 -05:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
|
|
|
|
-DPREFIX=\"$(prefix)\" \
|
|
|
|
|
-c `echo $(srcdir)/prefix.c | sed 's,^\./,,'`
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
toplev.h cleanups...
* toplev.c: Include toplev.h.
* Makefile.in (c-common.o, c-convert.o, c-decl.o, c-iterate.o,
c-lex.o, c-parse.o, c-pragma.o, c-typeck.o, calls.o, convert.o,
dwarf2out.o, except.o, expr.o, final.o, fold-const.o, function.o,
hash.o, profile.o, real.o, reg-stack.o, regclass.o, reload.o,
reload1.o, stmt.o, stor-layout.o, tlink.o, tree.o, varasm.o): Add
toplev.h dependency.
From-SVN: r19589
1998-05-06 12:43:15 -04:00
|
|
|
|
convert.o: convert.c $(CONFIG_H) $(TREE_H) flags.h convert.h toplev.h
|
1993-01-22 18:10:33 -05:00
|
|
|
|
|
1998-05-28 02:47:21 -04:00
|
|
|
|
tree.o : tree.c $(CONFIG_H) system.h $(TREE_H) flags.h function.h toplev.h except.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
print-tree.o : print-tree.c $(CONFIG_H) system.h $(TREE_H)
|
1998-03-29 06:54:09 -05:00
|
|
|
|
stor-layout.o : stor-layout.c $(CONFIG_H) system.h $(TREE_H) flags.h \
|
1998-06-27 00:42:25 -04:00
|
|
|
|
function.h $(EXPR_H) $(RTL_H) toplev.h except.h
|
1998-08-17 07:39:32 -04:00
|
|
|
|
fold-const.o : fold-const.c $(CONFIG_H) system.h $(TREE_H) flags.h toplev.h \
|
|
|
|
|
$(RTL_H)
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
toplev.o : toplev.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) \
|
1995-05-14 10:36:25 -04:00
|
|
|
|
flags.h input.h insn-attr.h xcoffout.h defaults.h output.h \
|
1999-01-26 20:43:17 -05:00
|
|
|
|
insn-codes.h insn-config.h intl.h $(RECOG_H) Makefile toplev.h dwarfout.h \
|
1999-03-09 01:40:49 -05:00
|
|
|
|
dwarf2out.h sdbout.h dbxout.h $(EXPR_H) $(BASIC_BLOCK_H) \
|
1995-05-14 10:36:25 -04:00
|
|
|
|
$(lang_options_files)
|
1996-05-17 15:37:07 -04:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(MAYBE_USE_COLLECT2) \
|
1996-07-18 18:06:04 -04:00
|
|
|
|
-DTARGET_NAME=\"$(target_alias)\" \
|
1992-07-05 18:57:06 -04:00
|
|
|
|
-c `echo $(srcdir)/toplev.c | sed 's,^\./,,'`
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
Makefile.in (HOST_RTL): Add $(HOST_PREFIX)bitmap.o.
* Makefile.in (HOST_RTL): Add $(HOST_PREFIX)bitmap.o.
(rtl.o, emit-rtl.o): Add dependency on bitmap.h.
($(HOST_PREFIX_1)rtl.o): Likewise.
($(HOST_PREFIX_1)bitmap.o): New host object.
* emit-rtl.c (toplevel): Include bitmap.h.
(gen_rtx): Handle 't' and 'b' nodes.
* print-rtl.c (print_rtx): Handle printing NOTE_INSN_LIVE notes.
Print block number for block begin/end notes. Print 't' type
nodes as a pointer. Know that the 3rd argument of live range
start/stop notes is really a range_info rtx. If type is 'b', print
out argument as a bitmap.
* rtl.c: Include bitmap.c.
(copy_rtx): Copy tree nodes as is. Copy bitmaps if type is 'b'.
(note_insn_name): Add NOTE_INSN_RANGE_{START,END}, NOTE_INSN_LIVE.
* rtl.def (RANGE_LIVE): New node to hold live information while we
recalculate the basic blocks.
(RANGE_REG, RANGE_INFO): New rtl types for live range splitting.
(RANGE_VAR): New node, to hold information saved in symbol node for New
communicating live range information to the debug output functions.
* rtl.h (rtunion_def): Add rttree and rtbit fields.
(XBITMAP, XTREE): New accessor macros.
(NOTE_LIVE_INFO): Overload NOTE_SOURCE_FILE for NOTE_INSN_LIVE notes.
(NOTE_RANGE_INFO): Similarly for NOTE_INSN_RANGE_{START,END} notes.
(NOTE_BLOCK_LIVE_RANGE_BLOCK): Define.
(NOTE_INSN_RANGE_START, NOTE_INSN_RANGE_END, NOTE_INSN_LIVE): New notes.
(RANGE_LIVE_{BITMAP,ORIG_BLOCK}): New accessor macros.
(RANGE_REG_{SYMBOL,BLOCK}_NODE, RANGE_VAR_*): New accessor macros.
(RANGE_INFO_*): Likewise.
* sched.c (sched_analyze): Keep live range start/stop notes.
(unlink_other_notes): Likewise.
* haifa-sched.c (sched_analyze): Keep live range start/stop notes.
(unlink_other_notes): Likewise.
* tree.h (BLOCK_LIVE_RANGE_{START,END,VAR_FLAG}): New accessor macros.
(BLOCK_LIVE_RANGE_FLAG): Likewise.
(DECL_LIVE_RANGE_RTL): Likewise.
(struct tree_block): Add live_range_flag, live_range_var_flag,
live_range_start and live_range_end.
(struct tree_decl): Add live_range_rtl field.
* gengenrtl.c (type_from_format): Handle 'b' and 't'.
(accessor_from_format): Likewise.
Co-Authored-By: Jeffrey A Law <law@cygnus.com>
From-SVN: r19727
1998-05-13 17:13:47 -04:00
|
|
|
|
rtl.o : rtl.c $(CONFIG_H) system.h $(RTL_H) bitmap.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1999-03-03 18:08:02 -05:00
|
|
|
|
print-rtl.o : print-rtl.c $(CONFIG_H) system.h $(RTL_H) bitmap.h basic-block.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
rtlanal.o : rtlanal.c $(CONFIG_H) system.h $(RTL_H)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
varasm.o : varasm.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) flags.h \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
function.h defaults.h $(EXPR_H) hard-reg-set.h $(REGS_H) \
|
1998-06-22 01:23:33 -04:00
|
|
|
|
xcoffout.h output.h c-pragma.h toplev.h except.h dbxout.h sdbout.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
function.o : function.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
function.h insn-flags.h insn-codes.h $(EXPR_H) $(REGS_H) hard-reg-set.h \
|
1999-03-23 02:51:12 -05:00
|
|
|
|
insn-config.h $(RECOG_H) output.h toplev.h except.h hash.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
stmt.o : stmt.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h function.h \
|
1998-06-27 00:42:25 -04:00
|
|
|
|
insn-flags.h insn-config.h insn-codes.h hard-reg-set.h $(EXPR_H) except.h \
|
rtl.h (insn_first_p): Declare.
* rtl.h (insn_first_p): Declare.
* rtlanal.c (insn_first_p): New function.
* loop.h (varray.h): Include.
(struct induction): Change combined_with to unsigned.
New members derived, ix and last_use.
(reg_iv_type, reg_iv_info): Now varray_type. All references changed.
(REG_IV_TYPE, REG_IV_INFO): Define.
(first_increment_giv, last_increment_giv): Declare.
* loop.c (loop_number_loop_cont): New static variable.
(loop_number_cont_dominator): Likewise.
(reg_iv_type, reg_iv_info): Now varray_type.
(first_increment_giv, last_increment_giv): New variables.
(compute_luids, verify_dominator, find_life_end): New functions.
(cmp_recombine_givs_stats, recombine_givs): Likewise.
(loop_optimize): Allocate loop_number_loop_cont and
loop_number_cont_dominator. Use compute_luids.
(find_and_verify_loops): Initialize loop_number_loop_cont and
loop_number_cont_dominator.
(strength_reduce): Try to find bivs that can be expressed as givs
of another biv, and to convert biv increments into givs.
Call recombine_givs. Handle derived givs.
(record_biv): New argument location. All callers changed.
(record_giv): Initialize derived and last_use fields.
(basic_induction_var): New argument location. All callers changed.
(combine_givs): Don't combine a DEST_REG giv with a DEST_ADDR giv.
Increment combined_with instead of setting to 1.
* unroll.c (derived_regs): New static variable.
(unroll_loop): Initialize it.
Allocate local_regno according to max_reg_num.
(copy_loop_body): Cope with derived givs.
(find_splittable_givs): Check for Givs made from biv increments.
Set derived_regs for givs.
* Makefile.in (stmt.o, loop.o, unroll.o): Depend on loop.h .
From-SVN: r24889
1999-01-27 10:45:50 -05:00
|
|
|
|
loop.h $(RECOG_H) toplev.h output.h varray.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
except.o : except.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
function.h insn-flags.h $(EXPR_H) $(REGS_H) hard-reg-set.h \
|
toplev.h cleanups...
* toplev.c: Include toplev.h.
* Makefile.in (c-common.o, c-convert.o, c-decl.o, c-iterate.o,
c-lex.o, c-parse.o, c-pragma.o, c-typeck.o, calls.o, convert.o,
dwarf2out.o, except.o, expr.o, final.o, fold-const.o, function.o,
hash.o, profile.o, real.o, reg-stack.o, regclass.o, reload.o,
reload1.o, stmt.o, stor-layout.o, tlink.o, tree.o, varasm.o): Add
toplev.h dependency.
From-SVN: r19589
1998-05-06 12:43:15 -04:00
|
|
|
|
insn-config.h $(RECOG_H) output.h except.h toplev.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
expr.o : expr.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h function.h \
|
c-aux-info.c, [...]: Include toplev.h for real declaration of trim_filename.
1999-04-17 20:11 -0400 Zack Weinberg <zack@rabi.columbia.edu>
* c-aux-info.c, emit-rtl.c, explow.c, expmed.c, gcse.c,
haifa-sched.c, optabs.c, reorg.c, resource.c, sched.c: Include
toplev.h for real declaration of trim_filename.
* Makefile.in: Update dependencies.
From-SVN: r26523
1999-04-17 13:14:58 -04:00
|
|
|
|
$(REGS_H) insn-flags.h insn-codes.h $(EXPR_H) insn-config.h $(RECOG_H) \
|
|
|
|
|
output.h typeclass.h hard-reg-set.h toplev.h hard-reg-set.h except.h
|
1998-06-27 00:42:25 -04:00
|
|
|
|
calls.o : calls.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h $(EXPR_H) \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
insn-flags.h $(REGS_H) toplev.h output.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
expmed.o : expmed.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
c-aux-info.c, [...]: Include toplev.h for real declaration of trim_filename.
1999-04-17 20:11 -0400 Zack Weinberg <zack@rabi.columbia.edu>
* c-aux-info.c, emit-rtl.c, explow.c, expmed.c, gcse.c,
haifa-sched.c, optabs.c, reorg.c, resource.c, sched.c: Include
toplev.h for real declaration of trim_filename.
* Makefile.in: Update dependencies.
From-SVN: r26523
1999-04-17 13:14:58 -04:00
|
|
|
|
insn-flags.h insn-config.h insn-codes.h $(EXPR_H) $(RECOG_H) real.h toplev.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
explow.o : explow.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
c-aux-info.c, [...]: Include toplev.h for real declaration of trim_filename.
1999-04-17 20:11 -0400 Zack Weinberg <zack@rabi.columbia.edu>
* c-aux-info.c, emit-rtl.c, explow.c, expmed.c, gcse.c,
haifa-sched.c, optabs.c, reorg.c, resource.c, sched.c: Include
toplev.h for real declaration of trim_filename.
* Makefile.in: Update dependencies.
From-SVN: r26523
1999-04-17 13:14:58 -04:00
|
|
|
|
hard-reg-set.h insn-config.h $(EXPR_H) $(RECOG_H) insn-flags.h \
|
|
|
|
|
insn-codes.h toplev.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
optabs.o : optabs.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
c-aux-info.c, [...]: Include toplev.h for real declaration of trim_filename.
1999-04-17 20:11 -0400 Zack Weinberg <zack@rabi.columbia.edu>
* c-aux-info.c, emit-rtl.c, explow.c, expmed.c, gcse.c,
haifa-sched.c, optabs.c, reorg.c, resource.c, sched.c: Include
toplev.h for real declaration of trim_filename.
* Makefile.in: Update dependencies.
From-SVN: r26523
1999-04-17 13:14:58 -04:00
|
|
|
|
insn-flags.h insn-config.h insn-codes.h $(EXPR_H) $(RECOG_H) reload.h \
|
|
|
|
|
toplev.h
|
1998-07-02 09:49:34 -04:00
|
|
|
|
dbxout.o : dbxout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) flags.h $(REGS_H) \
|
Warning Fixes:
* Makefile.in (print-rtl.o): Depend on bitmap.h.
(dbxout.o): Depend on toplev.h.
($(SCHED_PREFIX)sched.o): Likewise.
($(out_object_file)): Likewise for system.h and toplev.h.
(cppmain.o): Depend on gansidecl.h.
(cpplib.o): Likewise.
(cpperror.o): Likewise.
(cppexp.o): Likewise.
(cpphash.o): Likewise.
(cppalloc.o): Likewise.
(fix-header.o): Depend on cpplib.h and cpphash.h.
(scan-decls.o): Depend on gansidecl.h.
* basic-block.h (free_regset_vector): Add prototype.
* cccp.c (check_precompiled): Mark parameter `fname' with
ATTRIBUTE_UNUSED.
(do_assert): Likewise for `op' and `keyword'.
(do_unassert): Likewise.
(do_line): Likewise for `keyword'.
(do_error): Likewise for `op' and `keyword'.
(do_warning): Likewise.
(do_ident): Likewise for `keyword'.
(do_pragma): Likewise for `limit', `op' and `keyword'.
(do_sccs): Likewise.
(do_if): Likewise for `keyword'.
(do_elif): Likewise.
(do_else): Likewise.
(do_endif): Likewise.
* collect2.c (getenv): Remove redundant prototype.
(collect_exit, collect_execute, dump_file): Likewise.
(dump_list): Wrap prototype and definition in COLLECT_EXPORT_LIST.
(dump_prefix_list): Hide prototype and definition.
* sparc.c: Include toplev.h.
(intreg_operand): Mark parameter `mode' with ATTRIBUTE_UNUSED.
(symbolic_memory_operand): Likewise.
(sp64_medium_pic_operand): Likewise.
(data_segment_operand): Likewise.
(text_segment_operand): Likewise.
(splittable_symbolic_memory_operand): Likewise.
(splittable_immediate_memory_operand): Likewise.
(eq_or_neq): Likewise.
(normal_comp_operator): Likewise.
(noov_compare_op): Likewise.
(v9_regcmp_op): Likewise.
(v8plus_regcmp_op): Likewise.
(extend_op): Likewise.
(cc_arithop): Likewise.
(cc_arithopn): Likewise.
(small_int): Likewise.
(uns_small_int): Likewise.
(clobbered_register): Likewise.
(legitimize_pic_address): Likewise.
(delay_operand): Likewise.
(sparc_builtin_saveregs): Remove unused variable `stdarg'.
* sparc.h (order_regs_for_local_alloc, eligible_for_return_delay,
sparc_issue_rate, v8plus_regcmp_p): Add prototypes.
* sparc.md (cmpdi_v8plus): Add abort for default case in switch.
* cppalloc.c: Include gansidecl.h.
* cpperror.c: Include stdarg.h/varargs.h and gansidecl.h.
(cpp_file_line_for_message): Mark parameter `pfile' with
ATTRIBUTE_UNUSED.
(v_cpp_message): New function.
(cpp_message): Use it. Also convert to variable arguments.
(cpp_fatal): Likewise.
(cpp_pfatal_with_name): Constify parameter `name'.
* cppexp.c: Move gansidecl.h before cpplib.h.
* cpphash.c: Likewise.
* cpphash.h (hashf, delete_macro): Add prototypes.
* cpplib.c: Include stdarg.h/varargs.h and move gansidecl.h before
cpplib.h. Don't include errno.h.
(update_path): Add arguments to prototype.
(cpp_fatal, cpp_file_line_for_message, cpp_message, delete_macro,
cpp_print_containing_files): Remove redundant prototypes.
(cpp_hash_cleanup, add_import, append_include_chain,
make_assertion, path_include, initialize_builtins,
initialize_char_syntax, finclude, validate_else, comp_def_part,
lookup_import, redundant_include_p, is_system_include,
read_name_map, read_filename_string, open_include_file,
check_macro_name, compare_defs, compare_token_lists,
eval_if_expression, change_newlines): Add prototype arguments.
(hashf): Remove redundant prototype.
(read_token_list, free_token_list, safe_read, xcalloc, savestring,
conditional_skip, skip_if_group): Add prototype arguments.
(fdopen): Remove redundant prototype.
(do_define, do_line, do_include, do_undef, do_error, do_pragma,
do_ident, do_if, do_xifdef, do_else, do_elif, do_endif, do_sccs,
do_once, do_assert, do_unassert, do_warning): Add prototype arguments.
(struct directive): Add prototype arguments to function pointer
member `func'.
(handle_directive): Add missing arguments to call to `do_line'.
(do_include): Mark parameters `unused1' and `unused2' with
ATTRIBUTE_UNUSED.
(do_line): Likewise for `keyword' and new parameters `unused1' and
`unused2'.
(do_error): Likewise for `keyword'.
(do_warning): Likewise. Also add missing argument `pfile' in call
to cpp_pedwarn.
(do_once): Mark parameter `keyword', `unused1' and `unused2' with
ATTRIBUTE_UNUSED.
(do_ident): Likewise for `keyword', `buf' and `limit'.
(do_pragma): Likewise. Also add missing arguments in call to do_once.
(do_sccs): Mark parameter `keyword', `buf' and `limit' with
ATTRIBUTE_UNUSED.
(do_if): Likewise for `keyword'.
(do_elif): Likewise.
(eval_if_expression): Likewise for `buf' and `length'.
(do_xifdef): Likewise for `unused1' and `unused2'.
(do_else): Likewise for `keyword', `buf' and `limit'.
(do_endif): Likewise.
(parse_name): Add missing argument `pfile' in call to cpp_pedwarn.
(cpp_handle_options): Remove superfluous NULL argument in call to
cpp_fatal.
(cpp_handle_options): Likewise.
(do_assert): Mark parameter `keyword', `buf' and `limit' with
ATTRIBUTE_UNUSED.
(do_unassert): Likewise.
(cpp_print_file_and_line): Add missing argument `pfile' in call to
cpp_file_line_for_message.
(v_cpp_error): New function.
(cpp_error): Use it. Also accept variable arguments.
(v_cpp_warning): New function.
(cpp_warning): Use it. Also accept variable arguments.
(cpp_pedwarn): Accept variable arguments.
(v_cpp_error_with_line): New function
(cpp_error_with_line): Use it. Accept variable arguments.
(v_cpp_warning_with_line): New function.
(cpp_warning_with_line): Use it. Accept variable arguments. Hide
definition.
(cpp_pedwarn_with_line): Accept variable arguments.
(cpp_pedwarn_with_file_and_line): Likewise.
(cpp_error_from_errno): Constify parameter `name'. Add missing
argument `pfile' in call to cpp_file_line_for_message.
(cpp_perror_with_name): Constify parameter `name'.
* cpplib.h: Define PARAMS() in terms of PROTO().
(fatal): Remove redundant prototype.
(cpp_error, cpp_warning, cpp_pedwarn, cpp_error_with_line,
cpp_pedwarn_with_line, cpp_pedwarn_with_file_and_line,
cpp_error_from_errno, cpp_perror_with_name, cpp_pfatal_with_name,
cpp_fatal, cpp_message, cpp_pfatal_with_name,
cpp_file_line_for_message, cpp_print_containing_files): Add
arguments to prototypes.
(scan_decls, cpp_finish): Add prototypes.
* cppmain.c: Include gansidecl.h.
(main): Remove unused variable `i'.
* dbxout.c: Include toplev.h.
* demangle.h (do_tlink, collect_execute, collect_exit,
collect_wait, dump_file, file_exists): Add prototype.
* dwarf2out.c (dwarf_type_encoding_name, decl_start_label): Hide
prototype and definition.
(gen_unspecified_parameters_die): Don't assign results of call to
function new_die() to unused variable `parm_die'.
(dwarf2out_line): Mark parameter `filename' with ATTRIBUTE_UNUSED.
(dwarf2out_define): Likewise for `lineno' and `buffer'.
* dwarfout.c (output_unsigned_leb128, output_signed_leb128): Hide
prototype and definition.
(output_die): Add prototype arguments to function pointer arg.
(output_unspecified_parameters_die): Mark parameter `arg' with
ATTRIBUTE_UNUSED.
* except.c (output_exception_table_entry): Remove unused variable
`eh_entry'.
* except.h (expand_fixup_region_start, expand_fixup_region_end):
Add prototypes.
* expr.c (do_jump_by_parts_equality_rtx): Remove prototype.
* expr.h (do_jump_by_parts_equality_rtx): Add prototype.
* fix-header.c: Include stdarg.h/varargs.h, move gansidecl.h
before cpplib.h, include cpphash.h, remove redundant prototype of
cpp_fatal, don't define `const', add a prototype for `fatal'.
(cpp_file_line_for_message): Add missing arguments `pfile'.
(v_cpp_message): New function.
(cpp_message): Use it.
(v_fatal): New function.
(fatal, cpp_fatal): Use it.
(cpp_pfatal_with_name): Constify parameter `name'.
* flow.c (free_regset_vector): Remove redundant prototype.
* function.c (round_down): Wrap prototype and definition with
macro ARGS_GROW_DOWNWARD.
(record_insns): Wrap prototype and definition with
defined (HAVE_prologue) || defined (HAVE_epilogue).
* gansidecl.h (ATTRIBUTE_PRINTF_4, ATTRIBUTE_PRINTF_5): New macros.
* gen-protos.c: Include gansidecl.h.
(hashf): Don't make it static, constify parameter `name'.
* genattrtab.c (check_attr_test): Change XEXP() to XSTR() to match
specifier %s in calls to function `fatal'.
* haifa-sched.c: Include toplev.h.
(find_rgns): Remove unused variable `j'.
* integrate.c (note_modified_parmregs): Mark parameter `x' with
ATTRIBUTE_UNUSED.
(mark_stores): Likewise.
* jump.c (mark_modified_reg): Likewise.
* output.h (insn_current_reference_address): Add prototype.
(eh_frame_section): Likewise.
* print-rtl.c: Include bitmap.h.
* reload1.c (reload): Wrap variables `note' and `next' in macro
PRESERVE_DEATH_INFO_REGNO_P.
(forget_old_reloads_1): Mark parameter `ignored' with
ATTRIBUTE_UNUSED.
(choose_reload_regs): Remove unused variable `in'.
(reload_cse_invalidate_mem): Mark parameter `ignore' with
ATTRIBUTE_UNUSED.
(reload_cse_check_clobber): Likewise.
* rtl.h (expand_null_return, reg_classes_intersect_p): Add prototype.
(mark_elimination): Fix typo in prototype.
* scan-decls.c: Include gansidecl.h.
* tree.h (using_eh_for_cleanups, supports_one_only): Add prototype.
From-SVN: r19867
1998-05-19 04:42:48 -04:00
|
|
|
|
insn-config.h reload.h gstab.h xcoffout.h defaults.h output.h dbxout.h \
|
|
|
|
|
toplev.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
sdbout.o : sdbout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) flags.h except.h \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
function.h $(EXPR_H) output.h hard-reg-set.h $(REGS_H) defaults.h real.h \
|
Makefile.in (pexecute.o): Use pexecute.c from libiberty.
* Makefile.in (pexecute.o): Use pexecute.c from libiberty. Provide
explicit rules for building. Similarly for alloca, vfprintf,
choose-temp and mkstemp, getopt, getopt1, and obstack.
(INCLUDES): Add $(srcdir)/../include.
* pexecute.c, alloca.c, vfprintf.c, choose-temp.c, mkstemp.c: Delete.
* getopt.h, getopt.c getopt1.c, obstack.c, obstack.h: Likewise.
From-SVN: r22258
1998-09-05 08:24:04 -04:00
|
|
|
|
insn-config.h $(srcdir)/../include/obstack.h xcoffout.h c-pragma.h \
|
|
|
|
|
sdbout.h toplev.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
dwarfout.o : dwarfout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) dwarf.h \
|
dwarfout.h, [...]: New files.
* dwarfout.h, dwarf2out.h, dbxout.h, sdbout.h: New files.
Prototypes for externally used functions in respective C files.
* dwarfout.c, dbxout.c, dwarf2out.c, sdbout.c, toplev,c,
final.c: Include above files.
* Makefile.in (toplev.o): Add dependency for above four headers.
(final.o): Likewise.
(dwarfout.o, dbxout.o, dwarf2out.o, sdbout.o): Depend on four
respective header files.
From-SVN: r19835
1998-05-18 03:11:42 -04:00
|
|
|
|
flags.h insn-config.h reload.h output.h defaults.h toplev.h dwarfout.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
dwarf2out.o : dwarf2out.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) dwarf2.h \
|
1998-06-27 00:42:25 -04:00
|
|
|
|
flags.h insn-config.h reload.h output.h defaults.h \
|
1998-07-30 08:30:30 -04:00
|
|
|
|
hard-reg-set.h $(REGS_H) $(EXPR_H) toplev.h dwarf2out.h dyn-string.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
xcoffout.o : xcoffout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) xcoffout.h \
|
Warning fixes:
* Makefile.in (xcoffout.o): Depend on toplev.h, output.h and dbxout.h.
* config/fp-bit.c (_fpmul_parts): Move variables `x', `ylow',
`yhigh' and `bit' into the scope in which they are used.
(_fpdiv_parts): Remove unused variables `low', `high', `r0', `r1',
`y0', `y1', `q', `remainder', `carry', `d0' and `d1'.
* rs6000.c: Move include of output.h below tree.h. Include toplev.h.
(any_operand): Mark unused parameters `op' and `mode' with
ATTRIBUTE_UNUSED.
(count_register_operand): Likewise for parameter `mode'.
(fpmem_operand): Likewise.
(short_cint_operand): Likewise.
(u_short_cint_operand): Likewise.
(non_short_cint_operand): Likewise.
(got_operand): Likewise.
(got_no_const_operand): Likewise.
(non_add_cint_operand): Likewise.
(non_logical_cint_operand): Likewise.
(mask_operand): Likewise.
(current_file_function_operand): Likewise.
(small_data_operand): Likewise for parameters `op' and `mode' but
only when !TARGET_ELF.
(init_cumulative_args): Mark parameters `libname' with
ATTRIBUTE_UNUSED.
(function_arg_pass_by_reference): Likewise for parameters `cum',
`mode' and `named'.
(expand_builtin_saveregs): Likewise for parameter `args'.
(load_multiple_operation): Likewise for parameter `mode'.
(store_multiple_operation): Likewise.
(branch_comparison_operator): Likewise.
(secondary_reload_class): Likewise.
(print_operand): Add parentheses around & operation.
(output_prolog): Mark parameter `size' with ATTRIBUTE_UNUSED.
(output_epilog): Likewise. Cast argument to fprintf to int.
(rs6000_adjust_cost): Mark parameter `dep_insn' with ATTRIBUTE_UNUSED.
(rs6000_valid_decl_attribute_p): Likewise for parameters `decl',
`attributes', `identifier' and `args'.
(rs6000_valid_type_attribute_p): Likewise for parameter `attributes'.
(rs6000_comp_type_attributes): Likewise for parameters `type1' and
`type2'.
(rs6000_set_default_type_attributes): Likewise for parameter `type'.
* rs6000.h (RTX_COSTS): Add parentheses around & operation.
(toc_section, private_data_section, trap_comparison_operator): Add
prototypes.
* dbxout.h (dbxout_parms, dbxout_reg_parms, dbxout_syms): Add
prototypes.
* xcoffout.c: Include toplev.h, outout.h and dbxout.h.
* xcoffout.h (stab_to_sclass, xcoffout_begin_function,
xcoffout_begin_block, xcoffout_end_epilogue,
xcoffout_end_function, xcoffout_end_block,
xcoff_output_standard_types, xcoffout_declare_function,
xcoffout_source_line): Add prototypes.
From-SVN: r20717
1998-06-25 09:05:20 -04:00
|
|
|
|
flags.h toplev.h output.h dbxout.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
emit-rtl.o : emit-rtl.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
except.h function.h $(REGS_H) insn-config.h $(RECOG_H) real.h \
|
c-aux-info.c, [...]: Include toplev.h for real declaration of trim_filename.
1999-04-17 20:11 -0400 Zack Weinberg <zack@rabi.columbia.edu>
* c-aux-info.c, emit-rtl.c, explow.c, expmed.c, gcse.c,
haifa-sched.c, optabs.c, reorg.c, resource.c, sched.c: Include
toplev.h for real declaration of trim_filename.
* Makefile.in: Update dependencies.
From-SVN: r26523
1999-04-17 13:14:58 -04:00
|
|
|
|
$(EXPR_H) $(srcdir)/../include/obstack.h hard-reg-set.h bitmap.h toplev.h
|
toplev.h cleanups...
* toplev.c: Include toplev.h.
* Makefile.in (c-common.o, c-convert.o, c-decl.o, c-iterate.o,
c-lex.o, c-parse.o, c-pragma.o, c-typeck.o, calls.o, convert.o,
dwarf2out.o, except.o, expr.o, final.o, fold-const.o, function.o,
hash.o, profile.o, real.o, reg-stack.o, regclass.o, reload.o,
reload1.o, stmt.o, stor-layout.o, tlink.o, tree.o, varasm.o): Add
toplev.h dependency.
From-SVN: r19589
1998-05-06 12:43:15 -04:00
|
|
|
|
real.o : real.c $(CONFIG_H) system.h $(TREE_H) toplev.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
getpwd.o : getpwd.c $(CONFIG_H) system.h
|
|
|
|
|
|
|
|
|
|
integrate.o : integrate.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
integrate.h insn-flags.h insn-config.h $(EXPR_H) real.h $(REGS_H) \
|
1999-01-26 20:43:17 -05:00
|
|
|
|
intl.h function.h output.h $(RECOG_H) except.h toplev.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
|
1998-07-02 09:49:34 -04:00
|
|
|
|
jump.o : jump.c $(CONFIG_H) system.h $(RTL_H) flags.h hard-reg-set.h $(REGS_H) \
|
1998-06-27 00:42:25 -04:00
|
|
|
|
insn-config.h insn-flags.h $(RECOG_H) $(EXPR_H) real.h except.h \
|
1999-02-15 17:09:07 -05:00
|
|
|
|
toplev.h insn-attr.h
|
1998-07-02 09:49:34 -04:00
|
|
|
|
stupid.o : stupid.c $(CONFIG_H) system.h $(RTL_H) $(REGS_H) hard-reg-set.h \
|
Makefile.in (stupid.o): Update dependencies.
* Makefile.in (stupid.o): Update dependencies.
(global.o): Likewise.
* global.c: Include reload.h
(reg_becomes_live): New function.
(reg_dies): New function.
(build_insn_chain): New function.
(global_alloc): Call build_insn_chain before calling reload.
* reload.h (struct needs): New structure definition.
(struct insn_chain): Likewise.
(reload_insn_chain): Declare variable.
(new_insn_chain): Declare function.
* reload1.c (reload_startobj): New variable.
(reload_insn_chain): New variable.
(unused_insn_chains): New variable.
(new_insn_chain): New function.
(init_reload): Initialize reload_startobj, not reload_firstobj.
(reload): Initialize reload_firstobj.
Before returning, free everything on the reload_obstack.
* stupid.c: Include insn-config.h, reload.h and basic-block.h.
(reg_where_dead_chain, reg_where_born_exact, reg_where_born_clobber,
current_chain): New variables.
(reg_where_born): Delete variable.
(REG_WHERE_BORN): New macro.
(find_clobbered_regs): New function.
(stupid_life_analysis): Don't allocate/free reg_where_born.
Allocate and free reg_where_born_exact, reg_where_born_clobber,
reg_where_dead_chain.
Use REG_WHERE_BORN instead of reg_where_born.
While processing the insns, build the reload_insn_chain with
information about register lifetimes.
(stupid_reg_compare): Use REG_WHERE_BORN instead of reg_where_born.
(stupid_mark_refs): Replace arg INSN with arg CHAIN. All callers
changed.
Compute and information about birth and death of pseudo registers in
reg_where_dead_chain, reg_where_born_exact and reg_where_born_clobber.
Delete code to set elements of reg_where_born.
From-SVN: r22862
1998-10-05 20:39:23 -04:00
|
|
|
|
$(BASIC_BLOCK_H) insn-config.h reload.h flags.h toplev.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1998-07-02 09:49:34 -04:00
|
|
|
|
cse.o : cse.c $(CONFIG_H) system.h $(RTL_H) $(REGS_H) hard-reg-set.h flags.h \
|
1999-03-30 15:52:33 -05:00
|
|
|
|
real.h insn-config.h $(RECOG_H) $(EXPR_H) toplev.h output.h \
|
|
|
|
|
$(srcdir)/../include/splay-tree.h
|
c-aux-info.c, [...]: Include toplev.h for real declaration of trim_filename.
1999-04-17 20:11 -0400 Zack Weinberg <zack@rabi.columbia.edu>
* c-aux-info.c, emit-rtl.c, explow.c, expmed.c, gcse.c,
haifa-sched.c, optabs.c, reorg.c, resource.c, sched.c: Include
toplev.h for real declaration of trim_filename.
* Makefile.in: Update dependencies.
From-SVN: r26523
1999-04-17 13:14:58 -04:00
|
|
|
|
gcse.o : gcse.c $(CONFIG_H) system.h $(RTL_H) $(REGS_H) hard-reg-set.h \
|
|
|
|
|
flags.h real.h insn-config.h $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H) \
|
|
|
|
|
output.h toplev.h
|
1999-02-02 20:13:52 -05:00
|
|
|
|
resource.o : resource.c $(CONFIG_H) $(RTL_H) hard-reg-set.h system.h \
|
c-aux-info.c, [...]: Include toplev.h for real declaration of trim_filename.
1999-04-17 20:11 -0400 Zack Weinberg <zack@rabi.columbia.edu>
* c-aux-info.c, emit-rtl.c, explow.c, expmed.c, gcse.c,
haifa-sched.c, optabs.c, reorg.c, resource.c, sched.c: Include
toplev.h for real declaration of trim_filename.
* Makefile.in: Update dependencies.
From-SVN: r26523
1999-04-17 13:14:58 -04:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) flags.h output.h resource.h toplev.h
|
1999-03-10 17:03:36 -05:00
|
|
|
|
lcm.o : lcm.c $(CONFIG_H) system.h $(RTL_H) $(REGS_H) hard-reg-set.h flags.h \
|
|
|
|
|
real.h insn-config.h $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H)
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
profile.o : profile.c $(CONFIG_H) system.h $(RTL_H) flags.h insn-flags.h \
|
1998-09-09 07:33:00 -04:00
|
|
|
|
gcov-io.h $(TREE_H) output.h $(REGS_H) toplev.h insn-config.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
loop.o : loop.c $(CONFIG_H) system.h $(RTL_H) flags.h loop.h insn-config.h \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
insn-flags.h $(REGS_H) hard-reg-set.h $(RECOG_H) $(EXPR_H) real.h \
|
rtl.h (insn_first_p): Declare.
* rtl.h (insn_first_p): Declare.
* rtlanal.c (insn_first_p): New function.
* loop.h (varray.h): Include.
(struct induction): Change combined_with to unsigned.
New members derived, ix and last_use.
(reg_iv_type, reg_iv_info): Now varray_type. All references changed.
(REG_IV_TYPE, REG_IV_INFO): Define.
(first_increment_giv, last_increment_giv): Declare.
* loop.c (loop_number_loop_cont): New static variable.
(loop_number_cont_dominator): Likewise.
(reg_iv_type, reg_iv_info): Now varray_type.
(first_increment_giv, last_increment_giv): New variables.
(compute_luids, verify_dominator, find_life_end): New functions.
(cmp_recombine_givs_stats, recombine_givs): Likewise.
(loop_optimize): Allocate loop_number_loop_cont and
loop_number_cont_dominator. Use compute_luids.
(find_and_verify_loops): Initialize loop_number_loop_cont and
loop_number_cont_dominator.
(strength_reduce): Try to find bivs that can be expressed as givs
of another biv, and to convert biv increments into givs.
Call recombine_givs. Handle derived givs.
(record_biv): New argument location. All callers changed.
(record_giv): Initialize derived and last_use fields.
(basic_induction_var): New argument location. All callers changed.
(combine_givs): Don't combine a DEST_REG giv with a DEST_ADDR giv.
Increment combined_with instead of setting to 1.
* unroll.c (derived_regs): New static variable.
(unroll_loop): Initialize it.
Allocate local_regno according to max_reg_num.
(copy_loop_body): Cope with derived givs.
(find_splittable_givs): Check for Givs made from biv increments.
Set derived_regs for givs.
* Makefile.in (stmt.o, loop.o, unroll.o): Depend on loop.h .
From-SVN: r24889
1999-01-27 10:45:50 -05:00
|
|
|
|
toplev.h varray.h
|
1998-06-27 00:42:25 -04:00
|
|
|
|
unroll.o : unroll.c $(CONFIG_H) system.h $(RTL_H) insn-config.h \
|
rtl.h (insn_first_p): Declare.
* rtl.h (insn_first_p): Declare.
* rtlanal.c (insn_first_p): New function.
* loop.h (varray.h): Include.
(struct induction): Change combined_with to unsigned.
New members derived, ix and last_use.
(reg_iv_type, reg_iv_info): Now varray_type. All references changed.
(REG_IV_TYPE, REG_IV_INFO): Define.
(first_increment_giv, last_increment_giv): Declare.
* loop.c (loop_number_loop_cont): New static variable.
(loop_number_cont_dominator): Likewise.
(reg_iv_type, reg_iv_info): Now varray_type.
(first_increment_giv, last_increment_giv): New variables.
(compute_luids, verify_dominator, find_life_end): New functions.
(cmp_recombine_givs_stats, recombine_givs): Likewise.
(loop_optimize): Allocate loop_number_loop_cont and
loop_number_cont_dominator. Use compute_luids.
(find_and_verify_loops): Initialize loop_number_loop_cont and
loop_number_cont_dominator.
(strength_reduce): Try to find bivs that can be expressed as givs
of another biv, and to convert biv increments into givs.
Call recombine_givs. Handle derived givs.
(record_biv): New argument location. All callers changed.
(record_giv): Initialize derived and last_use fields.
(basic_induction_var): New argument location. All callers changed.
(combine_givs): Don't combine a DEST_REG giv with a DEST_ADDR giv.
Increment combined_with instead of setting to 1.
* unroll.c (derived_regs): New static variable.
(unroll_loop): Initialize it.
Allocate local_regno according to max_reg_num.
(copy_loop_body): Cope with derived givs.
(find_splittable_givs): Check for Givs made from biv increments.
Set derived_regs for givs.
* Makefile.in (stmt.o, loop.o, unroll.o): Depend on loop.h .
From-SVN: r24889
1999-01-27 10:45:50 -05:00
|
|
|
|
integrate.h $(REGS_H) $(RECOG_H) flags.h $(EXPR_H) loop.h toplev.h varray.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
flow.o : flow.c $(CONFIG_H) system.h $(RTL_H) flags.h insn-config.h \
|
1999-03-03 18:08:02 -05:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h toplev.h recog.h \
|
|
|
|
|
insn-flags.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
combine.o : combine.c $(CONFIG_H) system.h $(RTL_H) flags.h \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
insn-config.h insn-flags.h insn-codes.h insn-attr.h $(REGS_H) $(EXPR_H) \
|
1998-06-19 19:37:04 -04:00
|
|
|
|
$(BASIC_BLOCK_H) $(RECOG_H) real.h hard-reg-set.h toplev.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
regclass.o : regclass.c $(CONFIG_H) system.h $(RTL_H) hard-reg-set.h flags.h \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) insn-config.h $(RECOG_H) reload.h real.h toplev.h \
|
Warning fixes:
* Makefile.in (c-lang.o): Depend on c-tree.h, c-lex.h and toplev.h.
(c-lex.o): Depend on output.h.
(c-common.o): Likewise.
(stmt.o): Likewise.
(calls.o): Likewise.
(integrate.o): Depend on toplev.h.
(regclass.o): Depend on output.h.
(final.o): Depend on reload.h.
* c-common.c: Include output.h.
(check_format_info): Remove unused variable `integral_format'.
* c-decl.c (print_lang_decl): Mark parameters `file', `node' and
`indent' with ATTRIBUTE_UNUSED.
(print_lang_type): Likewise.
(maybe_build_cleanup): Likewise for parameter `decl'.
(copy_lang_decl): Likewise for parameter `node'.
* c-lang.c: Include c-tree.h, c-lex.h and toplev.h.
(lang_print_xnode): Mark parameters `file', `node' and `indent'
with ATTRIBUTE_UNUSED.
(lookup_interface): Likewise for parameter `arg'.
(is_class_name): Likewise.
(maybe_objc_check_decl): Likewise for parameter `decl'.
(maybe_objc_comptypes): Likewise for parameters `lhs', `rhs' and
`reflexive'.
(maybe_objc_method_name): Likewise for parameter `decl'.
(build_objc_string): Likewise for parameters `len' and `str'.
* c-lex.c: Include output.h.
* c-lex.h (position_after_white_space): Correct typo in prototype.
* c-tree.h (finish_file, c_expand_start_cond, c_expand_start_else,
c_expand_end_cond, init_iterators): Add prototypes.
* caller-save.c (set_reg_live): Mark parameters `reg' and `setter'
with ATTRIBUTE_UNUSED.
* calls.c: Include output.h.
* cccp.c (pipe_closed): Mark parameter `signo' with
ATTRIBUTE_UNUSED.
* combine.c: Move inclusion of expr.h to after insn-config.h.
* iris6.h (ASM_IDENTIFY_GCC, ASM_IDENTIFY_LANGUAGE): Don't define
as empty, rather define as ((void)0).
* sparc.c (sparc_check_64): Add braces around ambiguous `else'.
Add parentheses around assignment used as truth value.
* cplus-dem.c (squangle_mop_up): Change return type to void.
(internal_cplus_demangle): Remove unused parameter `options'.
All callers changed.
(cplus_demangle_opname): Remove function wide variable `int i' and
replace with `size_t i' at each location where it is used.
(cplus_demangle_opname): change type of `i' from int to size_t.
* cppexp.c (right_shift): Mark parameter `pfile' with
ATTRIBUTE_UNUSED.
* cpphash.c (cpp_lookup): Likewise.
(cpp_hash_cleanup): Likewise.
* cpplib.c (parse_name): Add a prototype and make it static.
(null_underflow): Mark parameter `pfile' with ATTRIBUTE_UNUSED.
(null_cleanup): Likewise for parameters `pbuf' and `pfile'.
(macro_cleanup): Likewise for parameter `pfile'.
(file_cleanup): Likewise.
* cpplib.h (cpp_reader_init, cpp_options_init, cpp_start_read,
cpp_read_check_assertion, skip_rest_of_line): Add prototypes.
* crtstuff.c (force_to_data, __CTOR_LIST__, force_to_data,
__DTOR_END__, __FRAME_END__): Mark with ATTRIBUTE_UNUSED.
* cse.c (cse_check_loop_start): Mark parameter `set' with
ATTRIBUTE_UNUSED.
* dbxout.c (flag_minimal_debug, have_used_extensions,
source_label_number): Move inside macro wrapper check against
defined (DBX_DEBUGGING_INFO) || defined (XCOFF_DEBUGGING_INFO).
* dwarf2out.c (gen_entry_point_die): Hide prototype and definition.
* except.h (doing_eh): Provide prototype.
* expr.c: Move inclusion of expr.h to after insn-config.h.
* final.c: Include reload.h.
(shorten_branches): Cast the first argument of bzero to char *.
* fix-header.c (cpp_print_containing_files): Mark parameter
`pfile' with ATTRIBUTE_UNUSED.
(cpp_fatal): Likewise.
* flow.c (find_basic_blocks_1): Cast the first argument of bzero
to char *.
* genattrtab.c (make_length_attrs): Change the type of variable
`i' from int to size_t.
(zero_fn): Mark parameter `exp' with ATTRIBUTE_UNUSED.
(one_fn): Likewise.
* genextract.c (main): When generating insn-extract.c, mark
variable `junk' with ATTRIBUTE_UNUSED.
* gengenrtl.c (gencode): When generating genrtl.c, cast the first
argument of bzero to char*.
* integrate.c: Include toplev.h.
* libgcc2.c: Wrap `struct exception_table' and
`find_exception_handler' in macro DWARF2_UNWIND_INFO.
* objc/Make-lang.in (objc-act.o): Depend on toplev.h.
* objc/objc-act.c: Include toplev.h.
(lang_print_xnode): Mark parameters `file', `node' and `indent'
with ATTRIBUTE_UNUSED.
(finish_protocol): Likewise for parameter `protocol'.
* output.h (declare_weak): Add prototype.
(decode_reg_name): Don't wrap with TREE_CODE macro.
(assemble_alias): Add prototype.
* regclass.c: Include output.h.
* reload.h (reloads_conflict): Add prototype.
* rtl.h (print_rtl_single, mark_elimiation, reg_class_subset_p,
output_func_start_profiler): Add prototypes.
* rtlanal.c (reg_set_p_1): Mark parameters `x' and `pat' with
ATTRIBUTE_UNUSED.
* scan-decls.c: Include scan.h.
* scan.h (recognized_function, recognized_extern): Add prototypes.
* stmt.c: Include output.h.
* toplev.c (error_for_asm, warning_for_asm): Remove prototypes.
(output_lang_identify): Hide prototype and definition.
(float_signal): Mark parameter `signo' with ATTRIBUTE_UNUSED.
(pipe_closed): Likewise.
* toplev.h (count_error, strip_off_ending, error_for_asm,
warning_for_asm): Add prototypes.
From-SVN: r19712
1998-05-13 08:40:39 -04:00
|
|
|
|
output.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
local-alloc.o : local-alloc.c $(CONFIG_H) system.h $(RTL_H) flags.h \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h insn-config.h $(RECOG_H) output.h \
|
1998-06-19 19:37:04 -04:00
|
|
|
|
insn-attr.h toplev.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
bitmap.o : bitmap.c $(CONFIG_H) system.h $(RTL_H) flags.h $(BASIC_BLOCK_H) \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
$(REGS_H)
|
Makefile.in (stupid.o): Update dependencies.
* Makefile.in (stupid.o): Update dependencies.
(global.o): Likewise.
* global.c: Include reload.h
(reg_becomes_live): New function.
(reg_dies): New function.
(build_insn_chain): New function.
(global_alloc): Call build_insn_chain before calling reload.
* reload.h (struct needs): New structure definition.
(struct insn_chain): Likewise.
(reload_insn_chain): Declare variable.
(new_insn_chain): Declare function.
* reload1.c (reload_startobj): New variable.
(reload_insn_chain): New variable.
(unused_insn_chains): New variable.
(new_insn_chain): New function.
(init_reload): Initialize reload_startobj, not reload_firstobj.
(reload): Initialize reload_firstobj.
Before returning, free everything on the reload_obstack.
* stupid.c: Include insn-config.h, reload.h and basic-block.h.
(reg_where_dead_chain, reg_where_born_exact, reg_where_born_clobber,
current_chain): New variables.
(reg_where_born): Delete variable.
(REG_WHERE_BORN): New macro.
(find_clobbered_regs): New function.
(stupid_life_analysis): Don't allocate/free reg_where_born.
Allocate and free reg_where_born_exact, reg_where_born_clobber,
reg_where_dead_chain.
Use REG_WHERE_BORN instead of reg_where_born.
While processing the insns, build the reload_insn_chain with
information about register lifetimes.
(stupid_reg_compare): Use REG_WHERE_BORN instead of reg_where_born.
(stupid_mark_refs): Replace arg INSN with arg CHAIN. All callers
changed.
Compute and information about birth and death of pseudo registers in
reg_where_dead_chain, reg_where_born_exact and reg_where_born_clobber.
Delete code to set elements of reg_where_born.
From-SVN: r22862
1998-10-05 20:39:23 -04:00
|
|
|
|
global.o : global.c $(CONFIG_H) system.h $(RTL_H) flags.h reload.h \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h insn-config.h output.h toplev.h
|
|
|
|
|
varray.o : varray.c $(CONFIG_H) system.h varray.h $(RTL_H) $(TREE_H) bitmap.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1998-06-27 00:42:25 -04:00
|
|
|
|
reload.o : reload.c $(CONFIG_H) system.h $(RTL_H) flags.h output.h $(EXPR_H) \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
reload.h $(RECOG_H) hard-reg-set.h insn-config.h insn-codes.h $(REGS_H) \
|
toplev.h cleanups...
* toplev.c: Include toplev.h.
* Makefile.in (c-common.o, c-convert.o, c-decl.o, c-iterate.o,
c-lex.o, c-parse.o, c-pragma.o, c-typeck.o, calls.o, convert.o,
dwarf2out.o, except.o, expr.o, final.o, fold-const.o, function.o,
hash.o, profile.o, real.o, reg-stack.o, regclass.o, reload.o,
reload1.o, stmt.o, stor-layout.o, tlink.o, tree.o, varasm.o): Add
toplev.h dependency.
From-SVN: r19589
1998-05-06 12:43:15 -04:00
|
|
|
|
real.h toplev.h
|
1998-06-27 00:42:25 -04:00
|
|
|
|
reload1.o : reload1.c $(CONFIG_H) system.h $(RTL_H) real.h flags.h $(EXPR_H) \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
reload.h $(REGS_H) hard-reg-set.h insn-config.h insn-flags.h insn-codes.h \
|
toplev.h cleanups...
* toplev.c: Include toplev.h.
* Makefile.in (c-common.o, c-convert.o, c-decl.o, c-iterate.o,
c-lex.o, c-parse.o, c-pragma.o, c-typeck.o, calls.o, convert.o,
dwarf2out.o, except.o, expr.o, final.o, fold-const.o, function.o,
hash.o, profile.o, real.o, reg-stack.o, regclass.o, reload.o,
reload1.o, stmt.o, stor-layout.o, tlink.o, tree.o, varasm.o): Add
toplev.h dependency.
From-SVN: r19589
1998-05-06 12:43:15 -04:00
|
|
|
|
$(BASIC_BLOCK_H) $(RECOG_H) output.h toplev.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
caller-save.o : caller-save.c $(CONFIG_H) system.h $(RTL_H) flags.h \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
$(REGS_H) hard-reg-set.h insn-config.h $(BASIC_BLOCK_H) \
|
1998-06-27 00:42:25 -04:00
|
|
|
|
$(RECOG_H) reload.h $(EXPR_H) toplev.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
reorg.o : reorg.c $(CONFIG_H) system.h $(RTL_H) conditions.h hard-reg-set.h \
|
c-aux-info.c, [...]: Include toplev.h for real declaration of trim_filename.
1999-04-17 20:11 -0400 Zack Weinberg <zack@rabi.columbia.edu>
* c-aux-info.c, emit-rtl.c, explow.c, expmed.c, gcse.c,
haifa-sched.c, optabs.c, reorg.c, resource.c, sched.c: Include
toplev.h for real declaration of trim_filename.
* Makefile.in: Update dependencies.
From-SVN: r26523
1999-04-17 13:14:58 -04:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) insn-config.h insn-attr.h insn-flags.h \
|
|
|
|
|
$(RECOG_H) flags.h output.h $(EXPR_H) toplev.h
|
1998-07-09 18:55:40 -04:00
|
|
|
|
alias.o : alias.c $(CONFIG_H) system.h $(RTL_H) flags.h hard-reg-set.h \
|
1998-08-25 08:01:52 -04:00
|
|
|
|
$(REGS_H) toplev.h output.h $(EXPR_H)
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
regmove.o : regmove.c $(CONFIG_H) system.h $(RTL_H) insn-config.h \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
$(RECOG_H) output.h reload.h $(REGS_H) hard-reg-set.h flags.h \
|
1998-06-27 00:42:25 -04:00
|
|
|
|
$(EXPR_H) insn-flags.h $(BASIC_BLOCK_H) toplev.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
$(SCHED_PREFIX)sched.o : $(SCHED_PREFIX)sched.c $(CONFIG_H) system.h $(RTL_H) \
|
1998-10-14 05:02:55 -04:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h flags.h insn-config.h \
|
|
|
|
|
insn-attr.h toplev.h recog.h
|
1999-01-26 20:43:17 -05:00
|
|
|
|
final.o : final.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h intl.h \
|
|
|
|
|
$(REGS_H) $(RECOG_H) conditions.h insn-config.h insn-attr.h except.h real.h \
|
|
|
|
|
output.h hard-reg-set.h insn-flags.h insn-codes.h gstab.h xcoffout.h \
|
|
|
|
|
defaults.h toplev.h reload.h dwarfout.h dwarf2out.h sdbout.h dbxout.h
|
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
From-SVN: r18726
1998-03-20 09:58:42 -05:00
|
|
|
|
recog.o : recog.c $(CONFIG_H) system.h $(RTL_H) \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
$(REGS_H) $(RECOG_H) hard-reg-set.h flags.h insn-config.h insn-attr.h \
|
1998-10-25 07:56:39 -05:00
|
|
|
|
insn-flags.h insn-codes.h real.h toplev.h
|
1998-12-04 07:55:59 -05:00
|
|
|
|
reg-stack.o : reg-stack.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) recog.h \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
$(REGS_H) hard-reg-set.h flags.h insn-config.h insn-flags.h toplev.h
|
configure.in (host_xm_file, [...]): Arrange to include gansidecl.h in {ht}config.h & tm.h just before the config/...
* configure.in (host_xm_file, build_xm_file, xm_file, tm_file):
Arrange to include gansidecl.h in {ht}config.h & tm.h just
before the config/ directory headers.
(tm_file_list, host_xm_file_list, build_xm_file_list): Handle
gansidecl.h in the list of dependencies.
* Makefile.in (RTL_BASE_H): Don't depend on gansidecl.h.
(TREE_H, DEMANGLE_H, RECOG_H, REGS_H, libgcc2.a, stmp-multilib,
mbchar.o, collect2.o, pexecute.o, vfprintf.o, splay-tree.o, gcc.o,
gencheck.o, choose-temp.o, mkstemp.o, mkstemp.o, prefix.o,
dyn-string.o, cexp.o, cccp.o, cppmain.o, cpplib.o, cpperror.o,
cppexp.o, cppfiles.o, cpphash.o, cppalloc.o, scan-decls.o):
Likewise.
* cccp.c: Don't include gansidecl.h.
* cexp.y: Likewise.
* collect2.c: Likewise.
* config/c4x/c4x.c: Likewise.
* config/v850/v850.h: Likewise.
* cppalloc.c: Likewise.
* cpperror.c: Likewise.
* cppexp.c: Likewise.
* cppfiles.c: Likewise.
* cpphash.c: Likewise.
* cpplib.c: Likewise.
* cppmain.c: Likewise.
* cppulp.c: Likewise.
* demangle.h: Likewise.
* doprint.c: Likewise.
* dyn-string.c: Likewise.
* eh-common.h: Likewise.
* fix-header.c: Likewise.
* frame.c: Likewise.
* gcc.c: Likewise.
* gcov.c: Likewise.
* gen-protos.c: Likewise.
* gencheck.c: Likewise.
* halfpic.h: Likewise.
* hash.c: Likewise.
* machmode.h: Likewise.
* mbchar.c: Likewise.
* prefix.c: Likewise.
* protoize.c: Likewise.
* recog.h: Likewise.
* rtl.h: Likewise.
* scan-decls.c: Likewise.
* tree.h: Likewise.
* varray.h: Likewise.
From-SVN: r23558
1998-11-07 08:00:46 -05:00
|
|
|
|
dyn-string.o: dyn-string.c dyn-string.h $(CONFIG_H) system.h
|
1992-04-12 17:11:03 -04:00
|
|
|
|
|
1995-10-27 15:15:46 -04:00
|
|
|
|
$(out_object_file): $(out_file) $(CONFIG_H) $(TREE_H) \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
$(RTL_H) $(REGS_H) hard-reg-set.h real.h insn-config.h conditions.h \
|
Warning Fixes:
* Makefile.in (print-rtl.o): Depend on bitmap.h.
(dbxout.o): Depend on toplev.h.
($(SCHED_PREFIX)sched.o): Likewise.
($(out_object_file)): Likewise for system.h and toplev.h.
(cppmain.o): Depend on gansidecl.h.
(cpplib.o): Likewise.
(cpperror.o): Likewise.
(cppexp.o): Likewise.
(cpphash.o): Likewise.
(cppalloc.o): Likewise.
(fix-header.o): Depend on cpplib.h and cpphash.h.
(scan-decls.o): Depend on gansidecl.h.
* basic-block.h (free_regset_vector): Add prototype.
* cccp.c (check_precompiled): Mark parameter `fname' with
ATTRIBUTE_UNUSED.
(do_assert): Likewise for `op' and `keyword'.
(do_unassert): Likewise.
(do_line): Likewise for `keyword'.
(do_error): Likewise for `op' and `keyword'.
(do_warning): Likewise.
(do_ident): Likewise for `keyword'.
(do_pragma): Likewise for `limit', `op' and `keyword'.
(do_sccs): Likewise.
(do_if): Likewise for `keyword'.
(do_elif): Likewise.
(do_else): Likewise.
(do_endif): Likewise.
* collect2.c (getenv): Remove redundant prototype.
(collect_exit, collect_execute, dump_file): Likewise.
(dump_list): Wrap prototype and definition in COLLECT_EXPORT_LIST.
(dump_prefix_list): Hide prototype and definition.
* sparc.c: Include toplev.h.
(intreg_operand): Mark parameter `mode' with ATTRIBUTE_UNUSED.
(symbolic_memory_operand): Likewise.
(sp64_medium_pic_operand): Likewise.
(data_segment_operand): Likewise.
(text_segment_operand): Likewise.
(splittable_symbolic_memory_operand): Likewise.
(splittable_immediate_memory_operand): Likewise.
(eq_or_neq): Likewise.
(normal_comp_operator): Likewise.
(noov_compare_op): Likewise.
(v9_regcmp_op): Likewise.
(v8plus_regcmp_op): Likewise.
(extend_op): Likewise.
(cc_arithop): Likewise.
(cc_arithopn): Likewise.
(small_int): Likewise.
(uns_small_int): Likewise.
(clobbered_register): Likewise.
(legitimize_pic_address): Likewise.
(delay_operand): Likewise.
(sparc_builtin_saveregs): Remove unused variable `stdarg'.
* sparc.h (order_regs_for_local_alloc, eligible_for_return_delay,
sparc_issue_rate, v8plus_regcmp_p): Add prototypes.
* sparc.md (cmpdi_v8plus): Add abort for default case in switch.
* cppalloc.c: Include gansidecl.h.
* cpperror.c: Include stdarg.h/varargs.h and gansidecl.h.
(cpp_file_line_for_message): Mark parameter `pfile' with
ATTRIBUTE_UNUSED.
(v_cpp_message): New function.
(cpp_message): Use it. Also convert to variable arguments.
(cpp_fatal): Likewise.
(cpp_pfatal_with_name): Constify parameter `name'.
* cppexp.c: Move gansidecl.h before cpplib.h.
* cpphash.c: Likewise.
* cpphash.h (hashf, delete_macro): Add prototypes.
* cpplib.c: Include stdarg.h/varargs.h and move gansidecl.h before
cpplib.h. Don't include errno.h.
(update_path): Add arguments to prototype.
(cpp_fatal, cpp_file_line_for_message, cpp_message, delete_macro,
cpp_print_containing_files): Remove redundant prototypes.
(cpp_hash_cleanup, add_import, append_include_chain,
make_assertion, path_include, initialize_builtins,
initialize_char_syntax, finclude, validate_else, comp_def_part,
lookup_import, redundant_include_p, is_system_include,
read_name_map, read_filename_string, open_include_file,
check_macro_name, compare_defs, compare_token_lists,
eval_if_expression, change_newlines): Add prototype arguments.
(hashf): Remove redundant prototype.
(read_token_list, free_token_list, safe_read, xcalloc, savestring,
conditional_skip, skip_if_group): Add prototype arguments.
(fdopen): Remove redundant prototype.
(do_define, do_line, do_include, do_undef, do_error, do_pragma,
do_ident, do_if, do_xifdef, do_else, do_elif, do_endif, do_sccs,
do_once, do_assert, do_unassert, do_warning): Add prototype arguments.
(struct directive): Add prototype arguments to function pointer
member `func'.
(handle_directive): Add missing arguments to call to `do_line'.
(do_include): Mark parameters `unused1' and `unused2' with
ATTRIBUTE_UNUSED.
(do_line): Likewise for `keyword' and new parameters `unused1' and
`unused2'.
(do_error): Likewise for `keyword'.
(do_warning): Likewise. Also add missing argument `pfile' in call
to cpp_pedwarn.
(do_once): Mark parameter `keyword', `unused1' and `unused2' with
ATTRIBUTE_UNUSED.
(do_ident): Likewise for `keyword', `buf' and `limit'.
(do_pragma): Likewise. Also add missing arguments in call to do_once.
(do_sccs): Mark parameter `keyword', `buf' and `limit' with
ATTRIBUTE_UNUSED.
(do_if): Likewise for `keyword'.
(do_elif): Likewise.
(eval_if_expression): Likewise for `buf' and `length'.
(do_xifdef): Likewise for `unused1' and `unused2'.
(do_else): Likewise for `keyword', `buf' and `limit'.
(do_endif): Likewise.
(parse_name): Add missing argument `pfile' in call to cpp_pedwarn.
(cpp_handle_options): Remove superfluous NULL argument in call to
cpp_fatal.
(cpp_handle_options): Likewise.
(do_assert): Mark parameter `keyword', `buf' and `limit' with
ATTRIBUTE_UNUSED.
(do_unassert): Likewise.
(cpp_print_file_and_line): Add missing argument `pfile' in call to
cpp_file_line_for_message.
(v_cpp_error): New function.
(cpp_error): Use it. Also accept variable arguments.
(v_cpp_warning): New function.
(cpp_warning): Use it. Also accept variable arguments.
(cpp_pedwarn): Accept variable arguments.
(v_cpp_error_with_line): New function
(cpp_error_with_line): Use it. Accept variable arguments.
(v_cpp_warning_with_line): New function.
(cpp_warning_with_line): Use it. Accept variable arguments. Hide
definition.
(cpp_pedwarn_with_line): Accept variable arguments.
(cpp_pedwarn_with_file_and_line): Likewise.
(cpp_error_from_errno): Constify parameter `name'. Add missing
argument `pfile' in call to cpp_file_line_for_message.
(cpp_perror_with_name): Constify parameter `name'.
* cpplib.h: Define PARAMS() in terms of PROTO().
(fatal): Remove redundant prototype.
(cpp_error, cpp_warning, cpp_pedwarn, cpp_error_with_line,
cpp_pedwarn_with_line, cpp_pedwarn_with_file_and_line,
cpp_error_from_errno, cpp_perror_with_name, cpp_pfatal_with_name,
cpp_fatal, cpp_message, cpp_pfatal_with_name,
cpp_file_line_for_message, cpp_print_containing_files): Add
arguments to prototypes.
(scan_decls, cpp_finish): Add prototypes.
* cppmain.c: Include gansidecl.h.
(main): Remove unused variable `i'.
* dbxout.c: Include toplev.h.
* demangle.h (do_tlink, collect_execute, collect_exit,
collect_wait, dump_file, file_exists): Add prototype.
* dwarf2out.c (dwarf_type_encoding_name, decl_start_label): Hide
prototype and definition.
(gen_unspecified_parameters_die): Don't assign results of call to
function new_die() to unused variable `parm_die'.
(dwarf2out_line): Mark parameter `filename' with ATTRIBUTE_UNUSED.
(dwarf2out_define): Likewise for `lineno' and `buffer'.
* dwarfout.c (output_unsigned_leb128, output_signed_leb128): Hide
prototype and definition.
(output_die): Add prototype arguments to function pointer arg.
(output_unspecified_parameters_die): Mark parameter `arg' with
ATTRIBUTE_UNUSED.
* except.c (output_exception_table_entry): Remove unused variable
`eh_entry'.
* except.h (expand_fixup_region_start, expand_fixup_region_end):
Add prototypes.
* expr.c (do_jump_by_parts_equality_rtx): Remove prototype.
* expr.h (do_jump_by_parts_equality_rtx): Add prototype.
* fix-header.c: Include stdarg.h/varargs.h, move gansidecl.h
before cpplib.h, include cpphash.h, remove redundant prototype of
cpp_fatal, don't define `const', add a prototype for `fatal'.
(cpp_file_line_for_message): Add missing arguments `pfile'.
(v_cpp_message): New function.
(cpp_message): Use it.
(v_fatal): New function.
(fatal, cpp_fatal): Use it.
(cpp_pfatal_with_name): Constify parameter `name'.
* flow.c (free_regset_vector): Remove redundant prototype.
* function.c (round_down): Wrap prototype and definition with
macro ARGS_GROW_DOWNWARD.
(record_insns): Wrap prototype and definition with
defined (HAVE_prologue) || defined (HAVE_epilogue).
* gansidecl.h (ATTRIBUTE_PRINTF_4, ATTRIBUTE_PRINTF_5): New macros.
* gen-protos.c: Include gansidecl.h.
(hashf): Don't make it static, constify parameter `name'.
* genattrtab.c (check_attr_test): Change XEXP() to XSTR() to match
specifier %s in calls to function `fatal'.
* haifa-sched.c: Include toplev.h.
(find_rgns): Remove unused variable `j'.
* integrate.c (note_modified_parmregs): Mark parameter `x' with
ATTRIBUTE_UNUSED.
(mark_stores): Likewise.
* jump.c (mark_modified_reg): Likewise.
* output.h (insn_current_reference_address): Add prototype.
(eh_frame_section): Likewise.
* print-rtl.c: Include bitmap.h.
* reload1.c (reload): Wrap variables `note' and `next' in macro
PRESERVE_DEATH_INFO_REGNO_P.
(forget_old_reloads_1): Mark parameter `ignored' with
ATTRIBUTE_UNUSED.
(choose_reload_regs): Remove unused variable `in'.
(reload_cse_invalidate_mem): Mark parameter `ignore' with
ATTRIBUTE_UNUSED.
(reload_cse_check_clobber): Likewise.
* rtl.h (expand_null_return, reg_classes_intersect_p): Add prototype.
(mark_elimination): Fix typo in prototype.
* scan-decls.c: Include gansidecl.h.
* tree.h (using_eh_for_cleanups, supports_one_only): Add prototype.
From-SVN: r19867
1998-05-19 04:42:48 -04:00
|
|
|
|
insn-flags.h output.h insn-attr.h insn-codes.h system.h toplev.h
|
1996-05-17 15:37:07 -04:00
|
|
|
|
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(out_file)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1993-10-08 07:44:01 -04:00
|
|
|
|
# Build auxiliary files that support ecoff format.
|
|
|
|
|
mips-tfile: mips-tfile.o version.o $(LIBDEPS)
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ mips-tfile.o version.o $(LIBS)
|
1993-10-08 07:44:01 -04:00
|
|
|
|
|
1998-07-06 14:17:41 -04:00
|
|
|
|
mips-tfile.o : mips-tfile.c $(CONFIG_H) $(RTL_H) system.h machmode.h
|
1993-10-08 07:44:01 -04:00
|
|
|
|
|
|
|
|
|
mips-tdump: mips-tdump.o version.o $(LIBDEPS)
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ mips-tdump.o version.o $(LIBS)
|
1993-10-08 07:44:01 -04:00
|
|
|
|
|
1998-05-06 04:57:18 -04:00
|
|
|
|
mips-tdump.o : mips-tdump.c $(CONFIG_H) $(RTL_H) system.h
|
1993-10-08 07:44:01 -04:00
|
|
|
|
|
1993-12-12 07:48:37 -05:00
|
|
|
|
# Build file to support OSF/rose half-pic format.
|
More cutover to system.h:
* Makefile.in (cppalloc.o, cpperror.o, cppexp.o, cpphash.o,
cpplib.o, cppmain.o, fix-header.o, gcov.o, gen-protos.o,
gengenrtl.o, halfpic.o, hash.o, scan-decls.o, scan.o): Depend on
system.h.
* cpphash.c: Include config.h.
* cppalloc.c: Include system.h. Add parameters to various
function prototypes.
* cpperror.c: Likewise.
* cppexp.c: Likewise.
* cpphash.c: Likewise.
* cpplib.c: Likewise.
* cppmain.c: Likewise.
* fix-header.c: Likewise.
* gcov.c: Likewise.
* gen-protos.c: Likewise.
* gengenrtl.c: Likewise.
* halfpic.c: Likewise.
* hash.c: Likewise.
* scan-decls.c: Likewise.
* scan.c: Likewise.
From-SVN: r18911
1998-03-30 07:05:54 -05:00
|
|
|
|
halfpic.o: halfpic.c $(CONFIG_H) $(RTL_H) $(TREE_H) system.h
|
1993-12-12 07:48:37 -05:00
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Normally this target is not used; but it is used if you
|
|
|
|
|
# define ALLOCA=alloca.o. In that case, you must get a suitable alloca.c
|
|
|
|
|
# from the GNU Emacs distribution.
|
1998-09-05 06:41:24 -04:00
|
|
|
|
alloca.o: $(srcdir)/../libiberty/alloca.c
|
|
|
|
|
rm -f alloca.c
|
|
|
|
|
$(LN_S) $(srcdir)/../libiberty/alloca.c alloca.c
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(ALLOCA_FLAGS) \
|
1998-09-05 06:41:24 -04:00
|
|
|
|
-c `echo alloca.c | sed 's,^\./,,'`
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(ALLOCA_FINISH)
|
1997-06-09 15:19:18 -04:00
|
|
|
|
#
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Generate header and source files from the machine description,
|
|
|
|
|
# and compile them.
|
|
|
|
|
|
|
|
|
|
.PRECIOUS: insn-config.h insn-flags.h insn-codes.h \
|
|
|
|
|
insn-emit.c insn-recog.c insn-extract.c insn-output.c insn-peep.c \
|
|
|
|
|
insn-attr.h insn-attrtab.c
|
|
|
|
|
|
|
|
|
|
# The following pair of rules has this effect:
|
|
|
|
|
# genconfig is run only if the md has changed since genconfig was last run;
|
|
|
|
|
# but the file insn-config.h is touched only when its contents actually change.
|
|
|
|
|
|
|
|
|
|
# Each of the other insn-* files is handled by a similar pair of rules.
|
|
|
|
|
|
1992-09-04 00:40:25 -04:00
|
|
|
|
# This causes an anomaly in the results of make -n
|
1998-04-04 08:32:39 -05:00
|
|
|
|
# because insn-* is older than s-*
|
1992-09-04 00:40:25 -04:00
|
|
|
|
# and thus make -n thinks that insn-* will be updated
|
|
|
|
|
# and force recompilation of things that depend on it.
|
1993-03-22 02:11:36 -05:00
|
|
|
|
# We use move-if-change precisely to avoid such recompilation.
|
1992-09-04 00:40:25 -04:00
|
|
|
|
# But there is no way to teach make -n that it will be avoided.
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Each of the insn-*.[ch] rules has a semicolon at the end,
|
|
|
|
|
# for otherwise the system Make on SunOS 4.1 never tries
|
1993-01-26 13:45:24 -05:00
|
|
|
|
# to recompile insn-*.o. To avoid problems and extra noise from
|
|
|
|
|
# versions of make which don't like empty commands (nothing after the
|
|
|
|
|
# trailing `;'), we call true for each.
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1998-04-04 08:32:39 -05:00
|
|
|
|
insn-config.h: s-config ; @true
|
|
|
|
|
s-config : $(md_file) genconfig $(srcdir)/move-if-change
|
(out_file, md_file, tm_file, {build,host}_xm_file):
New symbols, to be overridden by configure.
(insn-*): Use $(md_file), not md.
(aux-output.o): Use $(out_file), not aux-output.c.
($(MD_FILE)): Rework to use new conventions.
(gen*.o, bi-*.o): Depend on $(build_xm_file), not hconfig.h.
(scan.o, fix-header.o, scan-decls.o): Likewise.
(distclean): Adjust files removed for new convention.
From jason@cygnus.com:
(STAGESTUFF): Add underscore.c.
(underscore.c): Rename temporary files to begin with 'tmp-' so that they will
be removed by 'make mostlyclean'.
From-SVN: r9608
1995-05-10 08:26:52 -04:00
|
|
|
|
./genconfig $(md_file) > tmp-config.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(srcdir)/move-if-change tmp-config.h insn-config.h
|
1998-04-04 08:32:39 -05:00
|
|
|
|
touch s-config
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1998-04-04 08:32:39 -05:00
|
|
|
|
insn-flags.h: s-flags ; @true
|
|
|
|
|
s-flags : $(md_file) genflags $(srcdir)/move-if-change
|
(out_file, md_file, tm_file, {build,host}_xm_file):
New symbols, to be overridden by configure.
(insn-*): Use $(md_file), not md.
(aux-output.o): Use $(out_file), not aux-output.c.
($(MD_FILE)): Rework to use new conventions.
(gen*.o, bi-*.o): Depend on $(build_xm_file), not hconfig.h.
(scan.o, fix-header.o, scan-decls.o): Likewise.
(distclean): Adjust files removed for new convention.
From jason@cygnus.com:
(STAGESTUFF): Add underscore.c.
(underscore.c): Rename temporary files to begin with 'tmp-' so that they will
be removed by 'make mostlyclean'.
From-SVN: r9608
1995-05-10 08:26:52 -04:00
|
|
|
|
./genflags $(md_file) > tmp-flags.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(srcdir)/move-if-change tmp-flags.h insn-flags.h
|
1998-04-04 08:32:39 -05:00
|
|
|
|
touch s-flags
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1998-04-04 08:32:39 -05:00
|
|
|
|
insn-codes.h: s-codes ; @true
|
|
|
|
|
s-codes : $(md_file) gencodes $(srcdir)/move-if-change
|
(out_file, md_file, tm_file, {build,host}_xm_file):
New symbols, to be overridden by configure.
(insn-*): Use $(md_file), not md.
(aux-output.o): Use $(out_file), not aux-output.c.
($(MD_FILE)): Rework to use new conventions.
(gen*.o, bi-*.o): Depend on $(build_xm_file), not hconfig.h.
(scan.o, fix-header.o, scan-decls.o): Likewise.
(distclean): Adjust files removed for new convention.
From jason@cygnus.com:
(STAGESTUFF): Add underscore.c.
(underscore.c): Rename temporary files to begin with 'tmp-' so that they will
be removed by 'make mostlyclean'.
From-SVN: r9608
1995-05-10 08:26:52 -04:00
|
|
|
|
./gencodes $(md_file) > tmp-codes.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(srcdir)/move-if-change tmp-codes.h insn-codes.h
|
1998-04-04 08:32:39 -05:00
|
|
|
|
touch s-codes
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1998-06-27 00:42:25 -04:00
|
|
|
|
insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) $(EXPR_H) real.h output.h \
|
1998-10-25 07:56:39 -05:00
|
|
|
|
insn-config.h insn-flags.h insn-codes.h system.h reload.h recog.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-emit.c
|
|
|
|
|
|
1998-04-04 08:32:39 -05:00
|
|
|
|
insn-emit.c: s-emit ; @true
|
|
|
|
|
s-emit : $(md_file) genemit $(srcdir)/move-if-change
|
(out_file, md_file, tm_file, {build,host}_xm_file):
New symbols, to be overridden by configure.
(insn-*): Use $(md_file), not md.
(aux-output.o): Use $(out_file), not aux-output.c.
($(MD_FILE)): Rework to use new conventions.
(gen*.o, bi-*.o): Depend on $(build_xm_file), not hconfig.h.
(scan.o, fix-header.o, scan-decls.o): Likewise.
(distclean): Adjust files removed for new convention.
From jason@cygnus.com:
(STAGESTUFF): Add underscore.c.
(underscore.c): Rename temporary files to begin with 'tmp-' so that they will
be removed by 'make mostlyclean'.
From-SVN: r9608
1995-05-10 08:26:52 -04:00
|
|
|
|
./genemit $(md_file) > tmp-emit.c
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(srcdir)/move-if-change tmp-emit.c insn-emit.c
|
1998-04-04 08:32:39 -05:00
|
|
|
|
touch s-emit
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1997-12-06 19:31:01 -05:00
|
|
|
|
insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h $(RECOG_H) \
|
1998-04-03 07:29:37 -05:00
|
|
|
|
real.h output.h flags.h system.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-recog.c
|
|
|
|
|
|
1998-04-04 08:32:39 -05:00
|
|
|
|
insn-recog.c: s-recog ; @true
|
|
|
|
|
s-recog : $(md_file) genrecog $(srcdir)/move-if-change
|
(out_file, md_file, tm_file, {build,host}_xm_file):
New symbols, to be overridden by configure.
(insn-*): Use $(md_file), not md.
(aux-output.o): Use $(out_file), not aux-output.c.
($(MD_FILE)): Rework to use new conventions.
(gen*.o, bi-*.o): Depend on $(build_xm_file), not hconfig.h.
(scan.o, fix-header.o, scan-decls.o): Likewise.
(distclean): Adjust files removed for new convention.
From jason@cygnus.com:
(STAGESTUFF): Add underscore.c.
(underscore.c): Rename temporary files to begin with 'tmp-' so that they will
be removed by 'make mostlyclean'.
From-SVN: r9608
1995-05-10 08:26:52 -04:00
|
|
|
|
./genrecog $(md_file) > tmp-recog.c
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(srcdir)/move-if-change tmp-recog.c insn-recog.c
|
1998-04-04 08:32:39 -05:00
|
|
|
|
touch s-recog
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1993-03-30 15:31:01 -05:00
|
|
|
|
insn-opinit.o : insn-opinit.c $(CONFIG_H) $(RTL_H) insn-codes.h insn-flags.h \
|
1998-06-27 00:42:25 -04:00
|
|
|
|
insn-config.h flags.h $(RECOG_H) $(EXPR_H) reload.h system.h
|
1993-03-30 15:31:01 -05:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-opinit.c
|
|
|
|
|
|
1998-04-04 08:32:39 -05:00
|
|
|
|
insn-opinit.c: s-opinit ; @true
|
|
|
|
|
s-opinit : $(md_file) genopinit $(srcdir)/move-if-change
|
(out_file, md_file, tm_file, {build,host}_xm_file):
New symbols, to be overridden by configure.
(insn-*): Use $(md_file), not md.
(aux-output.o): Use $(out_file), not aux-output.c.
($(MD_FILE)): Rework to use new conventions.
(gen*.o, bi-*.o): Depend on $(build_xm_file), not hconfig.h.
(scan.o, fix-header.o, scan-decls.o): Likewise.
(distclean): Adjust files removed for new convention.
From jason@cygnus.com:
(STAGESTUFF): Add underscore.c.
(underscore.c): Rename temporary files to begin with 'tmp-' so that they will
be removed by 'make mostlyclean'.
From-SVN: r9608
1995-05-10 08:26:52 -04:00
|
|
|
|
./genopinit $(md_file) > tmp-opinit.c
|
1993-03-30 15:31:01 -05:00
|
|
|
|
$(srcdir)/move-if-change tmp-opinit.c insn-opinit.c
|
1998-04-04 08:32:39 -05:00
|
|
|
|
touch s-opinit
|
1993-03-30 15:31:01 -05:00
|
|
|
|
|
Makefile.in (insn-extract.o): Fix dependencies.
* Makefile.in (insn-extract.o): Fix dependencies.
* genextract.c (main): Generate includes for insn-config.h and
recog.h.
Delete generation of declarations which are now in recog.h.
* genrecog.c (main): Delete generation of definitions which are
now in recog.c.
* local-alloc.c (block_alloc): Use extract_insn and the variables
it sets up instead of looking up values by insn_code.
* recog.c (recog_operand, recog_operand_loc, recog_dup_loc,
recog_dup_num): Define here instead of generating the definition in
genrecog.c.
(recog_n_operands, recog_n_dups, recog_n_alternatives,
recog_operand_mode, recog_constraints, recog_operand_address_p):
New variables.
(extract_insn): New function.
* recog.h (extract_insn): Declare function.
(which_alternative, recog_n_operands, recog_n_dups,
recog_n_alternatives, recog_operand_mode, recog_constraints,
recog_operand_address_p): Declare variables.
* regclass.c (n_occurrences): New static function.
* reload.c (n_occurrences): Delete function.
(find_reloads): Use extract_insn.
* reload.h (n_occurrences): Delete declaration.
From-SVN: r23147
1998-10-16 21:28:57 -04:00
|
|
|
|
insn-extract.o : insn-extract.c $(CONFIG_H) $(RTL_H) system.h toplev.h \
|
|
|
|
|
insn-config.h recog.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-extract.c
|
|
|
|
|
|
1998-04-04 08:32:39 -05:00
|
|
|
|
insn-extract.c: s-extract ; @true
|
|
|
|
|
s-extract : $(md_file) genextract $(srcdir)/move-if-change
|
(out_file, md_file, tm_file, {build,host}_xm_file):
New symbols, to be overridden by configure.
(insn-*): Use $(md_file), not md.
(aux-output.o): Use $(out_file), not aux-output.c.
($(MD_FILE)): Rework to use new conventions.
(gen*.o, bi-*.o): Depend on $(build_xm_file), not hconfig.h.
(scan.o, fix-header.o, scan-decls.o): Likewise.
(distclean): Adjust files removed for new convention.
From jason@cygnus.com:
(STAGESTUFF): Add underscore.c.
(underscore.c): Rename temporary files to begin with 'tmp-' so that they will
be removed by 'make mostlyclean'.
From-SVN: r9608
1995-05-10 08:26:52 -04:00
|
|
|
|
./genextract $(md_file) > tmp-extract.c
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(srcdir)/move-if-change tmp-extract.c insn-extract.c
|
1998-04-04 08:32:39 -05:00
|
|
|
|
touch s-extract
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1998-10-25 07:56:39 -05:00
|
|
|
|
insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) $(REGS_H) output.h real.h \
|
|
|
|
|
system.h insn-config.h recog.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-peep.c
|
|
|
|
|
|
1998-04-04 08:32:39 -05:00
|
|
|
|
insn-peep.c: s-peep ; @true
|
|
|
|
|
s-peep : $(md_file) genpeep $(srcdir)/move-if-change
|
(out_file, md_file, tm_file, {build,host}_xm_file):
New symbols, to be overridden by configure.
(insn-*): Use $(md_file), not md.
(aux-output.o): Use $(out_file), not aux-output.c.
($(MD_FILE)): Rework to use new conventions.
(gen*.o, bi-*.o): Depend on $(build_xm_file), not hconfig.h.
(scan.o, fix-header.o, scan-decls.o): Likewise.
(distclean): Adjust files removed for new convention.
From jason@cygnus.com:
(STAGESTUFF): Add underscore.c.
(underscore.c): Rename temporary files to begin with 'tmp-' so that they will
be removed by 'make mostlyclean'.
From-SVN: r9608
1995-05-10 08:26:52 -04:00
|
|
|
|
./genpeep $(md_file) > tmp-peep.c
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(srcdir)/move-if-change tmp-peep.c insn-peep.c
|
1998-04-04 08:32:39 -05:00
|
|
|
|
touch s-peep
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
Makefile.in (toplev.o): Depend on $(EXPR_H).
* Makefile.in (toplev.o): Depend on $(EXPR_H).
(insn-extract.o, insn-attrtab.o): Depend on toplev.h.
* gansidecl.h: Define ATTRIBUTE_NORETURN.
* genattrtab.c: Have insn-attrtab.c include toplev.h.
* genextract.c: Have insn-extract.c include toplev.h.
* rtl.h: Don't prototype `fatal_insn_not_found' and `fatal_insn'.
* toplev.c: Include expr.h.
(really_sorry, fancy_abort): Remove prototypes.
(set_target_switch): Add argument in prototype.
(vfatal): Mark prototype with ATTRIBUTE_NORETURN.
(v_really_sorry): Likewise.
(print_version, print_single_switch, print_switch_values): Make
static and add prototype arguments.
(decl_printable_name): Add prototype arguments.
(lang_expand_expr_t): New typedef.
(lang_expand_expr): Declare as a lang_expand_expr_t.
(incomplete_decl_finalize_hook): Add prototype argument.
(decl_name): Mark variable `verbosity' with ATTRIBUTE_UNUSED.
(botch): Likewise for variable `s'.
(rest_of_type_compilation): Mark variables `type' and `toplev'
with ATTRIBUTE_UNUSED if none of DBX_DEBUGGING_INFO,
XCOFF_DEBUGGING_INFO or SDB_DEBUGGING_INFO are defined.
(display_help): Make variable `i' an `unsigned long'.
(main): Remove unused parameter `envp'.
Cast assignment to `lang_expand_expr' to a `lang_expand_expr_t'.
Cast -1 when comparing it with a `size_t'.
* toplev.h (fatal, fatal_io_error, pfatal_with_name): Mark
prototype with ATTRIBUTE_NORETURN.
(fatal_insn_not_found, fatal_insn, really_sorry,
push_float_handler, pop_float_handler): Add prototypes.
(fancy_abort): Mark prototype with ATTRIBUTE_NORETURN.
(do_abort, botch): Add prototypes.
From-SVN: r22293
1998-09-06 01:56:20 -04:00
|
|
|
|
insn-attrtab.o : insn-attrtab.c $(CONFIG_H) $(RTL_H) $(REGS_H) real.h \
|
|
|
|
|
output.h insn-attr.h insn-config.h system.h toplev.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-attrtab.c
|
|
|
|
|
|
1998-04-04 08:32:39 -05:00
|
|
|
|
insn-attr.h: s-attr ; @true
|
|
|
|
|
s-attr : $(md_file) genattr $(srcdir)/move-if-change
|
(out_file, md_file, tm_file, {build,host}_xm_file):
New symbols, to be overridden by configure.
(insn-*): Use $(md_file), not md.
(aux-output.o): Use $(out_file), not aux-output.c.
($(MD_FILE)): Rework to use new conventions.
(gen*.o, bi-*.o): Depend on $(build_xm_file), not hconfig.h.
(scan.o, fix-header.o, scan-decls.o): Likewise.
(distclean): Adjust files removed for new convention.
From jason@cygnus.com:
(STAGESTUFF): Add underscore.c.
(underscore.c): Rename temporary files to begin with 'tmp-' so that they will
be removed by 'make mostlyclean'.
From-SVN: r9608
1995-05-10 08:26:52 -04:00
|
|
|
|
./genattr $(md_file) > tmp-attr.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(srcdir)/move-if-change tmp-attr.h insn-attr.h
|
1998-04-04 08:32:39 -05:00
|
|
|
|
touch s-attr
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1998-04-04 08:32:39 -05:00
|
|
|
|
insn-attrtab.c: s-attrtab ; @true
|
|
|
|
|
s-attrtab : $(md_file) genattrtab $(srcdir)/move-if-change
|
(out_file, md_file, tm_file, {build,host}_xm_file):
New symbols, to be overridden by configure.
(insn-*): Use $(md_file), not md.
(aux-output.o): Use $(out_file), not aux-output.c.
($(MD_FILE)): Rework to use new conventions.
(gen*.o, bi-*.o): Depend on $(build_xm_file), not hconfig.h.
(scan.o, fix-header.o, scan-decls.o): Likewise.
(distclean): Adjust files removed for new convention.
From jason@cygnus.com:
(STAGESTUFF): Add underscore.c.
(underscore.c): Rename temporary files to begin with 'tmp-' so that they will
be removed by 'make mostlyclean'.
From-SVN: r9608
1995-05-10 08:26:52 -04:00
|
|
|
|
if cmp -s $(PREMADE_ATTRTAB_MD) $(md_file); \
|
1992-05-10 15:07:04 -04:00
|
|
|
|
then \
|
|
|
|
|
echo Using $(PREMADE_ATTRTAB); \
|
1992-05-18 16:08:36 -04:00
|
|
|
|
cp $(PREMADE_ATTRTAB) tmp-attrtab.c; \
|
1992-05-10 15:07:04 -04:00
|
|
|
|
else \
|
(out_file, md_file, tm_file, {build,host}_xm_file):
New symbols, to be overridden by configure.
(insn-*): Use $(md_file), not md.
(aux-output.o): Use $(out_file), not aux-output.c.
($(MD_FILE)): Rework to use new conventions.
(gen*.o, bi-*.o): Depend on $(build_xm_file), not hconfig.h.
(scan.o, fix-header.o, scan-decls.o): Likewise.
(distclean): Adjust files removed for new convention.
From jason@cygnus.com:
(STAGESTUFF): Add underscore.c.
(underscore.c): Rename temporary files to begin with 'tmp-' so that they will
be removed by 'make mostlyclean'.
From-SVN: r9608
1995-05-10 08:26:52 -04:00
|
|
|
|
./genattrtab $(md_file) > tmp-attrtab.c; \
|
1992-05-10 15:07:04 -04:00
|
|
|
|
fi
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(srcdir)/move-if-change tmp-attrtab.c insn-attrtab.c
|
1998-04-04 08:32:39 -05:00
|
|
|
|
touch s-attrtab
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1998-07-02 09:49:34 -04:00
|
|
|
|
insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) $(REGS_H) real.h conditions.h \
|
1997-12-06 19:31:01 -05:00
|
|
|
|
hard-reg-set.h insn-config.h insn-flags.h insn-attr.h output.h $(RECOG_H) \
|
1998-04-03 07:29:37 -05:00
|
|
|
|
insn-codes.h system.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-output.c
|
|
|
|
|
|
1998-04-04 08:32:39 -05:00
|
|
|
|
insn-output.c: s-output ; @true
|
|
|
|
|
s-output : $(md_file) genoutput $(srcdir)/move-if-change
|
(out_file, md_file, tm_file, {build,host}_xm_file):
New symbols, to be overridden by configure.
(insn-*): Use $(md_file), not md.
(aux-output.o): Use $(out_file), not aux-output.c.
($(MD_FILE)): Rework to use new conventions.
(gen*.o, bi-*.o): Depend on $(build_xm_file), not hconfig.h.
(scan.o, fix-header.o, scan-decls.o): Likewise.
(distclean): Adjust files removed for new convention.
From jason@cygnus.com:
(STAGESTUFF): Add underscore.c.
(underscore.c): Rename temporary files to begin with 'tmp-' so that they will
be removed by 'make mostlyclean'.
From-SVN: r9608
1995-05-10 08:26:52 -04:00
|
|
|
|
./genoutput $(md_file) > tmp-output.c
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(srcdir)/move-if-change tmp-output.c insn-output.c
|
1998-04-04 08:32:39 -05:00
|
|
|
|
touch s-output
|
1998-01-08 16:17:05 -05:00
|
|
|
|
|
1998-05-08 02:51:04 -04:00
|
|
|
|
genrtl.o : genrtl.c $(CONFIG_H) $(RTL_H) system.h
|
1998-04-04 08:32:39 -05:00
|
|
|
|
genrtl.c genrtl.h : s-genrtl
|
1998-01-19 04:39:38 -05:00
|
|
|
|
@true # force gnu make to recheck modification times.
|
|
|
|
|
|
1998-04-04 08:32:39 -05:00
|
|
|
|
s-genrtl: gengenrtl $(srcdir)/move-if-change $(RTL_BASE_H)
|
1998-01-08 16:17:05 -05:00
|
|
|
|
./gengenrtl tmp-genrtl.h tmp-genrtl.c
|
|
|
|
|
$(srcdir)/move-if-change tmp-genrtl.h genrtl.h
|
|
|
|
|
$(srcdir)/move-if-change tmp-genrtl.c genrtl.c
|
1998-04-04 08:32:39 -05:00
|
|
|
|
touch s-genrtl
|
1998-01-08 16:17:05 -05:00
|
|
|
|
|
1997-06-09 15:19:18 -04:00
|
|
|
|
#
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Compile the programs that generate insn-* from the machine description.
|
|
|
|
|
# They are compiled with $(HOST_CC), and associated libraries,
|
|
|
|
|
# since they need to run on this machine
|
|
|
|
|
# even if GCC is being compiled to run on some other machine.
|
|
|
|
|
|
|
|
|
|
# $(CONFIG_H) is omitted from the deps of the gen*.o
|
|
|
|
|
# because these programs don't really depend on anything
|
|
|
|
|
# about the target machine. They do depend on config.h itself,
|
|
|
|
|
# since that describes the host machine.
|
|
|
|
|
|
1993-10-01 18:16:34 -04:00
|
|
|
|
# Pass the md file through cpp if the target requests it.
|
1993-12-21 18:41:11 -05:00
|
|
|
|
$(MD_FILE): $(MD_DEPS)
|
|
|
|
|
rm -f $@
|
(out_file, md_file, tm_file, {build,host}_xm_file):
New symbols, to be overridden by configure.
(insn-*): Use $(md_file), not md.
(aux-output.o): Use $(out_file), not aux-output.c.
($(MD_FILE)): Rework to use new conventions.
(gen*.o, bi-*.o): Depend on $(build_xm_file), not hconfig.h.
(scan.o, fix-header.o, scan-decls.o): Likewise.
(distclean): Adjust files removed for new convention.
From jason@cygnus.com:
(STAGESTUFF): Add underscore.c.
(underscore.c): Rename temporary files to begin with 'tmp-' so that they will
be removed by 'make mostlyclean'.
From-SVN: r9608
1995-05-10 08:26:52 -04:00
|
|
|
|
$(MD_CPP) $(MD_CPPFLAGS) $(md_file) | sed 's/^# /; /g' > tmp-$@
|
1994-11-15 19:17:27 -05:00
|
|
|
|
mv tmp-$@ $@
|
1993-10-01 18:16:34 -04:00
|
|
|
|
|
1998-04-15 05:23:14 -04:00
|
|
|
|
genconfig : genconfig.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS)
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
1998-04-15 05:23:14 -04:00
|
|
|
|
genconfig.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
Cutover various gen*.c files to using system.h:
* Makefile.in (genconfig.o, genflags.o, gencodes.o, genemit.o,
genopinit.o, genrecog.o, genextract.o, genpeep.o, genattr.o,
genattrtab.o, genoutput.o): Depend on system.h.
* genattr.c: Include system.h. Add arguments to various function
prototypes. Remove redundant prototype of read_rtx().
* genattrtab.c: Likewise.
* gencodes.c: Likewise.
* genconfig.c: Likewise.
* genemit.c: Likewise.
* genextract.c: Likewise.
* genflags.c: Likewise.
* genopinit.c: Likewise.
* genoutput.c: Likewise.
* genpeep.c: Likewise.
* genrecog.c: Likewise.
From-SVN: r18794
1998-03-24 05:16:53 -05:00
|
|
|
|
genconfig.o : genconfig.c $(RTL_H) $(build_xm_file) system.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genconfig.c
|
|
|
|
|
|
1998-04-15 05:23:14 -04:00
|
|
|
|
genflags : genflags.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS)
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
1998-04-15 05:23:14 -04:00
|
|
|
|
genflags.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
Cutover various gen*.c files to using system.h:
* Makefile.in (genconfig.o, genflags.o, gencodes.o, genemit.o,
genopinit.o, genrecog.o, genextract.o, genpeep.o, genattr.o,
genattrtab.o, genoutput.o): Depend on system.h.
* genattr.c: Include system.h. Add arguments to various function
prototypes. Remove redundant prototype of read_rtx().
* genattrtab.c: Likewise.
* gencodes.c: Likewise.
* genconfig.c: Likewise.
* genemit.c: Likewise.
* genextract.c: Likewise.
* genflags.c: Likewise.
* genopinit.c: Likewise.
* genoutput.c: Likewise.
* genpeep.c: Likewise.
* genrecog.c: Likewise.
From-SVN: r18794
1998-03-24 05:16:53 -05:00
|
|
|
|
genflags.o : genflags.c $(RTL_H) $(build_xm_file) system.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genflags.c
|
|
|
|
|
|
1998-04-15 05:23:14 -04:00
|
|
|
|
gencodes : gencodes.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS)
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
1998-04-15 05:23:14 -04:00
|
|
|
|
gencodes.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
Cutover various gen*.c files to using system.h:
* Makefile.in (genconfig.o, genflags.o, gencodes.o, genemit.o,
genopinit.o, genrecog.o, genextract.o, genpeep.o, genattr.o,
genattrtab.o, genoutput.o): Depend on system.h.
* genattr.c: Include system.h. Add arguments to various function
prototypes. Remove redundant prototype of read_rtx().
* genattrtab.c: Likewise.
* gencodes.c: Likewise.
* genconfig.c: Likewise.
* genemit.c: Likewise.
* genextract.c: Likewise.
* genflags.c: Likewise.
* genopinit.c: Likewise.
* genoutput.c: Likewise.
* genpeep.c: Likewise.
* genrecog.c: Likewise.
From-SVN: r18794
1998-03-24 05:16:53 -05:00
|
|
|
|
gencodes.o : gencodes.c $(RTL_H) $(build_xm_file) system.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gencodes.c
|
|
|
|
|
|
1998-04-15 05:23:14 -04:00
|
|
|
|
genemit : genemit.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS)
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
1998-04-15 05:23:14 -04:00
|
|
|
|
genemit.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
Cutover various gen*.c files to using system.h:
* Makefile.in (genconfig.o, genflags.o, gencodes.o, genemit.o,
genopinit.o, genrecog.o, genextract.o, genpeep.o, genattr.o,
genattrtab.o, genoutput.o): Depend on system.h.
* genattr.c: Include system.h. Add arguments to various function
prototypes. Remove redundant prototype of read_rtx().
* genattrtab.c: Likewise.
* gencodes.c: Likewise.
* genconfig.c: Likewise.
* genemit.c: Likewise.
* genextract.c: Likewise.
* genflags.c: Likewise.
* genopinit.c: Likewise.
* genoutput.c: Likewise.
* genpeep.c: Likewise.
* genrecog.c: Likewise.
From-SVN: r18794
1998-03-24 05:16:53 -05:00
|
|
|
|
genemit.o : genemit.c $(RTL_H) $(build_xm_file) system.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genemit.c
|
|
|
|
|
|
1998-04-15 05:23:14 -04:00
|
|
|
|
genopinit : genopinit.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS)
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
1998-04-15 05:23:14 -04:00
|
|
|
|
genopinit.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS)
|
1993-03-30 15:31:01 -05:00
|
|
|
|
|
Cutover various gen*.c files to using system.h:
* Makefile.in (genconfig.o, genflags.o, gencodes.o, genemit.o,
genopinit.o, genrecog.o, genextract.o, genpeep.o, genattr.o,
genattrtab.o, genoutput.o): Depend on system.h.
* genattr.c: Include system.h. Add arguments to various function
prototypes. Remove redundant prototype of read_rtx().
* genattrtab.c: Likewise.
* gencodes.c: Likewise.
* genconfig.c: Likewise.
* genemit.c: Likewise.
* genextract.c: Likewise.
* genflags.c: Likewise.
* genopinit.c: Likewise.
* genoutput.c: Likewise.
* genpeep.c: Likewise.
* genrecog.c: Likewise.
From-SVN: r18794
1998-03-24 05:16:53 -05:00
|
|
|
|
genopinit.o : genopinit.c $(RTL_H) $(build_xm_file) system.h
|
1993-03-30 15:31:01 -05:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genopinit.c
|
|
|
|
|
|
1998-04-15 05:23:14 -04:00
|
|
|
|
genrecog : genrecog.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS)
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
1998-04-15 05:23:14 -04:00
|
|
|
|
genrecog.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
Cutover various gen*.c files to using system.h:
* Makefile.in (genconfig.o, genflags.o, gencodes.o, genemit.o,
genopinit.o, genrecog.o, genextract.o, genpeep.o, genattr.o,
genattrtab.o, genoutput.o): Depend on system.h.
* genattr.c: Include system.h. Add arguments to various function
prototypes. Remove redundant prototype of read_rtx().
* genattrtab.c: Likewise.
* gencodes.c: Likewise.
* genconfig.c: Likewise.
* genemit.c: Likewise.
* genextract.c: Likewise.
* genflags.c: Likewise.
* genopinit.c: Likewise.
* genoutput.c: Likewise.
* genpeep.c: Likewise.
* genrecog.c: Likewise.
From-SVN: r18794
1998-03-24 05:16:53 -05:00
|
|
|
|
genrecog.o : genrecog.c $(RTL_H) $(build_xm_file) system.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genrecog.c
|
|
|
|
|
|
1998-04-15 05:23:14 -04:00
|
|
|
|
genextract : genextract.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS)
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
1998-04-15 05:23:14 -04:00
|
|
|
|
genextract.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
Cutover various gen*.c files to using system.h:
* Makefile.in (genconfig.o, genflags.o, gencodes.o, genemit.o,
genopinit.o, genrecog.o, genextract.o, genpeep.o, genattr.o,
genattrtab.o, genoutput.o): Depend on system.h.
* genattr.c: Include system.h. Add arguments to various function
prototypes. Remove redundant prototype of read_rtx().
* genattrtab.c: Likewise.
* gencodes.c: Likewise.
* genconfig.c: Likewise.
* genemit.c: Likewise.
* genextract.c: Likewise.
* genflags.c: Likewise.
* genopinit.c: Likewise.
* genoutput.c: Likewise.
* genpeep.c: Likewise.
* genrecog.c: Likewise.
From-SVN: r18794
1998-03-24 05:16:53 -05:00
|
|
|
|
genextract.o : genextract.c $(RTL_H) $(build_xm_file) system.h insn-config.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genextract.c
|
|
|
|
|
|
1998-04-15 05:23:14 -04:00
|
|
|
|
genpeep : genpeep.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS)
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
1998-04-15 05:23:14 -04:00
|
|
|
|
genpeep.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
Cutover various gen*.c files to using system.h:
* Makefile.in (genconfig.o, genflags.o, gencodes.o, genemit.o,
genopinit.o, genrecog.o, genextract.o, genpeep.o, genattr.o,
genattrtab.o, genoutput.o): Depend on system.h.
* genattr.c: Include system.h. Add arguments to various function
prototypes. Remove redundant prototype of read_rtx().
* genattrtab.c: Likewise.
* gencodes.c: Likewise.
* genconfig.c: Likewise.
* genemit.c: Likewise.
* genextract.c: Likewise.
* genflags.c: Likewise.
* genopinit.c: Likewise.
* genoutput.c: Likewise.
* genpeep.c: Likewise.
* genrecog.c: Likewise.
From-SVN: r18794
1998-03-24 05:16:53 -05:00
|
|
|
|
genpeep.o : genpeep.c $(RTL_H) $(build_xm_file) system.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genpeep.c
|
|
|
|
|
|
1998-04-15 05:23:14 -04:00
|
|
|
|
genattr : genattr.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS)
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
1998-04-15 05:23:14 -04:00
|
|
|
|
genattr.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
Cutover various gen*.c files to using system.h:
* Makefile.in (genconfig.o, genflags.o, gencodes.o, genemit.o,
genopinit.o, genrecog.o, genextract.o, genpeep.o, genattr.o,
genattrtab.o, genoutput.o): Depend on system.h.
* genattr.c: Include system.h. Add arguments to various function
prototypes. Remove redundant prototype of read_rtx().
* genattrtab.c: Likewise.
* gencodes.c: Likewise.
* genconfig.c: Likewise.
* genemit.c: Likewise.
* genextract.c: Likewise.
* genflags.c: Likewise.
* genopinit.c: Likewise.
* genoutput.c: Likewise.
* genpeep.c: Likewise.
* genrecog.c: Likewise.
From-SVN: r18794
1998-03-24 05:16:53 -05:00
|
|
|
|
genattr.o : genattr.c $(RTL_H) $(build_xm_file) system.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genattr.c
|
|
|
|
|
|
1992-05-05 23:33:12 -04:00
|
|
|
|
genattrtab : genattrtab.o $(HOST_RTL) $(HOST_PRINT) $(HOST_RTLANAL) $(HOST_LIBDEPS)
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
1992-05-05 23:33:12 -04:00
|
|
|
|
genattrtab.o $(HOST_RTL) $(HOST_PRINT) $(HOST_RTLANAL) $(HOST_LIBS)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
Cutover various gen*.c files to using system.h:
* Makefile.in (genconfig.o, genflags.o, gencodes.o, genemit.o,
genopinit.o, genrecog.o, genextract.o, genpeep.o, genattr.o,
genattrtab.o, genoutput.o): Depend on system.h.
* genattr.c: Include system.h. Add arguments to various function
prototypes. Remove redundant prototype of read_rtx().
* genattrtab.c: Likewise.
* gencodes.c: Likewise.
* genconfig.c: Likewise.
* genemit.c: Likewise.
* genextract.c: Likewise.
* genflags.c: Likewise.
* genopinit.c: Likewise.
* genoutput.c: Likewise.
* genpeep.c: Likewise.
* genrecog.c: Likewise.
From-SVN: r18794
1998-03-24 05:16:53 -05:00
|
|
|
|
genattrtab.o : genattrtab.c $(RTL_H) $(build_xm_file) system.h insn-config.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genattrtab.c
|
|
|
|
|
|
1998-04-15 05:23:14 -04:00
|
|
|
|
genoutput : genoutput.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS)
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
1998-04-15 05:23:14 -04:00
|
|
|
|
genoutput.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
Cutover various gen*.c files to using system.h:
* Makefile.in (genconfig.o, genflags.o, gencodes.o, genemit.o,
genopinit.o, genrecog.o, genextract.o, genpeep.o, genattr.o,
genattrtab.o, genoutput.o): Depend on system.h.
* genattr.c: Include system.h. Add arguments to various function
prototypes. Remove redundant prototype of read_rtx().
* genattrtab.c: Likewise.
* gencodes.c: Likewise.
* genconfig.c: Likewise.
* genemit.c: Likewise.
* genextract.c: Likewise.
* genflags.c: Likewise.
* genopinit.c: Likewise.
* genoutput.c: Likewise.
* genpeep.c: Likewise.
* genrecog.c: Likewise.
From-SVN: r18794
1998-03-24 05:16:53 -05:00
|
|
|
|
genoutput.o : genoutput.c $(RTL_H) $(build_xm_file) system.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genoutput.c
|
1998-01-08 16:17:05 -05:00
|
|
|
|
|
|
|
|
|
gengenrtl : gengenrtl.o $(HOST_LIBDEPS)
|
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
|
|
|
|
gengenrtl.o $(HOST_LIBS)
|
|
|
|
|
|
More cutover to system.h:
* Makefile.in (cppalloc.o, cpperror.o, cppexp.o, cpphash.o,
cpplib.o, cppmain.o, fix-header.o, gcov.o, gen-protos.o,
gengenrtl.o, halfpic.o, hash.o, scan-decls.o, scan.o): Depend on
system.h.
* cpphash.c: Include config.h.
* cppalloc.c: Include system.h. Add parameters to various
function prototypes.
* cpperror.c: Likewise.
* cppexp.c: Likewise.
* cpphash.c: Likewise.
* cpplib.c: Likewise.
* cppmain.c: Likewise.
* fix-header.c: Likewise.
* gcov.c: Likewise.
* gen-protos.c: Likewise.
* gengenrtl.c: Likewise.
* halfpic.c: Likewise.
* hash.c: Likewise.
* scan-decls.c: Likewise.
* scan.c: Likewise.
From-SVN: r18911
1998-03-30 07:05:54 -05:00
|
|
|
|
gengenrtl.o : gengenrtl.c $(RTL_BASE_H) system.h
|
1998-01-08 16:17:05 -05:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gengenrtl.c
|
|
|
|
|
|
1997-06-09 15:19:18 -04:00
|
|
|
|
#
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Compile the libraries to be used by gen*.
|
|
|
|
|
# If we are not cross-building, gen* use the same .o's that cc1 will use,
|
|
|
|
|
# and HOST_PREFIX_1 is `foobar', just to ensure these rules don't conflict
|
|
|
|
|
# with the rules for rtl.o, alloca.o, etc.
|
Makefile.in (HOST_RTL): Add $(HOST_PREFIX)bitmap.o.
* Makefile.in (HOST_RTL): Add $(HOST_PREFIX)bitmap.o.
(rtl.o, emit-rtl.o): Add dependency on bitmap.h.
($(HOST_PREFIX_1)rtl.o): Likewise.
($(HOST_PREFIX_1)bitmap.o): New host object.
* emit-rtl.c (toplevel): Include bitmap.h.
(gen_rtx): Handle 't' and 'b' nodes.
* print-rtl.c (print_rtx): Handle printing NOTE_INSN_LIVE notes.
Print block number for block begin/end notes. Print 't' type
nodes as a pointer. Know that the 3rd argument of live range
start/stop notes is really a range_info rtx. If type is 'b', print
out argument as a bitmap.
* rtl.c: Include bitmap.c.
(copy_rtx): Copy tree nodes as is. Copy bitmaps if type is 'b'.
(note_insn_name): Add NOTE_INSN_RANGE_{START,END}, NOTE_INSN_LIVE.
* rtl.def (RANGE_LIVE): New node to hold live information while we
recalculate the basic blocks.
(RANGE_REG, RANGE_INFO): New rtl types for live range splitting.
(RANGE_VAR): New node, to hold information saved in symbol node for New
communicating live range information to the debug output functions.
* rtl.h (rtunion_def): Add rttree and rtbit fields.
(XBITMAP, XTREE): New accessor macros.
(NOTE_LIVE_INFO): Overload NOTE_SOURCE_FILE for NOTE_INSN_LIVE notes.
(NOTE_RANGE_INFO): Similarly for NOTE_INSN_RANGE_{START,END} notes.
(NOTE_BLOCK_LIVE_RANGE_BLOCK): Define.
(NOTE_INSN_RANGE_START, NOTE_INSN_RANGE_END, NOTE_INSN_LIVE): New notes.
(RANGE_LIVE_{BITMAP,ORIG_BLOCK}): New accessor macros.
(RANGE_REG_{SYMBOL,BLOCK}_NODE, RANGE_VAR_*): New accessor macros.
(RANGE_INFO_*): Likewise.
* sched.c (sched_analyze): Keep live range start/stop notes.
(unlink_other_notes): Likewise.
* haifa-sched.c (sched_analyze): Keep live range start/stop notes.
(unlink_other_notes): Likewise.
* tree.h (BLOCK_LIVE_RANGE_{START,END,VAR_FLAG}): New accessor macros.
(BLOCK_LIVE_RANGE_FLAG): Likewise.
(DECL_LIVE_RANGE_RTL): Likewise.
(struct tree_block): Add live_range_flag, live_range_var_flag,
live_range_start and live_range_end.
(struct tree_decl): Add live_range_rtl field.
* gengenrtl.c (type_from_format): Handle 'b' and 't'.
(accessor_from_format): Likewise.
Co-Authored-By: Jeffrey A Law <law@cygnus.com>
From-SVN: r19727
1998-05-13 17:13:47 -04:00
|
|
|
|
$(HOST_PREFIX_1)rtl.o: $(srcdir)/rtl.c $(CONFIG_H) system.h $(RTL_H) bitmap.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
rm -f $(HOST_PREFIX)rtl.c
|
1992-10-18 01:30:48 -04:00
|
|
|
|
sed -e 's/config[.]h/hconfig.h/' $(srcdir)/rtl.c > $(HOST_PREFIX)rtl.c
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)rtl.c
|
|
|
|
|
|
1999-03-03 18:08:02 -05:00
|
|
|
|
$(HOST_PREFIX_1)print-rtl.o: $(srcdir)/print-rtl.c $(CONFIG_H) $(RTL_H) \
|
|
|
|
|
bitmap.h basic-block.h
|
1992-05-05 23:33:12 -04:00
|
|
|
|
rm -f $(HOST_PREFIX)print-rtl.c
|
1992-10-18 01:30:48 -04:00
|
|
|
|
sed -e 's/config[.]h/hconfig.h/' $(srcdir)/print-rtl.c > $(HOST_PREFIX)print-rtl.c
|
1992-05-05 23:33:12 -04:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)print-rtl.c
|
|
|
|
|
|
Makefile.in (HOST_RTL): Add $(HOST_PREFIX)bitmap.o.
* Makefile.in (HOST_RTL): Add $(HOST_PREFIX)bitmap.o.
(rtl.o, emit-rtl.o): Add dependency on bitmap.h.
($(HOST_PREFIX_1)rtl.o): Likewise.
($(HOST_PREFIX_1)bitmap.o): New host object.
* emit-rtl.c (toplevel): Include bitmap.h.
(gen_rtx): Handle 't' and 'b' nodes.
* print-rtl.c (print_rtx): Handle printing NOTE_INSN_LIVE notes.
Print block number for block begin/end notes. Print 't' type
nodes as a pointer. Know that the 3rd argument of live range
start/stop notes is really a range_info rtx. If type is 'b', print
out argument as a bitmap.
* rtl.c: Include bitmap.c.
(copy_rtx): Copy tree nodes as is. Copy bitmaps if type is 'b'.
(note_insn_name): Add NOTE_INSN_RANGE_{START,END}, NOTE_INSN_LIVE.
* rtl.def (RANGE_LIVE): New node to hold live information while we
recalculate the basic blocks.
(RANGE_REG, RANGE_INFO): New rtl types for live range splitting.
(RANGE_VAR): New node, to hold information saved in symbol node for New
communicating live range information to the debug output functions.
* rtl.h (rtunion_def): Add rttree and rtbit fields.
(XBITMAP, XTREE): New accessor macros.
(NOTE_LIVE_INFO): Overload NOTE_SOURCE_FILE for NOTE_INSN_LIVE notes.
(NOTE_RANGE_INFO): Similarly for NOTE_INSN_RANGE_{START,END} notes.
(NOTE_BLOCK_LIVE_RANGE_BLOCK): Define.
(NOTE_INSN_RANGE_START, NOTE_INSN_RANGE_END, NOTE_INSN_LIVE): New notes.
(RANGE_LIVE_{BITMAP,ORIG_BLOCK}): New accessor macros.
(RANGE_REG_{SYMBOL,BLOCK}_NODE, RANGE_VAR_*): New accessor macros.
(RANGE_INFO_*): Likewise.
* sched.c (sched_analyze): Keep live range start/stop notes.
(unlink_other_notes): Likewise.
* haifa-sched.c (sched_analyze): Keep live range start/stop notes.
(unlink_other_notes): Likewise.
* tree.h (BLOCK_LIVE_RANGE_{START,END,VAR_FLAG}): New accessor macros.
(BLOCK_LIVE_RANGE_FLAG): Likewise.
(DECL_LIVE_RANGE_RTL): Likewise.
(struct tree_block): Add live_range_flag, live_range_var_flag,
live_range_start and live_range_end.
(struct tree_decl): Add live_range_rtl field.
* gengenrtl.c (type_from_format): Handle 'b' and 't'.
(accessor_from_format): Likewise.
Co-Authored-By: Jeffrey A Law <law@cygnus.com>
From-SVN: r19727
1998-05-13 17:13:47 -04:00
|
|
|
|
$(HOST_PREFIX_1)bitmap.o: $(srcdir)/bitmap.c $(CONFIG_H) system.h $(RTL_H) \
|
1998-07-02 09:49:34 -04:00
|
|
|
|
flags.h $(BASIC_BLOCK_H) $(REGS_H)
|
Makefile.in (HOST_RTL): Add $(HOST_PREFIX)bitmap.o.
* Makefile.in (HOST_RTL): Add $(HOST_PREFIX)bitmap.o.
(rtl.o, emit-rtl.o): Add dependency on bitmap.h.
($(HOST_PREFIX_1)rtl.o): Likewise.
($(HOST_PREFIX_1)bitmap.o): New host object.
* emit-rtl.c (toplevel): Include bitmap.h.
(gen_rtx): Handle 't' and 'b' nodes.
* print-rtl.c (print_rtx): Handle printing NOTE_INSN_LIVE notes.
Print block number for block begin/end notes. Print 't' type
nodes as a pointer. Know that the 3rd argument of live range
start/stop notes is really a range_info rtx. If type is 'b', print
out argument as a bitmap.
* rtl.c: Include bitmap.c.
(copy_rtx): Copy tree nodes as is. Copy bitmaps if type is 'b'.
(note_insn_name): Add NOTE_INSN_RANGE_{START,END}, NOTE_INSN_LIVE.
* rtl.def (RANGE_LIVE): New node to hold live information while we
recalculate the basic blocks.
(RANGE_REG, RANGE_INFO): New rtl types for live range splitting.
(RANGE_VAR): New node, to hold information saved in symbol node for New
communicating live range information to the debug output functions.
* rtl.h (rtunion_def): Add rttree and rtbit fields.
(XBITMAP, XTREE): New accessor macros.
(NOTE_LIVE_INFO): Overload NOTE_SOURCE_FILE for NOTE_INSN_LIVE notes.
(NOTE_RANGE_INFO): Similarly for NOTE_INSN_RANGE_{START,END} notes.
(NOTE_BLOCK_LIVE_RANGE_BLOCK): Define.
(NOTE_INSN_RANGE_START, NOTE_INSN_RANGE_END, NOTE_INSN_LIVE): New notes.
(RANGE_LIVE_{BITMAP,ORIG_BLOCK}): New accessor macros.
(RANGE_REG_{SYMBOL,BLOCK}_NODE, RANGE_VAR_*): New accessor macros.
(RANGE_INFO_*): Likewise.
* sched.c (sched_analyze): Keep live range start/stop notes.
(unlink_other_notes): Likewise.
* haifa-sched.c (sched_analyze): Keep live range start/stop notes.
(unlink_other_notes): Likewise.
* tree.h (BLOCK_LIVE_RANGE_{START,END,VAR_FLAG}): New accessor macros.
(BLOCK_LIVE_RANGE_FLAG): Likewise.
(DECL_LIVE_RANGE_RTL): Likewise.
(struct tree_block): Add live_range_flag, live_range_var_flag,
live_range_start and live_range_end.
(struct tree_decl): Add live_range_rtl field.
* gengenrtl.c (type_from_format): Handle 'b' and 't'.
(accessor_from_format): Likewise.
Co-Authored-By: Jeffrey A Law <law@cygnus.com>
From-SVN: r19727
1998-05-13 17:13:47 -04:00
|
|
|
|
rm -f $(HOST_PREFIX)bitmap.c
|
|
|
|
|
sed -e 's/config[.]h/hconfig.h/' $(srcdir)/bitmap.c > $(HOST_PREFIX)bitmap.c
|
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)bitmap.c
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(HOST_PREFIX_1)rtlanal.o: $(srcdir)/rtlanal.c $(CONFIG_H) $(RTL_H)
|
|
|
|
|
rm -f $(HOST_PREFIX)rtlanal.c
|
1992-10-18 01:30:48 -04:00
|
|
|
|
sed -e 's/config[.]h/hconfig.h/' $(srcdir)/rtlanal.c > $(HOST_PREFIX)rtlanal.c
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)rtlanal.c
|
|
|
|
|
|
1998-09-05 06:41:24 -04:00
|
|
|
|
$(HOST_PREFIX_1)alloca.o: $(srcdir)/../libiberty/alloca.c
|
1992-02-03 17:08:59 -05:00
|
|
|
|
rm -f $(HOST_PREFIX)alloca.c
|
1998-09-05 06:41:24 -04:00
|
|
|
|
$(LN_S) $(srcdir)/../libiberty/alloca.c $(HOST_PREFIX)alloca.c
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)alloca.c
|
|
|
|
|
|
Makefile.in (pexecute.o): Use pexecute.c from libiberty.
* Makefile.in (pexecute.o): Use pexecute.c from libiberty. Provide
explicit rules for building. Similarly for alloca, vfprintf,
choose-temp and mkstemp, getopt, getopt1, and obstack.
(INCLUDES): Add $(srcdir)/../include.
* pexecute.c, alloca.c, vfprintf.c, choose-temp.c, mkstemp.c: Delete.
* getopt.h, getopt.c getopt1.c, obstack.c, obstack.h: Likewise.
From-SVN: r22258
1998-09-05 08:24:04 -04:00
|
|
|
|
$(HOST_PREFIX_1)obstack.o: $(srcdir)/../libiberty/obstack.c
|
1992-02-03 17:08:59 -05:00
|
|
|
|
rm -f $(HOST_PREFIX)obstack.c
|
Makefile.in (pexecute.o): Use pexecute.c from libiberty.
* Makefile.in (pexecute.o): Use pexecute.c from libiberty. Provide
explicit rules for building. Similarly for alloca, vfprintf,
choose-temp and mkstemp, getopt, getopt1, and obstack.
(INCLUDES): Add $(srcdir)/../include.
* pexecute.c, alloca.c, vfprintf.c, choose-temp.c, mkstemp.c: Delete.
* getopt.h, getopt.c getopt1.c, obstack.c, obstack.h: Likewise.
From-SVN: r22258
1998-09-05 08:24:04 -04:00
|
|
|
|
sed -e 's/config[.]h/hconfig.h/' $(srcdir)/../libiberty/obstack.c > $(HOST_PREFIX)obstack.c
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)obstack.c
|
|
|
|
|
|
1998-09-04 22:24:45 -04:00
|
|
|
|
$(HOST_PREFIX_1)vfprintf.o: $(srcdir)/../libiberty/vfprintf.c
|
1998-05-07 07:44:09 -04:00
|
|
|
|
rm -f $(HOST_PREFIX)vfprintf.c
|
1998-09-05 06:41:24 -04:00
|
|
|
|
sed -e 's/config[.]h/hconfig.h/' $(srcdir)/../libiberty/vfprintf.c > $(HOST_PREFIX)vfprintf.c
|
1998-05-07 07:44:09 -04:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)vfprintf.c
|
|
|
|
|
|
|
|
|
|
$(HOST_PREFIX_1)doprint.o: doprint.c
|
|
|
|
|
rm -f $(HOST_PREFIX)doprint.c
|
|
|
|
|
sed -e 's/config[.]h/hconfig.h/' $(srcdir)/doprint.c > $(HOST_PREFIX)doprint.c
|
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)doprint.c
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(HOST_PREFIX_1)malloc.o: malloc.c
|
|
|
|
|
rm -f $(HOST_PREFIX)malloc.c
|
1992-10-18 01:30:48 -04:00
|
|
|
|
sed -e 's/config[.]h/hconfig.h/' $(srcdir)/malloc.c > $(HOST_PREFIX)malloc.c
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)malloc.c
|
|
|
|
|
|
|
|
|
|
# This satisfies the dependency that we get if you cross-compile a compiler
|
|
|
|
|
# that does not need to compile alloca, malloc or whatever.
|
|
|
|
|
$(HOST_PREFIX_1):
|
|
|
|
|
touch $(HOST_PREFIX_1)
|
1993-09-21 17:25:24 -04:00
|
|
|
|
|
1999-01-26 20:43:17 -05:00
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Remake internationalization support.
|
|
|
|
|
|
|
|
|
|
intl.o: intl.c intl.h gansidecl.h Makefile
|
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
|
|
|
|
-DLOCALEDIR=\"$(localedir)\" \
|
|
|
|
|
-c `echo $(srcdir)/intl.c | sed 's,^\./,,'`
|
|
|
|
|
|
|
|
|
|
# This is needed to when doing a partial build after a `make clean'.
|
|
|
|
|
# libintl.a does not depend on intl.all,
|
|
|
|
|
# as that would force a lot of recompiling.
|
|
|
|
|
$(top_builddir)/intl/libintl.a:
|
|
|
|
|
@echo "$(MAKE) intl.all"
|
|
|
|
|
@$(MAKE) $(FLAGS_TO_PASS) intl.all
|
|
|
|
|
|
|
|
|
|
# Make sure all the headers are there for xgettext to scan.
|
1999-03-18 16:59:35 -05:00
|
|
|
|
$(INTL_TARGETS): $(srcdir)/c-gperf.h \
|
|
|
|
|
$(srcdir)/c-parse.c $(srcdir)/c-parse.h $(srcdir)/cexp.c
|
1999-01-26 20:43:17 -05:00
|
|
|
|
|
|
|
|
|
intl.all intl.install intl.uninstall intl.distdir \
|
|
|
|
|
intl.mostlyclean intl.clean intl.distclean intl.maintainer-clean:
|
|
|
|
|
@for d in $(INTL_SUBDIRS); do \
|
|
|
|
|
target=`expr $@ : 'intl.\(.*\)'` && \
|
|
|
|
|
echo "(cd $$d && $(MAKE) $$target)" && \
|
|
|
|
|
(cd $$d && AWK='$(AWK)' $(MAKE) $(SUBDIR_FLAGS_TO_PASS) $$target); \
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# intl.distdir doesn't copy the intl makefiles (since they aren't distributed),
|
|
|
|
|
# but we need them for the `make extraclean' in distdir-finish.
|
|
|
|
|
intl.distdir-fixup:
|
|
|
|
|
for d in $(INTL_SUBDIRS); do \
|
|
|
|
|
ln $$d/Makefile tmp/$$d || cp $$d/Makefile tmp/$$d || exit; \
|
|
|
|
|
done
|
1997-06-09 15:19:18 -04:00
|
|
|
|
#
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Remake cpp and protoize.
|
|
|
|
|
|
|
|
|
|
# Making the preprocessor
|
1998-03-21 18:47:27 -05:00
|
|
|
|
cpp$(exeext): $(CCCP)$(exeext)
|
1995-02-21 17:54:50 -05:00
|
|
|
|
-rm -f cpp$(exeext)
|
1997-09-11 16:39:08 -04:00
|
|
|
|
$(LN) $(CCCP)$(exeext) cpp$(exeext)
|
1999-01-26 20:43:17 -05:00
|
|
|
|
CCCP_OBJS = cccp.o cexp.o intl.o prefix.o version.o @extra_cpp_objs@ mbchar.o
|
|
|
|
|
cccp$(exeext): $(CCCP_OBJS) $(LIBDEPS)
|
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(CCCP_OBJS) $(LIBS)
|
configure.in (host_xm_file, [...]): Arrange to include gansidecl.h in {ht}config.h & tm.h just before the config/...
* configure.in (host_xm_file, build_xm_file, xm_file, tm_file):
Arrange to include gansidecl.h in {ht}config.h & tm.h just
before the config/ directory headers.
(tm_file_list, host_xm_file_list, build_xm_file_list): Handle
gansidecl.h in the list of dependencies.
* Makefile.in (RTL_BASE_H): Don't depend on gansidecl.h.
(TREE_H, DEMANGLE_H, RECOG_H, REGS_H, libgcc2.a, stmp-multilib,
mbchar.o, collect2.o, pexecute.o, vfprintf.o, splay-tree.o, gcc.o,
gencheck.o, choose-temp.o, mkstemp.o, mkstemp.o, prefix.o,
dyn-string.o, cexp.o, cccp.o, cppmain.o, cpplib.o, cpperror.o,
cppexp.o, cppfiles.o, cpphash.o, cppalloc.o, scan-decls.o):
Likewise.
* cccp.c: Don't include gansidecl.h.
* cexp.y: Likewise.
* collect2.c: Likewise.
* config/c4x/c4x.c: Likewise.
* config/v850/v850.h: Likewise.
* cppalloc.c: Likewise.
* cpperror.c: Likewise.
* cppexp.c: Likewise.
* cppfiles.c: Likewise.
* cpphash.c: Likewise.
* cpplib.c: Likewise.
* cppmain.c: Likewise.
* cppulp.c: Likewise.
* demangle.h: Likewise.
* doprint.c: Likewise.
* dyn-string.c: Likewise.
* eh-common.h: Likewise.
* fix-header.c: Likewise.
* frame.c: Likewise.
* gcc.c: Likewise.
* gcov.c: Likewise.
* gen-protos.c: Likewise.
* gencheck.c: Likewise.
* halfpic.h: Likewise.
* hash.c: Likewise.
* machmode.h: Likewise.
* mbchar.c: Likewise.
* prefix.c: Likewise.
* protoize.c: Likewise.
* recog.h: Likewise.
* rtl.h: Likewise.
* scan-decls.c: Likewise.
* tree.h: Likewise.
* varray.h: Likewise.
From-SVN: r23558
1998-11-07 08:00:46 -05:00
|
|
|
|
cexp.o: $(srcdir)/cexp.c $(CONFIG_H) system.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/cexp.c
|
|
|
|
|
$(srcdir)/cexp.c: $(srcdir)/cexp.y
|
|
|
|
|
cd $(srcdir); $(BISON) -o cexp.c cexp.y
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
|
1998-10-01 21:05:51 -04:00
|
|
|
|
# We use $(libsubdir)/$(unlibsubdir) to match the
|
|
|
|
|
# -iprefix argument which gcc will pass if GCC_EXEC_PREFIX is used.
|
1999-01-26 20:43:17 -05:00
|
|
|
|
cccp.o: cccp.c $(CONFIG_H) intl.h pcp.h version.c config.status system.h \
|
|
|
|
|
mbchar.h prefix.h Makefile.in
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
1992-03-20 17:22:14 -05:00
|
|
|
|
-DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
|
1999-03-02 04:25:31 -05:00
|
|
|
|
-DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \
|
1998-10-12 07:14:11 -04:00
|
|
|
|
-DLOCAL_INCLUDE_DIR=\"$(includedir)\" \
|
1999-01-22 01:46:43 -05:00
|
|
|
|
-DCROSS_INCLUDE_DIR=\"$(gcc_tooldir)/sys-include\" \
|
|
|
|
|
-DTOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include\" \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-c `echo $(srcdir)/cccp.c | sed 's,^\./,,'`
|
|
|
|
|
|
[multiple changes]
1998-10-28 16:10 -0500 Zack Weinberg <zack@rabi.phys.columbia.edu>
* c-lang.c: Declare extern char *yy_cur if USE_CPPLIB.
(lang_init): Call check_newline always.
* c-lex.c (init_parse) [USE_CPPLIB=1]: After calling
cpp_start_read, set yy_cur and yy_lim to read from
parse_in.token_buffer, so that we'll see the first #line
directive.
* cpplib.c (cpp_start_read): finclude the main input file
before processing -include/-imacros. Process -imacros and
-include separately, and handle -include by stacking a
buffer for the file in question as if it'd been #included.
* toplev.c (documented_lang_options) Recognize -H when
USE_CPPLIB is on.
1998-10-28 16:09 -0500 Zack Weinberg <zack@rabi.phys.columbia.edu>
* cpplib.c: Merge do_once into do_pragma. Break file handling
code out of do_include.
Move append_include_chain, deps_output,
file_cleanup, redundant_include_p, import_hash,
lookup_import, add_import, read_filename_string, read_name_map,
open_include_file, finclude, safe_read to cppfiles.c.
Move prototypes for deps_output, append_include_chain,
finclude to cpplib.h. Move definition of struct
file_name_list there also.
* cppfiles.c: New file. Contains all the above functions
broken out of cpplib.c; also hack_vms_include_specification
from cccp.c and find_include_file, a new function broken out of
do_include.
* Makefile.in (cppmain): Depend on cppfiles.o.
(fix-header): Likewise.
(cppfiles.o): New target.
* configure.in (--enable-c-cpplib): Add cppfiles.o to
extra_c_objs. Add ../cppfiles.o to extra_cxx_objs.
From-SVN: r23424
1998-10-29 06:54:13 -05:00
|
|
|
|
LIBCPP_OBJS = cpplib.o cpphash.o cppalloc.o cpperror.o cppexp.o cppfiles.o \
|
1999-02-04 06:36:54 -05:00
|
|
|
|
cppinit.o cppulp.o prefix.o version.o mbchar.o @extra_cpp_objs@
|
1998-10-28 17:31:06 -05:00
|
|
|
|
|
1998-11-24 07:46:07 -05:00
|
|
|
|
# All the other archives built/used by this makefile are for targets. This
|
|
|
|
|
# one is strictly for the host.
|
|
|
|
|
#
|
1998-10-28 17:31:06 -05:00
|
|
|
|
libcpp.a: $(LIBCPP_OBJS)
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
$(AR) $(AR_FLAGS) libcpp.a $(LIBCPP_OBJS)
|
|
|
|
|
if $(RANLIB_TEST) ; then $(RANLIB) libcpp.a ; else true ; fi
|
1998-10-28 17:31:06 -05:00
|
|
|
|
|
1999-04-01 03:05:46 -05:00
|
|
|
|
cppmain$(exeext): cppmain.o intl.o libcpp.a $(LIBDEPS)
|
1998-10-28 17:31:06 -05:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cppmain$(exeext) cppmain.o \
|
1999-04-01 03:05:46 -05:00
|
|
|
|
intl.o libcpp.a $(LIBS)
|
1995-03-16 17:01:13 -05:00
|
|
|
|
|
Makefile.in (cppmain.o, [...]): Don't depend on machmode.h.
* Makefile.in (cppmain.o, cpplib.o, cpphash.o, cppalloc.o,
cpperror.o, cppexp.o, cppfiles.o, cppinit.o, fix-header.o,
scan-decls.o): Don't depend on machmode.h.
* cppexp.c: Don't define CHAR_BIT or HOST_BITS_PER_WIDE_INT anymore.
Replace all instances of HOST_WIDE_INT with HOST_WIDEST_INT.
* cppfiles.c: Likewise.
* cpplib.c: Likewise.
* cpplib.h: Likewise. Also don't include machmode.h anymore.
From-SVN: r25446
1999-02-25 15:40:21 -05:00
|
|
|
|
cppmain.o: cppmain.c $(CONFIG_H) cpplib.h intl.h system.h
|
1996-12-07 18:05:10 -05:00
|
|
|
|
|
cpplib.c: Kill define of STDC_VALUE.
1999-02-18 18:32 -0500 Zack Weinberg <zack@rabi.columbia.edu>
* cpplib.c: Kill define of STDC_VALUE. Don't include output.h
or prefix.h. Change CPP_IS_MACRO_BUFFER to not refer to
macro_cleanup.
(GET_ENV_PATH_LIST, PATH_SEPARATOR, STANDARD_INCLUDE_DIR,
predefs, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
CPP_WCHAR_TYPE, USER_LABEL_PREFIX, REGISTER_PREFIX, struct
cpp_pending, version_string, struct default_include,
include_defaults_array, path_include, cpp_options_init,
dump_special_to_buffer, initialize_builtins, cpp_start_read,
cpp_reader_init, nreverse_pending, push_pending, print_help,
cpp_handle_option, cpp_handle_options, cpp_finish,
cpp_cleanup): Move to cppinit.c.
(macro_cleanup, struct arglist, collect_expansion,
create_definition, compare_defs, comp_def_part, ARG_BASE,
struct argdata, macarg, change_newlines, timestamp,
monthnames, special_symbol, unsafe_chars, macroexpand,
push_macro_expansion): Move to cpphash.c.
(quote_string, check_macro_name, cpp_expand_to_buffer,
output_line_command, cpp_undef): Export.
(null_underflow, null_cleanup, handle_directive): Make static.
* cpplib.h: Prototype now-exported functions. Adjust decls of
syntax tables so we can include cpplib.h in cppinit.c.
* cpphash.h: Prototype all functions exported by cpphash.c.
* cppinit.c: Make syntax tables initialized data if possible
(uses GCC designated-initializer extension).
* cppexp.c: Make cpp_lex static.
* Makefile.in: Move -D switches for the various include dirs
from cpplib.o rule to cppinit.o rule. Adjust dependencies.
From-SVN: r25287
1999-02-18 10:35:49 -05:00
|
|
|
|
cppulp.o: cppulp.c $(CONFIG_H) system.h output.h
|
Makefile.in (cppmain.o, [...]): Don't depend on machmode.h.
* Makefile.in (cppmain.o, cpplib.o, cpphash.o, cppalloc.o,
cpperror.o, cppexp.o, cppfiles.o, cppinit.o, fix-header.o,
scan-decls.o): Don't depend on machmode.h.
* cppexp.c: Don't define CHAR_BIT or HOST_BITS_PER_WIDE_INT anymore.
Replace all instances of HOST_WIDE_INT with HOST_WIDEST_INT.
* cppfiles.c: Likewise.
* cpplib.c: Likewise.
* cpplib.h: Likewise. Also don't include machmode.h anymore.
From-SVN: r25446
1999-02-25 15:40:21 -05:00
|
|
|
|
cpplib.o: cpplib.c $(CONFIG_H) cpplib.h intl.h system.h cpphash.h
|
|
|
|
|
cpphash.o: cpphash.c $(CONFIG_H) cpplib.h intl.h system.h cpphash.h
|
|
|
|
|
cppalloc.o: cppalloc.c $(CONFIG_H) cpplib.h intl.h system.h
|
|
|
|
|
cpperror.o: cpperror.c $(CONFIG_H) cpplib.h intl.h system.h
|
|
|
|
|
cppexp.o: cppexp.c $(CONFIG_H) cpplib.h intl.h system.h
|
|
|
|
|
cppfiles.o: cppfiles.c $(CONFIG_H) cpplib.h intl.h system.h
|
|
|
|
|
|
1999-04-13 05:43:28 -04:00
|
|
|
|
cppinit.o: cppinit.c $(CONFIG_H) cpplib.h intl.h system.h \
|
cpplib.c: Kill define of STDC_VALUE.
1999-02-18 18:32 -0500 Zack Weinberg <zack@rabi.columbia.edu>
* cpplib.c: Kill define of STDC_VALUE. Don't include output.h
or prefix.h. Change CPP_IS_MACRO_BUFFER to not refer to
macro_cleanup.
(GET_ENV_PATH_LIST, PATH_SEPARATOR, STANDARD_INCLUDE_DIR,
predefs, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
CPP_WCHAR_TYPE, USER_LABEL_PREFIX, REGISTER_PREFIX, struct
cpp_pending, version_string, struct default_include,
include_defaults_array, path_include, cpp_options_init,
dump_special_to_buffer, initialize_builtins, cpp_start_read,
cpp_reader_init, nreverse_pending, push_pending, print_help,
cpp_handle_option, cpp_handle_options, cpp_finish,
cpp_cleanup): Move to cppinit.c.
(macro_cleanup, struct arglist, collect_expansion,
create_definition, compare_defs, comp_def_part, ARG_BASE,
struct argdata, macarg, change_newlines, timestamp,
monthnames, special_symbol, unsafe_chars, macroexpand,
push_macro_expansion): Move to cpphash.c.
(quote_string, check_macro_name, cpp_expand_to_buffer,
output_line_command, cpp_undef): Export.
(null_underflow, null_cleanup, handle_directive): Make static.
* cpplib.h: Prototype now-exported functions. Adjust decls of
syntax tables so we can include cpplib.h in cppinit.c.
* cpphash.h: Prototype all functions exported by cpphash.c.
* cppinit.c: Make syntax tables initialized data if possible
(uses GCC designated-initializer extension).
* cppexp.c: Make cpp_lex static.
* Makefile.in: Move -D switches for the various include dirs
from cpplib.o rule to cppinit.o rule. Adjust dependencies.
From-SVN: r25287
1999-02-18 10:35:49 -05:00
|
|
|
|
cpphash.h prefix.h output.h Makefile
|
1995-03-16 17:01:13 -05:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
1998-10-12 07:14:11 -04:00
|
|
|
|
-DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
|
1999-03-02 04:25:31 -05:00
|
|
|
|
-DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \
|
1998-10-12 07:14:11 -04:00
|
|
|
|
-DLOCAL_INCLUDE_DIR=\"$(includedir)\" \
|
1999-01-22 01:46:43 -05:00
|
|
|
|
-DCROSS_INCLUDE_DIR=\"$(gcc_tooldir)/sys-include\" \
|
|
|
|
|
-DTOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include\" \
|
cpplib.c: Kill define of STDC_VALUE.
1999-02-18 18:32 -0500 Zack Weinberg <zack@rabi.columbia.edu>
* cpplib.c: Kill define of STDC_VALUE. Don't include output.h
or prefix.h. Change CPP_IS_MACRO_BUFFER to not refer to
macro_cleanup.
(GET_ENV_PATH_LIST, PATH_SEPARATOR, STANDARD_INCLUDE_DIR,
predefs, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
CPP_WCHAR_TYPE, USER_LABEL_PREFIX, REGISTER_PREFIX, struct
cpp_pending, version_string, struct default_include,
include_defaults_array, path_include, cpp_options_init,
dump_special_to_buffer, initialize_builtins, cpp_start_read,
cpp_reader_init, nreverse_pending, push_pending, print_help,
cpp_handle_option, cpp_handle_options, cpp_finish,
cpp_cleanup): Move to cppinit.c.
(macro_cleanup, struct arglist, collect_expansion,
create_definition, compare_defs, comp_def_part, ARG_BASE,
struct argdata, macarg, change_newlines, timestamp,
monthnames, special_symbol, unsafe_chars, macroexpand,
push_macro_expansion): Move to cpphash.c.
(quote_string, check_macro_name, cpp_expand_to_buffer,
output_line_command, cpp_undef): Export.
(null_underflow, null_cleanup, handle_directive): Make static.
* cpplib.h: Prototype now-exported functions. Adjust decls of
syntax tables so we can include cpplib.h in cppinit.c.
* cpphash.h: Prototype all functions exported by cpphash.c.
* cppinit.c: Make syntax tables initialized data if possible
(uses GCC designated-initializer extension).
* cppexp.c: Make cpp_lex static.
* Makefile.in: Move -D switches for the various include dirs
from cpplib.o rule to cppinit.o rule. Adjust dependencies.
From-SVN: r25287
1999-02-18 10:35:49 -05:00
|
|
|
|
-c `echo $(srcdir)/cppinit.c | sed 's,^\./,,'`
|
1999-02-04 06:36:54 -05:00
|
|
|
|
|
1993-01-26 13:45:24 -05:00
|
|
|
|
# Note for the stamp targets, we run the program `true' instead of
|
|
|
|
|
# having an empty command (nothing following the semicolon).
|
|
|
|
|
|
1998-03-21 18:47:27 -05:00
|
|
|
|
proto: config.status protoize$(exeext) unprotoize$(exeext) SYSCALLS.c.X
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1999-02-08 09:17:04 -05:00
|
|
|
|
PROTO_OBJS = getpwd.o intl.o version.o
|
1999-01-26 20:43:17 -05:00
|
|
|
|
|
|
|
|
|
protoize$(exeext): protoize.o $(PROTO_OBJS) $(LIBDEPS)
|
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ protoize.o $(PROTO_OBJS) $(LIBS)
|
1992-05-18 16:08:36 -04:00
|
|
|
|
|
1999-01-26 20:43:17 -05:00
|
|
|
|
unprotoize$(exeext): unprotoize.o $(PROTO_OBJS) $(LIBDEPS)
|
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ unprotoize.o $(PROTO_OBJS) $(LIBS)
|
1992-05-18 16:08:36 -04:00
|
|
|
|
|
1999-01-19 09:07:21 -05:00
|
|
|
|
protoize.o: protoize.c $(srcdir)/../include/getopt.h $(CONFIG_H) system.h \
|
|
|
|
|
Makefile
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
|
|
|
|
-DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
|
1999-03-02 04:25:31 -05:00
|
|
|
|
-DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \
|
1999-01-22 01:46:43 -05:00
|
|
|
|
-DCROSS_INCLUDE_DIR=\"$(gcc_tooldir)/sys-include\" \
|
|
|
|
|
-DTOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include\" \
|
1993-12-15 19:04:46 -05:00
|
|
|
|
-DLOCAL_INCLUDE_DIR=\"$(includedir)\" \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-DSTD_PROTO_DIR=\"$(libsubdir)\" \
|
1998-01-13 16:10:35 -05:00
|
|
|
|
$(srcdir)/protoize.c
|
|
|
|
|
|
1999-01-19 09:07:21 -05:00
|
|
|
|
unprotoize.o: unprotoize.c protoize.c $(srcdir)/../include/getopt.h \
|
|
|
|
|
$(CONFIG_H) system.h Makefile
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
|
|
|
|
-DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
|
1999-03-02 04:25:31 -05:00
|
|
|
|
-DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \
|
1999-01-22 01:46:43 -05:00
|
|
|
|
-DCROSS_INCLUDE_DIR=\"$(gcc_tooldir)/sys-include\" \
|
|
|
|
|
-DTOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include\" \
|
1993-12-15 19:04:46 -05:00
|
|
|
|
-DLOCAL_INCLUDE_DIR=\"$(includedir)\" \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-DSTD_PROTO_DIR=\"$(libsubdir)\" \
|
1998-01-13 16:10:35 -05:00
|
|
|
|
$(srcdir)/unprotoize.c
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# This info describes the target machine, so compile with GCC just built.
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
SYSCALLS.c.X: $(srcdir)/sys-types.h $(srcdir)/sys-protos.h $(GCC_PASSES) \
|
|
|
|
|
stmp-int-hdrs
|
1992-06-06 15:49:38 -04:00
|
|
|
|
-rm -f SYSCALLS.c tmp-SYSCALLS.s
|
1992-04-04 16:34:42 -05:00
|
|
|
|
cat $(srcdir)/sys-types.h $(srcdir)/sys-protos.h > SYSCALLS.c
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
1992-06-06 15:49:38 -04:00
|
|
|
|
-aux-info $@ -S -o tmp-SYSCALLS.s SYSCALLS.c
|
|
|
|
|
-rm -f SYSCALLS.c tmp-SYSCALLS.s
|
1992-04-24 21:32:47 -04:00
|
|
|
|
|
1993-07-26 04:49:02 -04:00
|
|
|
|
|
1992-04-24 21:32:47 -04:00
|
|
|
|
test-protoize-simple: ./protoize ./unprotoize $(GCC_PASSES)
|
1992-05-22 17:22:42 -04:00
|
|
|
|
-rm -f tmp-proto.[cso]
|
1992-05-05 23:33:12 -04:00
|
|
|
|
cp $(srcdir)/protoize.c tmp-proto.c
|
|
|
|
|
chmod u+w tmp-proto.c
|
1992-05-22 17:22:42 -04:00
|
|
|
|
./protoize -N -B ./ -x getopt.h -c "-B./ -Wall -Wwrite-strings \
|
|
|
|
|
$(CFLAGS) $(INCLUDES) \
|
1992-04-24 21:32:47 -04:00
|
|
|
|
-DGCC_INCLUDE_DIR=0 \
|
|
|
|
|
-DGPLUSPLUS_INCLUDE_DIR=0 \
|
|
|
|
|
-DCROSS_INCLUDE_DIR=0 \
|
1993-01-02 04:05:01 -05:00
|
|
|
|
-DTOOL_INCLUDE_DIR=0 \
|
1992-05-05 23:33:12 -04:00
|
|
|
|
-DSTD_PROTO_DIR=0" tmp-proto.c
|
1992-06-25 23:41:06 -04:00
|
|
|
|
@echo '**********' Expect 400 lines of differences.
|
1992-05-22 17:22:42 -04:00
|
|
|
|
-diff $(srcdir)/protoize.c tmp-proto.c > tmp-proto.diff
|
|
|
|
|
-wc -l tmp-proto.diff
|
|
|
|
|
./unprotoize -N -x getopt.h -c "-B./ -Wall -Wwrite-strings \
|
|
|
|
|
$(CFLAGS) $(INCLUDES) \
|
1992-04-24 21:32:47 -04:00
|
|
|
|
-DGCC_INCLUDE_DIR=0 \
|
|
|
|
|
-DGPLUSPLUS_INCLUDE_DIR=0 \
|
|
|
|
|
-DCROSS_INCLUDE_DIR=0 \
|
1993-01-02 04:05:01 -05:00
|
|
|
|
-DTOOL_INCLUDE_DIR=0 \
|
1992-05-05 23:33:12 -04:00
|
|
|
|
-DSTD_PROTO_DIR=0" tmp-proto.c
|
1992-04-24 21:32:47 -04:00
|
|
|
|
@echo Expect zero differences.
|
1992-05-05 23:33:12 -04:00
|
|
|
|
diff $(srcdir)/protoize.c tmp-proto.c | cat
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
-rm -f tmp-proto.[cs] tmp-proto$(objext)
|
1997-03-28 17:34:21 -05:00
|
|
|
|
|
1999-01-26 20:43:17 -05:00
|
|
|
|
gcov.o: gcov.c gcov-io.h intl.h system.h
|
1997-03-28 17:34:21 -05:00
|
|
|
|
|
1998-03-24 12:27:46 -05:00
|
|
|
|
# Only one of 'gcov' or 'gcov.exe' is actually built, depending
|
|
|
|
|
# upon whether $(exeext) is empty or not.
|
1999-01-26 20:43:17 -05:00
|
|
|
|
GCOV_OBJS = gcov.o intl.o
|
|
|
|
|
gcov$(exeext): $(GCOV_OBJS) $(LIBDEPS)
|
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) $(GCOV_OBJS) $(LIBS) -o $@
|
1997-06-09 15:19:18 -04:00
|
|
|
|
#
|
1993-01-14 15:10:31 -05:00
|
|
|
|
# Build the include directory. The stamp files are stmp-* rather than
|
1998-04-04 08:32:39 -05:00
|
|
|
|
# s-* so that mostlyclean does not force the include directory to
|
1993-01-14 15:10:31 -05:00
|
|
|
|
# be rebuilt.
|
|
|
|
|
|
1998-05-23 20:44:00 -04:00
|
|
|
|
# Build the include directory including float.h (which no longer depends upon
|
1993-04-08 10:53:33 -04:00
|
|
|
|
# enquire).
|
1999-03-01 14:15:49 -05:00
|
|
|
|
stmp-int-hdrs: stmp-fixinc $(USER_H) xlimits.h
|
1993-01-14 15:10:31 -05:00
|
|
|
|
# Copy in the headers provided with gcc.
|
|
|
|
|
# The sed command gets just the last file name component;
|
|
|
|
|
# this is necessary because VPATH could add a dirname.
|
|
|
|
|
# Using basename would be simpler, but some systems don't have it.
|
1998-01-14 15:57:58 -05:00
|
|
|
|
# The touch command is here to workaround an AIX/Linux NFS bug.
|
1995-09-28 14:02:22 -04:00
|
|
|
|
for file in .. $(USER_H); do \
|
|
|
|
|
if [ X$$file != X.. ]; then \
|
|
|
|
|
realfile=`echo $$file | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
|
1998-01-14 15:57:58 -05:00
|
|
|
|
touch include/$$realfile; \
|
1996-09-26 17:10:02 -04:00
|
|
|
|
rm -f include/$$realfile; \
|
|
|
|
|
cp $$file include; \
|
|
|
|
|
chmod a+r include/$$realfile; \
|
1995-09-28 14:02:22 -04:00
|
|
|
|
fi; \
|
1993-01-14 15:10:31 -05:00
|
|
|
|
done
|
1993-01-18 11:12:57 -05:00
|
|
|
|
rm -f include/limits.h
|
1993-01-14 15:10:31 -05:00
|
|
|
|
cp xlimits.h include/limits.h
|
|
|
|
|
chmod a+r include/limits.h
|
1993-04-08 10:53:33 -04:00
|
|
|
|
rm -f include/float.h
|
1999-03-01 14:15:49 -05:00
|
|
|
|
if [ x$(FLOAT_H) != xMakefile.in ]; then \
|
|
|
|
|
cp $(srcdir)/config/$(FLOAT_H) include/float.h && \
|
1997-11-02 16:19:36 -05:00
|
|
|
|
chmod a+r include/float.h; \
|
|
|
|
|
else :; fi
|
1998-05-23 20:44:00 -04:00
|
|
|
|
# Install the README
|
|
|
|
|
rm -f include/README
|
|
|
|
|
cp $(srcdir)/README-fixinc include/README
|
|
|
|
|
chmod a+r include/README
|
|
|
|
|
touch $@
|
|
|
|
|
|
1999-03-01 14:15:49 -05:00
|
|
|
|
# Now that float.h no longer depends upon enquire, this is actually a no-op.
|
1998-05-23 20:44:00 -04:00
|
|
|
|
stmp-headers:
|
|
|
|
|
touch $@
|
1993-01-14 15:10:31 -05:00
|
|
|
|
|
1999-04-26 19:00:53 -04:00
|
|
|
|
FIXINCSRCDIR=$(srcdir)/fixinc
|
|
|
|
|
fixinc.sh: $(FIXINCSRCDIR)/mkfixinc.sh $(FIXINCSRCDIR)/fixincl.c \
|
1999-04-29 11:38:02 -04:00
|
|
|
|
$(FIXINCSRCDIR)/procopen.c $(FIXINCSRCDIR)/gnu-regex.c \
|
|
|
|
|
$(FIXINCSRCDIR)/server.c $(FIXINCSRCDIR)/gnu-regex.h \
|
1999-04-26 19:00:53 -04:00
|
|
|
|
$(FIXINCSRCDIR)/server.h $(FIXINCSRCDIR)/inclhack.def
|
1999-03-11 03:53:13 -05:00
|
|
|
|
MAKE="$(MAKE)"; srcdir=`cd $(srcdir)/fixinc; pwd` ; \
|
|
|
|
|
export MAKE srcdir ; \
|
|
|
|
|
cd ./fixinc; $(SHELL) $${srcdir}/mkfixinc.sh $(target)
|
|
|
|
|
|
|
|
|
|
##stmp-fixinc: $(FIXINCLUDES) gsyslimits.h
|
|
|
|
|
## rm -rf include
|
|
|
|
|
## mkdir include
|
|
|
|
|
## if [ x$(FIXINCLUDES) != xMakefile.in ]; \
|
|
|
|
|
## then \
|
|
|
|
|
## for dir in $(SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS); do \
|
|
|
|
|
## if [ -d $$dir ]; \
|
|
|
|
|
## then \
|
|
|
|
|
## $(SHELL) $(srcdir)/$(FIXINCLUDES) include $$dir; \
|
|
|
|
|
## else true; fi; \
|
|
|
|
|
## done; \
|
|
|
|
|
## if [ x$(INSTALL_ASSERT_H) != x ] ; \
|
|
|
|
|
## then \
|
|
|
|
|
## rm -f include/assert.h; \
|
|
|
|
|
## cp $(srcdir)/assert.h include/assert.h; \
|
|
|
|
|
## chmod a+r include/assert.h; \
|
|
|
|
|
## fi \
|
|
|
|
|
## else true; \
|
|
|
|
|
## fi
|
1998-04-09 20:31:10 -04:00
|
|
|
|
|
1993-01-14 15:10:31 -05:00
|
|
|
|
# Build fixed copies of system files.
|
1999-03-11 03:53:13 -05:00
|
|
|
|
stmp-fixinc: fixinc.sh gsyslimits.h
|
|
|
|
|
rm -rf include; mkdir include
|
|
|
|
|
TARGET_MACHINE=$(target); srcdir=`cd $(srcdir); pwd`; \
|
1999-04-12 03:21:36 -04:00
|
|
|
|
INSTALL_ASSERT_H=$(INSTALL_ASSERT_H); SHELL=$(SHELL) ;\
|
|
|
|
|
export TARGET_MACHINE srcdir INSTALL_ASSERT_H SHELL ; \
|
1999-03-11 03:53:13 -05:00
|
|
|
|
$(SHELL) ./fixinc.sh `pwd`/include $(SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS)
|
1993-04-27 19:16:40 -04:00
|
|
|
|
rm -f include/syslimits.h
|
|
|
|
|
if [ -f include/limits.h ]; then \
|
|
|
|
|
mv include/limits.h include/syslimits.h; \
|
|
|
|
|
else \
|
|
|
|
|
cp $(srcdir)/gsyslimits.h include/syslimits.h; \
|
|
|
|
|
fi
|
|
|
|
|
chmod a+r include/syslimits.h
|
1999-03-26 15:50:16 -05:00
|
|
|
|
# If $(SYSTEM_HEADER_DIR) is $(tooldir)/sys-include, and
|
1998-10-01 21:05:51 -04:00
|
|
|
|
# that directory exists, then make sure that $(libsubdir) exists.
|
1999-03-26 15:50:16 -05:00
|
|
|
|
# This is because cpp is compiled to find $(tooldir)/include via
|
1998-10-01 21:05:51 -04:00
|
|
|
|
# $(libsubdir)/$(unlibsubdir), which will only work if $(libsubdir)
|
|
|
|
|
# exists.
|
1999-03-26 15:50:16 -05:00
|
|
|
|
# We deliberately use tooldir instead of gcc_tooldir here. gcc_tooldir
|
|
|
|
|
# won't work because libsubdir doesn't exist yet.
|
|
|
|
|
if [ "$(SYSTEM_HEADER_DIR)" = "$(tooldir)/sys-include" ] \
|
|
|
|
|
&& [ -d $(tooldir)/sys-include ]; then \
|
1998-10-01 21:05:51 -04:00
|
|
|
|
if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; fi; \
|
|
|
|
|
if [ -d $(libdir)/gcc-lib ] ; then true ; else mkdir $(libdir)/gcc-lib; fi; \
|
|
|
|
|
if [ -d $(libdir)/gcc-lib/$(target_alias) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target_alias) ; fi; \
|
|
|
|
|
if [ -d $(libdir)/gcc-lib/$(target_alias)/$(version) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target_alias)/$(version) ; fi; \
|
|
|
|
|
else true; fi
|
|
|
|
|
|
1993-02-20 01:30:20 -05:00
|
|
|
|
touch stmp-fixinc
|
1993-04-15 03:41:21 -04:00
|
|
|
|
|
1993-07-26 04:49:02 -04:00
|
|
|
|
# Files related to the fixproto script.
|
|
|
|
|
|
1993-10-25 17:45:29 -04:00
|
|
|
|
deduced.h: $(GCC_PASSES) $(srcdir)/scan-types.sh stmp-int-hdrs
|
1998-05-19 17:41:03 -04:00
|
|
|
|
if [ -d $(SYSTEM_HEADER_DIR) ]; \
|
|
|
|
|
then \
|
|
|
|
|
CC="$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) -I. -I$(srcdir) -Iinclude -I${SYSTEM_HEADER_DIR}"; \
|
1993-07-26 04:49:02 -04:00
|
|
|
|
export CC; \
|
1998-05-19 17:41:03 -04:00
|
|
|
|
$(SHELL) $(srcdir)/scan-types.sh "$(srcdir)" >tmp-deduced.h; \
|
|
|
|
|
mv tmp-deduced.h deduced.h; \
|
|
|
|
|
else \
|
|
|
|
|
touch deduced.h; \
|
|
|
|
|
fi
|
1993-07-26 04:49:02 -04:00
|
|
|
|
|
1999-02-05 03:24:29 -05:00
|
|
|
|
GEN_PROTOS_OBJS = gen-protos.o scan.o libcpp.a
|
1999-01-26 20:43:17 -05:00
|
|
|
|
gen-protos: $(GEN_PROTOS_OBJS) $(HOST_LIBDEPS)
|
1999-02-05 03:24:29 -05:00
|
|
|
|
${HOST_CC} $(HOST_CFLAGS) $(HOST_LDFLAGS) -o gen-protos \
|
1999-01-26 20:43:17 -05:00
|
|
|
|
$(GEN_PROTOS_OBJS) $(HOST_LIBS)
|
1993-07-26 04:49:02 -04:00
|
|
|
|
|
More cutover to system.h:
* Makefile.in (cppalloc.o, cpperror.o, cppexp.o, cpphash.o,
cpplib.o, cppmain.o, fix-header.o, gcov.o, gen-protos.o,
gengenrtl.o, halfpic.o, hash.o, scan-decls.o, scan.o): Depend on
system.h.
* cpphash.c: Include config.h.
* cppalloc.c: Include system.h. Add parameters to various
function prototypes.
* cpperror.c: Likewise.
* cppexp.c: Likewise.
* cpphash.c: Likewise.
* cpplib.c: Likewise.
* cppmain.c: Likewise.
* fix-header.c: Likewise.
* gcov.c: Likewise.
* gen-protos.c: Likewise.
* gengenrtl.c: Likewise.
* halfpic.c: Likewise.
* hash.c: Likewise.
* scan-decls.c: Likewise.
* scan.c: Likewise.
From-SVN: r18911
1998-03-30 07:05:54 -05:00
|
|
|
|
gen-protos.o: gen-protos.c scan.h $(build_xm_file) system.h
|
1993-10-29 07:52:14 -04:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gen-protos.c
|
|
|
|
|
|
More cutover to system.h:
* Makefile.in (cppalloc.o, cpperror.o, cppexp.o, cpphash.o,
cpplib.o, cppmain.o, fix-header.o, gcov.o, gen-protos.o,
gengenrtl.o, halfpic.o, hash.o, scan-decls.o, scan.o): Depend on
system.h.
* cpphash.c: Include config.h.
* cppalloc.c: Include system.h. Add parameters to various
function prototypes.
* cpperror.c: Likewise.
* cppexp.c: Likewise.
* cpphash.c: Likewise.
* cpplib.c: Likewise.
* cppmain.c: Likewise.
* fix-header.c: Likewise.
* gcov.c: Likewise.
* gen-protos.c: Likewise.
* gengenrtl.c: Likewise.
* halfpic.c: Likewise.
* hash.c: Likewise.
* scan-decls.c: Likewise.
* scan.c: Likewise.
From-SVN: r18911
1998-03-30 07:05:54 -05:00
|
|
|
|
scan.o: scan.c scan.h $(build_xm_file) system.h
|
1993-10-29 07:52:14 -04:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/scan.c
|
1993-10-26 15:11:25 -04:00
|
|
|
|
|
1993-10-25 17:45:29 -04:00
|
|
|
|
xsys-protos.h: $(GCC_PASSES) $(srcdir)/sys-protos.h deduced.h gen-protos Makefile
|
1994-11-15 19:17:27 -05:00
|
|
|
|
cat deduced.h $(srcdir)/sys-protos.h > tmp-fixtmp.c
|
|
|
|
|
mv tmp-fixtmp.c fixtmp.c
|
1995-03-16 17:05:46 -05:00
|
|
|
|
$(GCC_FOR_TARGET) fixtmp.c -w -U__SIZE_TYPE__ -U__PTRDIFF_TYPE__ -U__WCHAR_TYPE__ -E \
|
1993-08-09 22:16:16 -04:00
|
|
|
|
| sed -e 's/ / /g' -e 's/ *(/ (/g' -e 's/ [ ]*/ /g' -e 's/( )/()/' \
|
1994-11-15 19:17:27 -05:00
|
|
|
|
| ./gen-protos >xsys-protos.hT
|
|
|
|
|
mv xsys-protos.hT xsys-protos.h
|
1993-08-31 16:38:04 -04:00
|
|
|
|
rm -rf fixtmp.c
|
1993-07-26 04:49:02 -04:00
|
|
|
|
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
fix-header: fix-header.o scan-decls.o scan.o xsys-protos.h $(HOST_LIBDEPS) \
|
1998-10-28 17:31:06 -05:00
|
|
|
|
libcpp.a
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ fix-header.o \
|
1998-10-28 17:31:06 -05:00
|
|
|
|
scan-decls.o scan.o libcpp.a $(HOST_LIBS)
|
1993-07-26 04:49:02 -04:00
|
|
|
|
|
Makefile.in (pexecute.o): Use pexecute.c from libiberty.
* Makefile.in (pexecute.o): Use pexecute.c from libiberty. Provide
explicit rules for building. Similarly for alloca, vfprintf,
choose-temp and mkstemp, getopt, getopt1, and obstack.
(INCLUDES): Add $(srcdir)/../include.
* pexecute.c, alloca.c, vfprintf.c, choose-temp.c, mkstemp.c: Delete.
* getopt.h, getopt.c getopt1.c, obstack.c, obstack.h: Likewise.
From-SVN: r22258
1998-09-05 08:24:04 -04:00
|
|
|
|
fix-header.o: fix-header.c $(srcdir)/../include/obstack.h scan.h \
|
Makefile.in (cppmain.o, [...]): Don't depend on machmode.h.
* Makefile.in (cppmain.o, cpplib.o, cpphash.o, cppalloc.o,
cpperror.o, cppexp.o, cppfiles.o, cppinit.o, fix-header.o,
scan-decls.o): Don't depend on machmode.h.
* cppexp.c: Don't define CHAR_BIT or HOST_BITS_PER_WIDE_INT anymore.
Replace all instances of HOST_WIDE_INT with HOST_WIDEST_INT.
* cppfiles.c: Likewise.
* cpplib.c: Likewise.
* cpplib.h: Likewise. Also don't include machmode.h anymore.
From-SVN: r25446
1999-02-25 15:40:21 -05:00
|
|
|
|
xsys-protos.h $(build_xm_file) system.h cpplib.h cpphash.h
|
1993-10-29 07:52:14 -04:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/fix-header.c
|
|
|
|
|
|
Makefile.in (cppmain.o, [...]): Don't depend on machmode.h.
* Makefile.in (cppmain.o, cpplib.o, cpphash.o, cppalloc.o,
cpperror.o, cppexp.o, cppfiles.o, cppinit.o, fix-header.o,
scan-decls.o): Don't depend on machmode.h.
* cppexp.c: Don't define CHAR_BIT or HOST_BITS_PER_WIDE_INT anymore.
Replace all instances of HOST_WIDE_INT with HOST_WIDEST_INT.
* cppfiles.c: Likewise.
* cpplib.c: Likewise.
* cpplib.h: Likewise. Also don't include machmode.h anymore.
From-SVN: r25446
1999-02-25 15:40:21 -05:00
|
|
|
|
scan-decls.o: scan-decls.c scan.h cpplib.h $(build_xm_file) system.h
|
1993-10-29 07:52:14 -04:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/scan-decls.c
|
1993-07-26 04:49:02 -04:00
|
|
|
|
|
1993-10-25 17:45:29 -04:00
|
|
|
|
# stmp-fixproto depends on this, not on fix-header directly.
|
|
|
|
|
# The idea is to make sure fix-header gets built,
|
|
|
|
|
# but not rerun fixproto after each stage
|
|
|
|
|
# just because fix-header's mtime has changed.
|
|
|
|
|
fixhdr.ready: fix-header
|
|
|
|
|
-if [ -f fixhdr.ready ] ; then \
|
|
|
|
|
true; \
|
|
|
|
|
else \
|
|
|
|
|
touch fixhdr.ready; \
|
|
|
|
|
fi
|
|
|
|
|
|
1993-10-20 02:05:22 -04:00
|
|
|
|
# stmp-headers is to make sure fixincludes has already finished.
|
1993-11-21 01:01:04 -05:00
|
|
|
|
# The if statement is so that we don't run fixproto a second time
|
|
|
|
|
# if it has already been run on the files in `include'.
|
1993-11-15 22:10:14 -05:00
|
|
|
|
stmp-fixproto: fixhdr.ready fixproto stmp-headers
|
1993-11-01 15:22:53 -05:00
|
|
|
|
@echo "Various warnings and error messages from fixproto are normal"
|
1993-11-25 17:24:26 -05:00
|
|
|
|
-if [ -d include ] ; then true; else mkdir include; fi
|
1994-03-15 07:53:28 -05:00
|
|
|
|
-if [ -f include/fixed ] ; then true; \
|
1993-11-21 01:01:04 -05:00
|
|
|
|
else \
|
1994-03-12 07:41:55 -05:00
|
|
|
|
: This line works around a 'make' bug in BSDI 1.1.; \
|
1995-04-05 17:16:26 -04:00
|
|
|
|
FIXPROTO_DEFINES="$(FIXPROTO_DEFINES)"; export FIXPROTO_DEFINES; \
|
1999-05-17 19:07:40 -04:00
|
|
|
|
mkinstalldirs="$(SHELL) $(srcdir)/mkinstalldirs"; \
|
|
|
|
|
export mkinstalldirs; \
|
1998-05-19 17:45:41 -04:00
|
|
|
|
if [ -d $(SYSTEM_HEADER_DIR) ] ; then \
|
|
|
|
|
$(SHELL) ${srcdir}/fixproto include include $(SYSTEM_HEADER_DIR); \
|
|
|
|
|
else true; fi; \
|
1993-11-21 01:01:04 -05:00
|
|
|
|
touch include/fixed; \
|
|
|
|
|
fi
|
1993-07-26 04:49:02 -04:00
|
|
|
|
touch stmp-fixproto
|
1997-06-09 15:19:18 -04:00
|
|
|
|
#
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Remake the info files.
|
|
|
|
|
|
1993-05-21 14:27:59 -04:00
|
|
|
|
doc: info
|
1997-09-14 23:04:48 -04:00
|
|
|
|
info: cpp.info gcc.info lang.info
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1997-09-14 23:04:48 -04:00
|
|
|
|
cpp.info: $(srcdir)/cpp.texi
|
1998-04-30 15:01:09 -04:00
|
|
|
|
$(MAKEINFO) $(MAKEINFOFLAGS) -I$(srcdir) -o cpp.info $(srcdir)/cpp.texi
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1997-09-14 23:04:48 -04:00
|
|
|
|
gcc.info: $(srcdir)/gcc.texi $(srcdir)/extend.texi $(srcdir)/install.texi \
|
|
|
|
|
$(srcdir)/invoke.texi $(srcdir)/md.texi $(srcdir)/rtl.texi \
|
|
|
|
|
$(srcdir)/tm.texi $(srcdir)/gcov.texi
|
1998-04-30 15:01:09 -04:00
|
|
|
|
$(MAKEINFO) $(MAKEINFOFLAGS) -I$(srcdir) -o gcc.info $(srcdir)/gcc.texi
|
1992-05-24 15:40:47 -04:00
|
|
|
|
|
1997-09-14 23:04:48 -04:00
|
|
|
|
dvi: gcc.dvi cpp.dvi lang.dvi
|
1993-05-21 14:27:59 -04:00
|
|
|
|
|
1992-10-31 16:25:11 -05:00
|
|
|
|
# This works with GNU Make's default rule.
|
1997-09-14 23:04:48 -04:00
|
|
|
|
gcc.dvi: $(srcdir)/gcc.texi $(srcdir)/extend.texi $(srcdir)/install.texi \
|
|
|
|
|
$(srcdir)/invoke.texi $(srcdir)/md.texi $(srcdir)/rtl.texi \
|
|
|
|
|
$(srcdir)/tm.texi $(srcdir)/gcov.texi
|
|
|
|
|
TEXINPUTS=${texidir}:$(srcdir):$$TEXINPUTS tex gcc.texi
|
|
|
|
|
texindex gcc.??
|
|
|
|
|
TEXINPUTS=${texidir}:$(srcdir):$$TEXINPUTS tex gcc.texi
|
|
|
|
|
|
|
|
|
|
cpp.dvi: $(srcdir)/cpp.texi
|
|
|
|
|
TEXINPUTS=${texidir}:$(srcdir):$$TEXINPUTS tex cpp.texi
|
|
|
|
|
texindex cpp.??
|
|
|
|
|
TEXINPUTS=${texidir}:$(srcdir):$$TEXINPUTS tex cpp.texi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
INSTALL: $(srcdir)/install1.texi $(srcdir)/install.texi
|
1998-08-29 07:41:40 -04:00
|
|
|
|
cd $(srcdir); $(MAKEINFO) -D INSTALLONLY \
|
1998-06-21 12:34:31 -04:00
|
|
|
|
--no-split -o INSTALL install1.texi
|
1997-06-09 15:19:18 -04:00
|
|
|
|
#
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Deletion of files made during compilation.
|
|
|
|
|
# There are four levels of this:
|
1995-04-25 18:07:11 -04:00
|
|
|
|
# `mostlyclean', `clean', `distclean' and `maintainer-clean'.
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# `mostlyclean' is useful while working on a particular type of machine.
|
1992-03-20 17:22:14 -05:00
|
|
|
|
# It deletes most, but not all, of the files made by compilation.
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# It does not delete libgcc.a or its parts, so it won't have to be recompiled.
|
1992-03-20 17:22:14 -05:00
|
|
|
|
# `clean' deletes everything made by running `make all'.
|
1992-04-04 16:34:42 -05:00
|
|
|
|
# `distclean' also deletes the files made by config.
|
1995-04-25 18:07:11 -04:00
|
|
|
|
# `maintainer-clean' also deletes everything that could be regenerated
|
1997-06-09 14:47:19 -04:00
|
|
|
|
# automatically, except for `configure'.
|
|
|
|
|
# We remove as much from the language subdirectories as we can
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
# (less duplicated code).
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1992-04-04 16:34:42 -05:00
|
|
|
|
|
1999-01-26 20:43:17 -05:00
|
|
|
|
mostlyclean: intl.mostlyclean lang.mostlyclean
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-rm -f $(STAGESTUFF)
|
|
|
|
|
# Delete the temporary source copies for cross compilation.
|
|
|
|
|
-rm -f $(HOST_PREFIX_1)rtl.c $(HOST_PREFIX_1)rtlanal.c
|
|
|
|
|
-rm -f $(HOST_PREFIX_1)alloca.c $(HOST_PREFIX_1)malloc.c
|
|
|
|
|
-rm -f $(HOST_PREFIX_1)obstack.c
|
|
|
|
|
# Delete the temp files made in the course of building libgcc.a.
|
1997-09-10 02:32:10 -04:00
|
|
|
|
-rm -f tmplibgcc* tmpcopy xlimits.h libgcc1-test
|
1992-02-03 17:08:59 -05:00
|
|
|
|
for name in $(LIB1FUNCS); do rm -f $${name}.c; done
|
1998-04-04 08:32:39 -05:00
|
|
|
|
# Delete other built files.
|
|
|
|
|
-rm -f t-float.h-cross xsys-protos.hT fp-bit.c dp-bit.c
|
|
|
|
|
# Delete the stamp and temporary files.
|
|
|
|
|
-rm -f s-* tmp-* stamp-* stmp-*
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
-rm -f */stamp-* */tmp-*
|
1992-03-20 17:22:14 -05:00
|
|
|
|
# Delete debugging dump files.
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-rm -f *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop
|
1998-05-19 20:24:32 -04:00
|
|
|
|
-rm -f *.dbr *.jump2 *.sched *.cse2 *.sched2 *.stack *.addressof
|
1999-03-05 08:21:21 -05:00
|
|
|
|
-rm -f *.regmove *.mach *.bp *.gcse *.flow2
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
-rm -f */*.greg */*.lreg */*.combine */*.flow */*.cse */*.jump */*.rtl
|
|
|
|
|
-rm -f */*.tree */*.loop */*.dbr */*.jump2 */*.sched */*.cse2
|
1999-03-05 08:21:21 -05:00
|
|
|
|
-rm -f */*.sched2 */*.stack */*.regmove */*.gcse */*.flow2
|
1992-03-20 17:22:14 -05:00
|
|
|
|
# Delete some files made during installation.
|
1999-03-01 14:15:49 -05:00
|
|
|
|
-rm -f specs float.h-* enquire SYSCALLS.c.X SYSCALLS.c
|
1994-03-07 20:10:40 -05:00
|
|
|
|
-rm -f collect collect2 mips-tfile mips-tdump alloca.s
|
1993-07-26 04:49:02 -04:00
|
|
|
|
# Delete files generated for fixproto
|
1993-10-22 17:51:32 -04:00
|
|
|
|
-rm -rf fix-header xsys-protos.h deduced.h tmp-deduced.h \
|
1993-11-07 00:25:36 -05:00
|
|
|
|
gen-protos fixproto.list fixtmp.* fixhdr.ready
|
1992-03-20 17:22:14 -05:00
|
|
|
|
# Delete unwanted output files from TeX.
|
|
|
|
|
-rm -f *.toc *.log *.vr *.fn *.cp *.tp *.ky *.pg
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
-rm -f */*.toc */*.log */*.vr */*.fn */*.cp */*.tp */*.ky */*.pg
|
1992-04-04 16:34:42 -05:00
|
|
|
|
# Delete sorted indices we don't actually use.
|
|
|
|
|
-rm -f gcc.vrs gcc.kys gcc.tps gcc.pgs gcc.fns
|
1992-03-20 17:22:14 -05:00
|
|
|
|
# Delete core dumps.
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
-rm -f core */core
|
1997-03-28 17:34:21 -05:00
|
|
|
|
-rm -f *.bp */*.bp
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1992-04-04 16:34:42 -05:00
|
|
|
|
# Delete all files made by compilation
|
|
|
|
|
# that don't exist in the distribution.
|
1999-01-26 20:43:17 -05:00
|
|
|
|
clean: mostlyclean intl.clean lang.clean
|
1992-05-10 15:07:04 -04:00
|
|
|
|
# It may not be quite desirable to delete unprotoize.c here,
|
|
|
|
|
# but the spec for `make clean' requires it.
|
|
|
|
|
# Using unprotoize.c is not quite right in the first place,
|
|
|
|
|
# but what better way is there?
|
1995-04-25 19:21:32 -04:00
|
|
|
|
-rm -f libgcc.a libgcc1.a libgcc1-asm.a libgcc2.a libgcc2.ready
|
1995-09-12 17:39:08 -04:00
|
|
|
|
-rm -f libgcc1.null
|
1992-06-10 04:29:36 -04:00
|
|
|
|
-rm -f *.dvi
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
-rm -f */*.dvi
|
1993-10-01 18:16:34 -04:00
|
|
|
|
-if [ -f md.pre-cpp ]; then \
|
|
|
|
|
rm -f md ; \
|
|
|
|
|
fi
|
1993-01-14 15:10:31 -05:00
|
|
|
|
# Delete the include directory.
|
1998-04-04 08:32:39 -05:00
|
|
|
|
-rm -rf include
|
1994-07-19 22:17:55 -04:00
|
|
|
|
# Delete files used by the "multilib" facility (including libgcc subdirs).
|
1994-06-15 04:03:05 -04:00
|
|
|
|
-rm -f multilib.h tmpmultilib*
|
1994-07-19 22:17:55 -04:00
|
|
|
|
-if [ "x$(MULTILIB_DIRNAMES)" != x ] ; then \
|
|
|
|
|
rm -rf $(MULTILIB_DIRNAMES); \
|
|
|
|
|
else if [ "x$(MULTILIB_OPTIONS)" != x ] ; then \
|
|
|
|
|
rm -rf `echo $(MULTILIB_OPTIONS) | sed -e 's/\// /g'`; \
|
|
|
|
|
fi ; fi
|
1997-12-22 22:16:26 -05:00
|
|
|
|
-rm -fr stage1 stage2 stage3 stage4
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1992-04-04 16:34:42 -05:00
|
|
|
|
# Delete all files that users would normally create
|
|
|
|
|
# while building and installing GCC.
|
1999-01-26 20:43:17 -05:00
|
|
|
|
INTL_DISTCLEAN = intl.distclean
|
|
|
|
|
distclean: clean $(INTL_DISTCLEAN) lang.distclean
|
1998-04-14 04:32:34 -04:00
|
|
|
|
-rm -f tm.h config.h auto-host.h auto-build.h tconfig.h hconfig.h
|
|
|
|
|
-rm -f md cstamp-h
|
1997-06-09 14:47:19 -04:00
|
|
|
|
-rm -f config.status config.run config.cache config.bak
|
1997-07-22 12:25:19 -04:00
|
|
|
|
-rm -f Make-lang Make-hooks Make-host Make-target
|
1998-08-30 11:50:47 -04:00
|
|
|
|
-rm -f Makefile specs.h options.h gencheck.h *.oaux
|
1997-12-24 18:56:08 -05:00
|
|
|
|
-rm -f gthr-default.h
|
1994-08-05 12:14:36 -04:00
|
|
|
|
-rm -f */stage1 */stage2 */stage3 */stage4 */include
|
1993-05-17 00:07:35 -04:00
|
|
|
|
-rm -f c-parse.output
|
1994-11-17 16:03:59 -05:00
|
|
|
|
-rm -f *.asm
|
1995-12-14 15:12:12 -05:00
|
|
|
|
-rm -f float.h
|
1997-09-07 15:45:33 -04:00
|
|
|
|
-rm -f site.exp site.bak testsuite/site.exp testsuite/site.bak
|
|
|
|
|
-rm -f testsuite/{gcc,g++}.{log,sum}
|
1999-01-26 20:43:17 -05:00
|
|
|
|
-rm -f intl/libintl.h libintl.h
|
1992-03-20 17:22:14 -05:00
|
|
|
|
|
|
|
|
|
# Delete anything likely to be found in the source directory
|
|
|
|
|
# that shouldn't be in the distribution.
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
extraclean: distclean lang.extraclean
|
1992-12-30 01:48:57 -05:00
|
|
|
|
-rm -rf =* ./"#"* *~* config/=* config/"#"* config/*~*
|
1992-06-10 04:29:36 -04:00
|
|
|
|
-rm -f patch* *.orig *.rej config/patch* config/*.orig config/*.rej
|
1993-05-17 00:07:35 -04:00
|
|
|
|
-rm -f config/*/=* config/*/"#"* config/*/*~*
|
|
|
|
|
-rm -f config/*/*.orig config/*/*.rej
|
1994-11-18 19:01:33 -05:00
|
|
|
|
-rm -f *.dvi *.ps *.oaux *.d *.[zZ] *.gz
|
1993-06-20 19:44:07 -04:00
|
|
|
|
-rm -f *.tar *.xtar *diff *.diff.* *.tar.* *.xtar.* *diffs
|
1993-05-17 00:07:35 -04:00
|
|
|
|
-rm -f *lose config/*lose config/*/*lose
|
1998-04-04 08:32:39 -05:00
|
|
|
|
-rm -f *.s *.s[0-9] *.i config/ChangeLog
|
1999-01-26 20:43:17 -05:00
|
|
|
|
-rm -f y.tab.c yacc.*
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
-rm -f */=* */"#"* */*~*
|
|
|
|
|
-rm -f */patch* */*.orig */*.rej
|
|
|
|
|
-rm -f */*.dvi */*.oaux */*.d */*.[zZ] */*.gz
|
|
|
|
|
-rm -f */*.tar */*.xtar */*diff */*.diff.* */*.tar.* */*.xtar.* */*diffs
|
|
|
|
|
-rm -f */*lose */*.s */*.s[0-9] */*.i
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1997-06-09 14:47:19 -04:00
|
|
|
|
# Get rid of every file that's generated from some other file, except for `configure'.
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Most of these files ARE PRESENT in the GCC distribution.
|
1999-01-26 20:43:17 -05:00
|
|
|
|
# We define INTL_DISTCLEAN to be empty in the submake, so that
|
|
|
|
|
# we don't descend into intl after its makefile has been removed.
|
1997-06-09 14:47:19 -04:00
|
|
|
|
maintainer-clean:
|
|
|
|
|
@echo 'This command is intended for maintainers to use; it'
|
|
|
|
|
@echo 'deletes files that may need special tools to rebuild.'
|
1999-01-26 20:43:17 -05:00
|
|
|
|
$(MAKE) INTL_DISTCLEAN= distclean \
|
|
|
|
|
intl.maintainer-clean lang.maintainer-clean
|
(LANGUAGES, COMPILERS, .PHONY, stmp-int-hdrs): Remove specific references to ObjC compiler and source files.
(LANGUAGES, COMPILERS, .PHONY, stmp-int-hdrs): Remove specific references to
ObjC compiler and source files.
({mostly,dist,maintainer,}clean, install-normal): Likewise
(OBJC_OBJS, OBJC, OBJECTIVE-C, cc1obj, objc-runtime): Rules deleted.
(libobjc.a, sublibobjc.a, objc-parse.{o, c, y}): Rules deleted.
(objc-headers, install-libobjc): Rules deleted.
From-SVN: r14281
1997-06-21 20:41:52 -04:00
|
|
|
|
-rm -f c-parse.y c-gperf.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-rm -f c-parse.c c-parse.h c-parse.output
|
|
|
|
|
-rm -f cexp.c cexp.output TAGS
|
1992-03-20 17:22:14 -05:00
|
|
|
|
-rm -f cpp.info* cpp.??s cpp.*aux
|
|
|
|
|
-rm -f gcc.info* gcc.??s gcc.*aux
|
1997-06-09 15:19:18 -04:00
|
|
|
|
#
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Entry points `install' and `uninstall'.
|
1992-03-20 17:22:14 -05:00
|
|
|
|
# Also use `install-collect2' to install collect2 when the config files don't.
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1992-09-04 00:40:25 -04:00
|
|
|
|
# The semicolon is to prevent the install.sh -> install default rule
|
1993-01-26 13:45:24 -05:00
|
|
|
|
# from doing anything. Having it run true helps avoid problems and
|
|
|
|
|
# noise from versions of make which don't like to have null commands.
|
1993-01-26 21:28:16 -05:00
|
|
|
|
install: $(INSTALL_TARGET) ; @true
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1993-01-14 15:10:31 -05:00
|
|
|
|
# Copy the compiler files into directories where they will be run.
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
# Install the driver last so that the window when things are
|
|
|
|
|
# broken is small.
|
1993-07-05 11:35:24 -04:00
|
|
|
|
install-normal: install-common $(INSTALL_HEADERS) $(INSTALL_LIBGCC) \
|
1999-03-01 19:59:28 -05:00
|
|
|
|
$(INSTALL_CPP) install-man install-info intl.install lang.install-normal \
|
|
|
|
|
install-driver
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1992-10-18 01:30:48 -04:00
|
|
|
|
# Do nothing while making gcc with a cross-compiler. The person who
|
|
|
|
|
# makes gcc for the target machine has to know how to put a complete
|
|
|
|
|
# gcc together by hand.
|
|
|
|
|
install-build: force
|
|
|
|
|
@echo You have to install gcc on your target machine by hand.
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Run this on the target machine
|
|
|
|
|
# to finish installation of cross compiler.
|
1999-03-01 14:15:49 -05:00
|
|
|
|
# This is not used anymore now that float.h does not depend on enquire.
|
1992-02-03 17:08:59 -05:00
|
|
|
|
install-cross-rest: install-float-h-cross
|
|
|
|
|
|
1999-03-01 19:59:28 -05:00
|
|
|
|
# Handle cpp installation.
|
1999-03-26 17:55:35 -05:00
|
|
|
|
install-cpp: xcpp$(exeext)
|
|
|
|
|
-rm -f $(bindir)/$(CPP_INSTALL_NAME)$(exeext)
|
|
|
|
|
$(INSTALL_PROGRAM) -m 755 xcpp$(exeext) $(bindir)/$(CPP_INSTALL_NAME)$(exeext)
|
1999-03-01 19:59:28 -05:00
|
|
|
|
if [ x$(cpp_install_dir) != x ]; then \
|
1999-03-26 17:55:35 -05:00
|
|
|
|
rm -f $(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
|
|
|
|
|
$(INSTALL_PROGRAM) -m 755 xcpp$(exeext) $(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
|
1999-03-01 19:59:28 -05:00
|
|
|
|
else true; fi
|
|
|
|
|
|
|
|
|
|
uninstall-cpp:
|
|
|
|
|
-rm -f $(bindir)/cpp
|
|
|
|
|
-if [ x$(cpp_install_dir) != x ]; then \
|
|
|
|
|
rm -f $(prefix)/$(cpp_install_dir)/cpp; \
|
|
|
|
|
else true; fi
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Install float.h for cross compiler.
|
|
|
|
|
# Run this on the target machine!
|
1999-03-01 14:15:49 -05:00
|
|
|
|
# This is not used anymore now that float.h does not depend on enquire.
|
1996-09-29 18:11:33 -04:00
|
|
|
|
install-float-h-cross: installdirs
|
1993-01-25 00:08:13 -05:00
|
|
|
|
# if [ -f enquire ] ; then true; else false; fi
|
|
|
|
|
# Note: don't use -. We should fail right away if enquire was not made.
|
|
|
|
|
./enquire -f > $(tmpdir)/float.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-rm -f $(libsubdir)/include/float.h
|
1992-10-31 16:00:49 -05:00
|
|
|
|
$(INSTALL_DATA) $(tmpdir)/float.h $(libsubdir)/include/float.h
|
|
|
|
|
-rm -f $(tmpdir)/float.h
|
1992-02-03 17:08:59 -05:00
|
|
|
|
chmod a-x $(libsubdir)/include/float.h
|
|
|
|
|
|
1996-09-29 18:11:33 -04:00
|
|
|
|
# Create the installation directories.
|
|
|
|
|
installdirs:
|
|
|
|
|
-if [ -d $(prefix) ] ; then true ; else mkdir $(prefix) ; chmod a+rx $(prefix) ; fi
|
|
|
|
|
-if [ -d $(exec_prefix) ] ; then true ; else mkdir $(exec_prefix) ; chmod a+rx $(exec_prefix) ; fi
|
1995-05-01 19:35:37 -04:00
|
|
|
|
-if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; chmod a+rx $(libdir) ; fi
|
|
|
|
|
-if [ -d $(libdir)/gcc-lib ] ; then true ; else mkdir $(libdir)/gcc-lib ; chmod a+rx $(libdir)/gcc-lib ; fi
|
1993-10-07 14:40:43 -04:00
|
|
|
|
# This dir isn't currently searched by cpp.
|
1995-05-01 19:35:37 -04:00
|
|
|
|
# -if [ -d $(libdir)/gcc-lib/include ] ; then true ; else mkdir $(libdir)/gcc-lib/include ; chmod a+rx $(libdir)/gcc-lib/include ; fi
|
1998-06-19 01:42:18 -04:00
|
|
|
|
-fdir= ; for dir in `echo $(libsubdir) | tr '/' ' '`; do \
|
|
|
|
|
fdir=$${fdir}/$${dir}; \
|
|
|
|
|
if [ -d $${fdir} ] ; then true ; else mkdir $${fdir}; chmod a+rx $${fdir}; fi ; \
|
|
|
|
|
done
|
1995-05-01 19:35:37 -04:00
|
|
|
|
-if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; chmod a+rx $(bindir) ; fi
|
|
|
|
|
-if [ -d $(includedir) ] ; then true ; else mkdir $(includedir) ; chmod a+rx $(includedir) ; fi
|
1999-01-22 01:46:43 -05:00
|
|
|
|
-if [ -d $(gcc_tooldir) ] ; then true ; else mkdir $(gcc_tooldir) ; chmod a+rx $(gcc_tooldir) ; fi
|
1995-05-01 19:35:37 -04:00
|
|
|
|
-if [ -d $(assertdir) ] ; then true ; else mkdir $(assertdir) ; chmod a+rx $(assertdir) ; fi
|
|
|
|
|
-if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; chmod a+rx $(infodir) ; fi
|
1998-11-19 01:49:46 -05:00
|
|
|
|
# We don't use mkdir -p to create the parents of man1dir,
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# because some systems don't support it.
|
1998-11-19 01:49:46 -05:00
|
|
|
|
# Instead, we use this technique to create the immediate parent of man1dir.
|
|
|
|
|
-parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
|
1995-05-01 19:35:37 -04:00
|
|
|
|
if [ -d $$parent ] ; then true ; else mkdir $$parent ; chmod a+rx $$parent ; fi
|
1998-11-19 01:49:46 -05:00
|
|
|
|
-if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; chmod a+rx $(man1dir) ; fi
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# Install the compiler executables built during cross compilation.
|
1996-09-29 18:11:33 -04:00
|
|
|
|
install-common: native installdirs $(EXTRA_PARTS) lang.install-common
|
1992-02-03 17:08:59 -05:00
|
|
|
|
for file in $(COMPILERS); do \
|
|
|
|
|
if [ -f $$file ] ; then \
|
|
|
|
|
rm -f $(libsubdir)/$$file; \
|
|
|
|
|
$(INSTALL_PROGRAM) $$file $(libsubdir)/$$file; \
|
|
|
|
|
else true; \
|
|
|
|
|
fi; \
|
|
|
|
|
done
|
1994-04-25 13:02:35 -04:00
|
|
|
|
for file in $(EXTRA_PASSES) $(EXTRA_PROGRAMS) $(USE_COLLECT2) ..; do \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
if [ x"$$file" != x.. ]; then \
|
|
|
|
|
rm -f $(libsubdir)/$$file; \
|
|
|
|
|
$(INSTALL_PROGRAM) $$file $(libsubdir)/$$file; \
|
|
|
|
|
else true; fi; \
|
|
|
|
|
done
|
1994-04-25 13:02:35 -04:00
|
|
|
|
for file in $(EXTRA_PARTS) ..; do \
|
|
|
|
|
if [ x"$$file" != x.. ]; then \
|
|
|
|
|
rm -f $(libsubdir)/$$file; \
|
|
|
|
|
$(INSTALL_DATA) $$file $(libsubdir)/$$file; \
|
1997-11-02 16:19:36 -05:00
|
|
|
|
chmod a-x $(libsubdir)/$$file; \
|
1994-04-25 13:02:35 -04:00
|
|
|
|
else true; fi; \
|
|
|
|
|
done
|
1992-07-02 18:18:02 -04:00
|
|
|
|
# Don't mess with specs if it doesn't exist yet.
|
1992-07-07 14:27:34 -04:00
|
|
|
|
-if [ -f specs ] ; then \
|
|
|
|
|
rm -f $(libsubdir)/specs; \
|
1992-07-02 18:18:02 -04:00
|
|
|
|
$(INSTALL_DATA) specs $(libsubdir)/specs; \
|
1997-11-02 16:19:36 -05:00
|
|
|
|
chmod a-x $(libsubdir)/specs; \
|
1992-07-02 18:18:02 -04:00
|
|
|
|
fi
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
# Install protoize if it was compiled.
|
|
|
|
|
-if [ -f protoize$(exeext) ]; \
|
|
|
|
|
then \
|
1998-06-22 14:32:14 -04:00
|
|
|
|
if [ -f gcc-cross$(exeext) ] ; then \
|
|
|
|
|
rm -f $(bindir)/$(PROTOIZE_CROSS_NAME)$(exeext); \
|
|
|
|
|
$(INSTALL_PROGRAM) protoize$(exeext) $(bindir)/$(PROTOIZE_CROSS_NAME)$(exeext); \
|
|
|
|
|
rm -f $(bindir)/$(UNPROTOIZE_CROSS_NAME)$(exeext); \
|
|
|
|
|
$(INSTALL_PROGRAM) unprotoize$(exeext) $(bindir)/$(UNPROTOIZE_CROSS_NAME)$(exeext); \
|
|
|
|
|
else \
|
|
|
|
|
rm -f $(bindir)/$(PROTOIZE_INSTALL_NAME)$(exeext); \
|
|
|
|
|
$(INSTALL_PROGRAM) protoize$(exeext) $(bindir)/$(PROTOIZE_INSTALL_NAME)$(exeext); \
|
|
|
|
|
rm -f $(bindir)/$(UNPROTOIZE_INSTALL_NAME)$(exeext); \
|
|
|
|
|
$(INSTALL_PROGRAM) unprotoize$(exeext) $(bindir)/$(UNPROTOIZE_INSTALL_NAME)$(exeext); \
|
|
|
|
|
fi ; \
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
rm -f $(libsubdir)/SYSCALLS.c.X; \
|
|
|
|
|
$(INSTALL_DATA) SYSCALLS.c.X $(libsubdir)/SYSCALLS.c.X; \
|
|
|
|
|
chmod a-x $(libsubdir)/SYSCALLS.c.X; \
|
|
|
|
|
fi
|
|
|
|
|
-rm -f $(libsubdir)/cpp$(exeext)
|
|
|
|
|
$(INSTALL_PROGRAM) cpp$(exeext) $(libsubdir)/cpp$(exeext)
|
1997-08-21 12:23:22 -04:00
|
|
|
|
# Install gcov if it was compiled.
|
1997-03-28 17:34:21 -05:00
|
|
|
|
-if [ -f gcov$(exeext) ]; \
|
|
|
|
|
then \
|
|
|
|
|
rm -f $(bindir)/gcov$(exeext); \
|
1999-01-17 22:32:53 -05:00
|
|
|
|
$(INSTALL_PROGRAM) gcov$(exeext) $(bindir)/$(GCOV_INSTALL_NAME)$(exeext); \
|
1997-03-28 17:34:21 -05:00
|
|
|
|
fi
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
|
1996-07-18 18:06:04 -04:00
|
|
|
|
# Install the driver program as $(target_alias)-gcc
|
1999-01-22 01:46:43 -05:00
|
|
|
|
# and also as either gcc (if native) or $(gcc_tooldir)/bin/gcc.
|
1998-03-21 18:47:27 -05:00
|
|
|
|
install-driver: xgcc$(exeext)
|
1995-02-21 17:54:50 -05:00
|
|
|
|
-if [ -f gcc-cross$(exeext) ] ; then \
|
|
|
|
|
rm -f $(bindir)/$(GCC_CROSS_NAME)$(exeext); \
|
1995-03-07 11:56:39 -05:00
|
|
|
|
$(INSTALL_PROGRAM) gcc-cross$(exeext) $(bindir)/$(GCC_CROSS_NAME)$(exeext); \
|
1999-01-22 01:46:43 -05:00
|
|
|
|
if [ -d $(gcc_tooldir)/bin/. ] ; then \
|
|
|
|
|
rm -f $(gcc_tooldir)/bin/gcc$(exeext); \
|
|
|
|
|
$(INSTALL_PROGRAM) gcc-cross$(exeext) $(gcc_tooldir)/bin/gcc$(exeext); \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
else true; fi; \
|
|
|
|
|
else \
|
1995-02-21 17:54:50 -05:00
|
|
|
|
rm -f $(bindir)/$(GCC_INSTALL_NAME)$(exeext); \
|
|
|
|
|
$(INSTALL_PROGRAM) xgcc$(exeext) $(bindir)/$(GCC_INSTALL_NAME)$(exeext); \
|
1996-07-18 18:06:04 -04:00
|
|
|
|
rm -f $(bindir)/$(target_alias)-gcc-1$(exeext); \
|
1997-09-11 16:39:08 -04:00
|
|
|
|
$(LN) $(bindir)/$(GCC_INSTALL_NAME)$(exeext) $(bindir)/$(target_alias)-gcc-1$(exeext); \
|
1996-07-18 18:06:04 -04:00
|
|
|
|
mv $(bindir)/$(target_alias)-gcc-1$(exeext) $(bindir)/$(target_alias)-gcc$(exeext); \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
fi
|
|
|
|
|
|
1993-05-18 16:48:27 -04:00
|
|
|
|
# Install the info files.
|
1997-08-24 20:25:22 -04:00
|
|
|
|
# $(INSTALL_DATA) might be a relative pathname, so we can't cd into srcdir
|
1998-07-02 02:19:07 -04:00
|
|
|
|
# to do the install.
|
1996-09-29 18:11:33 -04:00
|
|
|
|
install-info: doc installdirs lang.install-info
|
1993-05-18 16:48:27 -04:00
|
|
|
|
-rm -f $(infodir)/cpp.info* $(infodir)/gcc.info*
|
1997-09-14 23:04:48 -04:00
|
|
|
|
for f in cpp.info* gcc.info*; do \
|
1998-07-02 02:19:07 -04:00
|
|
|
|
$(INSTALL_DATA) $$f $(infodir)/$$f; \
|
1997-08-24 20:25:22 -04:00
|
|
|
|
done
|
1998-07-02 02:19:07 -04:00
|
|
|
|
-if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
|
1998-07-25 18:30:26 -04:00
|
|
|
|
if [ -f $(infodir)/dir ] ; then \
|
1998-06-26 12:38:36 -04:00
|
|
|
|
for f in cpp.info gcc.info; do \
|
1998-07-02 02:19:07 -04:00
|
|
|
|
install-info --dir-file=$(infodir)/dir $(infodir)/$$f; \
|
1998-06-26 12:38:36 -04:00
|
|
|
|
done; \
|
1998-07-25 18:30:26 -04:00
|
|
|
|
else true; fi; \
|
1998-06-26 12:38:36 -04:00
|
|
|
|
else true; fi;
|
1993-05-18 16:48:27 -04:00
|
|
|
|
-chmod a-x $(infodir)/cpp.info* $(infodir)/gcc.info*
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Install the man pages.
|
1996-09-29 18:11:33 -04:00
|
|
|
|
install-man: installdirs $(srcdir)/gcc.1 $(srcdir)/cccp.1 lang.install-man
|
1997-11-02 16:19:36 -05:00
|
|
|
|
-if [ -f gcc-cross$(exeext) ] ; then \
|
1998-11-19 01:49:46 -05:00
|
|
|
|
rm -f $(man1dir)/$(GCC_CROSS_NAME)$(manext); \
|
|
|
|
|
$(INSTALL_DATA) $(srcdir)/gcc.1 $(man1dir)/$(GCC_CROSS_NAME)$(manext); \
|
|
|
|
|
chmod a-x $(man1dir)/$(GCC_CROSS_NAME)$(manext); \
|
1994-11-17 16:03:59 -05:00
|
|
|
|
else \
|
1998-11-19 01:49:46 -05:00
|
|
|
|
rm -f $(man1dir)/$(GCC_INSTALL_NAME)$(manext); \
|
|
|
|
|
$(INSTALL_DATA) $(srcdir)/gcc.1 $(man1dir)/$(GCC_INSTALL_NAME)$(manext); \
|
|
|
|
|
chmod a-x $(man1dir)/$(GCC_INSTALL_NAME)$(manext); \
|
1994-11-17 16:03:59 -05:00
|
|
|
|
fi
|
1998-11-19 01:49:46 -05:00
|
|
|
|
-rm -f $(man1dir)/cccp$(manext)
|
|
|
|
|
-$(INSTALL_DATA) $(srcdir)/cccp.1 $(man1dir)/cccp$(manext)
|
|
|
|
|
-chmod a-x $(man1dir)/cccp$(manext)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# Install the library.
|
1996-09-29 18:11:33 -04:00
|
|
|
|
install-libgcc: libgcc.a installdirs
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-if [ -f libgcc.a ] ; then \
|
|
|
|
|
rm -f $(libsubdir)/libgcc.a; \
|
|
|
|
|
$(INSTALL_DATA) libgcc.a $(libsubdir)/libgcc.a; \
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
if $(RANLIB_TEST_FOR_TARGET) ; then \
|
|
|
|
|
(cd $(libsubdir); $(RANLIB_FOR_TARGET) libgcc.a); else true; fi; \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
chmod a-x $(libsubdir)/libgcc.a; \
|
|
|
|
|
else true; fi
|
|
|
|
|
|
1994-06-15 04:03:05 -04:00
|
|
|
|
# Install multiple versions of libgcc.a.
|
1996-09-29 18:11:33 -04:00
|
|
|
|
install-multilib: stmp-multilib installdirs
|
1994-06-15 04:03:05 -04:00
|
|
|
|
for i in `$(GCC_FOR_TARGET) --print-multi-lib`; do \
|
|
|
|
|
dir=`echo $$i | sed -e 's/;.*$$//'`; \
|
|
|
|
|
if [ -d $(libsubdir)/$${dir} ]; then true; else mkdir $(libsubdir)/$${dir}; fi; \
|
1996-10-29 15:49:42 -05:00
|
|
|
|
for f in libgcc.a $(EXTRA_MULTILIB_PARTS); do \
|
|
|
|
|
rm -f $(libsubdir)/$${dir}/$${f}; \
|
|
|
|
|
$(INSTALL_DATA) $${dir}/$${f} $(libsubdir)/$${dir}/$${f}; \
|
|
|
|
|
done; \
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
if $(RANLIB_TEST_FOR_TARGET); then \
|
|
|
|
|
(cd $(libsubdir)/$${dir}; $(RANLIB_FOR_TARGET) libgcc.a); \
|
|
|
|
|
else true; fi; \
|
1994-06-15 04:03:05 -04:00
|
|
|
|
chmod a-x $(libsubdir)/$${dir}/libgcc.a; \
|
|
|
|
|
done
|
|
|
|
|
|
1993-01-14 15:10:31 -05:00
|
|
|
|
# Install all the header files built in the include subdirectory.
|
1995-09-28 14:02:22 -04:00
|
|
|
|
install-headers: install-include-dir $(INSTALL_HEADERS_DIR) $(INSTALL_ASSERT_H)
|
1993-01-14 15:10:31 -05:00
|
|
|
|
# Fix symlinks to absolute paths in the installed include directory to
|
|
|
|
|
# point to the installed directory, not the build directory.
|
1997-09-11 16:39:08 -04:00
|
|
|
|
# Don't need to use LN_S here since we really do need ln -s and no substitutes.
|
1993-01-14 15:10:31 -05:00
|
|
|
|
-files=`cd $(libsubdir)/include; find . -type l -print 2>/dev/null`; \
|
|
|
|
|
if [ $$? -eq 0 ]; then \
|
|
|
|
|
dir=`cd include; pwd`; \
|
|
|
|
|
for i in $$files; do \
|
|
|
|
|
dest=`ls -ld $(libsubdir)/include/$$i | sed -n 's/.*-> //p'`; \
|
|
|
|
|
if expr "$$dest" : "$$dir.*" > /dev/null; then \
|
|
|
|
|
rm -f $(libsubdir)/include/$$i; \
|
1993-02-23 18:09:10 -05:00
|
|
|
|
ln -s `echo $$i | sed "s|/[^/]*|/..|g" | sed 's|/..$$||'``echo "$$dest" | sed "s|$$dir||"` $(libsubdir)/include/$$i; \
|
1993-01-14 15:10:31 -05:00
|
|
|
|
fi; \
|
|
|
|
|
done; \
|
|
|
|
|
fi
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1993-01-14 15:10:31 -05:00
|
|
|
|
# Create or recreate the gcc private include file directory.
|
1996-09-29 18:11:33 -04:00
|
|
|
|
install-include-dir: installdirs
|
1993-01-14 15:10:31 -05:00
|
|
|
|
-rm -rf $(libsubdir)/include
|
|
|
|
|
mkdir $(libsubdir)/include
|
|
|
|
|
-chmod a+rx $(libsubdir)/include
|
|
|
|
|
|
|
|
|
|
# Install the include directory using tar.
|
1993-07-26 04:49:02 -04:00
|
|
|
|
install-headers-tar: stmp-headers $(STMP_FIXPROTO) install-include-dir
|
1999-04-03 08:01:48 -05:00
|
|
|
|
# We use `pwd`/include instead of just include to problems with CDPATH
|
|
|
|
|
# Unless a full pathname is provided, some shells would print the new CWD,
|
|
|
|
|
# found in CDPATH, corrupting the output. We could just redirect the
|
|
|
|
|
# output of `cd', but some shells lose on redirection within `()'s
|
|
|
|
|
(cd `pwd`/include ; \
|
1994-03-15 07:53:28 -05:00
|
|
|
|
tar -cf - .; exit 0) | (cd $(libsubdir)/include; tar $(TAROUTOPTS) - )
|
1993-07-02 01:12:45 -04:00
|
|
|
|
# /bin/sh on some systems returns the status of the first tar,
|
|
|
|
|
# and that can lose with GNU tar which always writes a full block.
|
|
|
|
|
# So use `exit 0' to ignore its exit status.
|
1993-01-14 15:10:31 -05:00
|
|
|
|
|
|
|
|
|
# Install the include directory using cpio.
|
1993-07-26 04:49:02 -04:00
|
|
|
|
install-headers-cpio: stmp-headers $(STMP_FIXPROTO) install-include-dir
|
1999-04-03 08:01:48 -05:00
|
|
|
|
# See discussion about the use of `pwd` above
|
|
|
|
|
cd `pwd`/include ; \
|
|
|
|
|
find . -print | cpio -pdum $(libsubdir)/include
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1993-06-05 04:10:50 -04:00
|
|
|
|
# Put assert.h where it won't override GNU libc's assert.h.
|
|
|
|
|
# It goes in a dir that is searched after GNU libc's headers;
|
|
|
|
|
# thus, the following conditionals are no longer needed.
|
|
|
|
|
# But it's not worth deleting them now.
|
|
|
|
|
## Don't replace the assert.h already there if it is not from GCC.
|
|
|
|
|
## This code would be simpler if it tested for -f ... && ! grep ...
|
|
|
|
|
## but supposedly the ! operator is missing in sh on some systems.
|
1996-09-29 18:11:33 -04:00
|
|
|
|
install-assert-h: assert.h installdirs
|
1992-10-07 03:50:32 -04:00
|
|
|
|
if [ -f $(assertdir)/assert.h ]; \
|
|
|
|
|
then \
|
1993-01-04 14:05:01 -05:00
|
|
|
|
if grep "__eprintf" $(assertdir)/assert.h >/dev/null; \
|
1992-10-08 21:48:26 -04:00
|
|
|
|
then \
|
1992-10-07 03:50:32 -04:00
|
|
|
|
rm -f $(assertdir)/assert.h; \
|
|
|
|
|
$(INSTALL_DATA) $(srcdir)/assert.h $(assertdir)/assert.h; \
|
1992-10-08 15:43:37 -04:00
|
|
|
|
chmod a-x $(assertdir)/assert.h; \
|
1992-10-07 03:50:32 -04:00
|
|
|
|
else true; \
|
|
|
|
|
fi; \
|
1992-10-02 21:09:38 -04:00
|
|
|
|
else \
|
1992-10-06 16:39:15 -04:00
|
|
|
|
rm -f $(assertdir)/assert.h; \
|
|
|
|
|
$(INSTALL_DATA) $(srcdir)/assert.h $(assertdir)/assert.h; \
|
1992-10-08 15:43:37 -04:00
|
|
|
|
chmod a-x $(assertdir)/assert.h; \
|
1992-10-02 21:09:38 -04:00
|
|
|
|
fi
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1998-04-06 16:51:28 -04:00
|
|
|
|
# Use this target to install the program `collect2' under the name `collect2'.
|
1996-09-29 18:11:33 -04:00
|
|
|
|
install-collect2: collect2 installdirs
|
1998-04-06 16:51:28 -04:00
|
|
|
|
$(INSTALL_PROGRAM) collect2$(exeext) $(libsubdir)/collect2$(exeext)
|
1992-03-20 17:22:14 -05:00
|
|
|
|
# Install the driver program as $(libsubdir)/gcc for collect2.
|
1995-02-21 17:54:50 -05:00
|
|
|
|
$(INSTALL_PROGRAM) xgcc$(exeext) $(libsubdir)/gcc$(exeext)
|
1992-03-20 17:22:14 -05:00
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Cancel installation by deleting the installed files.
|
1999-03-01 19:59:28 -05:00
|
|
|
|
uninstall: intl.uninstall lang.uninstall $(UNINSTALL_CPP)
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-rm -rf $(libsubdir)
|
1995-02-21 17:54:50 -05:00
|
|
|
|
-rm -rf $(bindir)/$(GCC_INSTALL_NAME)$(exeext)
|
|
|
|
|
-rm -rf $(bindir)/$(GCC_CROSS_NAME)$(exeext)
|
1999-01-17 22:32:53 -05:00
|
|
|
|
-rm -rf $(bindir)/$(PROTOIZE_INSTALL_NAME)$(exeext)
|
|
|
|
|
-rm -rf $(bindir)/$(PROTOIZE_CROSS_NAME)$(exeext)
|
|
|
|
|
-rm -rf $(bindir)/$(UNPROTOIZE_INSTALL_NAME)$(exeext)
|
|
|
|
|
-rm -rf $(bindir)/$(UNPROTOIZE_CROSS_NAME)$(exeext)
|
|
|
|
|
-rm -rf $(bindir)/$(GCOV_INSTALL_NAME)$(exeext)
|
1998-11-19 01:49:46 -05:00
|
|
|
|
-rm -rf $(man1dir)/$(GCC_INSTALL_NAME)$(manext)
|
|
|
|
|
-rm -rf $(man1dir)/$(GCC_CROSS_NAME)$(manext)
|
|
|
|
|
-rm -rf $(man1dir)/cccp$(manext)
|
|
|
|
|
-rm -rf $(man1dir)/protoize$(manext)
|
|
|
|
|
-rm -rf $(man1dir)/unprotoize$(manext)
|
1998-06-29 17:40:49 -04:00
|
|
|
|
-rm -f $(infodir)/cpp.info* $(infodir)/gcc.info*
|
1997-06-09 15:19:18 -04:00
|
|
|
|
#
|
1997-08-19 11:36:20 -04:00
|
|
|
|
# These targets are for the dejagnu testsuites. The file site.exp
|
|
|
|
|
# contains global variables that all the testsuites will use.
|
|
|
|
|
|
|
|
|
|
# Set to $(target_alias)/ for cross.
|
|
|
|
|
target_subdir = @target_subdir@
|
|
|
|
|
|
|
|
|
|
site.exp: ./config.status Makefile
|
|
|
|
|
@echo "Making a new config file..."
|
|
|
|
|
-@rm -f ./tmp?
|
|
|
|
|
@touch site.exp
|
|
|
|
|
-@mv site.exp site.bak
|
|
|
|
|
@echo "## these variables are automatically generated by make ##" > ./tmp0
|
|
|
|
|
@echo "# Do not edit here. If you wish to override these values" >> ./tmp0
|
|
|
|
|
@echo "# add them to the last section" >> ./tmp0
|
|
|
|
|
@echo "set rootme \"`pwd`\"" >> ./tmp0
|
|
|
|
|
@echo "set srcdir \"`cd ${srcdir}; pwd`\"" >> ./tmp0
|
|
|
|
|
@echo "set host_triplet $(host_canonical)" >> ./tmp0
|
|
|
|
|
@echo "set build_triplet $(build_canonical)" >> ./tmp0
|
|
|
|
|
@echo "set target_triplet $(target)" >> ./tmp0
|
|
|
|
|
@echo "set target_alias $(target_alias)" >> ./tmp0
|
|
|
|
|
# CFLAGS is set even though it's empty to show we reserve the right to set it.
|
|
|
|
|
@echo "set CFLAGS \"\"" >> ./tmp0
|
|
|
|
|
@echo "set CXXFLAGS \"-I$(objdir)/../$(target_subdir)libio -I\$$srcdir/../libg++/src -I\$$srcdir/../libio -I\$$srcdir/../libstdc++ -I\$$srcdir/../libstdc++/stl -L$(objdir)/../$(target_subdir)libg++ -L$(objdir)/../$(target_subdir)libstdc++\"" >> ./tmp0
|
|
|
|
|
# If newlib has been configured, we need to pass -B to gcc so it can find
|
|
|
|
|
# newlib's crt0.o if it exists. This will cause a "path prefix not used"
|
|
|
|
|
# message if it doesn't, but the testsuite is supposed to ignore the message -
|
|
|
|
|
# it's too difficult to tell when to and when not to pass -B (not all targets
|
|
|
|
|
# have crt0's). We could only add the -B if ../newlib/crt0.o exists, but that
|
|
|
|
|
# seems like too selective a test.
|
|
|
|
|
# ??? Another way to solve this might be to rely on linker scripts. Then
|
|
|
|
|
# theoretically the -B won't be needed.
|
|
|
|
|
# We also need to pass -L ../ld so that the linker can find ldscripts.
|
|
|
|
|
@if [ -d $(objdir)/../$(target_subdir)newlib ] ; then \
|
|
|
|
|
echo "set newlib_cflags \"-I$(objdir)/../$(target_subdir)newlib/targ-include -I\$$srcdir/../newlib/libc/include\"" >> ./tmp0; \
|
|
|
|
|
echo "set newlib_ldflags \"-B$(objdir)/../$(target_subdir)newlib/\"" >> ./tmp0; \
|
|
|
|
|
echo "append CFLAGS \" \$$newlib_cflags\"" >> ./tmp0; \
|
|
|
|
|
echo "append CXXFLAGS \" \$$newlib_cflags\"" >> ./tmp0; \
|
|
|
|
|
echo "append LDFLAGS \" \$$newlib_ldflags\"" >> ./tmp0; \
|
|
|
|
|
else true; \
|
|
|
|
|
fi
|
|
|
|
|
@if [ -d $(objdir)/../ld ] ; then \
|
|
|
|
|
echo "append LDFLAGS \" -L$(objdir)/../ld\"" >> ./tmp0; \
|
|
|
|
|
else true; \
|
|
|
|
|
fi
|
1998-06-02 17:48:43 -04:00
|
|
|
|
echo "set tmpdir $(objdir)/testsuite" >> ./tmp0
|
1997-08-19 11:36:20 -04:00
|
|
|
|
@echo "set srcdir \"\$${srcdir}/testsuite\"" >> ./tmp0
|
|
|
|
|
@echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
|
|
|
|
|
@cat ./tmp0 > site.exp
|
|
|
|
|
@cat site.bak | sed \
|
|
|
|
|
-e '1,/^## All variables above are.*##/ d' >> site.exp
|
|
|
|
|
-@rm -f ./tmp?
|
|
|
|
|
|
1998-09-02 19:48:01 -04:00
|
|
|
|
CHECK_TARGETS = check-gcc check-g++ check-g77 check-objc
|
1997-08-19 11:36:20 -04:00
|
|
|
|
|
|
|
|
|
check: $(CHECK_TARGETS)
|
|
|
|
|
|
1997-09-10 17:06:59 -04:00
|
|
|
|
testsuite/site.exp: site.exp
|
1997-08-19 11:36:20 -04:00
|
|
|
|
if [ -d testsuite ]; then \
|
|
|
|
|
true; \
|
|
|
|
|
else \
|
|
|
|
|
mkdir testsuite; \
|
|
|
|
|
fi
|
|
|
|
|
rm -rf testsuite/site.exp
|
|
|
|
|
cp site.exp testsuite/site.exp
|
1997-09-10 17:06:59 -04:00
|
|
|
|
|
|
|
|
|
check-g++: testsuite/site.exp
|
|
|
|
|
-rootme=`pwd`; export rootme; \
|
1997-08-19 11:36:20 -04:00
|
|
|
|
srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
|
|
|
|
|
cd testsuite; \
|
|
|
|
|
EXPECT=${EXPECT} ; export EXPECT ; \
|
|
|
|
|
if [ -f $${rootme}/../expect/expect ] ; then \
|
1999-04-09 09:49:23 -04:00
|
|
|
|
TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; pwd` ; \
|
1997-08-19 11:36:20 -04:00
|
|
|
|
export TCL_LIBRARY ; fi ; \
|
|
|
|
|
$(RUNTEST) --tool g++ $(RUNTESTFLAGS)
|
|
|
|
|
|
1997-09-10 17:06:59 -04:00
|
|
|
|
check-gcc: testsuite/site.exp
|
|
|
|
|
-rootme=`pwd`; export rootme; \
|
1997-08-19 11:36:20 -04:00
|
|
|
|
srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
|
|
|
|
|
cd testsuite; \
|
|
|
|
|
EXPECT=${EXPECT} ; export EXPECT ; \
|
|
|
|
|
if [ -f $${rootme}/../expect/expect ] ; then \
|
1999-04-09 09:49:23 -04:00
|
|
|
|
TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; pwd` ; \
|
1997-08-19 11:36:20 -04:00
|
|
|
|
export TCL_LIBRARY ; fi ; \
|
|
|
|
|
$(RUNTEST) --tool gcc $(RUNTESTFLAGS)
|
|
|
|
|
|
1997-10-06 14:02:25 -04:00
|
|
|
|
check-g77: testsuite/site.exp
|
|
|
|
|
-rootme=`pwd`; export rootme; \
|
|
|
|
|
srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
|
|
|
|
|
cd testsuite; \
|
|
|
|
|
EXPECT=${EXPECT} ; export EXPECT ; \
|
|
|
|
|
if [ -f $${rootme}/../expect/expect ] ; then \
|
1999-04-09 09:49:23 -04:00
|
|
|
|
TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; pwd` ; \
|
1997-10-06 14:02:25 -04:00
|
|
|
|
export TCL_LIBRARY ; fi ; \
|
|
|
|
|
$(RUNTEST) --tool g77 $(RUNTESTFLAGS)
|
|
|
|
|
|
1998-09-02 19:48:01 -04:00
|
|
|
|
check-objc: testsuite/site.exp
|
|
|
|
|
-rootme=`pwd`; export rootme; \
|
|
|
|
|
srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
|
|
|
|
|
cd testsuite; \
|
|
|
|
|
EXPECT=${EXPECT} ; export EXPECT ; \
|
|
|
|
|
if [ -f $${rootme}/../expect/expect ] ; then \
|
1999-04-09 09:49:23 -04:00
|
|
|
|
TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; pwd` ; \
|
1998-09-02 19:48:01 -04:00
|
|
|
|
export TCL_LIBRARY ; fi ; \
|
|
|
|
|
$(RUNTEST) --tool objc $(RUNTESTFLAGS)
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# These exist for maintenance purposes.
|
|
|
|
|
|
|
|
|
|
# Update the tags table.
|
|
|
|
|
TAGS: force
|
|
|
|
|
cd $(srcdir); \
|
1998-04-04 08:32:39 -05:00
|
|
|
|
mkdir tmp-tags; \
|
|
|
|
|
mv -f c-parse.[ch] cexp.c =*.[chy] tmp-tags; \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
etags *.y *.h *.c; \
|
1998-04-04 08:32:39 -05:00
|
|
|
|
mv tmp-tags/* .; \
|
|
|
|
|
rmdir tmp-tags
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1998-04-04 08:32:39 -05:00
|
|
|
|
# Create the distribution tar.gz file.
|
|
|
|
|
dist: tmp-gcc.xtar
|
|
|
|
|
gzip --best < tmp-gcc.xtar > tmp-gcc.xtar.gz
|
|
|
|
|
mv tmp-gcc.xtar.gz gcc-$(version).tar.gz
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1998-04-04 08:32:39 -05:00
|
|
|
|
tmp-gcc.xtar: distdir
|
1992-12-31 01:54:03 -05:00
|
|
|
|
# Make the distribution.
|
1998-04-04 08:32:39 -05:00
|
|
|
|
tar -chf tmp-gcc.xtar gcc-$(version)
|
|
|
|
|
|
|
|
|
|
distdir-cvs: force
|
1998-10-22 10:47:52 -04:00
|
|
|
|
if [ -d $(srcdir)/CVS ]; then cd $(srcdir) && cvs -r update; fi
|
1992-12-31 01:54:03 -05:00
|
|
|
|
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
# This target exists to do the initial work before the language specific
|
|
|
|
|
# stuff gets done.
|
1995-05-28 18:48:30 -04:00
|
|
|
|
distdir-start: doc $(srcdir)/INSTALL $(srcdir)/c-parse.y $(srcdir)/c-gperf.h \
|
1998-04-04 08:32:39 -05:00
|
|
|
|
$(srcdir)/c-parse.c $(srcdir)/cexp.c $(srcdir)/config.in \
|
1998-04-08 07:51:57 -04:00
|
|
|
|
$(srcdir)/version.c TAGS
|
1999-01-26 20:43:17 -05:00
|
|
|
|
@case '$(USE_NLS)' in \
|
|
|
|
|
yes) ;; \
|
|
|
|
|
*) echo "configure with --enable-nls before making a distribution"; \
|
|
|
|
|
exit 1;; \
|
|
|
|
|
esac
|
1993-11-01 15:22:53 -05:00
|
|
|
|
@if grep -s "for version ${mainversion}" gcc.texi > /dev/null; \
|
1992-05-24 15:40:47 -04:00
|
|
|
|
then true; \
|
1992-06-14 17:40:34 -04:00
|
|
|
|
else echo "You must update the version number in \`gcc.texi'"; sleep 10;\
|
1992-05-24 15:40:47 -04:00
|
|
|
|
fi
|
1992-06-10 04:29:36 -04:00
|
|
|
|
# Update the version number in README
|
1999-01-26 20:43:17 -05:00
|
|
|
|
$(AWK) '$$1 " " $$2 " " $$3 == "This directory contains" \
|
1992-06-10 04:29:36 -04:00
|
|
|
|
{ $$6 = version; print $$0 } \
|
|
|
|
|
$$1 " " $$2 " " $$3 != "This directory contains"' \
|
1998-10-22 10:47:52 -04:00
|
|
|
|
version=$(version) $(srcdir)/README > tmp.README
|
1992-06-10 04:29:36 -04:00
|
|
|
|
mv tmp.README README
|
1992-03-20 17:22:14 -05:00
|
|
|
|
-rm -rf gcc-$(version) tmp
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Put all the files in a temporary subdirectory
|
|
|
|
|
# which has the name that we want to have in the tar file.
|
1992-03-20 17:22:14 -05:00
|
|
|
|
mkdir tmp
|
|
|
|
|
mkdir tmp/config
|
1994-07-13 18:48:24 -04:00
|
|
|
|
mkdir tmp/ginclude
|
1998-10-22 10:47:52 -04:00
|
|
|
|
mkdir tmp/objc
|
1999-01-26 20:43:17 -05:00
|
|
|
|
mkdir tmp/intl
|
|
|
|
|
mkdir tmp/po
|
1998-10-22 10:47:52 -04:00
|
|
|
|
for file in `(cd $(srcdir) && echo *[0-9a-zA-Z+])`; do \
|
|
|
|
|
test -f $(srcdir)/$$file && $(LN_S) $(srcdir)/$$file tmp; \
|
1992-03-20 17:22:14 -05:00
|
|
|
|
done
|
1998-10-22 10:47:52 -04:00
|
|
|
|
if test "$(srcdir)" != "." ; then \
|
|
|
|
|
for file in c-parse.c cexp.c ; do \
|
|
|
|
|
test -f ./$$file && $(LN_S) ../$$file tmp; \
|
|
|
|
|
done; \
|
|
|
|
|
fi
|
|
|
|
|
for file in `(cd $(srcdir)/config && echo *[0-9a-zA-Z+])`; do \
|
|
|
|
|
if test -d $(srcdir)/config/$$file \
|
|
|
|
|
&& test "$$file" != RCS && test "$$file" != CVS; then \
|
|
|
|
|
mkdir tmp/config/$$file; \
|
|
|
|
|
for subfile in `(cd $(srcdir)/config/$$file && echo *[0-9a-zA-Z+])`; do \
|
|
|
|
|
$(LN_S) $(srcdir)/config/$$file/$$subfile tmp/config/$$file; \
|
1993-04-28 16:40:38 -04:00
|
|
|
|
done; \
|
|
|
|
|
else \
|
1998-10-22 10:47:52 -04:00
|
|
|
|
$(LN_S) $(srcdir)/config/$$file tmp/config; \
|
1993-04-28 16:40:38 -04:00
|
|
|
|
fi; \
|
1992-02-03 17:08:59 -05:00
|
|
|
|
done
|
1998-10-22 10:47:52 -04:00
|
|
|
|
for file in `(cd $(srcdir)/ginclude && echo *[0-9a-zA-Z+])`; do \
|
|
|
|
|
$(LN_S) $(srcdir)/ginclude/$$file tmp/ginclude; \
|
1994-07-13 18:48:24 -04:00
|
|
|
|
done
|
1998-10-22 10:47:52 -04:00
|
|
|
|
for file in `(cd $(srcdir)/objc && echo *[0-9a-zA-Z+])`; do \
|
|
|
|
|
$(LN_S) $(srcdir)/objc/$$file tmp/objc; \
|
1992-10-16 00:23:33 -04:00
|
|
|
|
done
|
1998-10-22 10:47:52 -04:00
|
|
|
|
$(LN_S) .gdbinit tmp
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
|
|
|
|
|
# Finish making `distdir', after the languages have done their thing.
|
|
|
|
|
distdir-finish:
|
1992-03-20 17:22:14 -05:00
|
|
|
|
mv tmp gcc-$(version)
|
1994-07-13 18:48:24 -04:00
|
|
|
|
# Get rid of everything we don't want in the distribution. We'd want
|
|
|
|
|
# this to use Makefile.in, but it doesn't have the `lang.foo' targets
|
|
|
|
|
# expanded.
|
1999-01-26 20:43:17 -05:00
|
|
|
|
cd gcc-$(version); make extraclean distdir-check VERSION_DEP=
|
|
|
|
|
|
|
|
|
|
distdir-check:
|
|
|
|
|
($(AWK) '/^[^#]/{print} /^#[A-Za-z]/{print substr($$1, 2)}' | sort) \
|
|
|
|
|
< po/POTFILES.in > tmp.POTFILES
|
|
|
|
|
ls [A-Za-z]*.[ch] [a-z]*/[A-Za-z]*.[ch] \
|
|
|
|
|
[a-z]*/[a-z]*/[A-Za-z]*.[ch] | sort > tmp.src
|
|
|
|
|
diff tmp.POTFILES tmp.src || { \
|
|
|
|
|
echo "po/POTFILES.in and sources do not match -- please fix"; \
|
|
|
|
|
exit 1; \
|
|
|
|
|
}
|
|
|
|
|
rm -f tmp.*
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1999-01-26 20:43:17 -05:00
|
|
|
|
distdir: distdir-cvs distdir-start intl.distdir intl.distdir-fixup \
|
|
|
|
|
lang.distdir distdir-finish
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
|
1993-11-01 15:22:53 -05:00
|
|
|
|
# make diff oldversion=M.N
|
|
|
|
|
# creates a diff file between an older distribution and this one.
|
|
|
|
|
# The -P option assumes this is GNU diff.
|
|
|
|
|
diff:
|
1994-03-04 17:15:44 -05:00
|
|
|
|
diff -rc2P -x c-parse.y -x c-parse.c -x c-parse.h -x c-gperf.h \
|
1998-04-08 07:51:57 -04:00
|
|
|
|
-x cexp.c -x -x TAGS -x INSTALL \
|
1998-04-04 08:32:39 -05:00
|
|
|
|
-x configure -x config.in \
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
-x "gcc.??" -x "gcc.??s" -x gcc.aux -x "gcc.info*" \
|
|
|
|
|
-x "cpp.??" -x "cpp.??s" -x cpp.aux -x "cpp.info*" \
|
|
|
|
|
$(LANG_DIFF_EXCLUDES) \
|
1998-04-04 08:32:39 -05:00
|
|
|
|
gcc-$(oldversion) gcc-$(version) > gcc-$(oldversion)-$(version).diff
|
1993-11-01 15:22:53 -05:00
|
|
|
|
|
1997-10-26 13:45:07 -05:00
|
|
|
|
bootstrap bootstrap-lean: force
|
1992-04-30 21:51:23 -04:00
|
|
|
|
# Only build the C compiler for stage1, because that is the only one that
|
|
|
|
|
# we can guarantee will build with the native compiler, and also it is the
|
|
|
|
|
# only thing useful for building stage2.
|
1996-06-18 06:23:45 -04:00
|
|
|
|
$(MAKE) CC="$(CC)" libdir=$(libdir) LANGUAGES="$(BOOT_LANGUAGES)"
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(MAKE) stage1
|
1992-03-20 17:22:14 -05:00
|
|
|
|
# This used to define ALLOCA as empty, but that would lead to bad results
|
|
|
|
|
# for a subsequent `make install' since that would not have ALLOCA empty.
|
|
|
|
|
# To prevent `make install' from compiling alloca.o and then relinking cc1
|
|
|
|
|
# because alloca.o is newer, we permit these recursive makes to compile
|
|
|
|
|
# alloca.o. Then cc1 is newer, so it won't have to be relinked.
|
1998-10-12 07:14:11 -04:00
|
|
|
|
$(MAKE) CC="stage1/xgcc$(exeext) -Bstage1/ -B$(build_tooldir)/bin/" CFLAGS="$(WARN_CFLAGS) $(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) STAGE_PREFIX=stage1/ LANGUAGES="$(LANGUAGES)"
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(MAKE) stage2
|
1997-10-26 13:45:07 -05:00
|
|
|
|
-if test $@ = bootstrap-lean; then rm -rf stage1; else true; fi
|
1998-10-12 07:14:11 -04:00
|
|
|
|
$(MAKE) CC="stage2/xgcc$(exeext) -Bstage2/ -B$(build_tooldir)/bin/" CFLAGS="$(WARN_CFLAGS) $(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) STAGE_PREFIX=stage2/ LANGUAGES="$(LANGUAGES)"
|
1997-09-29 02:37:11 -04:00
|
|
|
|
|
1998-05-23 18:45:35 -04:00
|
|
|
|
bootstrap2 bootstrap2-lean: force
|
1998-10-12 07:14:11 -04:00
|
|
|
|
$(MAKE) CC="stage1/xgcc$(exeext) -Bstage1/ -B$(build_tooldir)/bin/" CFLAGS="$(WARN_CFLAGS) $(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) STAGE_PREFIX=stage1/ LANGUAGES="$(LANGUAGES)"
|
1992-02-03 17:08:59 -05:00
|
|
|
|
$(MAKE) stage2
|
1998-05-23 18:45:35 -04:00
|
|
|
|
-if test $@ = bootstrap2-lean; then rm -rf stage1; else true; fi
|
1998-10-12 07:14:11 -04:00
|
|
|
|
$(MAKE) CC="stage2/xgcc$(exeext) -Bstage2/ -B$(build_tooldir)/bin/" CFLAGS="$(WARN_CFLAGS) $(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) STAGE_PREFIX=stage2/ LANGUAGES="$(LANGUAGES)"
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1998-05-23 18:45:35 -04:00
|
|
|
|
bootstrap3 bootstrap3-lean: force
|
1998-10-12 07:14:11 -04:00
|
|
|
|
$(MAKE) CC="stage2/xgcc$(exeext) -Bstage2/ -B$(build_tooldir)/bin/" CFLAGS="$(WARN_CFLAGS) $(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) STAGE_PREFIX=stage2/ LANGUAGES="$(LANGUAGES)"
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
1998-05-23 18:45:35 -04:00
|
|
|
|
bootstrap4 bootstrap4-lean: force
|
1998-10-12 07:14:11 -04:00
|
|
|
|
$(MAKE) CC="stage3/xgcc$(exeext) -Bstage3/ -B$(build_tooldir)/bin/" CFLAGS="$(WARN_CFLAGS) $(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) STAGE_PREFIX=stage3/ LANGUAGES="$(LANGUAGES)"
|
1997-10-26 13:45:07 -05:00
|
|
|
|
|
1992-04-12 17:11:03 -04:00
|
|
|
|
# Compare the object files in the current directory with those in the
|
|
|
|
|
# stage2 directory.
|
|
|
|
|
|
1993-07-28 20:15:21 -04:00
|
|
|
|
# ./ avoids bug in some versions of tail.
|
1997-10-26 13:28:57 -05:00
|
|
|
|
compare compare3 compare4 compare-lean compare3-lean compare4-lean: force
|
1997-09-10 23:36:41 -04:00
|
|
|
|
-rm -f .bad_compare
|
1997-10-26 13:28:57 -05:00
|
|
|
|
case "$@" in compare | compare-lean ) stage=2 ;; * ) stage=`echo $@ | sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
for file in *$(objext); do \
|
1993-07-28 20:15:21 -04:00
|
|
|
|
tail +16c ./$$file > tmp-foo1; \
|
1997-10-26 13:28:57 -05:00
|
|
|
|
tail +16c stage$$stage/$$file > tmp-foo2 \
|
1997-09-10 23:36:41 -04:00
|
|
|
|
&& (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $$file differs >> .bad_compare) || true; \
|
1992-04-12 17:11:03 -04:00
|
|
|
|
done
|
1997-10-26 13:28:57 -05:00
|
|
|
|
case "$@" in compare | compare-lean ) stage=2 ;; * ) stage=`echo $@ | sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
|
1999-01-26 20:43:17 -05:00
|
|
|
|
for dir in tmp-foo intl $(SUBDIRS); do \
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
if [ "`echo $$dir/*$(objext)`" != "$$dir/*$(objext)" ] ; then \
|
|
|
|
|
for file in $$dir/*$(objext); do \
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
tail +16c ./$$file > tmp-foo1; \
|
1997-10-26 13:28:57 -05:00
|
|
|
|
tail +16c stage$$stage/$$file > tmp-foo2 \
|
1997-09-10 23:36:41 -04:00
|
|
|
|
&& (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $$file differs >> .bad_compare) || true; \
|
1994-04-25 15:04:42 -04:00
|
|
|
|
done; \
|
1998-12-26 03:19:18 -05:00
|
|
|
|
else true; fi; \
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
done
|
1992-04-12 17:11:03 -04:00
|
|
|
|
-rm -f tmp-foo*
|
1997-11-17 00:46:29 -05:00
|
|
|
|
case "$@" in compare | compare-lean ) stage=2 ;; * ) stage=`echo $@ | sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
|
1997-09-10 23:36:41 -04:00
|
|
|
|
if [ -f .bad_compare ]; then \
|
|
|
|
|
echo "Bootstrap comparison failure!"; \
|
|
|
|
|
cat .bad_compare; \
|
|
|
|
|
exit 1; \
|
1997-10-26 13:28:57 -05:00
|
|
|
|
else \
|
|
|
|
|
case "$@" in \
|
|
|
|
|
*-lean ) rm -rf stage$$stage ;; \
|
1997-12-09 01:53:10 -05:00
|
|
|
|
*) ;; \
|
1997-10-26 13:28:57 -05:00
|
|
|
|
esac; true; \
|
1997-09-10 23:36:41 -04:00
|
|
|
|
fi
|
1992-04-12 17:11:03 -04:00
|
|
|
|
|
1997-10-26 13:28:57 -05:00
|
|
|
|
# Compare the object files in the current directory with those in the
|
|
|
|
|
# stage2 directory. Use gnu cmp (diffutils v2.4 or later) to avoid
|
|
|
|
|
# running tail and the overhead of twice copying each object file.
|
|
|
|
|
|
|
|
|
|
gnucompare gnucompare3 gnucompare4 gnucompare-lean gnucompare3-lean gnucompare4-lean: force
|
1997-09-29 02:37:11 -04:00
|
|
|
|
-rm -f .bad_compare
|
1997-10-26 13:28:57 -05:00
|
|
|
|
case "$@" in gnucompare | gnucompare-lean ) stage=2 ;; * ) stage=`echo $@ | sed -e 's,^gnucompare\([0-9][0-9]*\).*,\1,'` ;; esac; \
|
1997-09-29 02:37:11 -04:00
|
|
|
|
for file in *$(objext); do \
|
1997-10-26 13:28:57 -05:00
|
|
|
|
(cmp --ignore-initial=16 $$file stage$$stage/$$file > /dev/null 2>&1 || echo $$file differs >> .bad_compare) || true; \
|
1997-09-29 02:37:11 -04:00
|
|
|
|
done
|
1997-10-26 13:28:57 -05:00
|
|
|
|
case "$@" in gnucompare | gnucompare-lean ) stage=2 ;; * ) stage=`echo $@ | sed -e 's,^gnucompare\([0-9][0-9]*\).*,\1,'` ;; esac; \
|
1999-01-26 20:43:17 -05:00
|
|
|
|
for dir in tmp-foo intl $(SUBDIRS); do \
|
1997-09-29 02:37:11 -04:00
|
|
|
|
if [ "`echo $$dir/*$(objext)`" != "$$dir/*$(objext)" ] ; then \
|
|
|
|
|
for file in $$dir/*$(objext); do \
|
1997-10-26 13:28:57 -05:00
|
|
|
|
(cmp --ignore-initial=16 $$file stage$$stage/$$file > /dev/null 2>&1 || echo $$file differs >> .bad_compare) || true; \
|
1997-09-29 02:37:11 -04:00
|
|
|
|
done; \
|
1998-12-26 03:19:18 -05:00
|
|
|
|
else true; fi; \
|
1997-09-29 02:37:11 -04:00
|
|
|
|
done
|
1997-11-17 00:46:29 -05:00
|
|
|
|
case "$@" in gnucompare | gnucompare-lean ) stage=2 ;; * ) stage=`echo $@ | sed -e 's,^gnucompare\([0-9][0-9]*\).*,\1,'` ;; esac; \
|
1997-09-29 02:37:11 -04:00
|
|
|
|
if [ -f .bad_compare ]; then \
|
|
|
|
|
echo "Bootstrap comparison failure!"; \
|
|
|
|
|
cat .bad_compare; \
|
|
|
|
|
exit 1; \
|
1997-10-26 13:28:57 -05:00
|
|
|
|
else \
|
|
|
|
|
case "$@" in \
|
|
|
|
|
*-lean ) rm -rf stage$$stage ;; \
|
|
|
|
|
esac; true; \
|
1997-09-29 02:37:11 -04:00
|
|
|
|
fi
|
|
|
|
|
|
1992-02-03 17:08:59 -05:00
|
|
|
|
# Copy the object files from a particular stage into a subdirectory.
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
stage1-start:
|
1992-03-20 17:22:14 -05:00
|
|
|
|
-if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi
|
1999-01-26 20:43:17 -05:00
|
|
|
|
-for dir in intl $(SUBDIRS) ; \
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
do \
|
1994-10-28 19:01:16 -04:00
|
|
|
|
if [ -d stage1/$$dir ] ; then true ; else mkdir stage1/$$dir ; fi ; \
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
done
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-mv $(STAGESTUFF) stage1
|
1999-01-26 20:43:17 -05:00
|
|
|
|
-mv intl/*$(objext) stage1/intl
|
1994-11-17 16:03:59 -05:00
|
|
|
|
# Copy as/ld if they exist to stage dir, so that running xgcc from the stage
|
|
|
|
|
# dir will work properly.
|
1997-09-11 16:39:08 -04:00
|
|
|
|
-if [ -f as$(exeext) ] ; then $(LN_S) ../as$(exeext) stage1 ; else true ; fi
|
|
|
|
|
-if [ -f ld$(exeext) ] ; then $(LN_S) ../ld$(exeext) stage1 ; else true ; fi
|
|
|
|
|
-if [ -f collect-ld$(exeext) ] ; then $(LN_S) ../collect-ld$(exeext) stage1 ; else true ; fi
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-rm -f stage1/libgcc.a
|
|
|
|
|
-cp libgcc.a stage1
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
-if $(RANLIB_TEST_FOR_TARGET) ; then \
|
|
|
|
|
$(RANLIB_FOR_TARGET) stage1/libgcc.a; \
|
|
|
|
|
else true; fi
|
1996-11-13 21:01:54 -05:00
|
|
|
|
-for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
|
|
|
|
|
cp stage1/$${f} . ; \
|
1997-09-01 12:08:40 -04:00
|
|
|
|
else true; \
|
1996-11-13 21:01:54 -05:00
|
|
|
|
fi; done
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
stage1: force stage1-start lang.stage1
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
stage2-start:
|
1992-03-20 17:22:14 -05:00
|
|
|
|
-if [ -d stage2 ] ; then true ; else mkdir stage2 ; fi
|
1999-01-26 20:43:17 -05:00
|
|
|
|
-for dir in intl $(SUBDIRS) ; \
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
do \
|
1994-10-28 19:01:16 -04:00
|
|
|
|
if [ -d stage2/$$dir ] ; then true ; else mkdir stage2/$$dir ; fi ; \
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
done
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-mv $(STAGESTUFF) stage2
|
1999-01-26 20:43:17 -05:00
|
|
|
|
-mv intl/*$(objext) stage2/intl
|
1994-11-17 16:03:59 -05:00
|
|
|
|
# Copy as/ld if they exist to stage dir, so that running xgcc from the stage
|
|
|
|
|
# dir will work properly.
|
1997-09-11 16:39:08 -04:00
|
|
|
|
-if [ -f as$(exeext) ] ; then $(LN_S) ../as$(exeext) stage2 ; else true ; fi
|
|
|
|
|
-if [ -f ld$(exeext) ] ; then $(LN_S) ../ld$(exeext) stage2 ; else true ; fi
|
|
|
|
|
-if [ -f collect-ld ] ; then $(LN_S) ../collect-ld$(exeext) stage2 ; else true ; fi
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-rm -f stage2/libgcc.a
|
|
|
|
|
-cp libgcc.a stage2
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
-if $(RANLIB_TEST_FOR_TARGET) ; then \
|
|
|
|
|
$(RANLIB_FOR_TARGET) stage2/libgcc.a; \
|
|
|
|
|
else true; fi
|
1996-11-13 21:01:54 -05:00
|
|
|
|
-for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
|
|
|
|
|
cp stage2/$${f} . ; \
|
1997-09-01 12:08:40 -04:00
|
|
|
|
else true; \
|
1996-11-13 21:01:54 -05:00
|
|
|
|
fi; done
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
stage2: force stage2-start lang.stage2
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
stage3-start:
|
1992-04-17 09:18:20 -04:00
|
|
|
|
-if [ -d stage3 ] ; then true ; else mkdir stage3 ; fi
|
1999-01-26 20:43:17 -05:00
|
|
|
|
-for dir in intl $(SUBDIRS) ; \
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
do \
|
1994-10-28 19:01:16 -04:00
|
|
|
|
if [ -d stage3/$$dir ] ; then true ; else mkdir stage3/$$dir ; fi ; \
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
done
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-mv $(STAGESTUFF) stage3
|
1999-01-26 20:43:17 -05:00
|
|
|
|
-mv intl/*$(objext) stage3/intl
|
1994-11-17 16:03:59 -05:00
|
|
|
|
# Copy as/ld if they exist to stage dir, so that running xgcc from the stage
|
|
|
|
|
# dir will work properly.
|
1997-09-11 16:39:08 -04:00
|
|
|
|
-if [ -f as$(exeext) ] ; then $(LN_S) ../as$(exeext) stage3 ; else true ; fi
|
|
|
|
|
-if [ -f ld$(exeext) ] ; then $(LN_S) ../ld$(exeext) stage3 ; else true ; fi
|
|
|
|
|
-if [ -f collect-ld$(exeext) ] ; then $(LN_S) ../collect-ld$(exeext) stage3 ; else true ; fi
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-rm -f stage3/libgcc.a
|
|
|
|
|
-cp libgcc.a stage3
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
-if $(RANLIB_TEST_FOR_TARGET) ; then \
|
|
|
|
|
$(RANLIB_FOR_TARGET) stage3/libgcc.a; \
|
|
|
|
|
else true; fi
|
1996-11-13 21:01:54 -05:00
|
|
|
|
-for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
|
|
|
|
|
cp stage3/$${f} . ; \
|
1997-09-01 12:08:40 -04:00
|
|
|
|
else true; \
|
1996-11-13 21:01:54 -05:00
|
|
|
|
fi; done
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
stage3: force stage3-start lang.stage3
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
stage4-start:
|
1992-04-17 09:18:20 -04:00
|
|
|
|
-if [ -d stage4 ] ; then true ; else mkdir stage4 ; fi
|
1999-01-26 20:43:17 -05:00
|
|
|
|
-for dir in intl $(SUBDIRS) ; \
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
do \
|
1994-10-28 19:01:16 -04:00
|
|
|
|
if [ -d stage4/$$dir ] ; then true ; else mkdir stage4/$$dir ; fi ; \
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
done
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-mv $(STAGESTUFF) stage4
|
1999-01-26 20:43:17 -05:00
|
|
|
|
-mv intl/*$(objext) stage4/intl
|
1994-11-17 16:03:59 -05:00
|
|
|
|
# Copy as/ld if they exist to stage dir, so that running xgcc from the stage
|
|
|
|
|
# dir will work properly.
|
1997-09-11 16:39:08 -04:00
|
|
|
|
-if [ -f as$(exeext) ] ; then $(LN_S) ../as$(exeext) stage4 ; else true ; fi
|
|
|
|
|
-if [ -f ld$(exeext) ] ; then $(LN_S) ../ld$(exeext) stage4 ; else true ; fi
|
|
|
|
|
-if [ -f collect-ld$(exeext) ] ; then $(LN_S) ../collect-ld$(exeext) stage4 ; else true ; fi
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-rm -f stage4/libgcc.a
|
|
|
|
|
-cp libgcc.a stage4
|
Patch to fix canadian cross build problem with libcpp.a.
* Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses
of HOST_AR to AR. Likewise for AR_FLAGS, RANLIB, and RANLIB_TEST.
(RANLIB_TEST): Test to see if ranlib exists. Only test absolute file
names if host == target.
(HOST_AR, HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Delete.
(AR_FLAGS_FOR_TARGET): Renamed from AR_FOR_TARGET_FLAGS.
(AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Delete rules
setting them to *_FOR_TARGET.
* cross-make (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST):
Delete.
From-SVN: r24991
1999-02-02 17:39:13 -05:00
|
|
|
|
-if $(RANLIB_TEST_FOR_TARGET) ; then \
|
|
|
|
|
$(RANLIB_FOR_TARGET) stage4/libgcc.a; \
|
|
|
|
|
else true; fi
|
1996-11-13 21:01:54 -05:00
|
|
|
|
-for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
|
|
|
|
|
cp stage4/$${f} . ; \
|
1997-09-01 12:08:40 -04:00
|
|
|
|
else true; \
|
1996-11-13 21:01:54 -05:00
|
|
|
|
fi; done
|
Makefile.in (LANGUAGES): Remove c++.
* Makefile.in (LANGUAGES): Remove c++.
(SUBDIRS): New variable.
(LEX, LEXFLAGS): Ditto.
(MAKEOVERRIDES): Ditto.
(COMPILERS): Remove cc1plus.
(LANG_MAKEFILES, LANG_STAGESTUFF, LANG_DIFF_EXCLUDES, FLAGS_TO_PASS):
New variables.
(CPLUS_OBJS, CPLUS_TREE_H, C++, c++, g++, g++-cross, cc1plus,
cp-*.o, g++.o, gplus.info): Deleted.
(STAGESTUFF): Remove g++, g++-cross, cc1plus. Add $(LANG_STAGESTUFF).
(Makefile): Depend on $(LANG_MAKEFILES).
(####language hooks, ####language fragments): New spots for sed
to insert things.
(all.cross, all.build, start.encap, rest.encap, info, dvi,
install-normal, install-common, install-info, install-man,
uninstall, distdir, mostlyclean, clean, distclean, extraclean,
realclean, stage1, stage2, stage3, stage4): Depend on lang.foo.
(mostlyclean, clean, distclean, extraclean, realclean): Clean as
much of the language subdirectories as we can.
(install-common): Remove g++ installation.
(install-man): Remove g++.1 installation.
(uninstall): Remove g++ reference.
(TAGS): Remove cp-parse.? reference.
(distdir): Ditto.
(distdir-start, distdir-finish): New targets.
(diff): Remove cp-parse.? reference. Add $(LANG_DIFF_EXCLUDES).
(compare, compare3, gnucompare, gnucompare3): Compare language
subdirectories too.
(stage1-start, stage2-start, stage3-start, stage4-start): New targets.
Ensure stage subdirectory exists before processing language
dependent part.
From-SVN: r7136
1994-04-22 04:25:33 -04:00
|
|
|
|
stage4: force stage4-start lang.stage4
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
|
|
|
|
# Copy just the executable files from a particular stage into a subdirectory,
|
|
|
|
|
# and delete the object files. Use this if you're just verifying a version
|
|
|
|
|
# that is pretty sure to work, and you are short of disk space.
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
risky-stage1: stage1
|
1997-09-10 02:42:02 -04:00
|
|
|
|
-make clean
|
1992-02-03 17:08:59 -05:00
|
|
|
|
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
risky-stage2: stage2
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-make clean
|
|
|
|
|
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
risky-stage3: stage3
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-make clean
|
|
|
|
|
|
(SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
From-SVN: r9770
1995-05-22 18:55:23 -04:00
|
|
|
|
risky-stage4: stage4
|
1992-02-03 17:08:59 -05:00
|
|
|
|
-make clean
|
|
|
|
|
|
|
|
|
|
#In GNU Make, ignore whether `stage*' exists.
|
1995-04-25 18:07:11 -04:00
|
|
|
|
.PHONY: stage1 stage2 stage3 stage4 clean maintainer-clean TAGS bootstrap
|
1992-02-03 17:08:59 -05:00
|
|
|
|
.PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
|
|
|
|
|
|
|
|
|
|
force:
|
1998-05-23 20:44:00 -04:00
|
|
|
|
|
|
|
|
|
# ---
|
|
|
|
|
# The enquire rules are still useful for building new float-anything.h.
|
|
|
|
|
# Special flags for compiling enquire.
|
|
|
|
|
# We disable optimization to make floating point more reliable.
|
|
|
|
|
ENQUIRE_CFLAGS = -DNO_MEM -DNO_LONG_DOUBLE_IO -O0
|
|
|
|
|
ENQUIRE_LDFLAGS = $(LDFLAGS)
|
|
|
|
|
|
|
|
|
|
# Enquire target (This is a variable so that a target can choose not to
|
|
|
|
|
# build it.)
|
|
|
|
|
ENQUIRE = enquire
|
|
|
|
|
|
|
|
|
|
# Test to see whether <float.h> exists in the system header files,
|
|
|
|
|
# and is not derived from GCC.
|
|
|
|
|
FLOAT_H_TEST = \
|
|
|
|
|
[ -f $(SYSTEM_HEADER_DIR)/float.h ] && \
|
|
|
|
|
if grep 'ifndef _FLOAT_H___' $(SYSTEM_HEADER_DIR)/float.h >/dev/null; \
|
|
|
|
|
then false; \
|
|
|
|
|
else :; fi
|
|
|
|
|
# We pretend to not having a usable <float.h>, hence disable the FLOAT_H_TEST
|
|
|
|
|
# to ensure, we're emitting a full blown <float.h> ourselves.
|
|
|
|
|
FLOAT_H_TEST = false
|
|
|
|
|
|
|
|
|
|
# Used to compile enquire with standard cc, but have forgotten why.
|
|
|
|
|
# Let's try with GCC.
|
|
|
|
|
enquire: enquire.o $(GCC_PARTS)
|
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ENQUIRE_LDFLAGS) enquire.o -o $@
|
|
|
|
|
enquire.o: $(srcdir)/enquire.c $(GCC_PASSES) stmp-int-hdrs
|
|
|
|
|
if $(FLOAT_H_TEST); then \
|
|
|
|
|
rm -f include/float.h; \
|
|
|
|
|
SYS_FLOAT_H_WRAP=1; \
|
|
|
|
|
else :; \
|
|
|
|
|
SYS_FLOAT_H_WRAP=0; \
|
|
|
|
|
fi; \
|
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) $(ENQUIRE_CFLAGS) \
|
|
|
|
|
-DSYS_FLOAT_H_WRAP=$$SYS_FLOAT_H_WRAP \
|
|
|
|
|
-I. -c $(srcdir)/enquire.c
|
|
|
|
|
|
|
|
|
|
# Create float.h source for the native machine.
|
|
|
|
|
# Make it empty if we can use the system float.h without changes.
|
|
|
|
|
float.h-nat: enquire
|
|
|
|
|
-./enquire -f > tmp-float.h
|
|
|
|
|
grep '#define [^_]' tmp-float.h >/dev/null || true > tmp-float.h
|
|
|
|
|
mv tmp-float.h float.h-nat
|
|
|
|
|
|
|
|
|
|
# Create a dummy float.h source for a cross-compiler.
|
|
|
|
|
# ??? This isn't used anymore. Should we create config/float-unkn.h
|
|
|
|
|
# and make that the default float_format in configure?
|
|
|
|
|
float.h-cross:
|
|
|
|
|
echo "#ifndef __GCC_FLOAT_NOT_NEEDED" > t-float.h-cross
|
|
|
|
|
echo "#error float.h values not known for cross-compiler" >> t-float.h-cross
|
|
|
|
|
echo "#endif" >> t-float.h-cross
|
|
|
|
|
mv t-float.h-cross float.h-cross
|
|
|
|
|
|