1992-02-03 23:08:59 +01:00
|
|
|
|
# Makefile for GNU C compiler.
|
2000-02-26 06:45:17 +01:00
|
|
|
|
# Copyright (C) 1987, 1988, 1990, 1991, 1992, 1993, 1994, 1995
|
2001-01-03 15:23:39 +01:00
|
|
|
|
# 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
1992-02-03 23:08:59 +01: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 13:33:25 +02:00
|
|
|
|
#the Free Software Foundation, 59 Temple Place - Suite 330,
|
|
|
|
|
#Boston MA 02111-1307, USA.
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
|
|
|
|
# The targets for external use include:
|
|
|
|
|
# all, doc, proto, install, install-cross, install-cross-rest,
|
1995-04-26 00:07:11 +02:00
|
|
|
|
# uninstall, TAGS, mostlyclean, clean, distclean, maintainer-clean,
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# stage1, stage2, stage3, stage4.
|
|
|
|
|
|
2000-11-09 14:56:53 +01:00
|
|
|
|
# This is the default target.
|
|
|
|
|
all:
|
|
|
|
|
|
1992-03-20 23:22:14 +01:00
|
|
|
|
# Suppress smart makes who think they know how to automake Yacc files
|
|
|
|
|
.y.c:
|
|
|
|
|
|
1997-05-18 14:31:46 +02:00
|
|
|
|
# Directory where sources are, from where we are.
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
2000-01-25 21:16:06 +01:00
|
|
|
|
# Pointer to the GCC Project website
|
|
|
|
|
website=http://gcc.gnu.org
|
|
|
|
|
|
1992-02-03 23:08:59 +01: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 10:25:33 +02:00
|
|
|
|
# List of language subdirectories.
|
|
|
|
|
# This is overridden by configure.
|
1997-05-18 14:31:46 +02: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 10:25:33 +02:00
|
|
|
|
|
1992-02-03 23:08:59 +01: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 10:25:33 +02:00
|
|
|
|
# This is overridden by configure.
|
1998-11-26 02:48:34 +01:00
|
|
|
|
CONFIG_LANGUAGES = @all_languages@
|
1999-10-16 17:52:04 +02:00
|
|
|
|
LANGUAGES = c gcov$(exeext) $(CONFIG_LANGUAGES)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1999-03-18 22:59:35 +01:00
|
|
|
|
# Languages should create dependencies of $(INTL_TARGETS) on generated
|
|
|
|
|
# sources in Make-lang.in. Example:
|
|
|
|
|
# $(INTL_TARGETS): $(srcdir)/cp/parse.c
|
2000-11-05 11:35:33 +01:00
|
|
|
|
INTL_TARGETS = intl.all intl.install
|
1999-03-18 22:59:35 +01:00
|
|
|
|
|
1996-06-18 12:23:45 +02:00
|
|
|
|
# Selection of languages to be made during stage1 build.
|
|
|
|
|
# This is overridden by configure.
|
1997-05-18 14:31:46 +02:00
|
|
|
|
BOOT_LANGUAGES = c @all_boot_languages@
|
1996-06-18 12:23:45 +02:00
|
|
|
|
|
1992-02-03 23:08:59 +01:00
|
|
|
|
ALLOCA =
|
1992-06-28 17:31:14 +02:00
|
|
|
|
ALLOCA_FLAGS =
|
1992-07-07 20:27:34 +02:00
|
|
|
|
ALLOCA_FINISH = true
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1999-09-18 20:05:59 +02:00
|
|
|
|
# Various ways of specifying flags for compilations:
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
|
2000-08-30 00:55:39 +02:00
|
|
|
|
# BOOT_CFLAGS is the value of CFLAGS to pass to the stage2 and stage3
|
|
|
|
|
# compilations.
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
# XCFLAGS is used for most compilations but not when using the GCC just built.
|
|
|
|
|
# TCFLAGS is used for compilations with the GCC just built.
|
|
|
|
|
# STAGE1_CFLAGS is set by configure on some targets.
|
|
|
|
|
XCFLAGS =
|
|
|
|
|
TCFLAGS =
|
|
|
|
|
BOOT_CFLAGS = -g -O2
|
|
|
|
|
STAGE1_CFLAGS = -g @stage1_cflags@
|
|
|
|
|
CFLAGS = $(STAGE1_CFLAGS)
|
|
|
|
|
|
2000-08-30 00:55:39 +02:00
|
|
|
|
# The warning flags are separate from BOOT_CFLAGS because people tend to
|
|
|
|
|
# override optimization flags and we'd like them to still have warnings
|
|
|
|
|
# turned on. These flags are also used to pass other stage dependent
|
|
|
|
|
# flags from configure. The user is free to explicitly turn these flags
|
|
|
|
|
# off if they wish.
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
# LOOSE_WARN are the warning flags to use when compiling something
|
|
|
|
|
# which is only compiled with gcc, such as libgcc and the frontends
|
|
|
|
|
# other than C.
|
|
|
|
|
# STRICT_WARN and STRICT2_WARN are the additional warning flags to
|
|
|
|
|
# apply to the back end and the C front end, which may be compiled
|
|
|
|
|
# with other compilers. This is partially controlled by configure in
|
|
|
|
|
# stage1, as not all versions of gcc understand -Wno-long-long.
|
|
|
|
|
LOOSE_WARN = -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
|
|
|
|
|
STRICT_WARN = -Wtraditional @strict1_warn@
|
|
|
|
|
STRICT2_WARN = -Wtraditional -pedantic -Wno-long-long
|
|
|
|
|
|
|
|
|
|
# This is how we control whether or not the additional warnings are applied.
|
|
|
|
|
.-warn = $(STRICT_WARN)
|
|
|
|
|
GCC_WARN_CFLAGS = $(LOOSE_WARN) $($(@D)-warn)
|
|
|
|
|
|
|
|
|
|
# All warnings have to be shut off in stage1 if the compiler used then
|
|
|
|
|
# isn't gcc; configure determines that. WARN_CFLAGS will be either
|
|
|
|
|
# $(GCC_WARN_CFLAGS), or nothing.
|
|
|
|
|
WARN_CFLAGS = @warn_cflags@
|
|
|
|
|
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# These exists to be overridden by the x-* and t-* files, respectively.
|
|
|
|
|
X_CFLAGS =
|
|
|
|
|
T_CFLAGS =
|
|
|
|
|
|
|
|
|
|
X_CPPFLAGS =
|
|
|
|
|
T_CPPFLAGS =
|
|
|
|
|
|
1999-01-27 02:43:17 +01:00
|
|
|
|
AWK = @AWK@
|
1997-07-10 19:07:44 +02:00
|
|
|
|
CC = @CC@
|
configure.in: Remove AC_PROG_LEX and AC_PROG_YACC.
* configure.in: Remove AC_PROG_LEX and AC_PROG_YACC. Look for
flex and bison, specifically, first in a unified build and
then installed on the system.
* Makefile.in: Set BISON to @BISON@, FLEX to @FLEX@. Rename
LEXFLAGS to FLEXFLAGS. Adjust ORDINARY_FLAGS_TO_PASS to
match.
(collect2.o, gcc.o, prefix.o, toplev.o, alloca.o, intl.o,
cppdefault.o): Remove pointless sed munging of source file
name.
f:
* Make-lang.in (f/fini.o, f/proj-h.o): Remove pointless sed
munging of source file name.
($(srcdir)/f/intdoc.texi): Break up into several rules each of
which builds just one thing. Don't mess with $(LANGUAGES).
(f/ansify.o, f/intdoc.o): Remove unnecessary rules.
From-SVN: r37371
2000-11-10 18:23:09 +01:00
|
|
|
|
BISON = @BISON@
|
1993-05-23 07:18:39 +02:00
|
|
|
|
BISONFLAGS =
|
configure.in: Remove AC_PROG_LEX and AC_PROG_YACC.
* configure.in: Remove AC_PROG_LEX and AC_PROG_YACC. Look for
flex and bison, specifically, first in a unified build and
then installed on the system.
* Makefile.in: Set BISON to @BISON@, FLEX to @FLEX@. Rename
LEXFLAGS to FLEXFLAGS. Adjust ORDINARY_FLAGS_TO_PASS to
match.
(collect2.o, gcc.o, prefix.o, toplev.o, alloca.o, intl.o,
cppdefault.o): Remove pointless sed munging of source file
name.
f:
* Make-lang.in (f/fini.o, f/proj-h.o): Remove pointless sed
munging of source file name.
($(srcdir)/f/intdoc.texi): Break up into several rules each of
which builds just one thing. Don't mess with $(LANGUAGES).
(f/ansify.o, f/intdoc.o): Remove unnecessary rules.
From-SVN: r37371
2000-11-10 18:23:09 +01:00
|
|
|
|
FLEX = @FLEX@
|
|
|
|
|
FLEXFLAGS =
|
1992-02-03 23:08:59 +01:00
|
|
|
|
AR = ar
|
|
|
|
|
AR_FLAGS = rc
|
1997-06-28 01:36:01 +02:00
|
|
|
|
DLLTOOL = dlltool
|
1992-02-03 23:08:59 +01:00
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
# on sysV, define this as cp.
|
1997-05-18 14:31:46 +02:00
|
|
|
|
INSTALL = @INSTALL@
|
1997-09-11 22:39:08 +02: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 23:08:59 +01:00
|
|
|
|
# These permit overriding just for certain files.
|
1997-09-14 00:52:49 +02:00
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
2000-05-02 21:09:24 +02:00
|
|
|
|
MAKEINFO = @MAKEINFO@
|
1996-01-06 22:11:54 +01:00
|
|
|
|
MAKEINFOFLAGS =
|
1993-05-06 15:26:26 +02:00
|
|
|
|
TEXI2DVI = texi2dvi
|
2001-01-03 21:15:01 +01:00
|
|
|
|
TEXI2POD = perl $(srcdir)/../contrib/texi2pod.pl
|
2000-11-22 09:29:32 +01:00
|
|
|
|
POD2MAN = pod2man --center="GNU" --release="gcc-$(version)" --section=1
|
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 10:25:33 +02:00
|
|
|
|
# For GNUmake: let us decide what gets passed to recursive makes.
|
|
|
|
|
MAKEOVERRIDES =
|
1997-05-18 14:31:46 +02:00
|
|
|
|
@SET_MAKE@
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
# Some compilers can't handle cc -c blah.c -o foo/blah.o.
|
|
|
|
|
# In stage2 and beyond, we force this to "-o $@" since we know we're using gcc.
|
|
|
|
|
OUTPUT_OPTION = @OUTPUT_OPTION@
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
# This is where we get zlib from. zlibdir is -L../zlib and zlibinc is
|
|
|
|
|
# -I../zlib, unless we were configured with --with-system-zlib, in which
|
|
|
|
|
# case both are empty.
|
|
|
|
|
ZLIB = @zlibdir@ -lz
|
|
|
|
|
ZLIBINC = @zlibinc@
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
|
|
|
|
# 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 23:39:13 +01:00
|
|
|
|
RANLIB_TEST = \
|
|
|
|
|
[ -f $(RANLIB) ] \
|
1999-03-25 02:07:20 +01:00
|
|
|
|
|| [ -f /usr/bin/ranlib -o -f /bin/ranlib ]
|
1998-11-24 13:46:07 +01:00
|
|
|
|
|
2000-07-17 11:23:16 +02:00
|
|
|
|
# Substitution type for target's getgroups 2nd arg.
|
|
|
|
|
TARGET_GETGROUPS_T = @TARGET_GETGROUPS_T@
|
|
|
|
|
|
1992-02-03 23:08:59 +01: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 23:22:14 +01:00
|
|
|
|
# Version of ar to use when compiling libgcc1.a.
|
1992-02-03 23:08:59 +01:00
|
|
|
|
OLDAR = ar
|
1997-07-10 19:07:44 +02:00
|
|
|
|
OLDAR_FLAGS = qc
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1993-01-14 21:10:31 +01:00
|
|
|
|
# Target to use when installing include directory. Either
|
|
|
|
|
# install-headers-tar or install-headers-cpio.
|
1997-05-18 14:31:46 +02:00
|
|
|
|
INSTALL_HEADERS_DIR = @build_install_headers_dir@
|
1993-01-14 21:10:31 +01:00
|
|
|
|
|
1995-09-28 19:02:22 +01: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 \
|
Makefile.in (USER_H): Remove va-foo.h.
* Makefile.in (USER_H): Remove va-foo.h.
* ginclude/{va-alpha.h,va-arc.h,va-c4x.h,va-clipper.h,va-h8300.h,
va-i860.h,va-i960.h,va-m32r.h,va-m88k.h,va-mips.h,va-mn10200.h,
va-mn10300.h,va-pa.h,va-ppc.h,va-pyr.h,va-sh.h,va-sparc.h,
va-spur.h,va-v850.h}: Remove.
From-SVN: r29424
1999-09-15 05:42:26 +02:00
|
|
|
|
$(srcdir)/ginclude/varargs.h $(srcdir)/ginclude/proto.h \
|
1999-09-18 20:05:59 +02:00
|
|
|
|
$(srcdir)/ginclude/stdbool.h $(srcdir)/ginclude/iso646.h \
|
|
|
|
|
$(EXTRA_HEADERS) $(LANG_EXTRA_HEADERS)
|
1995-09-28 19:02:22 +01:00
|
|
|
|
|
|
|
|
|
# Target to use whe installing assert.h. Some systems may
|
|
|
|
|
# want to set this empty.
|
|
|
|
|
INSTALL_ASSERT_H = install-assert-h
|
|
|
|
|
|
2000-05-27 23:37:17 +02:00
|
|
|
|
# The GCC to use for compiling libgcc.a, enquire, and libgcc1-test.
|
1992-07-01 03:25:23 +02:00
|
|
|
|
# Usually the one we just built.
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Don't use this as a dependency--use $(GCC_PASSES) or $(GCC_PARTS).
|
2000-07-28 03:57:07 +02:00
|
|
|
|
GCC_FOR_TARGET = ./xgcc -B./ -B$(build_tooldir)/bin/ -isystem $(build_tooldir)/include
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
|
|
|
|
# This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
|
|
|
|
|
# It omits XCFLAGS, and specifies -B./.
|
2000-04-24 22:12:12 +02:00
|
|
|
|
# It also specifies -isystem ./include to find, e.g., stddef.h.
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(LOOSE_WARN) -isystem ./include $(TCFLAGS)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
2000-01-13 16:36:24 +01:00
|
|
|
|
# Specify the abi to use when building the c++ runtime
|
|
|
|
|
GXX_ABI_FLAG=@GXX_ABI_FLAG@
|
|
|
|
|
|
1994-11-17 22:03:59 +01:00
|
|
|
|
# Sed command to transform gcc to installed name. Overwritten by configure.
|
1997-10-07 17:59:26 +02:00
|
|
|
|
program_transform_name = @program_transform_name@
|
1997-11-22 08:55:18 +01:00
|
|
|
|
program_transform_cross_name = s,^,$(target_alias)-,
|
1994-11-17 22:03:59 +01:00
|
|
|
|
|
1998-05-18 02:48:07 +02:00
|
|
|
|
build_canonical = @build_canonical@
|
|
|
|
|
host_canonical = @host_canonical@
|
|
|
|
|
|
1992-02-03 23:08:59 +01: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-18 03:24:26 +02: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 \
|
1999-10-26 10:51:50 +02:00
|
|
|
|
t='$(program_transform_cross_name)'; echo ar | sed -e $$t ; \
|
1998-05-18 03:24:26 +02:00
|
|
|
|
fi; \
|
|
|
|
|
fi`
|
2000-04-01 00:28:33 +02:00
|
|
|
|
AR_FLAGS_FOR_TARGET =
|
|
|
|
|
AR_CREATE_FOR_TARGET = $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) rc
|
|
|
|
|
AR_EXTRACT_FOR_TARGET = $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) x
|
1998-05-18 03:24:26 +02:00
|
|
|
|
RANLIB_FOR_TARGET = ` \
|
|
|
|
|
if [ -f $(objdir)/../binutils/ranlib ] ; then \
|
|
|
|
|
echo $(objdir)/../binutils/ranlib ; \
|
|
|
|
|
else \
|
|
|
|
|
if [ "$(host_canonical)" = "$(target)" ] ; then \
|
|
|
|
|
echo ranlib; \
|
|
|
|
|
else \
|
1999-10-26 10:51:50 +02:00
|
|
|
|
t='$(program_transform_cross_name)'; echo ranlib | sed -e $$t ; \
|
1998-05-18 03:24:26 +02:00
|
|
|
|
fi; \
|
|
|
|
|
fi`
|
|
|
|
|
RANLIB_TEST_FOR_TARGET = \
|
|
|
|
|
[ -f $(RANLIB_FOR_TARGET) ] \
|
|
|
|
|
|| ( [ "$(host_canonical)" = "$(target)" ] \
|
|
|
|
|
&& [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )
|
2000-10-06 07:46:02 +02:00
|
|
|
|
NM_FOR_TARGET = ` \
|
|
|
|
|
if [ -f $(objdir)/../binutils/nm ] ; then \
|
|
|
|
|
echo $(objdir)/../binutils/nm ; \
|
|
|
|
|
else \
|
|
|
|
|
if [ "$(host_canonical)" = "$(target)" ] ; then \
|
|
|
|
|
echo nm; \
|
|
|
|
|
else \
|
|
|
|
|
t='$(program_transform_cross_name)'; echo nm | sed -e $$t ; \
|
|
|
|
|
fi; \
|
|
|
|
|
fi`
|
1998-05-18 03:24:26 +02:00
|
|
|
|
|
1992-09-04 06:40:25 +02:00
|
|
|
|
# Dir to search for system headers. Overridden by cross-make.
|
|
|
|
|
SYSTEM_HEADER_DIR = /usr/include
|
|
|
|
|
|
2000-04-06 23:22:49 +02:00
|
|
|
|
# Where to find some libiberty headers.
|
|
|
|
|
HASHTAB_H = $(srcdir)/../include/hashtab.h
|
|
|
|
|
OBSTACK_H = $(srcdir)/../include/obstack.h
|
2000-06-21 20:41:38 +02:00
|
|
|
|
SPLAY_TREE_H= $(srcdir)/../include/splay-tree.h
|
2000-04-06 23:22:49 +02:00
|
|
|
|
|
configure.in (i?86-*-beos{pe,elf,}*): Recognize.
* configure.in (i?86-*-beos{pe,elf,}*): Recognize.
* i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
* i386/beos-elf.h, i386/beos-pe.h: New files.
* Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
* cross-make (SYSTEM_HEADER_DIR): Define using
CROSS_SYSTEM_HEADER_DIR.
* gcc.c (LIBRARY_PATH_ENV): Provide default.
(process_command): Use it.
(main): Likewise. Kill trailing = from env vars.
(build_search_list): Put it back.
* collect2.c (main): Use LIBRARY_PATH_ENV.
* configure.in (GCC_NEED_DECLARATIONS): Add environ.
* toplev.c: Use NEED_DECLARATION_ENVIRON.
* tm.texi (Frame Layout): Document SMALL_STACK.
* c-common.c (c_common_nodes_and_builtins): Check it.
* system.h: Undef alloca after including glibc's <stdlib.h>,
if USE_C_ALLOCA is defined.
* gcc.c (set_input): New fn.
(main): After all input files are compiled, reset the input file
info to the first.
* aclocal.m4 (rindex, index): If already defined, don't attempt
to redefine.
* ginclude/varargs.h: (__va_list__): Define ifndef.
* ginclude/stdarg.h: Likewise.
* ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
instead of unsigned char.
* hash.h (true, false, boolean): Undef before enum.
From-SVN: r31366
2000-01-13 01:37:06 +01:00
|
|
|
|
# Default cross SYSTEM_HEADER_DIR, to be overridden by targets.
|
|
|
|
|
CROSS_SYSTEM_HEADER_DIR = $(tooldir)/sys-include
|
|
|
|
|
|
2000-02-27 01:10:15 +01:00
|
|
|
|
# Control whether to run fixproto and fixincludes.
|
1993-10-21 19:41:48 +01:00
|
|
|
|
STMP_FIXPROTO = stmp-fixproto
|
2000-02-27 01:10:15 +01:00
|
|
|
|
STMP_FIXINC = stmp-fixinc
|
1993-07-26 10:49:02 +02:00
|
|
|
|
|
1994-12-22 18:16:22 +01:00
|
|
|
|
# Test to see whether <limits.h> exists in the system header files.
|
|
|
|
|
LIMITS_H_TEST = [ -f $(SYSTEM_HEADER_DIR)/limits.h ]
|
|
|
|
|
|
1997-05-18 14:31:46 +02:00
|
|
|
|
target=@target@
|
1997-06-10 01:17:07 +02:00
|
|
|
|
target_alias=@target_alias@
|
1997-05-18 14:31:46 +02: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 17:50:47 +02:00
|
|
|
|
lang_tree_files=@lang_tree_files@
|
1997-06-28 00:49:22 +02:00
|
|
|
|
GCC_THREAD_FILE=@thread_file@
|
1998-09-03 01:48:01 +02:00
|
|
|
|
OBJC_BOEHM_GC=@objc_boehm_gc@
|
1997-12-25 00:56:08 +01:00
|
|
|
|
GTHREAD_FLAGS=@gthread_flags@
|
1998-06-26 04:13:51 +02:00
|
|
|
|
# Be prepared for gcc2 merges.
|
|
|
|
|
gcc_version=@gcc_version@
|
|
|
|
|
gcc_version_trigger=@gcc_version_trigger@
|
|
|
|
|
version=$(gcc_version)
|
configure (gcc_version): When setting, narrow search to lines containing `version_string'.
* configure (gcc_version): When setting, narrow search to
lines containing `version_string'.
gcc:
* version.c: Include gansidecl.h and version.h.
* version.h: Wrap entire file in macro __GCC_VERSION_H__.
* configure.in (gcc_version): When setting, narrow search to
lines containing `version_string'.
* Makefile.in (mainversion): Likewise.
(GCC_H): New variable.
(gcc.h): Delete target.
(gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
(version.o): Depend on version.h.
(dbxout.o): Don't depend on gcc.h.
gcc/cp:
* Make-lang.in (g++spec.o): Depend on $(GCC_H), not gcc.h.
gcc/f:
* Make-lang.in (g77spec.o): Depend on $(GCC_H), not gcc.h.
gcc/java:
* Make-lang.in (jvspec.o): Depend on $(GCC_H), not gcc.h.
libf2c:
* configure.in (gcc_version): When setting, narrow search to
lines containing `version_string'.
From-SVN: r32009
2000-02-16 17:22:47 +01:00
|
|
|
|
mainversion=`grep version_string $(srcdir)/version.c | sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/'`
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
|
|
|
|
# Common prefix for installation directories.
|
|
|
|
|
# NOTE: This directory must exist when you start installation.
|
1997-05-18 14:31:46 +02:00
|
|
|
|
prefix = @prefix@
|
1993-01-19 09:54:40 +01: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 22:48:27 +02:00
|
|
|
|
# NOTE: local_prefix *should not* default from prefix.
|
1997-05-18 14:31:46 +02:00
|
|
|
|
local_prefix = @local_prefix@
|
1992-03-20 23:22:14 +01:00
|
|
|
|
# Directory in which to put host dependent programs and libraries
|
1997-05-18 14:31:46 +02:00
|
|
|
|
exec_prefix = @exec_prefix@
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Directory in which to put the executable for the command `gcc'
|
1997-05-18 14:31:46 +02:00
|
|
|
|
bindir = @bindir@
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Directory in which to put the directories used by the compiler.
|
1997-05-18 14:31:46 +02:00
|
|
|
|
libdir = @libdir@
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Directory in which the compiler finds executables, libraries, etc.
|
1996-07-19 00:06:04 +02:00
|
|
|
|
libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(version)
|
1999-01-22 07:46:43 +01:00
|
|
|
|
# Used to produce a relative $(gcc_tooldir) in gcc.o
|
1998-10-02 03:05:51 +02:00
|
|
|
|
unlibsubdir = ../../..
|
1999-01-22 08:17:21 +01:00
|
|
|
|
# Directory in which to find other cross-compilation tools and headers.
|
1999-03-02 10:29:26 +01:00
|
|
|
|
dollar = @dollar@
|
1999-01-22 08:17:21 +01:00
|
|
|
|
# Used in install-cross.
|
|
|
|
|
gcc_tooldir = @gcc_tooldir@
|
2001-01-07 10:27:25 +01:00
|
|
|
|
# Used to install the shared libgcc.
|
|
|
|
|
slibdir = @slibdir@
|
1999-01-22 08:17:21 +01:00
|
|
|
|
# Since tooldir does not exist at build-time, use -B$(build_tooldir)/bin/
|
|
|
|
|
build_tooldir = $(exec_prefix)/$(target_alias)
|
2000-12-18 19:12:45 +01:00
|
|
|
|
# Directory in which the compiler finds target-independent g++ includes.
|
|
|
|
|
gcc_gxx_include_dir = @gcc_gxx_include_dir@
|
2000-12-21 08:19:41 +01:00
|
|
|
|
# Directory in which the compiler finds target-dependent g++ includes.
|
|
|
|
|
gcc_gxx_target_include_dir = $(build_tooldir)/include/@libstdcxx_incdir@
|
1993-06-05 10:10:50 +02:00
|
|
|
|
# Directory to search for site-specific includes.
|
1993-01-27 19:11:43 +01:00
|
|
|
|
includedir = $(local_prefix)/include
|
1992-10-06 21:39:15 +01:00
|
|
|
|
# assertdir is overridden in cross-make.
|
1993-05-19 05:55:08 +02:00
|
|
|
|
# (But this currently agrees with what is in cross-make.)
|
1999-01-22 07:46:43 +01:00
|
|
|
|
assertdir = $(gcc_tooldir)/include
|
1993-05-18 22:48:27 +02:00
|
|
|
|
# where the info files go
|
1997-05-18 14:31:46 +02:00
|
|
|
|
infodir = @infodir@
|
1999-03-02 01:59:28 +01:00
|
|
|
|
# Where cpp should go besides $prefix/bin if necessary
|
|
|
|
|
cpp_install_dir = @cpp_install_dir@
|
1999-01-27 02:43:17 +01:00
|
|
|
|
# where the locale files go
|
|
|
|
|
datadir = $(prefix)/@DATADIRNAME@
|
|
|
|
|
localedir = $(datadir)/locale
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Extension (if any) to put in installed man-page filename.
|
|
|
|
|
manext = .1
|
1995-02-21 23:54:50 +01:00
|
|
|
|
objext = .o
|
1997-12-31 12:48:25 +01:00
|
|
|
|
exeext = @host_exeext@
|
|
|
|
|
build_exeext = @build_exeext@
|
1995-02-21 23:54:50 +01:00
|
|
|
|
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Directory in which to put man pages.
|
1998-11-19 07:49:46 +01:00
|
|
|
|
mandir = @mandir@
|
|
|
|
|
man1dir = $(mandir)/man1
|
1992-10-31 22:00:49 +01:00
|
|
|
|
# Dir for temp files.
|
|
|
|
|
tmpdir = /tmp
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1999-01-27 02:43:17 +01: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 23:08:59 +01: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
|
|
|
|
|
|
1999-09-04 20:25:41 +02:00
|
|
|
|
# The GC method to be used on this system.
|
1999-10-07 10:15:19 +02:00
|
|
|
|
GGC=@GGC@.o
|
1999-09-04 20:25:41 +02:00
|
|
|
|
|
|
|
|
|
# If a supplementary library is being used for the GC.
|
|
|
|
|
GGC_LIB=
|
|
|
|
|
|
1998-05-07 13:44:09 +02:00
|
|
|
|
# Configure will set these if you need vfprintf and possibly _doprnt support.
|
|
|
|
|
VFPRINTF=@vfprintf@
|
|
|
|
|
DOPRINT=@doprint@
|
|
|
|
|
|
1993-07-05 17:35:24 +02: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 23:08:59 +01:00
|
|
|
|
# Specify the rule for actually making libgcc1.a.
|
1992-03-20 23:22:14 +01:00
|
|
|
|
# The value may be empty; that means to do absolutely nothing
|
|
|
|
|
# with or for libgcc1.a.
|
1992-02-03 23:08:59 +01:00
|
|
|
|
LIBGCC1 = libgcc1.a
|
|
|
|
|
|
1993-09-09 20:18:07 +02: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 23:08:59 +01:00
|
|
|
|
# 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 19:21:28 +01:00
|
|
|
|
#
|
1997-12-04 10:41:53 +01:00
|
|
|
|
LIBGCC2_DEBUG_CFLAGS = -g1
|
1999-09-18 20:05:59 +02: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 16:53:33 +02:00
|
|
|
|
|
|
|
|
|
# Additional options to use when compiling libgcc2.a.
|
2000-04-24 22:12:12 +02:00
|
|
|
|
# Some targets override this to -isystem include
|
1993-04-08 16:53:33 +02:00
|
|
|
|
LIBGCC2_INCLUDES =
|
|
|
|
|
|
1995-08-14 00:04:59 +02:00
|
|
|
|
# Additional target-dependent options for compiling libgcc2.a.
|
1999-09-18 20:05:59 +02:00
|
|
|
|
TARGET_LIBGCC2_CFLAGS =
|
1995-08-14 00:04:59 +02:00
|
|
|
|
|
2000-10-21 03:47:05 +02:00
|
|
|
|
# Additional sources to handle exceptions; overridden by some targets.
|
except.c (func_eh_entry): Add emitted field.
2000-05-25 Andrew MacLeod <amacleod@cygnus.com>
Andrew Haley <aph@cygnus.com>
* except.c (func_eh_entry): Add emitted field.
(new_eh_region_entry): Set emitted field to 0;
(output_exception_table_entry): Only emit previously un-emitted data,
and send it to the eh_data section.
(output_exception_table): Break out common parts. Output
exception table for entire compilation unit to eh_data section.
(output_exception_table_data): Common parts of output_exception_table.
Send output to eh_data section.
(output_function_exception_table): Output exception table data for
a single function to eh_data section.
(free_exception_table): New external to free the table.
* except.h (free_exception_table): Add prototype.
(output_function_exception_table): Add prototype.
* final.c (final_end_function): Output function exception table
for IA64_UNWIND_INFO.
(final_scan_insn): Emit any unwind directives for an insn.
* frame-dwarf2.c: New file containing all DWARF 2 specific code
from frame.c.
* frame.c: Remove all DWARF 2 specific code.
* config/ia64/frame-ia64.c: New file.
(gthread_stuff): Make all gthread available with
IA64_UNWIND_INFO.
(dwarf_fde): Define an IA64 struct for dwarf_fde.
(__register_frame_info, __register_frame): Move to common area of file.
(__register_frame_info_table, __register_frame_table): Move to common i
area.
(__deregister_frame_info, __deregister_frame): Move to common area.
(__frame_init, find_fde): New versions for IA64_UNWIND_INFO.
(read_uleb128): New version for ia64.
(get_unwind_record): Read the next IA-64 unwind record.
(read_R_record): Read a region header record.
(process_a_b_reg_code): X record helper.
(read_X_record): Read an X format record.
(read_B_record): Read a B format record.
(P3_record_types): List of record types matching the P3 format.
(P7_record_types): List of record types matching the P7 format.
(P8_record_types): List of record types matching the P8 format.
(read_P_record): Read a P format record.
(init_ia64_reg_loc): Set default fields for a register.
(init_ia64_unwind_frame): Set defaults for all register records.
(execute_one_ia64_descriptor): Execute one descriptor record.
(rse_address_add): Calculate the position of a local reg in memory.
(normalize_reg_loc): Turn a location descriptor into a memory address.
(maybe_normalize_reg_loc): Only normalize a descriptor if it falls
within a specified PC offset range.
(get_real_reg_value): Given a register location, retrieve its value.
(set_real_reg_value): Change the value of a register location.
(copy_reg_value): Copy reg values, if needed.
(copy_saved_reg_state): Copy all registers that need to be copied.
(process_state_between): Normalize all frame register records that
fall within the specified PC range.
(frame_translate): Take a processed frame description, and turn
everything into addresses.
(build_ia64_frame_state ): Find and create frame state record for a PC.
(get_personality): Get the personality routine for a given frame.
(get_except_table): Get the exception table for a given frame.
(record_name): Unwind record names for debugging.
(print_record): Print and unwind record.
(print_all_records): Print an entire unwind image.
(__ia64_backtrace): Print a backtrace.
(ia64_backtrace_helper): New function.
(__register_frame_info_aux): New function.
* config/ia64/crtend.asm (__do_frame_setup_aux): New function.
* frame.h (enum unw_record_type): New unwind record types.
(struct unw_p_record, unw_b_record, unw_x_record) : New unwind records.
(struct unw_r_record, unwind_record): New unwind record structs.
(struct unwind_info_ptr): Unwind information layout.
(IA64_UNW_LOC_TYPE_*): Macros for different types for location
descriptors.
(struct ia64_reg_loc): Register location description.
(struct ia64_frame_state): Location of all registers in a frame.
(struct object): Add pc_base and fde_end for IA64_UNWIND_INFO.
* libgcc2.c (__ia64_personality_v1): Personality routine.
(__calc_caller_bsp): Calculate the bsp register for the caller's
frame.
(ia64_throw_helper): Figure out who to return to and set up the
registers.
(__throw): Throw routine.
* output.h (assemble_eh_align, assemble_eh_label): New functions
to generate EH info where we want it.
(assemble_eh_integer): New function.
* toplev.c (compile_file): Output module level exception table for
non-ia64 targets.
(main): Set exceptions_via_longjump and flag_new_exceptions based
on IA64_UNWIND_INFO too.
* varasm.c (assemble_eh_label): Generate a label via
ASM_OUTPUT_EH_LABEL if it has been specified.
(assemble_eh_align): Generate an alignment directive via
ASM_OUTPUT_EH_ALIGN if it has been specified.
(assemble_eh_label): Generate an integer value via
ASM_OUTPUT_EH_type if they have been specified.
* config/ia64/ia64.c (rtx_needs_barrier): Add flushrs.
(ia64_init_builtins): Add __builtin_ia64_bsp
and __builtin_ia64_flushrs.
(ia64_expand_builtin): Add IA64_BUILTIN_BSP and
IA64_BUILTIN_FLUSHRS.
* config/ia64/ia64.h (ia64_builtins): Add IA64_BUILTIN_BSP and
IA64_BUILTIN_FLUSHRS.
* config/ia64/ia64.md (flushrs): New insn to flush the register
stack. Add to unspec list.
* config/ia64/crtbegin.asm (frame_object): Change size.
(__do_frame_setup_aux): New function.
* config/ia64/crtend.asm: call __do_frame_setup_aux.
* config/ia64/t-ia64 (LIB2ADDEH): Add.
* Makefile.in (LIB2ADDEH): Add.
(LIB2ADD): Use LIB2ADDEH.
Co-Authored-By: Andrew Haley <aph@cygnus.com>
From-SVN: r34169
2000-05-25 17:21:51 +02:00
|
|
|
|
LIB2ADDEH = $(srcdir)/frame-dwarf2.c
|
|
|
|
|
|
1995-03-16 00:44:51 +01:00
|
|
|
|
# libgcc1-test target (must also be overridable for a target)
|
|
|
|
|
LIBGCC1_TEST = libgcc1-test
|
1993-09-22 04:30:41 +02:00
|
|
|
|
|
2000-10-21 03:47:05 +02:00
|
|
|
|
# nm flags to list global symbols in libgcc object files.
|
|
|
|
|
SHLIB_NM_FLAGS = -pg
|
|
|
|
|
|
1992-02-03 23:08:59 +01: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 14:31:46 +02:00
|
|
|
|
EXTRA_PASSES =@extra_passes@
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1992-03-20 23:22:14 +01:00
|
|
|
|
# Like EXTRA_PASSES, but these are used when linking.
|
1997-05-18 14:31:46 +02:00
|
|
|
|
EXTRA_PROGRAMS = @extra_programs@
|
1992-03-20 23:22:14 +01:00
|
|
|
|
|
|
|
|
|
# List of extra object files that should be compiled for this target machine.
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# The rules for compiling them should be in the t-* file for the machine.
|
1997-05-18 14:31:46 +02:00
|
|
|
|
EXTRA_PARTS = @extra_parts@
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1992-03-20 23:22:14 +01:00
|
|
|
|
# List of extra object files that should be compiled and linked with
|
|
|
|
|
# compiler proper (cc1, cc1obj, cc1plus).
|
1997-05-18 14:31:46 +02:00
|
|
|
|
EXTRA_OBJS = @extra_objs@
|
1992-03-20 23:22:14 +01:00
|
|
|
|
|
1995-09-12 23:39:08 +02:00
|
|
|
|
# List of extra object files that should be compiled and linked with
|
|
|
|
|
# the gcc driver.
|
1997-05-18 14:31:46 +02:00
|
|
|
|
EXTRA_GCC_OBJS =@host_extra_gcc_objs@
|
1995-09-12 23:39:08 +02:00
|
|
|
|
|
1992-05-24 21:40:47 +02:00
|
|
|
|
# List of additional header files to install.
|
|
|
|
|
# Often this is edited directly by `configure'.
|
1997-05-18 14:31:46 +02:00
|
|
|
|
EXTRA_HEADERS =@extra_headers_list@
|
1992-05-24 21:40:47 +02:00
|
|
|
|
|
1998-04-06 22:51:28 +02:00
|
|
|
|
# Set this to `collect2' to enable use of collect2.
|
1997-05-18 14:31:46 +02:00
|
|
|
|
USE_COLLECT2 = @will_use_collect2@
|
1999-06-11 05:12:22 +02: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-10 02:26:06 +02:00
|
|
|
|
MAYBE_USE_COLLECT2 = @maybe_use_collect2@
|
1992-04-04 23:34:42 +02:00
|
|
|
|
# It is convenient for configure to add the assignment at the beginning,
|
|
|
|
|
# so don't override it here.
|
1998-04-06 22:51:28 +02:00
|
|
|
|
USE_COLLECT2 = collect2$(exeext)
|
1992-04-04 23:34:42 +02:00
|
|
|
|
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# List of extra C and assembler files to add to libgcc1.a.
|
|
|
|
|
# Assembler files should have names ending in `.asm'.
|
1999-09-18 20:05:59 +02:00
|
|
|
|
LIB1FUNCS_EXTRA =
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
|
|
|
|
# List of extra C and assembler files to add to libgcc2.a.
|
|
|
|
|
# Assembler files should have names ending in `.asm'.
|
1999-09-18 20:05:59 +02:00
|
|
|
|
LIB2FUNCS_EXTRA =
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1999-03-02 01:59:28 +01:00
|
|
|
|
# Handle cpp installation.
|
|
|
|
|
INSTALL_CPP=
|
|
|
|
|
UNINSTALL_CPP=
|
|
|
|
|
|
1998-05-24 02:44:00 +02: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 20:15:49 +01:00
|
|
|
|
FLOAT_H=@float_h_file@
|
1998-05-24 02:44:00 +02:00
|
|
|
|
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Program to convert libraries.
|
1999-09-18 20:05:59 +02:00
|
|
|
|
LIBCONVERT =
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
|
|
|
|
# Control whether header files are installed.
|
|
|
|
|
INSTALL_HEADERS=install-headers
|
|
|
|
|
|
2000-05-02 21:09:24 +02:00
|
|
|
|
# Control whether Info documentation is built and installed.
|
|
|
|
|
BUILD_INFO = @BUILD_INFO@
|
|
|
|
|
|
2001-01-03 21:15:01 +01:00
|
|
|
|
# Control whether manpages generated by texi2pod.pl can be rebuilt.
|
|
|
|
|
GENERATED_MANPAGES = @GENERATED_MANPAGES@
|
|
|
|
|
|
1992-10-23 08:24:42 +01:00
|
|
|
|
# Additional directories of header files to run fixincludes on.
|
1993-06-16 21:45:41 +02:00
|
|
|
|
# These should be directories searched automatically by default
|
|
|
|
|
# just as /usr/include is.
|
1999-09-18 20:05:59 +02:00
|
|
|
|
# *Do not* use this for directories that happen to contain
|
1993-06-16 21:45:41 +02:00
|
|
|
|
# header files, but are not searched automatically by default.
|
1992-10-23 08:24:42 +01:00
|
|
|
|
# On most systems, this is empty.
|
|
|
|
|
OTHER_FIXINCLUDES_DIRS=
|
|
|
|
|
|
1997-02-15 23:54:15 +01: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-22 02:41:52 +02:00
|
|
|
|
COMPILERS = cc1$(exeext) @all_compilers@
|
1997-02-15 23:54:15 +01:00
|
|
|
|
|
1992-06-24 04:36:02 +02:00
|
|
|
|
# List of things which should already be built whenever we try to use xgcc
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# to compile anything (without linking).
|
2000-08-24 00:35:13 +02:00
|
|
|
|
GCC_PASSES=xgcc$(exeext) cc1$(exeext) cpp0$(exeext) specs $(EXTRA_PASSES)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1992-06-24 04:36:02 +02:00
|
|
|
|
# List of things which should already be built whenever we try to use xgcc
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# to link anything.
|
1993-07-05 17:35:24 +02:00
|
|
|
|
GCC_PARTS=$(GCC_PASSES) $(LIBGCC) $(EXTRA_PROGRAMS) $(USE_COLLECT2) $(EXTRA_PARTS)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
|
|
|
|
# Directory to link to, when using the target `maketest'.
|
|
|
|
|
DIR = ../gcc
|
|
|
|
|
|
|
|
|
|
# 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.
|
1999-09-18 20:05:59 +02:00
|
|
|
|
# The default for this variable is chosen to keep these rules
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# out of the way of the other rules for compiling the same source files.
|
|
|
|
|
HOST_PREFIX_1=loser-
|
|
|
|
|
HOST_CC=$(CC)
|
2001-01-03 15:23:39 +01:00
|
|
|
|
# If you change any of the following variables, check whether a
|
|
|
|
|
# similar change is needed in build-make.
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
HOST_CFLAGS=$(ALL_CFLAGS) -DGENERATOR_FILE
|
1992-03-20 23:22:14 +01:00
|
|
|
|
HOST_CLIB=$(CLIB)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
HOST_LDFLAGS=$(LDFLAGS)
|
|
|
|
|
HOST_CPPFLAGS=$(ALL_CPPFLAGS)
|
1992-03-20 23:22:14 +01:00
|
|
|
|
HOST_ALLOCA=$(ALLOCA)
|
|
|
|
|
HOST_MALLOC=$(MALLOC)
|
|
|
|
|
HOST_OBSTACK=$(OBSTACK)
|
1998-05-07 13:44:09 +02:00
|
|
|
|
HOST_VFPRINTF=$(VFPRINTF)
|
|
|
|
|
HOST_DOPRINT=$(DOPRINT)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1994-11-17 22:03:59 +01:00
|
|
|
|
# Actual name to use when installing a native compiler.
|
1997-11-22 08:55:18 +01:00
|
|
|
|
GCC_INSTALL_NAME = `t='$(program_transform_name)'; echo gcc | sed -e $$t`
|
1999-03-26 23:55:35 +01:00
|
|
|
|
CPP_INSTALL_NAME = `t='$(program_transform_name)'; echo cpp | sed -e $$t`
|
1998-06-22 20:32:14 +02: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-18 04:32:53 +01:00
|
|
|
|
GCOV_INSTALL_NAME = `t='$(program_transform_name)'; echo gcov | sed -e $$t`
|
2000-03-14 00:51:26 +01:00
|
|
|
|
GCCBUG_INSTALL_NAME = `t='$(program_transform_name)'; echo gccbug | sed -e $$t`
|
1994-11-17 22:03:59 +01:00
|
|
|
|
|
|
|
|
|
# Actual name to use when installing a cross-compiler.
|
1997-11-22 08:55:18 +01:00
|
|
|
|
GCC_CROSS_NAME = `t='$(program_transform_cross_name)'; echo gcc | sed -e $$t`
|
1999-10-26 07:12:14 +02:00
|
|
|
|
CPP_CROSS_NAME = `t='$(program_transform_cross_name)'; echo cpp | sed -e $$t`
|
1998-06-22 20:32:14 +02: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 22:03:59 +01:00
|
|
|
|
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Choose the real default target.
|
|
|
|
|
ALL=all.internal
|
|
|
|
|
|
|
|
|
|
# Choose the real install target.
|
1993-01-14 21:10:31 +01:00
|
|
|
|
INSTALL_TARGET=install-normal
|
|
|
|
|
|
1997-08-19 17:36:20 +02: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-19 01:08:30 +02:00
|
|
|
|
# Extra symbols for fixproto to define when parsing headers.
|
1999-09-18 20:05:59 +02:00
|
|
|
|
FIXPROTO_DEFINES =
|
1994-05-19 01:08:30 +02:00
|
|
|
|
|
1994-11-19 05:09:58 +01:00
|
|
|
|
# Extra flags to use when compiling crt{begin,end}.o.
|
1999-09-18 20:05:59 +02:00
|
|
|
|
CRTSTUFF_T_CFLAGS =
|
1994-11-19 05:09:58 +01:00
|
|
|
|
|
1996-03-05 00:39:06 +01:00
|
|
|
|
# Extra flags to use when compiling [m]crt0.o.
|
1999-09-18 20:05:59 +02:00
|
|
|
|
CRT0STUFF_T_CFLAGS =
|
1996-03-05 00:39:06 +01:00
|
|
|
|
|
1997-11-02 22:19:36 +01:00
|
|
|
|
# "t" or nothing, for building multilibbed versions of, say, crtbegin.o.
|
|
|
|
|
T =
|
|
|
|
|
|
2000-11-09 14:56:53 +01:00
|
|
|
|
# Should T contain a `=', libgcc.mk will make T_TARGET, setting
|
|
|
|
|
# $(T_TARGET) to the name of the actual target filename.
|
|
|
|
|
T_TARGET =
|
|
|
|
|
T_TARGET : $(T_TARGET)
|
|
|
|
|
|
1992-02-03 23:08:59 +01: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 23:22:14 +01:00
|
|
|
|
all: all.indirect
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1992-06-10 10:29:36 +02:00
|
|
|
|
# This tells GNU Make version 3 not to put all variables in the environment.
|
|
|
|
|
.NOEXPORT:
|
|
|
|
|
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# sed inserts variable overrides after the following line.
|
1992-08-18 12:51:20 +02:00
|
|
|
|
####target overrides
|
1997-05-18 14:31:46 +02:00
|
|
|
|
@target_overrides@
|
|
|
|
|
|
1992-08-18 12:51:20 +02:00
|
|
|
|
####host overrides
|
1997-05-18 14:31:46 +02:00
|
|
|
|
@host_overrides@
|
|
|
|
|
|
1992-08-18 12:51:20 +02:00
|
|
|
|
####cross overrides
|
1997-05-18 14:31:46 +02:00
|
|
|
|
@cross_defines@
|
|
|
|
|
@cross_overrides@
|
|
|
|
|
|
1992-10-18 06:30:48 +01:00
|
|
|
|
####build overrides
|
1997-05-18 14:31:46 +02:00
|
|
|
|
@build_overrides@
|
1997-06-09 21:19:18 +02:00
|
|
|
|
#
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Now figure out from those variables how to compile and link.
|
|
|
|
|
|
1992-03-20 23:22:14 +01: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 14:24:04 +02:00
|
|
|
|
# IN_GCC tells various files that system.h, toplev.c, etc are available.
|
1999-08-24 05:28:57 +02:00
|
|
|
|
INTERNAL_CFLAGS = $(CROSS) -DIN_GCC @extra_c_flags@
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
|
|
|
|
# This is the variable actually used when we compile.
|
1998-12-17 13:35:30 +01:00
|
|
|
|
# If you change this line, you probably also need to change the definition
|
|
|
|
|
# of HOST_CFLAGS in build-make to match.
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) \
|
|
|
|
|
$(CFLAGS) $(WARN_CFLAGS) $(XCFLAGS) @DEFS@
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
|
|
|
|
# Likewise.
|
|
|
|
|
ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
|
|
|
|
|
|
|
|
|
|
# Even if ALLOCA is set, don't use it if compiling with GCC.
|
1997-11-05 03:25:26 +01:00
|
|
|
|
USE_ALLOCA= ${ALLOCA}
|
|
|
|
|
USE_HOST_ALLOCA= ` case "${HOST_ALLOCA}" in ?*) echo ${HOST_PREFIX}${HOST_ALLOCA} ;; esac `
|
1992-03-20 23:22:14 +01: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 13:44:09 +02: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 23:08:59 +01: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-27 02:43:17 +01:00
|
|
|
|
LIBDEPS= $(INTLLIBS) $(OBSTACK) $(ALLOCA) $(MALLOC) $(VFPRINTF) $(DOPRINT)
|
1992-02-03 23:08:59 +01: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.
|
2000-06-21 00:42:18 +02:00
|
|
|
|
HOST_LIBDEPS= $(HOST_PREFIX)$(HOST_OBSTACK) $(HOST_PREFIX)$(HOST_ALLOCA) $(HOST_PREFIX)$(HOST_MALLOC) $(HOST_PREFIX)$(HOST_VFPRINTF) $(HOST_PREFIX)$(HOST_DOPRINT)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
|
|
|
|
# How to link with both our special library facilities
|
|
|
|
|
# and the system's installed libraries.
|
1999-01-27 02:43:17 +01:00
|
|
|
|
LIBS = $(OBSTACK) $(USE_ALLOCA) $(MALLOC) $(INTLLIBS) @LIBS@ $(VFPRINTF) $(DOPRINT) $(CLIB) ../libiberty/libiberty.a
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
|
|
|
|
# Likewise, for use in the tools that must run on this machine
|
|
|
|
|
# even if we are cross-building GCC.
|
1992-03-20 23:22:14 +01:00
|
|
|
|
HOST_LIBS = $(USE_HOST_OBSTACK) $(USE_HOST_ALLOCA) $(USE_HOST_MALLOC) \
|
2000-06-21 00:42:18 +02:00
|
|
|
|
$(USE_HOST_VFPRINTF) $(USE_HOST_DOPRINT) $(HOST_CLIB)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
2000-05-03 19:45:26 +02:00
|
|
|
|
HOST_RTL = $(HOST_PREFIX)rtl.o $(HOST_PREFIX)bitmap.o \
|
safe-ctype.h: New file.
include:
* safe-ctype.h: New file.
libiberty:
* safe-ctype.c: New file.
* Makefile.in (CFILES): Add safe-ctype.c.
(REQUIRED_OFILES): Add safe-ctype.o.
* argv.c: Define ISBLANK and use it, not isspace.
* basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
before calling TOLOWER(c)/TOUPPER(c).
gcc:
* Makefile.in (HOST_RTL): Add safe-ctype.o.
(safe-ctype.o): New rule.
* system.h: Include safe-ctype.h, not ctype.h. No need to
wrap ctype macros.
* cpphash.h: Zap IStable and related macros. Define is_* in
terms of safe-ctype.h macros.
* cppinit.c: Delete the IStable and all related code.
* tradcpp.c: Delete is_idchar, is_idstart, is_hor_space, and
is_space arrays. Delete initialize_char_syntax. Change all
references to the above arrays to use macros instead.
* tradcpp.h: Define is_idchar, is_idstart, is_space, and
is_nvspace in terms of safe_ctype.h's macros.
* tradcif.y: is_idchar, is_idstart are macros not arrays.
* config/i370/i370.c, config/winnt/dirent.c,
config/winnt/fixinc-nt.c, config/winnt/ld.c:
Use uppercase ctype macros. If we included ctype.h,
include safe-ctype.h instead.
* fixinc/fixfixes.c: Use uppercase ctype macros. Don't test
ISLOWER(c) before calling TOUPPER(c).
* fixinc/fixincl.c (extract_quoted_files): Simplify out some gunk.
* fixinc/gnu-regex.c: Include safe-ctype.h, not ctype.h. No need to
wrap ctype macros. Don't test ISUPPER(x) before calling TOLOWER(x).
gcc/ch:
* lex.c: Don't bother checking whether ISUPPER(c) before
calling TOLOWER(c). Don't bother checking whether isascii(c)
before testing ISSPACE(c); ISSPACE(c) includes '\n'.
gcc/f:
* Make-lang.in: Link f/fini with safe-ctype.o.
* bad.c: Don't test ISUPPER(c) || ISLOWER(c) before calling TOUPPER(c).
* com.c: Use TOUPPER, not ffesrc_toupper.
* fini.c: Don't test ISALPHA(c) before calling TOUPPER(c)/TOLOWER(c).
* intrin.c: Don't test IN_CTYPE_DOMAIN(c).
* src.c: Delete ffesrc_toupper_ and ffesrc_tolower_ and their
initializing code; use TOUPPER and TOLOWER instead of
ffesrc_toupper and ffesrc_tolower.
* src.h: Don't declare ffesrc_toupper_ or ffesrc_tolower_.
Don't define ffesrc_toupper or ffesrc_tolower.
gcc/java:
* jvgenmain.c: Use ISPRINT not isascii.
From-SVN: r38124
2000-12-08 04:00:26 +01:00
|
|
|
|
$(HOST_PREFIX)ggc-none.o gensupport.o hashtab.o safe-ctype.o
|
2000-05-03 19:45:26 +02:00
|
|
|
|
|
1992-05-06 05:33:12 +02:00
|
|
|
|
HOST_PRINT = $(HOST_PREFIX)print-rtl.o
|
errors.c: New file...
1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
* errors.c: New file; defines functions error, warning, and
fatal, variables have_error and progname.
* errors.h: New file; prototypes and decls for stuff in errors.c.
* Makefile: Add rules to build errors.o and
$(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
genopinit, genrecog, genextract, genpeep, genattr, and
genoutput with errors.o. Add errors.h to deps of genconfig.o,
gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
genpeep.o, genattr.o, and genoutput.o.
* genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
define or prototype fatal. Set progname at beginning of main.
* genoutput.c: Likewise, and don't define or prototype error
either.
From-SVN: r28925
1999-08-27 09:47:17 +02:00
|
|
|
|
HOST_ERRORS = $(HOST_PREFIX)errors.o
|
1992-02-03 23:08:59 +01: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.
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
# -I$(@D) and -I$(srcdir)/$(@D) cause the subdirectory of the file
|
|
|
|
|
# currently being compiled, in both source trees, to be examined as well.
|
|
|
|
|
INCLUDES = -I. -I$(@D) -I$(srcdir) -I$(srcdir)/$(@D) \
|
|
|
|
|
-I$(srcdir)/config -I$(srcdir)/../include
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
|
|
|
|
# Always use -I$(srcdir)/config when compiling.
|
|
|
|
|
.c.o:
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
|
|
|
|
# This tells GNU make version 3 not to export all the variables
|
|
|
|
|
# defined in this file into the environment.
|
|
|
|
|
.NOEXPORT:
|
1997-06-09 21:19:18 +02: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 10:25:33 +02: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 14:31:46 +02:00
|
|
|
|
LANG_MAKEFILES = @all_lang_makefiles@
|
|
|
|
|
LANG_STAGESTUFF = @all_stagestuff@
|
|
|
|
|
LANG_DIFF_EXCLUDES = @all_diff_excludes@
|
|
|
|
|
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 10:25:33 +02: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-27 02:39:48 +02: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 23:39:13 +01:00
|
|
|
|
"AR_FLAGS_FOR_TARGET=$(AR_FLAGS_FOR_TARGET)" \
|
2000-04-01 00:28:33 +02:00
|
|
|
|
"AR_CREATE_FOR_TARGET=$(AR_CREATE_FOR_TARGET)" \
|
|
|
|
|
"AR_EXTRACT_FOR_TARGET=$(AR_EXTRACT_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 10:25:33 +02:00
|
|
|
|
"AR_FOR_TARGET=$(AR_FOR_TARGET)" \
|
|
|
|
|
"BISON=$(BISON)" \
|
|
|
|
|
"BISONFLAGS=$(BISONFLAGS)" \
|
2000-08-30 00:55:39 +02:00
|
|
|
|
"CFLAGS=$(CFLAGS) $(WARN_CFLAGS)" \
|
1996-09-15 02:38:47 +02:00
|
|
|
|
"CLIB=$(CLIB)" \
|
1994-11-29 00:52:57 +01: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 10:25:33 +02:00
|
|
|
|
"LDFLAGS=$(LDFLAGS)" \
|
configure.in: Remove AC_PROG_LEX and AC_PROG_YACC.
* configure.in: Remove AC_PROG_LEX and AC_PROG_YACC. Look for
flex and bison, specifically, first in a unified build and
then installed on the system.
* Makefile.in: Set BISON to @BISON@, FLEX to @FLEX@. Rename
LEXFLAGS to FLEXFLAGS. Adjust ORDINARY_FLAGS_TO_PASS to
match.
(collect2.o, gcc.o, prefix.o, toplev.o, alloca.o, intl.o,
cppdefault.o): Remove pointless sed munging of source file
name.
f:
* Make-lang.in (f/fini.o, f/proj-h.o): Remove pointless sed
munging of source file name.
($(srcdir)/f/intdoc.texi): Break up into several rules each of
which builds just one thing. Don't mess with $(LANGUAGES).
(f/ansify.o, f/intdoc.o): Remove unnecessary rules.
From-SVN: r37371
2000-11-10 18:23:09 +01:00
|
|
|
|
"FLEX=$(FLEX)" \
|
|
|
|
|
"FLEXFLAGS=$(FLEXFLAGS)" \
|
1997-09-11 22:39:08 +02: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 10:25:33 +02:00
|
|
|
|
"MAKEINFO=$(MAKEINFO)" \
|
|
|
|
|
"MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
|
|
|
|
|
"RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
|
|
|
|
|
"RANLIB_TEST_FOR_TARGET=$(RANLIB_TEST_FOR_TARGET)" \
|
|
|
|
|
"SHELL=$(SHELL)" \
|
1997-05-18 14:31:46 +02: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-23 00:55:23 +02:00
|
|
|
|
"exeext=$(exeext)" \
|
1997-12-31 12:48:25 +01: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-23 00:55:23 +02: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 10:25:33 +02:00
|
|
|
|
"exec_prefix=$(exec_prefix)" \
|
|
|
|
|
"prefix=$(prefix)" \
|
1998-01-17 21:29:12 +01:00
|
|
|
|
"local_prefix=$(local_prefix)" \
|
1999-03-02 10:25:31 +01: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 10:25:33 +02:00
|
|
|
|
"tooldir=$(tooldir)" \
|
1999-01-22 07:46:43 +01: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 10:25:33 +02:00
|
|
|
|
"bindir=$(bindir)" \
|
1999-01-27 02:43:17 +01:00
|
|
|
|
"libsubdir=$(libsubdir)" \
|
|
|
|
|
"datadir=$(datadir)" \
|
|
|
|
|
"localedir=$(localedir)"
|
1999-04-27 02:39:48 +02:00
|
|
|
|
FLAGS_TO_PASS = $(ORDINARY_FLAGS_TO_PASS) "CC=@cc_set_by_configure@"
|
1999-01-27 02:43:17 +01: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) \
|
2000-05-04 00:45:31 +02:00
|
|
|
|
"CC=`echo @quoted_cc_set_by_configure@ | $(PREPEND_DOTDOT_TO_RELATIVE_PATHS)`"
|
1997-06-09 21:19:18 +02:00
|
|
|
|
#
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Lists of files for various purposes.
|
|
|
|
|
|
2000-11-25 01:33:04 +01:00
|
|
|
|
# Target specific, C specific object file
|
|
|
|
|
C_TARGET_OBJS=@c_target_objs@
|
|
|
|
|
|
|
|
|
|
# Target specific, C++ specific object file
|
|
|
|
|
CXX_TARGET_OBJS=@cxx_target_objs@
|
|
|
|
|
|
1997-08-02 22:59:17 +02:00
|
|
|
|
# Language-specific object files for C and Objective C.
|
2000-07-12 16:12:51 +02:00
|
|
|
|
C_AND_OBJC_OBJS = c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o \
|
2001-01-14 00:30:02 +01:00
|
|
|
|
c-convert.o c-aux-info.o c-common.o c-format.o c-semantics.o c-dump.o \
|
|
|
|
|
libcpp.a $(C_TARGET_OBJS)
|
1997-08-02 22:59:17 +02:00
|
|
|
|
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Language-specific object files for C.
|
1997-08-02 22:59:17 +02:00
|
|
|
|
C_OBJS = c-parse.o c-lang.o $(C_AND_OBJC_OBJS)
|
1997-07-30 00:07:34 +02:00
|
|
|
|
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Language-independent object files.
|
[multiple changes]
2000-08-04 Andreas Schwab <schwab@suse.de>
* cppmain.c (cb_def_pragma): Skip the first two tokens from the
token list, which are always `#' and `pragma'.
2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
* tree.c (tree_expr_nonnegative_p): Move to...
* fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
(rtl_expr_nonnegative_p): New.
* tree.h: Add prototype for rtl_expr_nonnegative_p.
* real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
CONST_DOUBLE_CHAIN: Move to...
* rtl.h: ...here. Use XCINT/XCEXP.
* Makefile.in: Remove toplev.o from OBJS. Add rule to make
libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
to VOL_FILES.
* objc/Make-lang.in (cc1obj): Link with $(BACKEND).
ch:
* Make-lang.in (cc1chill): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in (cc1chill): Link with $(BACKEND). Define BACKEND,
eliminate C_OBJS (was commented out), OBJS, OBJDEPS.
cp:
* Make-lang.in (cc1plus): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add C_OBJS, BACKEND; delete OBJS, OBJDEPS.
(cc1plus): Link with $(BACKEND) and $(C_OBJS).
f:
* Make-lang.in (f771): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add BACKEND; delete OBJS, OBJDEPS.
(f771): Link with $(BACKEND).
java:
* Make-lang.in (jc1, jv-scan): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add BACKEND; delete OBJS, OBJDEPS.
(jc1): Link with $(BACKEND).
(jv-scan): Depend on version.o, not all of $(OBJS) or $(BACKEND).
From-SVN: r35501
2000-08-05 02:50:02 +02:00
|
|
|
|
|
|
|
|
|
OBJS = diagnostic.o version.o tree.o print-tree.o stor-layout.o fold-const.o \
|
2000-06-05 08:37:17 +02:00
|
|
|
|
function.o stmt.o except.o expr.o calls.o expmed.o explow.o optabs.o real.o \
|
|
|
|
|
builtins.o intl.o varasm.o rtl.o print-rtl.o rtlanal.o emit-rtl.o genrtl.o \
|
|
|
|
|
dbxout.o sdbout.o dwarfout.o dwarf2out.o xcoffout.o bitmap.o alias.o gcse.o \
|
Makefile.in (OBJS): Add doloop.o.
* Makefile.in (OBJS): Add doloop.o.
* doloop.c: New file.
* final.c (insn_current_reference_address): Return 0 before final.
* flags.h (flag_branch_on_count_reg): Fix typos in commentary.
* jump.c (any_uncondjump_p): Likewise.
* loop.c (indirect_jump_in_function): Make static.
(strength_reduce): Call doloop_optimize.
(insert_bct, instrument_loop_bct): Remove.
* loop.h (doloop_optimize): Prototype.
* recog.c (split_all_insns): Split all INSN_P.
* toplev.c (flag_branch_on_count_reg): Default on.
* config/c4x/c4x.c (c4x_optimization_options): Don't set
flag_branch_on_count_reg.
* config/i386/i386.c (override_options): Likewise.
* config/rs6000/rs6000.c (optimization_options): Likewise.
* config/i386/i386.md (decrement_and_branch_on_count): Remove.
(doloop_end): New.
(dbra_ge): Remove, as well as all it's splitters.
* config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
(doloop_end): New.
* config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
(ia64_register_move_cost): Declare.
* config/ia64/ia64.c (ar_lc_reg_operand): New.
(struct ia64_frame_info): Add ar_size.
(ia64_compute_frame_size): Set it.
(save_restore_insns): Save and restore ar.lc.
(ia64_register_move_cost): New, moved from header file. Handle
application registers.
(REG_AR_PFS, REG_AR_EC): Remove. Replace with AR_*_REGNUM numbers.
(emit_insn_group_barriers): Special case doloop_end_internal.
(ia64_epilogue_uses): Mark ar.lc live at end.
* config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
(AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
(FIRST_PSEUDO_REGISTER): Make room.
(AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
(FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
(REG_ALLOC_ORDER): Update.
(HARD_REGNO_MODE_OK): Update.
(REGISTER_NAMES): Update.
(enum reg_class): Add AR_M_REGS and AR_I_REGS.
(REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
(REGNO_REG_CLASS): Update.
(LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
(REGISTER_MOVE_COST): Move out of line.
(PREDICATE_CODES): Update.
* config/ia64/ia64.md (movdi patterns): Handle ar register classes.
(addsi3_plus1_alt, adddi3_plus1_alt): New.
(shladd_elim splitter): Allow constants in the predicate.
(doloop_end, doloop_end_internal): New.
From-SVN: r35358
2000-07-31 01:58:03 +02:00
|
|
|
|
integrate.o jump.o cse.o loop.o doloop.o unroll.o flow.o combine.o varray.o \
|
1999-01-27 02:43:17 +01:00
|
|
|
|
regclass.o regmove.o local-alloc.o global.o reload.o reload1.o caller-save.o \
|
2000-06-05 08:37:17 +02:00
|
|
|
|
insn-peep.o reorg.o haifa-sched.o final.o recog.o reg-stack.o regrename.o \
|
|
|
|
|
insn-opinit.o insn-recog.o insn-extract.o insn-output.o insn-emit.o lcm.o \
|
|
|
|
|
profile.o insn-attrtab.o $(out_object_file) $(EXTRA_OBJS) convert.o \
|
|
|
|
|
mbchar.o splay-tree.o graph.o sbitmap.o resource.o hash.o predict.o \
|
stringpool.c: New file.
* stringpool.c: New file.
* ggc-common.c (ggc_mark_string_ptr, ggc_add_string_root): Delete.
(ggc_alloc_string): Now in stringpool.o.
* ggc-page.c, ggc-simple.c: Do not define or allocate empty_string.
* ggc.h: Delete prototype of ggc_add_string_root. #define
ggc_add_string_root and ggc_mark_string to nothing. Prototype
init_stringpool and stringpool_statistics.
(ggc_alloc_string): Returns a const char *.
* tree.c (hash_table, do_identifier_warnings): Delete.
(init_obstacks): Don't initialize the identifier hash table.
(get_identifier, maybe_get_identifier, start_identifier_warnings,
set_identifier_size): Now in stringpool.c.
* tree.h (struct tree_string): Constify pointer field.
(approx_sqrt): Prototype.
* Makefile.in (stringpool.o): Add rule, mention in OBJS.
* toplev.c (approx_sqrt): New function.
(compile_file): Call stringpool_statistics if mem_report is on.
(main): Call init_stringpool.
* builtins.c (c_strlen), c-decl.c (finish_decl), c-lex.c
(process_directive), c-typeck.c (constructor_asmspec, struct
initializer_stack, start_init), except.c (create_rethrow_ref),
stmt.c (digit_strings), toplev.c (decode_f_option), tree.c
(built_in_filename), varasm,c (in_named_name,
assemble_static_space, struct constant_descriptor, struct
deferred_string, struct pool_constant, force_const_mem),
i386.c (pic_label_name, global_offset_table_name), rs6000.c
(rs6000_emit_prologue, rs6000_emit_epilogue) : Constify a char *.
* c-common.c (combine_strings): Combine strings in scratch
buffer, then pass to build_string.
* optabs.c (init_libfuncs), profile.c (init_edge_profiler,
output_func_start_profiler), stmt.c (init_stmt), alpha.c
(alpha_need_linkage), arm.c (arm_encode_call_attribute),
i386.c (load_pic_register), ia64.c (ia64_encode_section_info),
rs6000.c (rs6000_encode_section_info): Create string in
scratch buffer, then pass to ggc_alloc_string.
* stmt.c (expand_asm_operands): If we must adjust the
constraint strings, do so by creating a new one, not by
modifying the old one in place. Constify some char *s.
* config/pa/pa.c (hppa_encode_label): Drop unnecessary second
argument. Create string in scratch buffer, then pass to
ggc_alloc_string.
* config/pa/pa-protos.h: Update prototype.
* config/pa/elf.h, config/pa/pa.h, config/pa/som.h:
hppa_encode_label takes only one argument.
* c-parse.in (if_prefix): Find the filename and line number at
$-2 and $-1 respectively.
* diagnostic.c (error_recursion): Add missing newline, use
fputs, translate string.
cp:
* lex.c (struct impl_files, internal_filename): Constify a char *.
java:
* jcf-parse.c (get_constant), parse.y (do_merge_string_cste):
Create string in scratch buffer, then pass to build_string.
From-SVN: r37514
2000-11-17 07:05:31 +01:00
|
|
|
|
lists.o ggc-common.o $(GGC) stringpool.o simplify-rtx.o ssa.o bb-reorder.o \
|
2000-11-22 02:22:02 +01:00
|
|
|
|
sibcall.o conflict.o timevar.o ifcvt.o dominance.o dependence.o dce.o \
|
2000-12-20 18:19:39 +01:00
|
|
|
|
sched-vis.o sched-deps.o sched-rgn.o sched-ebb.o hashtab.o
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
[multiple changes]
2000-08-04 Andreas Schwab <schwab@suse.de>
* cppmain.c (cb_def_pragma): Skip the first two tokens from the
token list, which are always `#' and `pragma'.
2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
* tree.c (tree_expr_nonnegative_p): Move to...
* fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
(rtl_expr_nonnegative_p): New.
* tree.h: Add prototype for rtl_expr_nonnegative_p.
* real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
CONST_DOUBLE_CHAIN: Move to...
* rtl.h: ...here. Use XCINT/XCEXP.
* Makefile.in: Remove toplev.o from OBJS. Add rule to make
libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
to VOL_FILES.
* objc/Make-lang.in (cc1obj): Link with $(BACKEND).
ch:
* Make-lang.in (cc1chill): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in (cc1chill): Link with $(BACKEND). Define BACKEND,
eliminate C_OBJS (was commented out), OBJS, OBJDEPS.
cp:
* Make-lang.in (cc1plus): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add C_OBJS, BACKEND; delete OBJS, OBJDEPS.
(cc1plus): Link with $(BACKEND) and $(C_OBJS).
f:
* Make-lang.in (f771): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add BACKEND; delete OBJS, OBJDEPS.
(f771): Link with $(BACKEND).
java:
* Make-lang.in (jc1, jv-scan): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add BACKEND; delete OBJS, OBJDEPS.
(jc1): Link with $(BACKEND).
(jv-scan): Depend on version.o, not all of $(OBJS) or $(BACKEND).
From-SVN: r35501
2000-08-05 02:50:02 +02:00
|
|
|
|
BACKEND = toplev.o libbackend.a
|
|
|
|
|
|
1992-02-03 23:08:59 +01: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.
|
2000-12-09 17:27:51 +01:00
|
|
|
|
GEN= genemit$(build_exeext) genoutput$(build_exeext) genrecog$(build_exeext) \
|
|
|
|
|
genextract$(build_exeext) genflags$(build_exeext) gencodes$(build_exeext) \
|
|
|
|
|
genconfig$(build_exeext) genpeep$(build_exeext) gengenrtl$(build_exeext) \
|
|
|
|
|
gencheck$(build_exeext)
|
1992-02-03 23:08:59 +01: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-23 00:55:23 +02:00
|
|
|
|
STAGESTUFF = *$(objext) insn-flags.h insn-config.h insn-codes.h \
|
1992-02-03 23:08:59 +01:00
|
|
|
|
insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \
|
1999-01-27 02:43:17 +01:00
|
|
|
|
insn-attr.h insn-attrtab.c insn-opinit.c tree-check.h \
|
2000-05-19 06:13:35 +02:00
|
|
|
|
s-flags s-config s-codes s-mlib s-under s-genrtl \
|
1998-06-29 23:40:49 +02:00
|
|
|
|
s-output s-recog s-emit s-extract s-peep s-check \
|
2000-04-07 16:57:58 +02:00
|
|
|
|
s-attr s-attrtab s-opinit s-crt0 \
|
1997-12-31 12:48:25 +01: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 08:42:20 +01:00
|
|
|
|
genattr$(build_exeext) genopinit$(build_exeext) gengenrtl$(build_exeext) \
|
2000-05-07 00:34:14 +02:00
|
|
|
|
gencheck$(build_exeext) genrtl.c genrtl.h \
|
2000-07-31 20:29:58 +02:00
|
|
|
|
xgcc$(exeext) cpp$(exeext) cc1$(exeext) cpp0$(exeext) $(EXTRA_PASSES) \
|
cccp.c, [...]: Removed.
* cccp.c, cexp.y, cexp.c, cccp.1: Removed.
* configure.in: Delete --disable-cpplib option and all
references to cpp_main.
* configure: Regenerate.
* Makefile.in: Remove all references to CCCP, CCCP_OBJS,
@cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
cccp.o, cccp, or cppmain. Link cppmain.o straight to
cpp$(exeext). Add --no-headers to makeinfo command line when
generating INSTALL. Install and uninstall cpp.1 manpage, not
cccp.1.
* install.texi: Delete all references to cexp.y/cexp.c.
Delete ancient instructions for compiling GCC on 3b1.
* INSTALL: Regenerate.
* cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c,
ch/decl.c, ch/lex.c, cp/lex.c, f/lex.c, mips/t-ecoff,
mips/t-elf, mips/t-r3900: Remove references to cccp.c.
* convex.h, fx80.h, m68k.h, pdp11.h, contrib/gcc_update,
f/g77install.texi: Remove references to cexp.c/cexp.y.
* xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
which is no longer tested anywhere.
* po/POTFILES.in: Remove cccp.c and cexp.c. Comment out
alpha/vms-tramp.asm.
From-SVN: r33238
2000-04-19 00:34:13 +02:00
|
|
|
|
$(EXTRA_PARTS) $(EXTRA_PROGRAMS) gcc-cross$(exeext) cc1obj$(exeext) \
|
|
|
|
|
enquire$(exeext) protoize$(exeext) unprotoize$(exeext) \
|
2000-07-31 20:29:58 +02:00
|
|
|
|
specs collect2$(exeext) $(USE_COLLECT2) underscore.c tradcpp0$(exeext) \
|
2000-09-04 18:04:48 +02:00
|
|
|
|
gcov$(exeext) *.[0-9][0-9].* *.[si] libcpp.a libbackend.a libgcc.mk \
|
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 10:25:33 +02:00
|
|
|
|
$(LANG_STAGESTUFF)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
|
|
|
|
# Members of libgcc1.a.
|
|
|
|
|
LIB1FUNCS = _mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 \
|
1995-01-28 02:57:10 +01:00
|
|
|
|
_lshrsi3 _ashrsi3 _ashlsi3 \
|
1992-02-03 23:08:59 +01: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 \
|
2000-10-06 07:29:56 +02:00
|
|
|
|
_lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _clz \
|
1992-07-10 00:30:39 +02:00
|
|
|
|
_udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf \
|
1992-02-03 23:08:59 +01:00
|
|
|
|
_fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi \
|
1993-04-04 09:15:20 +02:00
|
|
|
|
_fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi \
|
1993-10-08 00:37:16 +01:00
|
|
|
|
_fixtfdi _fixunstfdi _floatditf \
|
1997-11-21 00:17:48 +01:00
|
|
|
|
__gcc_bcmp _varargs __dummy _eprintf \
|
2000-11-10 17:38:26 +01:00
|
|
|
|
_bb _clear_cache _trampoline __main _exit \
|
2000-10-18 23:33:41 +02:00
|
|
|
|
_absvsi2 _absvdi2 _addvsi3 _addvdi3 _subvsi3 _subvdi3 \
|
|
|
|
|
_mulvsi3 _mulvdi3 _negvsi2 _negvdi2 \
|
2000-10-09 23:13:04 +02:00
|
|
|
|
_ctors
|
1998-06-09 12:34:59 +02:00
|
|
|
|
|
|
|
|
|
LIB2FUNCS_EH = _eh
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1997-12-21 14:45:20 +01: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 \
|
2000-01-24 21:10:04 +01:00
|
|
|
|
_lt_sf _le_sf _unord_sf _si_to_sf _sf_to_si _negate_sf _make_sf \
|
2000-09-08 22:16:40 +02:00
|
|
|
|
_sf_to_df _thenan_sf _sf_to_usi _usi_to_sf
|
1997-12-21 14:45:20 +01:00
|
|
|
|
|
|
|
|
|
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 \
|
2000-01-24 21:10:04 +01:00
|
|
|
|
_lt_df _le_df _unord_df _si_to_df _df_to_si _negate_df _make_df \
|
2000-09-08 22:16:40 +02:00
|
|
|
|
_df_to_sf _thenan_df _df_to_usi _usi_to_df
|
1997-12-21 14:45:20 +01:00
|
|
|
|
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
# GCONFIG_H lists the config files that the generator files depend on, while
|
|
|
|
|
# CONFIG_H lists the the ones ordinary gcc files depend on, which includes
|
|
|
|
|
# a file generated by gencodes.
|
|
|
|
|
# The files that "belong" in GCONFIG_H are deliberately omitted
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# 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.
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
# GCONFIG_H = $(host_xm_file) $(tm_file)
|
|
|
|
|
GCONFIG_H =
|
|
|
|
|
CONFIG_H = $(GCONFIG_H) insn-codes.h
|
1999-09-22 00:31:29 +02:00
|
|
|
|
MACHMODE_H = machmode.h machmode.def
|
|
|
|
|
RTL_BASE_H = rtl.h rtl.def $(MACHMODE_H)
|
1998-01-08 22:17:05 +01:00
|
|
|
|
RTL_H = $(RTL_BASE_H) genrtl.h
|
2000-03-23 01:20:37 +01:00
|
|
|
|
TREE_H = tree.h real.h tree.def $(MACHMODE_H) tree-check.h version.h builtins.def
|
1999-12-05 01:20:43 +01:00
|
|
|
|
BASIC_BLOCK_H = basic-block.h bitmap.h sbitmap.h varray.h
|
1998-12-08 14:34:37 +01: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 14:00:46 +01:00
|
|
|
|
RECOG_H = recog.h
|
1998-06-27 06:42:25 +02:00
|
|
|
|
EXPR_H = expr.h insn-codes.h
|
1999-09-22 00:31:29 +02:00
|
|
|
|
REGS_H = regs.h varray.h $(MACHMODE_H)
|
1999-12-23 03:00:31 +01:00
|
|
|
|
INTEGRATE_H = integrate.h varray.h
|
2000-05-20 00:27:28 +02:00
|
|
|
|
LOOP_H = loop.h varray.h bitmap.h
|
configure (gcc_version): When setting, narrow search to lines containing `version_string'.
* configure (gcc_version): When setting, narrow search to
lines containing `version_string'.
gcc:
* version.c: Include gansidecl.h and version.h.
* version.h: Wrap entire file in macro __GCC_VERSION_H__.
* configure.in (gcc_version): When setting, narrow search to
lines containing `version_string'.
* Makefile.in (mainversion): Likewise.
(GCC_H): New variable.
(gcc.h): Delete target.
(gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
(version.o): Depend on version.h.
(dbxout.o): Don't depend on gcc.h.
gcc/cp:
* Make-lang.in (g++spec.o): Depend on $(GCC_H), not gcc.h.
gcc/f:
* Make-lang.in (g77spec.o): Depend on $(GCC_H), not gcc.h.
gcc/java:
* Make-lang.in (jvspec.o): Depend on $(GCC_H), not gcc.h.
libf2c:
* configure.in (gcc_version): When setting, narrow search to
lines containing `version_string'.
From-SVN: r32009
2000-02-16 17:22:47 +01:00
|
|
|
|
GCC_H = gcc.h version.h
|
2000-04-06 02:51:25 +02:00
|
|
|
|
GGC_H = ggc.h varray.h
|
2000-04-30 12:31:01 +02:00
|
|
|
|
TIMEVAR_H = timevar.h timevar.def
|
Makefile.in (INSN_ATTR_H): New macro.
* Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
on insn-attr.h with it.
* genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
* insn-addr.h: New header.
(insn_addresses_): Renamed from insn_addresses.
(INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
INSN_ADDRESSES_NEW): New macros.
* genattrtab.c (write_test_expr): Use new macros.
* final.c (insn_addresses, init_insn_lengths): Likewise.
(align_fuzz, shorten_branches): Likewise.
(final): Likewise. Do not reject new insns if their addresses
have been added to INSN_ADDRESSES.
* config/arm/arm.c, config/avr/avr.c: Use new macros.
* config/h8300/h8300.c, config/i370/i370.c: Likewise.
* config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
* config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
* config/sh/sh.c: Likewise.
(output_branchy_insn): Use INSN_ADDRESSES_NEW.
From-SVN: r35307
2000-07-28 04:17:26 +02:00
|
|
|
|
INSN_ATTR_H = insn-attr.h $(srcdir)/insn-addr.h $(srcdir)/varray.h
|
2000-09-17 09:38:23 +02:00
|
|
|
|
C_COMMON_H = c-common.h $(SPLAY_TREE_H)
|
|
|
|
|
C_TREE_H = c-tree.h $(C_COMMON_H)
|
|
|
|
|
|
1997-06-09 21:19:18 +02: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 10:25:33 +02: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,
|
2000-11-05 11:35:33 +01:00
|
|
|
|
# uninstall,
|
1995-04-26 00:07:11 +02: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 10:25:33 +02: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 14:31:46 +02: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 10:25:33 +02:00
|
|
|
|
|
|
|
|
|
# sed inserts language fragments after the following line.
|
|
|
|
|
####language fragments
|
1997-05-18 14:31:46 +02: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 10:25:33 +02:00
|
|
|
|
|
|
|
|
|
# End of language makefile fragments.
|
1997-06-09 21:19:18 +02:00
|
|
|
|
#
|
1998-05-06 21:03:14 +02: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 23:08:59 +01:00
|
|
|
|
|
1997-07-21 20:05:29 +02:00
|
|
|
|
Makefile: $(srcdir)/Makefile.in config.status $(srcdir)/version.c \
|
1997-07-22 18:25:19 +02:00
|
|
|
|
$(xmake_file) $(tmake_file) $(LANG_MAKEFILES)
|
|
|
|
|
$(SHELL) $(srcdir)/configure.frag $(srcdir) "$(SUBDIRS)" \
|
|
|
|
|
"$(xmake_file)" "$(tmake_file)"
|
1995-02-21 23:54:50 +01:00
|
|
|
|
cp config.status config.run
|
1998-11-26 02:48:34 +01:00
|
|
|
|
LANGUAGES="$(CONFIG_LANGUAGES)" $(SHELL) config.run
|
1995-02-25 16:18:34 +01:00
|
|
|
|
rm -f config.run
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1997-06-25 21:08:47 +02:00
|
|
|
|
$(srcdir)/configure: $(srcdir)/configure.in
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
(cd $(srcdir) && autoconf)
|
1997-05-18 14:31:46 +02:00
|
|
|
|
|
2000-04-05 00:54:44 +02:00
|
|
|
|
gccbug: $(srcdir)/gccbug.in
|
|
|
|
|
CONFIG_FILES=gccbug CONFIG_HEADERS= ./config.status
|
|
|
|
|
|
2000-05-03 20:21:49 +02:00
|
|
|
|
mklibgcc: $(srcdir)/mklibgcc.in
|
|
|
|
|
CONFIG_FILES=mklibgcc CONFIG_HEADERS= ./config.status
|
|
|
|
|
|
1997-07-19 09:03:46 +02:00
|
|
|
|
# cstamp-h.in controls rebuilding of config.in.
|
1997-07-21 20:05:29 +02: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 09:03:46 +02: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 20:55:54 +02: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 09:03:46 +02: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
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
(cd $(srcdir) && autoheader)
|
1998-05-29 02:00:05 +02:00
|
|
|
|
@rm -f $(srcdir)/cstamp-h.in
|
1997-07-21 20:55:54 +02:00
|
|
|
|
echo timestamp > $(srcdir)/cstamp-h.in
|
1998-04-14 10:32:34 +02:00
|
|
|
|
auto-host.h: cstamp-h ; @true
|
1997-07-19 09:03:46 +02:00
|
|
|
|
cstamp-h: config.in config.status
|
1998-11-26 02:48:34 +01:00
|
|
|
|
CONFIG_HEADERS=auto-host.h:config.in LANGUAGES="$(CONFIG_LANGUAGES)" $(SHELL) config.status
|
1997-07-19 04:49:31 +02:00
|
|
|
|
|
1997-07-21 20:05:29 +02: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.
|
2000-11-17 11:42:45 +01:00
|
|
|
|
config.status: $(srcdir)/configure $(srcdir)/config.gcc version.c
|
1997-07-21 20:05:29 +02:00
|
|
|
|
@if [ ! -f config.status ] ; then \
|
2000-11-05 11:35:33 +01:00
|
|
|
|
echo You must configure gcc. Look at http://gcc.gnu.org/install/ for details.; \
|
1997-07-21 20:05:29 +02:00
|
|
|
|
false; \
|
|
|
|
|
else \
|
1998-11-26 02:48:34 +01:00
|
|
|
|
LANGUAGES="$(CONFIG_LANGUAGES)" $(SHELL) config.status --recheck; \
|
1997-07-21 20:05:29 +02:00
|
|
|
|
fi
|
|
|
|
|
|
1999-02-22 09:49:36 +01:00
|
|
|
|
all.internal: start.encap rest.encap doc
|
1992-02-03 23:08:59 +01: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 10:25:33 +02:00
|
|
|
|
# Note that we can compile enquire using the cross-compiler just built,
|
1993-02-27 04:35:40 +01:00
|
|
|
|
# although we can't run it on this machine.
|
2000-07-31 20:29:58 +02:00
|
|
|
|
all.cross: native gcc-cross cpp$(exeext) specs \
|
1999-10-14 13:11:59 +02:00
|
|
|
|
$(LIBGCC) $(LIBGCC1_TEST) $(EXTRA_PARTS) lang.all.cross doc
|
1992-10-18 06:30:48 +01:00
|
|
|
|
# This is what to compile if making gcc with a cross-compiler.
|
2000-07-31 20:29:58 +02:00
|
|
|
|
all.build: native xgcc$(exeext) cpp$(exeext) $(EXTRA_PARTS) lang.all.build
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# This is what must be made before installing GCC and converting libraries.
|
2000-07-31 20:29:58 +02:00
|
|
|
|
start.encap: native xgcc$(exeext) cpp$(exeext) specs \
|
1999-03-26 23:55:35 +01:00
|
|
|
|
xlimits.h lang.start.encap
|
1994-04-01 08:19:45 +02:00
|
|
|
|
# These can't be made until after GCC can run.
|
2000-02-27 01:10:15 +01:00
|
|
|
|
rest.encap: $(STMP_FIXPROTO) $(LIBGCC) $(EXTRA_PARTS) lang.rest.encap
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# This is what is made with the host's compiler
|
|
|
|
|
# whether making a cross compiler or not.
|
2000-07-31 20:29:58 +02:00
|
|
|
|
native: config.status auto-host.h intl.all $(LANGUAGES) \
|
1997-07-25 21:26:32 +02:00
|
|
|
|
$(EXTRA_PASSES) $(EXTRA_PROGRAMS) $(USE_COLLECT2)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
|
|
|
|
# Define the names for selecting languages in LANGUAGES.
|
2000-07-31 20:29:58 +02:00
|
|
|
|
C c: cc1$(exeext) tradcpp0$(exeext)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
PROTO: proto
|
|
|
|
|
|
1994-12-19 23:49:45 +01: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-22 02:41:52 +02:00
|
|
|
|
.PHONY: C c PROTO proto
|
1994-12-19 23:49:45 +01:00
|
|
|
|
|
1992-05-28 00:11:24 +02: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 20:15:49 +01:00
|
|
|
|
rest.cross: $(LIBGCC) specs
|
1992-05-28 00:11:24 +02:00
|
|
|
|
|
1995-03-16 00:44:51 +01:00
|
|
|
|
# Verify that it works to compile and link libgcc1-test.
|
1992-05-21 19:39:30 +02:00
|
|
|
|
# If it does, then there are sufficient replacements for libgcc1.a.
|
1995-03-16 00:44:51 +01:00
|
|
|
|
libgcc1-test: libgcc1-test.o native $(GCC_PARTS)
|
1995-05-10 20:22:00 +02:00
|
|
|
|
@echo "Testing libgcc1. Ignore linker warning messages."
|
1995-03-16 00:44:51 +01:00
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) libgcc1-test.o -o libgcc1-test \
|
1996-03-25 23:57:48 +01:00
|
|
|
|
-nostartfiles -nostdlib `$(GCC_FOR_TARGET) --print-libgcc-file-name`
|
1998-03-22 00:47:27 +01:00
|
|
|
|
libgcc1-test.o: libgcc1-test.c native xgcc$(exeext)
|
1995-03-16 00:44:51 +01:00
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) -c $(srcdir)/libgcc1-test.c
|
1992-05-21 19:39:30 +02:00
|
|
|
|
|
1992-05-28 00:11:24 +02:00
|
|
|
|
# Recompile all the language-independent object files.
|
|
|
|
|
# This is used only if the user explicitly asks for it.
|
[multiple changes]
2000-08-04 Andreas Schwab <schwab@suse.de>
* cppmain.c (cb_def_pragma): Skip the first two tokens from the
token list, which are always `#' and `pragma'.
2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
* tree.c (tree_expr_nonnegative_p): Move to...
* fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
(rtl_expr_nonnegative_p): New.
* tree.h: Add prototype for rtl_expr_nonnegative_p.
* real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
CONST_DOUBLE_CHAIN: Move to...
* rtl.h: ...here. Use XCINT/XCEXP.
* Makefile.in: Remove toplev.o from OBJS. Add rule to make
libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
to VOL_FILES.
* objc/Make-lang.in (cc1obj): Link with $(BACKEND).
ch:
* Make-lang.in (cc1chill): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in (cc1chill): Link with $(BACKEND). Define BACKEND,
eliminate C_OBJS (was commented out), OBJS, OBJDEPS.
cp:
* Make-lang.in (cc1plus): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add C_OBJS, BACKEND; delete OBJS, OBJDEPS.
(cc1plus): Link with $(BACKEND) and $(C_OBJS).
f:
* Make-lang.in (f771): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add BACKEND; delete OBJS, OBJDEPS.
(f771): Link with $(BACKEND).
java:
* Make-lang.in (jc1, jv-scan): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add BACKEND; delete OBJS, OBJDEPS.
(jc1): Link with $(BACKEND).
(jv-scan): Depend on version.o, not all of $(OBJS) or $(BACKEND).
From-SVN: r35501
2000-08-05 02:50:02 +02:00
|
|
|
|
compilations: $(BACKEND)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
[multiple changes]
2000-08-04 Andreas Schwab <schwab@suse.de>
* cppmain.c (cb_def_pragma): Skip the first two tokens from the
token list, which are always `#' and `pragma'.
2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
* tree.c (tree_expr_nonnegative_p): Move to...
* fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
(rtl_expr_nonnegative_p): New.
* tree.h: Add prototype for rtl_expr_nonnegative_p.
* real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
CONST_DOUBLE_CHAIN: Move to...
* rtl.h: ...here. Use XCINT/XCEXP.
* Makefile.in: Remove toplev.o from OBJS. Add rule to make
libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
to VOL_FILES.
* objc/Make-lang.in (cc1obj): Link with $(BACKEND).
ch:
* Make-lang.in (cc1chill): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in (cc1chill): Link with $(BACKEND). Define BACKEND,
eliminate C_OBJS (was commented out), OBJS, OBJDEPS.
cp:
* Make-lang.in (cc1plus): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add C_OBJS, BACKEND; delete OBJS, OBJDEPS.
(cc1plus): Link with $(BACKEND) and $(C_OBJS).
f:
* Make-lang.in (f771): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add BACKEND; delete OBJS, OBJDEPS.
(f771): Link with $(BACKEND).
java:
* Make-lang.in (jc1, jv-scan): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add BACKEND; delete OBJS, OBJDEPS.
(jc1): Link with $(BACKEND).
(jv-scan): Depend on version.o, not all of $(OBJS) or $(BACKEND).
From-SVN: r35501
2000-08-05 02:50:02 +02:00
|
|
|
|
# Like libcpp.a, this archive is strictly for the host.
|
|
|
|
|
libbackend.a: $(OBJS)
|
|
|
|
|
-rm -rf libbackend.a
|
|
|
|
|
$(AR) $(AR_FLAGS) libbackend.a $(OBJS)
|
|
|
|
|
if $(RANLIB_TEST) ; then $(RANLIB) libbackend.a ; else true ; fi
|
1994-04-29 07:01:27 +02:00
|
|
|
|
|
1992-06-24 04:36:02 +02: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-26 00:36:47 +01:00
|
|
|
|
xgcc$(exeext): gcc.o gccspec.o version.o intl.o prefix.o \
|
1999-02-08 15:17:04 +01:00
|
|
|
|
version.o $(LIBDEPS) $(EXTRA_GCC_OBJS)
|
1999-03-26 00:36:47 +01:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gcc.o gccspec.o intl.o \
|
|
|
|
|
prefix.o version.o $(EXTRA_GCC_OBJS) $(LIBS)
|
1992-05-28 00:11:24 +02:00
|
|
|
|
|
2000-07-31 20:29:58 +02:00
|
|
|
|
# cpp is to cpp0 as gcc is to cc1.
|
1999-03-26 23:55:35 +01:00
|
|
|
|
# The only difference from xgcc is that it's linked with cppspec.o
|
|
|
|
|
# instead of gccspec.o.
|
2000-07-31 20:29:58 +02:00
|
|
|
|
cpp$(exeext): gcc.o cppspec.o version.o intl.o prefix.o \
|
1999-03-26 23:55:35 +01:00
|
|
|
|
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-28 00:11:24 +02:00
|
|
|
|
# Dump a specs file to make -B./ read these specs over installed ones.
|
1998-03-22 00:47:27 +01:00
|
|
|
|
specs: xgcc$(exeext)
|
1994-11-16 01:17:27 +01:00
|
|
|
|
$(GCC_FOR_TARGET) -dumpspecs > tmp-specs
|
|
|
|
|
mv tmp-specs specs
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1992-06-24 04:36:02 +02:00
|
|
|
|
# We do want to create an executable named `xgcc', so we can use it to
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# compile libgcc2.a.
|
|
|
|
|
# Also create gcc-cross, so that install-common will install properly.
|
1998-03-22 00:47:27 +01: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-23 00:55:23 +02:00
|
|
|
|
cp xgcc$(exeext) gcc-cross$(exeext)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
cc1$(exeext): $(C_OBJS) $(BACKEND) $(LIBDEPS)
|
[multiple changes]
2000-08-04 Andreas Schwab <schwab@suse.de>
* cppmain.c (cb_def_pragma): Skip the first two tokens from the
token list, which are always `#' and `pragma'.
2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
* tree.c (tree_expr_nonnegative_p): Move to...
* fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
(rtl_expr_nonnegative_p): New.
* tree.h: Add prototype for rtl_expr_nonnegative_p.
* real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
CONST_DOUBLE_CHAIN: Move to...
* rtl.h: ...here. Use XCINT/XCEXP.
* Makefile.in: Remove toplev.o from OBJS. Add rule to make
libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
to VOL_FILES.
* objc/Make-lang.in (cc1obj): Link with $(BACKEND).
ch:
* Make-lang.in (cc1chill): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in (cc1chill): Link with $(BACKEND). Define BACKEND,
eliminate C_OBJS (was commented out), OBJS, OBJDEPS.
cp:
* Make-lang.in (cc1plus): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add C_OBJS, BACKEND; delete OBJS, OBJDEPS.
(cc1plus): Link with $(BACKEND) and $(C_OBJS).
f:
* Make-lang.in (f771): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add BACKEND; delete OBJS, OBJDEPS.
(f771): Link with $(BACKEND).
java:
* Make-lang.in (jc1, jv-scan): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add BACKEND; delete OBJS, OBJDEPS.
(jc1): Link with $(BACKEND).
(jv-scan): Depend on version.o, not all of $(OBJS) or $(BACKEND).
From-SVN: r35501
2000-08-05 02:50:02 +02:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cc1$(exeext) \
|
|
|
|
|
$(C_OBJS) $(BACKEND) $(LIBS)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1992-09-04 06:40:25 +02:00
|
|
|
|
# Build the version of limits.h that we will install.
|
|
|
|
|
xlimits.h: glimits.h limitx.h limity.h
|
1994-12-22 18:16:22 +01:00
|
|
|
|
if $(LIMITS_H_TEST) ; then \
|
1994-11-16 01:17:27 +01:00
|
|
|
|
cat $(srcdir)/limitx.h $(srcdir)/glimits.h $(srcdir)/limity.h > tmp-xlimits.h; \
|
1992-09-04 06:40:25 +02:00
|
|
|
|
else \
|
1994-11-16 01:17:27 +01:00
|
|
|
|
cat $(srcdir)/glimits.h > tmp-xlimits.h; \
|
1992-09-04 06:40:25 +02:00
|
|
|
|
fi
|
1994-11-16 01:17:27 +01:00
|
|
|
|
mv tmp-xlimits.h xlimits.h
|
1997-06-09 21:19:18 +02:00
|
|
|
|
#
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Build libgcc.a.
|
1995-02-13 23:14:59 +01:00
|
|
|
|
|
2000-10-09 23:13:04 +02:00
|
|
|
|
LIB2ADD = $(LIB2ADDEH) $(LIB2FUNCS_EXTRA)
|
2000-05-03 20:21:49 +02:00
|
|
|
|
|
2000-05-20 13:48:03 +02:00
|
|
|
|
libgcc.mk: config.status Makefile mklibgcc $(LIB2ADD) xgcc$(exeext)
|
2000-05-03 20:21:49 +02:00
|
|
|
|
objext='$(objext)' \
|
|
|
|
|
OLDCC='$(OLDCC)' \
|
|
|
|
|
LIBGCC1='$(LIBGCC1)' \
|
|
|
|
|
LIB1FUNCS='$(LIB1FUNCS)' \
|
|
|
|
|
LIB1ASMFUNCS='$(LIB1ASMFUNCS)' \
|
|
|
|
|
LIB1FUNCS_EXTRA='$(LIB1FUNCS_EXTRA)' \
|
|
|
|
|
LIB2FUNCS='$(LIB2FUNCS)' \
|
|
|
|
|
LIB2FUNCS_EH='$(LIB2FUNCS_EH)' \
|
|
|
|
|
LIB2ADD='$(LIB2ADD)' \
|
|
|
|
|
FPBIT='$(FPBIT)' \
|
|
|
|
|
FPBIT_FUNCS='$(FPBIT_FUNCS)' \
|
|
|
|
|
DPBIT='$(DPBIT)' \
|
|
|
|
|
DPBIT_FUNCS='$(DPBIT_FUNCS)' \
|
|
|
|
|
MULTILIBS=`$(GCC_FOR_TARGET) --print-multi-lib` \
|
|
|
|
|
EXTRA_MULTILIB_PARTS='$(EXTRA_MULTILIB_PARTS)' \
|
2000-10-04 22:53:29 +02:00
|
|
|
|
SHLIB_LINK='$(SHLIB_LINK)' \
|
2001-01-07 10:27:25 +01:00
|
|
|
|
SHLIB_INSTALL='$(SHLIB_INSTALL)' \
|
2000-10-09 01:20:18 +02:00
|
|
|
|
SHLIB_EXT='$(SHLIB_EXT)' \
|
2000-10-04 22:53:29 +02:00
|
|
|
|
SHLIB_MULTILIB='$(SHLIB_MULTILIB)' \
|
2000-10-06 07:46:02 +02:00
|
|
|
|
SHLIB_MKMAP='$(SHLIB_MKMAP)' \
|
|
|
|
|
SHLIB_MAPFILES='$(SHLIB_MAPFILES)' \
|
2000-10-21 03:47:05 +02:00
|
|
|
|
SHLIB_NM_FLAGS='$(SHLIB_NM_FLAGS)' \
|
2000-05-03 20:21:49 +02:00
|
|
|
|
$(SHELL) mklibgcc > tmp-libgcc.mk
|
2000-06-06 03:56:06 +02:00
|
|
|
|
mv tmp-libgcc.mk libgcc.mk
|
|
|
|
|
|
|
|
|
|
# All the things that might cause us to want to recompile bits of libgcc.
|
|
|
|
|
LIBGCC_DEPS = $(GCC_PASSES) $(LANGUAGES) stmp-int-hdrs $(STMP_FIXPROTO) \
|
|
|
|
|
libgcc.mk $(srcdir)/libgcc1.c $(srcdir)/libgcc2.c $(CONFIG_H) \
|
|
|
|
|
$(MACHMODE_H) longlong.h frame.h gbl-ctors.h config.status \
|
2000-10-04 22:53:29 +02:00
|
|
|
|
stmp-int-hdrs tsystem.h $(FPBIT) $(DPBIT) $(LIB2ADD) $(EXTRA_PARTS)
|
2000-05-03 20:21:49 +02:00
|
|
|
|
|
2000-06-06 03:56:06 +02:00
|
|
|
|
libgcc.a: $(LIBGCC_DEPS)
|
2000-05-03 20:21:49 +02:00
|
|
|
|
$(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
|
|
|
|
|
HOST_PREFIX="$(HOST_PREFIX)" HOST_PREFIX_1="$(HOST_PREFIX_1)" \
|
|
|
|
|
AR_FOR_TARGET="$(AR_FOR_TARGET)" \
|
|
|
|
|
AR_CREATE_FOR_TARGET="$(AR_CREATE_FOR_TARGET)" \
|
|
|
|
|
AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" \
|
2000-08-30 00:55:39 +02:00
|
|
|
|
OLDCC="$(OLDCC)" CCLIBFLAGS="$(CCLIBFLAGS)" \
|
|
|
|
|
CFLAGS="$(CFLAGS) $(WARN_CFLAGS)" \
|
2000-05-03 20:21:49 +02:00
|
|
|
|
RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)" \
|
|
|
|
|
RANLIB_TEST_FOR_TARGET="$(RANLIB_TEST_FOR_TARGET)" \
|
2000-10-06 07:46:02 +02:00
|
|
|
|
NM_FOR_TARGET="$(NM_FOR_TARGET)" AWK="$(AWK)" \
|
2000-05-03 20:21:49 +02:00
|
|
|
|
LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" \
|
|
|
|
|
INCLUDES="$(INCLUDES)" MAYBE_USE_COLLECT2="$(MAYBE_USE_COLLECT2)" \
|
|
|
|
|
CONFIG_H="$(CONFIG_H)" MACHMODE_H="$(MACHMODE_H)" \
|
2000-05-04 20:13:14 +02:00
|
|
|
|
LIB1ASMSRC='$(LIB1ASMSRC)' \
|
2000-05-03 20:21:49 +02:00
|
|
|
|
-f libgcc.mk all
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1994-06-15 10:03:05 +02: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 15:32:39 +02:00
|
|
|
|
multilib.h: s-mlib; @true
|
|
|
|
|
s-mlib: $(srcdir)/genmultilib Makefile
|
1996-08-12 18:36:42 +02:00
|
|
|
|
$(SHELL) $(srcdir)/genmultilib \
|
|
|
|
|
"$(MULTILIB_OPTIONS)" \
|
|
|
|
|
"$(MULTILIB_DIRNAMES)" \
|
|
|
|
|
"$(MULTILIB_MATCHES)" \
|
|
|
|
|
"$(MULTILIB_EXCEPTIONS)" \
|
2000-03-06 19:05:52 +01:00
|
|
|
|
"$(MULTILIB_EXTRA_OPTS)" \
|
|
|
|
|
"$(MULTILIB_EXCLUSIONS)" > tmp-mlib.h
|
1999-09-14 09:42:59 +02:00
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-mlib.h multilib.h
|
1998-04-04 15:32:39 +02:00
|
|
|
|
touch s-mlib
|
1994-06-15 10:03:05 +02:00
|
|
|
|
|
|
|
|
|
# Build multiple copies of libgcc.a, one for each target switch.
|
2000-06-06 03:56:06 +02:00
|
|
|
|
stmp-multilib: $(LIBGCC_DEPS)
|
1994-07-21 08:07:22 +02:00
|
|
|
|
$(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
|
2000-05-03 20:21:49 +02:00
|
|
|
|
HOST_PREFIX="$(HOST_PREFIX)" HOST_PREFIX_1="$(HOST_PREFIX_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 23:39:13 +01:00
|
|
|
|
AR_FOR_TARGET="$(AR_FOR_TARGET)" \
|
2000-04-01 00:28:33 +02:00
|
|
|
|
AR_CREATE_FOR_TARGET="$(AR_CREATE_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 23:39:13 +01:00
|
|
|
|
AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" \
|
2000-08-30 00:55:39 +02:00
|
|
|
|
OLDCC="$(OLDCC)" CCLIBFLAGS="$(CCLIBFLAGS)" \
|
|
|
|
|
CFLAGS="$(CFLAGS) $(WARN_CFLAGS)" \
|
2000-05-03 20:21:49 +02:00
|
|
|
|
RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)" \
|
|
|
|
|
RANLIB_TEST_FOR_TARGET="$(RANLIB_TEST_FOR_TARGET)" \
|
2000-10-06 07:46:02 +02:00
|
|
|
|
NM_FOR_TARGET="$(NM_FOR_TARGET)" AWK="$(AWK)" \
|
2000-05-03 20:21:49 +02:00
|
|
|
|
LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" \
|
|
|
|
|
INCLUDES="$(INCLUDES)" MAYBE_USE_COLLECT2="$(MAYBE_USE_COLLECT2)" \
|
|
|
|
|
CONFIG_H="$(CONFIG_H)" MACHMODE_H="$(MACHMODE_H)" \
|
2000-05-05 01:21:48 +02:00
|
|
|
|
LIB1ASMSRC='$(LIB1ASMSRC)' \
|
2000-05-03 20:21:49 +02:00
|
|
|
|
-f libgcc.mk all
|
|
|
|
|
touch stmp-multilib
|
1994-07-21 08:07:22 +02:00
|
|
|
|
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Compile two additional files that are linked with every program
|
1995-07-26 14:18:04 +02:00
|
|
|
|
# linked using GCC on systems using COFF or ELF, for the sake of C++
|
|
|
|
|
# constructors.
|
1997-12-07 01:31:01 +01:00
|
|
|
|
$(T)crtbegin.o: crtstuff.c $(GCC_PASSES) $(CONFIG_H) \
|
2000-02-01 22:30:52 +01:00
|
|
|
|
defaults.h frame.h gbl-ctors.h stmp-int-hdrs tsystem.h
|
1996-12-09 23:31:23 +01:00
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -g0 \
|
2000-01-07 09:56:40 +01:00
|
|
|
|
-finhibit-size-directive -fno-inline-functions \
|
|
|
|
|
-fno-exceptions $(CRTSTUFF_T_CFLAGS) @inhibit_libc@ \
|
1996-12-09 23:31:23 +01:00
|
|
|
|
-c $(srcdir)/crtstuff.c -DCRT_BEGIN -o $(T)crtbegin$(objext)
|
1996-10-29 21:49:42 +01:00
|
|
|
|
|
1997-12-07 01:31:01 +01:00
|
|
|
|
$(T)crtend.o: crtstuff.c $(GCC_PASSES) $(CONFIG_H) \
|
2000-02-01 22:30:52 +01:00
|
|
|
|
defaults.h frame.h gbl-ctors.h stmp-int-hdrs tsystem.h
|
1996-12-09 23:31:23 +01:00
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -g0 \
|
2000-01-07 09:56:40 +01:00
|
|
|
|
-finhibit-size-directive -fno-inline-functions \
|
|
|
|
|
-fno-exceptions $(CRTSTUFF_T_CFLAGS) @inhibit_libc@ \
|
1996-12-09 23:31:23 +01:00
|
|
|
|
-c $(srcdir)/crtstuff.c -DCRT_END -o $(T)crtend$(objext)
|
1995-07-26 14:18:04 +02:00
|
|
|
|
|
2000-04-07 16:57:58 +02:00
|
|
|
|
# These are versions of crtbegin and crtend for shared libraries.
|
|
|
|
|
$(T)crtbeginS.o: crtstuff.c $(GCC_PASSES) $(CONFIG_H) \
|
|
|
|
|
defaults.h frame.h gbl-ctors.h stmp-int-hdrs tsystem.h
|
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -g0 \
|
|
|
|
|
-finhibit-size-directive -fno-inline-functions \
|
|
|
|
|
-fno-exceptions $(CRTSTUFF_T_CFLAGS_S) @inhibit_libc@ \
|
|
|
|
|
-c $(srcdir)/crtstuff.c -DCRT_BEGIN -DCRTSTUFFS_O \
|
|
|
|
|
-o $(T)crtbeginS$(objext)
|
1995-07-26 14:18:04 +02:00
|
|
|
|
|
2000-04-07 16:57:58 +02:00
|
|
|
|
$(T)crtendS.o: crtstuff.c $(GCC_PASSES) $(CONFIG_H) \
|
2000-02-01 22:30:52 +01:00
|
|
|
|
defaults.h frame.h gbl-ctors.h stmp-int-hdrs tsystem.h
|
2000-04-07 16:57:58 +02:00
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -g0 \
|
|
|
|
|
-finhibit-size-directive -fno-inline-functions \
|
|
|
|
|
-fno-exceptions $(CRTSTUFF_T_CFLAGS_S) @inhibit_libc@ \
|
|
|
|
|
-c $(srcdir)/crtstuff.c -DCRT_END -DCRTSTUFFS_O \
|
|
|
|
|
-o $(T)crtendS$(objext)
|
1996-03-05 00:39:06 +01:00
|
|
|
|
|
2000-05-03 20:21:49 +02:00
|
|
|
|
# Compile the start modules crt0.o and mcrt0.o that are linked with
|
|
|
|
|
# every program
|
1998-04-04 15:32:39 +02:00
|
|
|
|
crt0.o: s-crt0 ; @true
|
|
|
|
|
mcrt0.o: s-crt0; @true
|
1996-03-05 00:39:06 +01:00
|
|
|
|
|
1998-04-04 15:32:39 +02:00
|
|
|
|
s-crt0: $(CRT0_S) $(MCRT0_S) $(GCC_PASSES) $(CONFIG_H)
|
1996-03-05 00:39:06 +01: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 15:32:39 +02:00
|
|
|
|
touch s-crt0
|
1997-06-09 21:19:18 +02:00
|
|
|
|
#
|
1992-02-03 23:08:59 +01: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.
|
|
|
|
|
|
2000-09-17 09:38:23 +02:00
|
|
|
|
c-errors.o: c-errors.c $(CONFIG_H) system.h $(TREE_H) $(C_TREE_H) flags.h \
|
2000-07-12 22:05:45 +02:00
|
|
|
|
diagnostic.h
|
Integrated preprocessor.
top level:
* Makefile.in: Remove all references to c-parse.gperf,
c-gperf.h, and c-parse.h. Remove -d from yacc command line
generating c-parse.c. Update dependencies.
* c-parse.gperf, c-gperf.h: Delete.
* c-common.c: Don't define parse_options, cpp_token, yy_cur,
yy_lim, or yy_get_token. Don't define get_directive_line if
USE_CPPLIB.
* c-common.h: Add multiple include guard. Define RID values
for every keyword in C, C++, and Objective C. Put all the
modifiers first.
(struct c_fileinfo, get_fileinfo, dump_time_statistics): New.
* c-decl.c (c_decode_option): Handle -lang-objc here.
(print_lang_identifier): Handle C_IS_RESERVED_WORD case.
(grokdeclarator): Adjust for new RID scheme.
(extract_interface_info): New stub.
* c-lang.c: Don't declare yy_cur or parse_options.
(lang_init_options): Call cpp_init. Don't call
cpp_options_init.
(lang_init): Don't call check_newline if USE_CPPLIB.
* c-lex.c: Don't include c-parse.h. Do include timevar.h.
Elide lots of unnecessary code if USE_CPPLIB. Delete code
rendered unnecessary by new architecture. Move routines not
shared with C++ to c-parse.in. Maintain a local idea of the
line number. Handle C++ as well as C.
[USE_CPPLIB]: Declare and register callbacks for #ident and
for entering/leaving files.
(init_c_lex, c_lex): Are now the entry points to this file.
(check_newline): Break out directive handling to
process_directive.
(read_ucs, is_extended_char, utf8_extend_token): Moved here
from C++ front end.
(readescape, parse_float): Overhaul.
(lex_number, lex_string, lex_charconst): Break out of c_lex
(n'ee yylex).
(get_fileinfo, update_header_times, dump_one_header,
dump_time_statistics): New and/or moved here from C++.
Support per-file data needed by C++ and per-header timing
statistics (C++ only, at the moment).
* c-lex.h: Update prototypes. Add multiple include guard.
* c-tree.h (struct lang_identifier): Add rid_code field.
(C_IS_RESERVED_WORD, C_RID_CODE): New.
* c-parse.in: Include c-pragma.h. Remove unnecesary calls to
reinit_parse_for_function and/or position_after_white_space.
(save_filename, save_lineno): Look ahead before saving.
(label -> identifier ':'): Save file and line before shifting ':'.
(reservedwords): No need to call get_identifier.
(init_parse, finish_parse, yyerror, yylex, yyprint,
make_pointer_declarator): Are now here for C/ObjC.
(rid_to_yy): Conversion table from RID constants to Yacc codes.
* c-pragma.c: Rewrite parsing logic to fit with cpplib's
#pragma registry. Provide dummy implementation of that
interface if !USE_CPPLIB.
* c-pragma.h: Update to match.
* flags.h: Add multiple include guard.
(flag_detailed_statistics): Moved here from C++.
* toplev.c: Define flag_detailed_statistics.
* gcc.c (C specs): Use %(trad_capable_cpp) for -E|-M|-MM case
#if USE_CPPLIB.
* timevar.def (TV_CPP, TV_LEX): New.
* timevar.h: Add multiple include guard.
* objc/lang-specs.h: Use %(trad_capable_cpp) for -E|-M|-MM case
#if USE_CPPLIB.
* objc/objc-act.c: Don't mention yy_cur or parse_options.
Initialize cpplib properly. Force lineno to 0 after first
call to check_newline. Don't handle -lang-objc here.
Move forget_protocol_qualifiers and remember_protocol_qualifiers here.
cp:
* Make-lang.in, Makefile.in: Remove all references to input.c,
gxx.gperf, and hash.h. Add ../c-lex.o to C_OBJS.
* gxx.gperf, hash.h, input.c: Delete.
* lang-specs.h: Pass -lang-c++ to cc1plus so cpplib is
initialized properly.
* class.c (fixup_pending_inline): Take a tree, not a
struct pending_inline *. All callers changed.
(init_class_processing): Set RID_PUBLIC, RID_PRIVATE,
RID_PROTECTED entries in ridpointers[] array here.
* decl.c (duplicate_decls): Do not refer to struct
pending_inline.
(record_builtin_type, init_decl_processing): Use RID_MAX not
CP_RID_MAX.
(grokdeclarator): Use C_IS_RESERVED_WORD.
* decl2.c (lang_decode_option): Ignore -lang-c++ for sake of
cpplib.
(grok_x_components): Do not inspect pending_inlines chain.
* cp-tree.h (struct lang_identifier): Add rid_code entry.
(C_IS_RESERVED_WORD, C_RID_CODE, C_RID_YYCODE): New.
(flag_no_gnu_keywords, flag_operator_names, rid_to_yy): Declare.
(DEFARG_LENGTH, struct pending_inline, TIME_IDENTIFIER_TIME,
TIME_IDENTIFIER_FILEINFO): Kill.
Update prototypes.
* lex.h: Expunge cp_rid. Rewrite RIDBIT macros to use just a
single 32-bit word.
* parse.y: Call do_pending_inlines unconditionally.
reinit_parse_for_method is now snarf_method. fn.defpen is no
longer necessary. Remove unnecessary <itype> annotation on
SCOPE. Do not refer to end_of_file or struct pending_inline.
* semantics.c (begin_inline_definitions): Call
do_pending_inlines unconditionally.
* lex.c: Remove all code now shared with C front end.
Initialize cpplib properly if USE_CPPLIB. Put reserved words
into the get_identifier table. Rewrite pragma handling to
work with the registry. Move code to save tokens for later
processing to spew.c.
* spew.c: Rewrite everything in terms of token streams instead
of text. Move routines here from lex.c / input.c as
appropriate. GC-mark trees hanging off the pending inlines
chain.
testsuite:
* g++.old-deja/g++.benjamin/13478.C: Put meaningful tags on
ERROR markers.
* g++.old-deja/g++.brendan/crash8.C: Move ERROR marker up one line.
* gcc.dg/c99-array-nonobj-1.c: Don't expect func[] cases to fail.
* gcc.dg/wtr-label-1.c: Don't use unconstrained .* in error regexps.
* gcc.dg/wtr-suffix-1.c: Correct error regexps.
* gcc.dg/cpp/unc1.c, gcc.dg/cpp/unc2.c, gcc.dg/cpp/unc3.c:
Preprocess only.
* gcc.dg/cpp/unc4.c: Adjust line number in dg-error line.
* gcc.dg/noncompile/const-ll-1.c: Generalize error regexp.
From-SVN: r36216
2000-09-07 02:37:14 +02:00
|
|
|
|
c-parse.o : $(srcdir)/c-parse.c $(CONFIG_H) $(TREE_H) c-lex.h $(GGC_H) intl.h \
|
2000-09-17 09:38:23 +02:00
|
|
|
|
$(C_TREE_H) input.h flags.h system.h toplev.h output.h cpplib.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/c-parse.c
|
Integrated preprocessor.
top level:
* Makefile.in: Remove all references to c-parse.gperf,
c-gperf.h, and c-parse.h. Remove -d from yacc command line
generating c-parse.c. Update dependencies.
* c-parse.gperf, c-gperf.h: Delete.
* c-common.c: Don't define parse_options, cpp_token, yy_cur,
yy_lim, or yy_get_token. Don't define get_directive_line if
USE_CPPLIB.
* c-common.h: Add multiple include guard. Define RID values
for every keyword in C, C++, and Objective C. Put all the
modifiers first.
(struct c_fileinfo, get_fileinfo, dump_time_statistics): New.
* c-decl.c (c_decode_option): Handle -lang-objc here.
(print_lang_identifier): Handle C_IS_RESERVED_WORD case.
(grokdeclarator): Adjust for new RID scheme.
(extract_interface_info): New stub.
* c-lang.c: Don't declare yy_cur or parse_options.
(lang_init_options): Call cpp_init. Don't call
cpp_options_init.
(lang_init): Don't call check_newline if USE_CPPLIB.
* c-lex.c: Don't include c-parse.h. Do include timevar.h.
Elide lots of unnecessary code if USE_CPPLIB. Delete code
rendered unnecessary by new architecture. Move routines not
shared with C++ to c-parse.in. Maintain a local idea of the
line number. Handle C++ as well as C.
[USE_CPPLIB]: Declare and register callbacks for #ident and
for entering/leaving files.
(init_c_lex, c_lex): Are now the entry points to this file.
(check_newline): Break out directive handling to
process_directive.
(read_ucs, is_extended_char, utf8_extend_token): Moved here
from C++ front end.
(readescape, parse_float): Overhaul.
(lex_number, lex_string, lex_charconst): Break out of c_lex
(n'ee yylex).
(get_fileinfo, update_header_times, dump_one_header,
dump_time_statistics): New and/or moved here from C++.
Support per-file data needed by C++ and per-header timing
statistics (C++ only, at the moment).
* c-lex.h: Update prototypes. Add multiple include guard.
* c-tree.h (struct lang_identifier): Add rid_code field.
(C_IS_RESERVED_WORD, C_RID_CODE): New.
* c-parse.in: Include c-pragma.h. Remove unnecesary calls to
reinit_parse_for_function and/or position_after_white_space.
(save_filename, save_lineno): Look ahead before saving.
(label -> identifier ':'): Save file and line before shifting ':'.
(reservedwords): No need to call get_identifier.
(init_parse, finish_parse, yyerror, yylex, yyprint,
make_pointer_declarator): Are now here for C/ObjC.
(rid_to_yy): Conversion table from RID constants to Yacc codes.
* c-pragma.c: Rewrite parsing logic to fit with cpplib's
#pragma registry. Provide dummy implementation of that
interface if !USE_CPPLIB.
* c-pragma.h: Update to match.
* flags.h: Add multiple include guard.
(flag_detailed_statistics): Moved here from C++.
* toplev.c: Define flag_detailed_statistics.
* gcc.c (C specs): Use %(trad_capable_cpp) for -E|-M|-MM case
#if USE_CPPLIB.
* timevar.def (TV_CPP, TV_LEX): New.
* timevar.h: Add multiple include guard.
* objc/lang-specs.h: Use %(trad_capable_cpp) for -E|-M|-MM case
#if USE_CPPLIB.
* objc/objc-act.c: Don't mention yy_cur or parse_options.
Initialize cpplib properly. Force lineno to 0 after first
call to check_newline. Don't handle -lang-objc here.
Move forget_protocol_qualifiers and remember_protocol_qualifiers here.
cp:
* Make-lang.in, Makefile.in: Remove all references to input.c,
gxx.gperf, and hash.h. Add ../c-lex.o to C_OBJS.
* gxx.gperf, hash.h, input.c: Delete.
* lang-specs.h: Pass -lang-c++ to cc1plus so cpplib is
initialized properly.
* class.c (fixup_pending_inline): Take a tree, not a
struct pending_inline *. All callers changed.
(init_class_processing): Set RID_PUBLIC, RID_PRIVATE,
RID_PROTECTED entries in ridpointers[] array here.
* decl.c (duplicate_decls): Do not refer to struct
pending_inline.
(record_builtin_type, init_decl_processing): Use RID_MAX not
CP_RID_MAX.
(grokdeclarator): Use C_IS_RESERVED_WORD.
* decl2.c (lang_decode_option): Ignore -lang-c++ for sake of
cpplib.
(grok_x_components): Do not inspect pending_inlines chain.
* cp-tree.h (struct lang_identifier): Add rid_code entry.
(C_IS_RESERVED_WORD, C_RID_CODE, C_RID_YYCODE): New.
(flag_no_gnu_keywords, flag_operator_names, rid_to_yy): Declare.
(DEFARG_LENGTH, struct pending_inline, TIME_IDENTIFIER_TIME,
TIME_IDENTIFIER_FILEINFO): Kill.
Update prototypes.
* lex.h: Expunge cp_rid. Rewrite RIDBIT macros to use just a
single 32-bit word.
* parse.y: Call do_pending_inlines unconditionally.
reinit_parse_for_method is now snarf_method. fn.defpen is no
longer necessary. Remove unnecessary <itype> annotation on
SCOPE. Do not refer to end_of_file or struct pending_inline.
* semantics.c (begin_inline_definitions): Call
do_pending_inlines unconditionally.
* lex.c: Remove all code now shared with C front end.
Initialize cpplib properly if USE_CPPLIB. Put reserved words
into the get_identifier table. Rewrite pragma handling to
work with the registry. Move code to save tokens for later
processing to spew.c.
* spew.c: Rewrite everything in terms of token streams instead
of text. Move routines here from lex.c / input.c as
appropriate. GC-mark trees hanging off the pending inlines
chain.
testsuite:
* g++.old-deja/g++.benjamin/13478.C: Put meaningful tags on
ERROR markers.
* g++.old-deja/g++.brendan/crash8.C: Move ERROR marker up one line.
* gcc.dg/c99-array-nonobj-1.c: Don't expect func[] cases to fail.
* gcc.dg/wtr-label-1.c: Don't use unconstrained .* in error regexps.
* gcc.dg/wtr-suffix-1.c: Correct error regexps.
* gcc.dg/cpp/unc1.c, gcc.dg/cpp/unc2.c, gcc.dg/cpp/unc3.c:
Preprocess only.
* gcc.dg/cpp/unc4.c: Adjust line number in dg-error line.
* gcc.dg/noncompile/const-ll-1.c: Generalize error regexp.
From-SVN: r36216
2000-09-07 02:37:14 +02:00
|
|
|
|
|
2000-07-29 21:45:41 +02:00
|
|
|
|
$(srcdir)/c-parse.c: $(srcdir)/c-parse.y
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
(cd $(srcdir) && $(BISON) $(BISONFLAGS) -o c-p$$$$.c c-parse.y && \
|
|
|
|
|
mv -f c-p$$$$.c c-parse.c)
|
2000-07-29 21:45:41 +02:00
|
|
|
|
$(srcdir)/c-parse.y: c-parse.in
|
1995-12-14 01:05:37 +01:00
|
|
|
|
echo '/*WARNING: This file is automatically generated!*/' >tmp-c-parse.y
|
1993-04-09 02:20:09 +02:00
|
|
|
|
sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
|
|
|
|
|
-e "/^ifc$$/d" -e "/^end ifc$$/d" \
|
1995-12-14 01:05:37 +01:00
|
|
|
|
$(srcdir)/c-parse.in >>tmp-c-parse.y
|
1999-09-14 09:42:59 +02:00
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-c-parse.y $(srcdir)/c-parse.y
|
1993-04-09 02:20:09 +02:00
|
|
|
|
|
2000-09-17 09:38:23 +02:00
|
|
|
|
c-decl.o : c-decl.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) $(C_TREE_H) \
|
|
|
|
|
$(GGC_H) c-lex.h flags.h function.h output.h $(EXPR_H) \
|
2000-06-29 19:31:03 +02:00
|
|
|
|
toplev.h defaults.h intl.h
|
2000-09-17 09:38:23 +02:00
|
|
|
|
c-typeck.o : c-typeck.c $(CONFIG_H) system.h $(TREE_H) $(C_TREE_H) \
|
1999-07-20 12:41:10 +02:00
|
|
|
|
flags.h intl.h output.h $(EXPR_H) $(RTL_H) toplev.h
|
2000-09-17 09:38:23 +02:00
|
|
|
|
c-lang.o : c-lang.c $(CONFIG_H) system.h $(TREE_H) $(C_TREE_H) \
|
|
|
|
|
$(GGC_H) c-lex.h toplev.h diagnostic.h output.h function.h \
|
|
|
|
|
$(RTL_H) $(EXPR_H)
|
|
|
|
|
c-lex.o : c-lex.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) c-lex.h $(C_TREE_H) \
|
|
|
|
|
c-pragma.h input.h intl.h flags.h toplev.h output.h \
|
ggc.h: Delete ggc_add_string_root and ggc_mark_string.
* ggc.h: Delete ggc_add_string_root and ggc_mark_string. Add
digit_vector and digit_string.
* stringpool.c (digit_vector): New.
(ggc_alloc_string): Use digit_string.
* stmt.c (digit_strings): Delete.
(init_stmt): Do not initialize digit_strings.
(expand_asm_operands): Use ggc.h's digit_string macro.
* toplev.c (mark_file_stack): Delete.
(compile_file): Don't call init_tree_codes.
(main): No need to make the file stack a GC root.
* tree.c (init_tree_codes): Delete.
* tree.h (init_tree_codes): Delete.
* c-lex.c: Don't include ggc.h.
(mark_splay_tree_node, mark_splay_tree): Delete.
(init_c_lex): No need to ggc_strdup string constant. Don't add
file_info_tree to GGC roots.
(cb_enter_file, cb_rename_file): No need to ggc_strdup
ip->nominal_fname.
* Makefile.in (c-lex.o): No longer depends on $(GGC_H).
* dbxout.c (dbxout_init),
dwarf2out.c (dwarf2out_line),
ggc-common.c (ggc_mark_rtx_children, ggc_mark_trees),
varasm.c (mark_const_hash_entry, mark_pool_constant, init_varasm_once),
xcoffout.c (xcoffout_source_file),
i386.c (load_pic_register):
Delete call(s) to ggc_add_string_root and/or ggc_mark_string.
* except.c (create_rethrow_ref),
profile.c (init_edge_profiler),
toplev.c (compile_file),
varasm.c (named_section, assemble_static_space,
assemble_trampoline_template, output_constant_def, force_const_mem),
i386.c (load_pic_register),
ia64.c (ia64_encode_section_info),
rs6000.c (rs6000_emit_load_toc_table, create_TOC_reference,
rs6000_emit_prologue, rs6000_emit_epilogue),
rs6000.md (load_toc_aix_si, load_toc_aix_di):
Change ggc_alloc_string (var, -1) to ggc_strdup (var).
* profile.c (output_func_start_profiler),
tree.c (make_node),
i386.c (load_pic_register): No need to ggc_strdup string constant.
cp:
* lex.c (mark_impl_file_chain): Delete.
(init_parse): Remove call to ggc_add_string_root. No need to
ggc_strdup a string constant. Do not add impl_file_chain to GC
roots.
(handle_pragma_implementation): No need to ggc_strdup main_filename.
f:
* lex.c (ffelex_hash_): Change ggc_alloc_string (var, -1) to
ggc_strdup (var).
java:
* parse.y (goal): Remove call to ggc_add_string_root.
From-SVN: r37522
2000-11-17 18:31:13 +01:00
|
|
|
|
mbchar.h cpplib.h $(EXPR_H)
|
2000-09-17 09:38:23 +02: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 18:43:15 +02:00
|
|
|
|
c-convert.o : c-convert.c $(CONFIG_H) system.h $(TREE_H) flags.h toplev.h
|
1999-07-31 14:46:53 +02:00
|
|
|
|
c-pragma.o: c-pragma.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) function.h \
|
2000-04-06 02:51:25 +02:00
|
|
|
|
defaults.h c-pragma.h toplev.h $(GGC_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 14:00:46 +01:00
|
|
|
|
mbchar.o: mbchar.c $(CONFIG_H) system.h mbchar.h
|
1998-11-25 00:19:05 +01:00
|
|
|
|
graph.o: graph.c $(CONFIG_H) system.h toplev.h flags.h output.h $(RTL_H) \
|
1999-10-02 22:13:24 +02:00
|
|
|
|
function.h hard-reg-set.h $(BASIC_BLOCK_H) graph.h
|
2000-05-20 00:27:28 +02:00
|
|
|
|
sbitmap.o: sbitmap.c $(CONFIG_H) system.h $(RTL_H) flags.h hard-reg-set.h \
|
|
|
|
|
$(BASIC_BLOCK_H)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1999-09-18 20:05:59 +02:00
|
|
|
|
COLLECT2_OBJS = collect2.o tlink.o hash.o intl.o underscore.o version.o
|
1999-02-09 21:55:29 +01:00
|
|
|
|
collect2$(exeext): $(COLLECT2_OBJS) $(LIBDEPS)
|
1992-10-18 06:30:48 +01: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-23 00:55:23 +02:00
|
|
|
|
-rm -f collect2$(exeext)
|
1999-01-27 02:43:17 +01:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(COLLECT2_OBJS) $(LIBS)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1999-01-27 02:43:17 +01:00
|
|
|
|
collect2.o : collect2.c $(CONFIG_H) system.h gstab.h intl.h \
|
2000-04-06 23:22:49 +02:00
|
|
|
|
$(OBSTACK_H) $(DEMANGLE_H) collect2.h version.h
|
1993-01-02 09:33:03 +01:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
1996-07-19 00:06:04 +02:00
|
|
|
|
-DTARGET_MACHINE=\"$(target_alias)\" $(MAYBE_USE_COLLECT2) \
|
configure.in: Remove AC_PROG_LEX and AC_PROG_YACC.
* configure.in: Remove AC_PROG_LEX and AC_PROG_YACC. Look for
flex and bison, specifically, first in a unified build and
then installed on the system.
* Makefile.in: Set BISON to @BISON@, FLEX to @FLEX@. Rename
LEXFLAGS to FLEXFLAGS. Adjust ORDINARY_FLAGS_TO_PASS to
match.
(collect2.o, gcc.o, prefix.o, toplev.o, alloca.o, intl.o,
cppdefault.o): Remove pointless sed munging of source file
name.
f:
* Make-lang.in (f/fini.o, f/proj-h.o): Remove pointless sed
munging of source file name.
($(srcdir)/f/intdoc.texi): Break up into several rules each of
which builds just one thing. Don't mess with $(LANGUAGES).
(f/ansify.o, f/intdoc.o): Remove unnecessary rules.
From-SVN: r37371
2000-11-10 18:23:09 +01:00
|
|
|
|
-c $(srcdir)/collect2.c
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
2000-06-29 19:31:03 +02:00
|
|
|
|
tlink.o: tlink.c $(DEMANGLE_H) hash.h $(CONFIG_H) system.h collect2.h intl.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 18:43:15 +02:00
|
|
|
|
hash.o: hash.c hash.h system.h toplev.h
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
$(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
|
1998-08-18 12:26:35 +02:00
|
|
|
|
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
vfprintf.o: $(srcdir)/../libiberty/vfprintf.c $(GCONFIG_H) system.h
|
1998-09-05 12:41:24 +02:00
|
|
|
|
rm -f vfprintf.c
|
|
|
|
|
$(LN_S) $(srcdir)/../libiberty/vfprintf.c vfprintf.c
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
$(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) \
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
vfprintf.c $(OUTPUT_OPTION)
|
1998-09-05 12:41:24 +02:00
|
|
|
|
|
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 11:53:40 +02: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 14:00:46 +01: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 11:53:40 +02:00
|
|
|
|
rm -f splay-tree.c
|
|
|
|
|
$(LN_S) $(srcdir)/../libiberty/splay-tree.c splay-tree.c
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
$(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) \
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
splay-tree.c $(OUTPUT_OPTION)
|
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 11:53:40 +02:00
|
|
|
|
|
1998-04-04 15:32:39 +02:00
|
|
|
|
underscore.c: s-under ; @true
|
1995-08-21 19:07:54 +02:00
|
|
|
|
|
1998-04-04 15:32:39 +02: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 14:26:52 +02: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 23:25:31 +02: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 14:26:52 +02:00
|
|
|
|
echo "int prepends_underscore = 0;" >>tmp-under.c; \
|
1995-05-04 23:25:31 +02:00
|
|
|
|
fi
|
1999-09-14 09:42:59 +02:00
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-under.c underscore.c
|
(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 14:26:52 +02:00
|
|
|
|
-rm -f tmp-dum.c tmp-dum.s
|
1998-04-04 15:32:39 +02:00
|
|
|
|
touch s-under
|
1995-05-04 23:25:31 +02:00
|
|
|
|
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# A file used by all variants of C.
|
|
|
|
|
|
2000-11-24 12:49:46 +01:00
|
|
|
|
c-common.o : c-common.c $(CONFIG_H) system.h $(TREE_H) $(OBSTACK_H) \
|
2000-09-17 09:38:23 +02:00
|
|
|
|
$(C_COMMON_H) flags.h toplev.h output.h c-pragma.h $(RTL_H) $(GGC_H) \
|
2001-01-14 00:30:02 +01:00
|
|
|
|
$(EXPR_H)
|
|
|
|
|
|
|
|
|
|
c-format.o : c-format.c $(CONFIG_H) system.h $(TREE_H) \
|
|
|
|
|
$(C_COMMON_H) flags.h toplev.h intl.h diagnostic.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
2000-09-17 09:38:23 +02:00
|
|
|
|
c-semantics.o : c-semantics.c $(CONFIG_H) system.h $(TREE_H) $(C_TREE_H) \
|
|
|
|
|
c-lex.h flags.h toplev.h output.h c-pragma.h $(RTL_H) $(GGC_H) \
|
2000-07-02 07:23:01 +02:00
|
|
|
|
$(EXPR_H)
|
|
|
|
|
|
2000-11-10 05:29:45 +01:00
|
|
|
|
c-dump.o: c-dump.c $(CONFIG_H) system.h $(TREE_H) $(C_TREE_H) \
|
|
|
|
|
c-lex.h flags.h toplev.h output.h c-pragma.h $(RTL_H) $(GGC_H) \
|
|
|
|
|
$(EXPR_H) $(SPLAY_TREE_H) c-dump.h
|
|
|
|
|
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Language-independent files.
|
|
|
|
|
|
1996-12-07 17:53:42 +01:00
|
|
|
|
DRIVER_DEFINES = \
|
1999-11-10 02:19:08 +01:00
|
|
|
|
-DSTANDARD_STARTFILE_PREFIX=\"$(unlibsubdir)/\" \
|
1992-03-20 23:22:14 +01:00
|
|
|
|
-DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-lib/\" \
|
1993-12-22 19:38:50 +01:00
|
|
|
|
-DDEFAULT_TARGET_VERSION=\"$(version)\" \
|
1996-07-19 00:06:04 +02:00
|
|
|
|
-DDEFAULT_TARGET_MACHINE=\"$(target_alias)\" \
|
1999-11-10 02:19:08 +01:00
|
|
|
|
-DSTANDARD_BINDIR_PREFIX=\"$(bindir)/\" \
|
2001-01-07 10:42:49 +01:00
|
|
|
|
-DTOOLDIR_BASE_PREFIX=\"$(unlibsubdir)/../\" \
|
|
|
|
|
`test "$SHLIB_LINK" -a "@enable_shared@" = "yes" && echo "-DENABLE_SHARED_LIBGCC"` \
|
|
|
|
|
`test "$SHLIB_MULTILIB" && echo "-DNO_SHARED_LIBGCC_MULTILIB"`
|
|
|
|
|
|
1999-01-27 02:43:17 +01:00
|
|
|
|
gcc.o: gcc.c $(CONFIG_H) system.h intl.h multilib.h \
|
configure (gcc_version): When setting, narrow search to lines containing `version_string'.
* configure (gcc_version): When setting, narrow search to
lines containing `version_string'.
gcc:
* version.c: Include gansidecl.h and version.h.
* version.h: Wrap entire file in macro __GCC_VERSION_H__.
* configure.in (gcc_version): When setting, narrow search to
lines containing `version_string'.
* Makefile.in (mainversion): Likewise.
(GCC_H): New variable.
(gcc.h): Delete target.
(gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
(version.o): Depend on version.h.
(dbxout.o): Don't depend on gcc.h.
gcc/cp:
* Make-lang.in (g++spec.o): Depend on $(GCC_H), not gcc.h.
gcc/f:
* Make-lang.in (g77spec.o): Depend on $(GCC_H), not gcc.h.
gcc/java:
* Make-lang.in (jvspec.o): Depend on $(GCC_H), not gcc.h.
libf2c:
* configure.in (gcc_version): When setting, narrow search to
lines containing `version_string'.
From-SVN: r32009
2000-02-16 17:22:47 +01:00
|
|
|
|
Makefile $(lang_specs_files) prefix.h $(GCC_H)
|
1996-12-07 17:53:42 +01:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
|
|
|
|
$(DRIVER_DEFINES) \
|
configure.in: Remove AC_PROG_LEX and AC_PROG_YACC.
* configure.in: Remove AC_PROG_LEX and AC_PROG_YACC. Look for
flex and bison, specifically, first in a unified build and
then installed on the system.
* Makefile.in: Set BISON to @BISON@, FLEX to @FLEX@. Rename
LEXFLAGS to FLEXFLAGS. Adjust ORDINARY_FLAGS_TO_PASS to
match.
(collect2.o, gcc.o, prefix.o, toplev.o, alloca.o, intl.o,
cppdefault.o): Remove pointless sed munging of source file
name.
f:
* Make-lang.in (f/fini.o, f/proj-h.o): Remove pointless sed
munging of source file name.
($(srcdir)/f/intdoc.texi): Break up into several rules each of
which builds just one thing. Don't mess with $(LANGUAGES).
(f/ansify.o, f/intdoc.o): Remove unnecessary rules.
From-SVN: r37371
2000-11-10 18:23:09 +01:00
|
|
|
|
-c $(srcdir)/gcc.c
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
configure (gcc_version): When setting, narrow search to lines containing `version_string'.
* configure (gcc_version): When setting, narrow search to
lines containing `version_string'.
gcc:
* version.c: Include gansidecl.h and version.h.
* version.h: Wrap entire file in macro __GCC_VERSION_H__.
* configure.in (gcc_version): When setting, narrow search to
lines containing `version_string'.
* Makefile.in (mainversion): Likewise.
(GCC_H): New variable.
(gcc.h): Delete target.
(gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
(version.o): Depend on version.h.
(dbxout.o): Don't depend on gcc.h.
gcc/cp:
* Make-lang.in (g++spec.o): Depend on $(GCC_H), not gcc.h.
gcc/f:
* Make-lang.in (g77spec.o): Depend on $(GCC_H), not gcc.h.
gcc/java:
* Make-lang.in (jvspec.o): Depend on $(GCC_H), not gcc.h.
libf2c:
* configure.in (gcc_version): When setting, narrow search to
lines containing `version_string'.
From-SVN: r32009
2000-02-16 17:22:47 +01:00
|
|
|
|
gccspec.o: gccspec.c $(CONFIG_H) system.h $(GCC_H)
|
|
|
|
|
cppspec.o: cppspec.c $(CONFIG_H) system.h $(GCC_H)
|
1999-03-26 00:36:47 +01:00
|
|
|
|
|
1998-05-21 21:20:37 +02:00
|
|
|
|
tree-check.h: s-check ; @true
|
2000-12-09 17:27:51 +01:00
|
|
|
|
s-check : gencheck$(build_exeext) $(srcdir)/move-if-change
|
|
|
|
|
./gencheck$(build_exeext) > tmp-check.h
|
1999-09-14 09:42:59 +02:00
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-check.h tree-check.h
|
1998-05-21 21:20:37 +02:00
|
|
|
|
touch s-check
|
|
|
|
|
|
2000-12-09 17:27:51 +01:00
|
|
|
|
gencheck$(build_exeext) : gencheck.o $(HOST_LIBDEPS)
|
1998-05-21 21:20:37 +02:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
|
|
|
|
gencheck.o $(HOST_LIBS)
|
|
|
|
|
|
1999-11-24 02:18:15 +01:00
|
|
|
|
gencheck.o : gencheck.c gencheck.h tree.def $(CONFIG_H) hconfig.h system.h \
|
|
|
|
|
$(lang_tree_files)
|
1999-01-27 02:43:17 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
|
|
|
|
|
$(srcdir)/gencheck.c
|
1998-05-27 00:49:49 +02:00
|
|
|
|
|
1992-02-03 23:08:59 +01:00
|
|
|
|
dumpvers: dumpvers.c
|
|
|
|
|
|
configure (gcc_version): When setting, narrow search to lines containing `version_string'.
* configure (gcc_version): When setting, narrow search to
lines containing `version_string'.
gcc:
* version.c: Include gansidecl.h and version.h.
* version.h: Wrap entire file in macro __GCC_VERSION_H__.
* configure.in (gcc_version): When setting, narrow search to
lines containing `version_string'.
* Makefile.in (mainversion): Likewise.
(GCC_H): New variable.
(gcc.h): Delete target.
(gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
(version.o): Depend on version.h.
(dbxout.o): Don't depend on gcc.h.
gcc/cp:
* Make-lang.in (g++spec.o): Depend on $(GCC_H), not gcc.h.
gcc/f:
* Make-lang.in (g77spec.o): Depend on $(GCC_H), not gcc.h.
gcc/java:
* Make-lang.in (jvspec.o): Depend on $(GCC_H), not gcc.h.
libf2c:
* configure.in (gcc_version): When setting, narrow search to
lines containing `version_string'.
From-SVN: r32009
2000-02-16 17:22:47 +01:00
|
|
|
|
version.o: version.c version.h
|
1999-09-04 20:25:41 +02:00
|
|
|
|
|
1999-10-18 06:07:28 +02:00
|
|
|
|
ggc-common.o: ggc-common.c $(CONFIG_H) $(RTL_H) $(TREE_H) \
|
2000-04-06 02:51:25 +02:00
|
|
|
|
flags.h $(GGC_H) varray.h hash.h
|
1999-09-11 21:48:37 +02:00
|
|
|
|
|
1999-10-18 06:07:28 +02:00
|
|
|
|
ggc-simple.o: ggc-simple.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
|
2000-04-30 12:31:01 +02:00
|
|
|
|
$(GGC_H) varray.h $(TIMEVAR_H)
|
1999-09-04 20:25:41 +02:00
|
|
|
|
|
2000-04-15 21:54:26 +02:00
|
|
|
|
ggc-page.o: ggc-page.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h toplev.h \
|
2000-04-30 12:31:01 +02:00
|
|
|
|
$(GGC_H) varray.h $(TIMEVAR_H)
|
1999-09-23 22:00:57 +02:00
|
|
|
|
|
stringpool.c: New file.
* stringpool.c: New file.
* ggc-common.c (ggc_mark_string_ptr, ggc_add_string_root): Delete.
(ggc_alloc_string): Now in stringpool.o.
* ggc-page.c, ggc-simple.c: Do not define or allocate empty_string.
* ggc.h: Delete prototype of ggc_add_string_root. #define
ggc_add_string_root and ggc_mark_string to nothing. Prototype
init_stringpool and stringpool_statistics.
(ggc_alloc_string): Returns a const char *.
* tree.c (hash_table, do_identifier_warnings): Delete.
(init_obstacks): Don't initialize the identifier hash table.
(get_identifier, maybe_get_identifier, start_identifier_warnings,
set_identifier_size): Now in stringpool.c.
* tree.h (struct tree_string): Constify pointer field.
(approx_sqrt): Prototype.
* Makefile.in (stringpool.o): Add rule, mention in OBJS.
* toplev.c (approx_sqrt): New function.
(compile_file): Call stringpool_statistics if mem_report is on.
(main): Call init_stringpool.
* builtins.c (c_strlen), c-decl.c (finish_decl), c-lex.c
(process_directive), c-typeck.c (constructor_asmspec, struct
initializer_stack, start_init), except.c (create_rethrow_ref),
stmt.c (digit_strings), toplev.c (decode_f_option), tree.c
(built_in_filename), varasm,c (in_named_name,
assemble_static_space, struct constant_descriptor, struct
deferred_string, struct pool_constant, force_const_mem),
i386.c (pic_label_name, global_offset_table_name), rs6000.c
(rs6000_emit_prologue, rs6000_emit_epilogue) : Constify a char *.
* c-common.c (combine_strings): Combine strings in scratch
buffer, then pass to build_string.
* optabs.c (init_libfuncs), profile.c (init_edge_profiler,
output_func_start_profiler), stmt.c (init_stmt), alpha.c
(alpha_need_linkage), arm.c (arm_encode_call_attribute),
i386.c (load_pic_register), ia64.c (ia64_encode_section_info),
rs6000.c (rs6000_encode_section_info): Create string in
scratch buffer, then pass to ggc_alloc_string.
* stmt.c (expand_asm_operands): If we must adjust the
constraint strings, do so by creating a new one, not by
modifying the old one in place. Constify some char *s.
* config/pa/pa.c (hppa_encode_label): Drop unnecessary second
argument. Create string in scratch buffer, then pass to
ggc_alloc_string.
* config/pa/pa-protos.h: Update prototype.
* config/pa/elf.h, config/pa/pa.h, config/pa/som.h:
hppa_encode_label takes only one argument.
* c-parse.in (if_prefix): Find the filename and line number at
$-2 and $-1 respectively.
* diagnostic.c (error_recursion): Add missing newline, use
fputs, translate string.
cp:
* lex.c (struct impl_files, internal_filename): Constify a char *.
java:
* jcf-parse.c (get_constant), parse.y (do_merge_string_cste):
Create string in scratch buffer, then pass to build_string.
From-SVN: r37514
2000-11-17 07:05:31 +01:00
|
|
|
|
stringpool.o: stringpool.c $(CONFIG_H) system.h $(TREE_H) $(OBSTACK_H) \
|
|
|
|
|
flags.h toplev.h
|
|
|
|
|
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
ggc-none.o: ggc-none.c $(GCONFIG_H) $(RTL_H) $(GGC_H)
|
|
|
|
|
$(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
|
1999-09-04 20:25:41 +02:00
|
|
|
|
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
obstack.o: $(srcdir)/../libiberty/obstack.c $(GCONFIG_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 14:24:04 +02:00
|
|
|
|
rm -f obstack.c
|
|
|
|
|
$(LN_S) $(srcdir)/../libiberty/obstack.c obstack.c
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
$(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) \
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
obstack.c $(OUTPUT_OPTION)
|
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 14:24:04 +02:00
|
|
|
|
|
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 20:11:22 +01:00
|
|
|
|
prefix.o: prefix.c $(CONFIG_H) system.h Makefile prefix.h
|
1997-11-02 22:19:36 +01:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
|
|
|
|
-DPREFIX=\"$(prefix)\" \
|
configure.in: Remove AC_PROG_LEX and AC_PROG_YACC.
* configure.in: Remove AC_PROG_LEX and AC_PROG_YACC. Look for
flex and bison, specifically, first in a unified build and
then installed on the system.
* Makefile.in: Set BISON to @BISON@, FLEX to @FLEX@. Rename
LEXFLAGS to FLEXFLAGS. Adjust ORDINARY_FLAGS_TO_PASS to
match.
(collect2.o, gcc.o, prefix.o, toplev.o, alloca.o, intl.o,
cppdefault.o): Remove pointless sed munging of source file
name.
f:
* Make-lang.in (f/fini.o, f/proj-h.o): Remove pointless sed
munging of source file name.
($(srcdir)/f/intdoc.texi): Break up into several rules each of
which builds just one thing. Don't mess with $(LANGUAGES).
(f/ansify.o, f/intdoc.o): Remove unnecessary rules.
From-SVN: r37371
2000-11-10 18:23:09 +01:00
|
|
|
|
-c $(srcdir)/prefix.c
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1999-09-07 07:49:18 +02:00
|
|
|
|
convert.o: convert.c $(CONFIG_H) system.h $(TREE_H) flags.h convert.h toplev.h
|
1993-01-23 00:10:33 +01:00
|
|
|
|
|
Makefile.in (tree.o): Depend on ggc.h.
* Makefile.in (tree.o): Depend on ggc.h.
(varasm.o): Likewise.
(function.o): Likewise.
(stmt.o): Likewise.
(except.o): Likewise.
(optabs.o): Likewise.
(emit-rtl.o): Likewise.
* emit-rtl.c: Include ggc.h.
(sequence_element_free_list): Remove, and all references.
(mark_sequence): New functions.
(mark_emit_state): New function.
* except.c: Include ggc.h.
(mark_eh_node, mark_eh_stack, mark_eh_queue): New functions.
(mark_tree_label_node): New functions.
(mark_eh_state): New function.
* function.c: Include ggc.h.
(mark_temp_slot, mark_function_chain): New functions.
(mark_function_state): New function.
(init_function_once): New function.
* function.h (init_function_once): New function.
* ggc-callbacks.c (lang_mark_false_label_stack): New function.
* ggc.h (label_node): Declare.
(eh_status, emit_status, stmt_status, varasm_status): Likewise.
(lang_mark_false_label_stack): New function.
(mark_temp_slot): Remove declaration.
(mark_function_chain): Likewise.
(mark_eh_state): Adjust prototype.
(mark_stmt_state, mark_emit_state, mark_varasm_state, mark_optab):
Likewise.
* optabs.c: Include ggc.h.
(mark_optab): New function.
(init_optabs): Add gc roots.
* stmt.c: Include ggc.h.
(mark_cond_nesting, mark_loop_nesting): New functions.
(mark_block_nesting, mark_case_nesting, mark_goto_fixup): Likewise.
(mark_stmt_state): New function.
* toplev.c (compile_file): Call init_function_once.
* tree.c: Include ggc.h.
(type_hash): Move declaration earlier in file.
(TYPE_HASH_SIZE, type_hash_table): Likewise.
(init_obstacks): Add gc roots.
(mark_type_hash): New function.
* varasm.c: Include ggc.h.
(mark_pool_constant): New function.
(mark_varasm_state): New function.
Co-Authored-By: Bernd Schmidt <bernds@cygnus.co.uk>
Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
From-SVN: r29119
1999-09-05 04:41:35 +02:00
|
|
|
|
tree.o : tree.c $(CONFIG_H) system.h $(TREE_H) flags.h function.h toplev.h \
|
defaults.h: Provide default definitions for...
* defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
* cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
profile.c, sdbout.c, tradcif.y, tree.c, ch/decl.c, ch/timing.c,
cp/decl.c, cp/rtti.c, f/com.c, f/com.h, java/decl.c, java/expr.c:
Include defaults.h if not already included.
Don't define the above macros.
* Makefile.in, ch/Makefile.in, cp/Makefile.in, f/Makefile.in:
Update dependencies.
From-SVN: r36307
2000-09-11 03:50:49 +02:00
|
|
|
|
$(GGC_H) $(HASHTAB_H) output.h defaults.h
|
2000-04-06 02:51:25 +02:00
|
|
|
|
print-tree.o : print-tree.c $(CONFIG_H) system.h $(TREE_H) $(GGC_H)
|
1998-03-29 13:54:09 +02:00
|
|
|
|
stor-layout.o : stor-layout.c $(CONFIG_H) system.h $(TREE_H) flags.h \
|
2000-04-06 02:51:25 +02:00
|
|
|
|
function.h $(EXPR_H) $(RTL_H) toplev.h $(GGC_H)
|
1998-08-17 13:39:32 +02:00
|
|
|
|
fold-const.o : fold-const.c $(CONFIG_H) system.h $(TREE_H) flags.h toplev.h \
|
2000-11-03 23:24:21 +01:00
|
|
|
|
$(EXPR_H) $(RTL_H) $(GGC_H)
|
2000-04-22 13:49:16 +02:00
|
|
|
|
diagnostic.o : diagnostic.c diagnostic.h \
|
|
|
|
|
$(CONFIG_H) system.h $(TREE_H) $(RTL_H) tm_p.h flags.h \
|
Makefile.in (INSN_ATTR_H): New macro.
* Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
on insn-attr.h with it.
* genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
* insn-addr.h: New header.
(insn_addresses_): Renamed from insn_addresses.
(INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
INSN_ADDRESSES_NEW): New macros.
* genattrtab.c (write_test_expr): Use new macros.
* final.c (insn_addresses, init_insn_lengths): Likewise.
(align_fuzz, shorten_branches): Likewise.
(final): Likewise. Do not reject new insns if their addresses
have been added to INSN_ADDRESSES.
* config/arm/arm.c, config/avr/avr.c: Use new macros.
* config/h8300/h8300.c, config/i370/i370.c: Likewise.
* config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
* config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
* config/sh/sh.c: Likewise.
(output_branchy_insn): Use INSN_ADDRESSES_NEW.
From-SVN: r35307
2000-07-28 04:17:26 +02:00
|
|
|
|
$(GGC_H) input.h $(INSN_ATTR_H) insn-codes.h insn-config.h toplev.h intl.h
|
1999-08-09 16:00:21 +02:00
|
|
|
|
toplev.o : toplev.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) function.h \
|
Makefile.in (INSN_ATTR_H): New macro.
* Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
on insn-attr.h with it.
* genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
* insn-addr.h: New header.
(insn_addresses_): Renamed from insn_addresses.
(INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
INSN_ADDRESSES_NEW): New macros.
* genattrtab.c (write_test_expr): Use new macros.
* final.c (insn_addresses, init_insn_lengths): Likewise.
(align_fuzz, shorten_branches): Likewise.
(final): Likewise. Do not reject new insns if their addresses
have been added to INSN_ADDRESSES.
* config/arm/arm.c, config/avr/avr.c: Use new macros.
* config/h8300/h8300.c, config/i370/i370.c: Likewise.
* config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
* config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
* config/sh/sh.c: Likewise.
(output_branchy_insn): Use INSN_ADDRESSES_NEW.
From-SVN: r35307
2000-07-28 04:17:26 +02:00
|
|
|
|
flags.h input.h $(INSN_ATTR_H) xcoffout.h defaults.h output.h diagnostic.h \
|
1999-01-27 02:43:17 +01:00
|
|
|
|
insn-codes.h insn-config.h intl.h $(RECOG_H) Makefile toplev.h dwarfout.h \
|
2000-05-20 00:27:28 +02:00
|
|
|
|
dwarf2out.h sdbout.h dbxout.h $(EXPR_H) hard-reg-set.h $(BASIC_BLOCK_H) \
|
2000-11-03 20:42:17 +01:00
|
|
|
|
graph.h $(LOOP_H) except.h $(REGS_H) $(TIMEVAR_H) $(lang_options_files) ssa.h
|
1996-05-17 21:37:07 +02:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(MAYBE_USE_COLLECT2) \
|
1996-07-19 00:06:04 +02:00
|
|
|
|
-DTARGET_NAME=\"$(target_alias)\" \
|
configure.in: Remove AC_PROG_LEX and AC_PROG_YACC.
* configure.in: Remove AC_PROG_LEX and AC_PROG_YACC. Look for
flex and bison, specifically, first in a unified build and
then installed on the system.
* Makefile.in: Set BISON to @BISON@, FLEX to @FLEX@. Rename
LEXFLAGS to FLEXFLAGS. Adjust ORDINARY_FLAGS_TO_PASS to
match.
(collect2.o, gcc.o, prefix.o, toplev.o, alloca.o, intl.o,
cppdefault.o): Remove pointless sed munging of source file
name.
f:
* Make-lang.in (f/fini.o, f/proj-h.o): Remove pointless sed
munging of source file name.
($(srcdir)/f/intdoc.texi): Break up into several rules each of
which builds just one thing. Don't mess with $(LANGUAGES).
(f/ansify.o, f/intdoc.o): Remove unnecessary rules.
From-SVN: r37371
2000-11-10 18:23:09 +01:00
|
|
|
|
-c $(srcdir)/toplev.c
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
rtl.o : rtl.c $(GCONFIG_H) system.h $(RTL_H) bitmap.h $(GGC_H) toplev.h
|
|
|
|
|
$(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
print-rtl.o : print-rtl.c $(GCONFIG_H) system.h $(RTL_H) hard-reg-set.h \
|
2000-05-20 00:27:28 +02:00
|
|
|
|
$(BASIC_BLOCK_H)
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
$(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
|
2000-10-01 07:29:14 +02:00
|
|
|
|
rtlanal.o : rtlanal.c $(CONFIG_H) system.h toplev.h $(RTL_H)
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
errors.o : errors.c $(GCONFIG_H) system.h errors.h
|
|
|
|
|
$(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
|
1992-02-03 23:08:59 +01: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 15:58:42 +01:00
|
|
|
|
varasm.o : varasm.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) flags.h \
|
1998-07-02 15:49:34 +02:00
|
|
|
|
function.h defaults.h $(EXPR_H) hard-reg-set.h $(REGS_H) \
|
2000-04-06 02:51:25 +02:00
|
|
|
|
xcoffout.h output.h c-pragma.h toplev.h dbxout.h sdbout.h $(GGC_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 15:58:42 +01:00
|
|
|
|
function.o : function.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
1998-07-02 15:49:34 +02:00
|
|
|
|
function.h insn-flags.h insn-codes.h $(EXPR_H) $(REGS_H) hard-reg-set.h \
|
2000-04-06 02:51:25 +02:00
|
|
|
|
insn-config.h $(RECOG_H) output.h toplev.h except.h hash.h $(GGC_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 15:58:42 +01:00
|
|
|
|
stmt.o : stmt.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h function.h \
|
1998-06-27 06:42:25 +02:00
|
|
|
|
insn-flags.h insn-config.h insn-codes.h hard-reg-set.h $(EXPR_H) except.h \
|
2000-04-06 02:51:25 +02:00
|
|
|
|
$(LOOP_H) $(RECOG_H) toplev.h output.h varray.h $(GGC_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 15:58:42 +01:00
|
|
|
|
except.o : except.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
1998-07-02 15:49:34 +02:00
|
|
|
|
function.h insn-flags.h $(EXPR_H) $(REGS_H) hard-reg-set.h \
|
2000-04-06 02:51:25 +02:00
|
|
|
|
insn-config.h $(RECOG_H) output.h except.h toplev.h intl.h $(GGC_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 15:58:42 +01: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 19:14:58 +02:00
|
|
|
|
$(REGS_H) insn-flags.h insn-codes.h $(EXPR_H) insn-config.h $(RECOG_H) \
|
1999-09-05 05:49:52 +02:00
|
|
|
|
output.h typeclass.h hard-reg-set.h toplev.h hard-reg-set.h except.h \
|
2000-04-15 00:13:59 +02:00
|
|
|
|
reload.h $(GGC_H) intl.h
|
1999-07-22 13:04:58 +02:00
|
|
|
|
builtins.o : builtins.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
|
|
|
|
function.h $(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 06:42:25 +02:00
|
|
|
|
calls.o : calls.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h $(EXPR_H) \
|
2000-06-22 23:01:04 +02:00
|
|
|
|
insn-flags.h $(REGS_H) toplev.h output.h function.h $(TIMEVAR_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 15:58:42 +01: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 19:14:58 +02: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 15:58:42 +01: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 19:14:58 +02:00
|
|
|
|
hard-reg-set.h insn-config.h $(EXPR_H) $(RECOG_H) insn-flags.h \
|
1999-12-20 20:47:58 +01:00
|
|
|
|
insn-codes.h toplev.h function.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 15:58:42 +01: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 19:14:58 +02:00
|
|
|
|
insn-flags.h insn-config.h insn-codes.h $(EXPR_H) $(RECOG_H) reload.h \
|
defaults.h: Provide default definitions for...
* defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
* cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
profile.c, sdbout.c, tradcif.y, tree.c, ch/decl.c, ch/timing.c,
cp/decl.c, cp/rtti.c, f/com.c, f/com.h, java/decl.c, java/expr.c:
Include defaults.h if not already included.
Don't define the above macros.
* Makefile.in, ch/Makefile.in, cp/Makefile.in, f/Makefile.in:
Update dependencies.
From-SVN: r36307
2000-09-11 03:50:49 +02:00
|
|
|
|
toplev.h $(GGC_H) real.h defaults.h
|
1998-07-02 15:49:34 +02: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 10:42:48 +02:00
|
|
|
|
insn-config.h reload.h gstab.h xcoffout.h defaults.h output.h dbxout.h \
|
configure (gcc_version): When setting, narrow search to lines containing `version_string'.
* configure (gcc_version): When setting, narrow search to
lines containing `version_string'.
gcc:
* version.c: Include gansidecl.h and version.h.
* version.h: Wrap entire file in macro __GCC_VERSION_H__.
* configure.in (gcc_version): When setting, narrow search to
lines containing `version_string'.
* Makefile.in (mainversion): Likewise.
(GCC_H): New variable.
(gcc.h): Delete target.
(gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
(version.o): Depend on version.h.
(dbxout.o): Don't depend on gcc.h.
gcc/cp:
* Make-lang.in (g++spec.o): Depend on $(GCC_H), not gcc.h.
gcc/f:
* Make-lang.in (g77spec.o): Depend on $(GCC_H), not gcc.h.
gcc/java:
* Make-lang.in (jvspec.o): Depend on $(GCC_H), not gcc.h.
libf2c:
* configure.in (gcc_version): When setting, narrow search to
lines containing `version_string'.
From-SVN: r32009
2000-02-16 17:22:47 +01:00
|
|
|
|
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 15:58:42 +01:00
|
|
|
|
sdbout.o : sdbout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) flags.h except.h \
|
1998-07-02 15:49:34 +02:00
|
|
|
|
function.h $(EXPR_H) output.h hard-reg-set.h $(REGS_H) defaults.h real.h \
|
2000-04-06 23:22:49 +02:00
|
|
|
|
insn-config.h $(OBSTACK_H) xcoffout.h c-pragma.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 14:24:04 +02:00
|
|
|
|
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 15:58:42 +01:00
|
|
|
|
dwarfout.o : dwarfout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) dwarf.h \
|
2000-01-06 15:29:08 +01: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 15:58:42 +01:00
|
|
|
|
dwarf2out.o : dwarf2out.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) dwarf2.h \
|
1998-06-27 06:42:25 +02:00
|
|
|
|
flags.h insn-config.h reload.h output.h defaults.h \
|
dwarf2out.c: include "varray.h", not dyn-string.h.
* dwarf2out.c: include "varray.h", not dyn-string.h.
(ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
(addr_const_to_string, addr_to_string): Lose.
(ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
(struct dw_val_struct): val_addr is now an rtx.
(add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
(used_rtx_varray): New varray.
(dwarf2out_init): Initialize it.
(save_rtx): New fn.
(mem_loc_descriptor, add_const_value_attribute): Call it instead of
addr_to_string.
* arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
* Makefile.in (dwarf2out.o): Update dependencies.
* i386.c (i386_dwarf_output_addr_const): New.
* i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
* dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
if defined.
* dwarfout.c (output_mem_loc_descriptor): Likewise.
* i386.c (i386_simplify_dwarf_addr): New.
* i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
From-SVN: r31602
2000-01-25 06:59:18 +01:00
|
|
|
|
hard-reg-set.h $(REGS_H) $(EXPR_H) toplev.h dwarf2out.h varray.h \
|
2000-04-06 02:51:25 +02:00
|
|
|
|
$(GGC_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 15:58:42 +01:00
|
|
|
|
xcoffout.o : xcoffout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) xcoffout.h \
|
2000-04-06 02:51:25 +02:00
|
|
|
|
flags.h toplev.h output.h dbxout.h $(GGC_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 15:58:42 +01:00
|
|
|
|
emit-rtl.o : emit-rtl.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
2000-04-06 02:51:25 +02:00
|
|
|
|
function.h $(REGS_H) insn-config.h $(RECOG_H) real.h $(GGC_H) \
|
2000-03-31 10:57:54 +02:00
|
|
|
|
$(EXPR_H) $(srcdir)/../include/obstack.h hard-reg-set.h bitmap.h toplev.h \
|
defaults.h: Provide default definitions for...
* defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
* cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
profile.c, sdbout.c, tradcif.y, tree.c, ch/decl.c, ch/timing.c,
cp/decl.c, cp/rtti.c, f/com.c, f/com.h, java/decl.c, java/expr.c:
Include defaults.h if not already included.
Don't define the above macros.
* Makefile.in, ch/Makefile.in, cp/Makefile.in, f/Makefile.in:
Update dependencies.
From-SVN: r36307
2000-09-11 03:50:49 +02:00
|
|
|
|
$(HASHTAB_H) defaults.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 18:43:15 +02: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 15:58:42 +01:00
|
|
|
|
integrate.o : integrate.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
1999-12-05 01:20:43 +01:00
|
|
|
|
$(INTEGRATE_H) insn-flags.h insn-config.h $(EXPR_H) real.h $(REGS_H) \
|
flow.c (flow_nodes_print, [...]): New functions.
* flow.c (flow_nodes_print, flow_loops_cfg_dump): New functions.
(flow_loop_nested_p, flow_loops_dump, flow_loops_free): Likewise.
(flow_loop_exits_find, flow_loop_nodes_find): Likewise.
(flow_depth_first_order_compute, flow_loop_pre_header_find): Likewise.
(flow_loop_tree_node_add, flow_loops_tree_build): Likewise.
(flow_loop_level_compute, low_loops_level_compute): Likewise.
(flow_loops_find, flow_loop_outside_edge_p): Likewise.
* basic-block.h: Protect from multiple inclusion.
(flow_loops_find, flow_loops_free, flow_loop_dump): Add protoypes.
(struct loops, struct loop): Define structures.
* sbitmap.c (sbitmap_a_subset_b_p): New function.
* sbitmap.h: Protect from multiple inclusion.
(sbitmap_a_subset_b_p): Add prototype.
* Makefile.in (LOOP_H): New macro.
(stmt.o, integrate.o, loop.o, unroll.o): Replace loop.h with LOOP_H.
From-SVN: r30720
1999-11-30 11:42:29 +01:00
|
|
|
|
intl.h function.h output.h $(RECOG_H) except.h toplev.h $(LOOP_H)
|
1998-07-02 15:49:34 +02:00
|
|
|
|
jump.o : jump.c $(CONFIG_H) system.h $(RTL_H) flags.h hard-reg-set.h $(REGS_H) \
|
1999-08-09 16:00:21 +02:00
|
|
|
|
insn-config.h insn-flags.h $(RECOG_H) $(EXPR_H) real.h except.h function.h \
|
Makefile.in (INSN_ATTR_H): New macro.
* Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
on insn-attr.h with it.
* genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
* insn-addr.h: New header.
(insn_addresses_): Renamed from insn_addresses.
(INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
INSN_ADDRESSES_NEW): New macros.
* genattrtab.c (write_test_expr): Use new macros.
* final.c (insn_addresses, init_insn_lengths): Likewise.
(align_fuzz, shorten_branches): Likewise.
(final): Likewise. Do not reject new insns if their addresses
have been added to INSN_ADDRESSES.
* config/arm/arm.c, config/avr/avr.c: Use new macros.
* config/h8300/h8300.c, config/i370/i370.c: Likewise.
* config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
* config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
* config/sh/sh.c: Likewise.
(output_branchy_insn): Use INSN_ADDRESSES_NEW.
From-SVN: r35307
2000-07-28 04:17:26 +02:00
|
|
|
|
toplev.h $(INSN_ATTR_H)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1999-11-01 01:18:23 +01:00
|
|
|
|
simplify-rtx.o : simplify-rtx.c $(CONFIG_H) system.h $(RTL_H) $(REGS_H) \
|
|
|
|
|
hard-reg-set.h flags.h real.h insn-config.h $(RECOG_H) $(EXPR_H) toplev.h \
|
2000-11-03 20:42:17 +01:00
|
|
|
|
output.h function.h cselib.h $(GGC_H) $(OBSTACK_H)
|
1998-07-02 15:49:34 +02:00
|
|
|
|
cse.o : cse.c $(CONFIG_H) system.h $(RTL_H) $(REGS_H) hard-reg-set.h flags.h \
|
2000-09-06 11:20:38 +02:00
|
|
|
|
real.h insn-config.h $(RECOG_H) $(EXPR_H) toplev.h output.h function.h \
|
|
|
|
|
$(BASIC_BLOCK_H) $(GGC_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 19:14:58 +02: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) \
|
1999-08-09 16:00:21 +02:00
|
|
|
|
function.h output.h toplev.h
|
2000-03-17 23:40:45 +01:00
|
|
|
|
sibcall.o : sibcall.c $(CONFIG_H) system.h $(RTL_H) $(REGS_H) function.h \
|
|
|
|
|
hard-reg-set.h flags.h insn-config.h $(RECOG_H) $(BASIC_BLOCK_H)
|
1999-02-03 02:13:52 +01:00
|
|
|
|
resource.o : resource.c $(CONFIG_H) $(RTL_H) hard-reg-set.h system.h \
|
2000-01-11 00:48:03 +01:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) flags.h output.h resource.h function.h toplev.h \
|
Makefile.in (INSN_ATTR_H): New macro.
* Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
on insn-attr.h with it.
* genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
* insn-addr.h: New header.
(insn_addresses_): Renamed from insn_addresses.
(INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
INSN_ADDRESSES_NEW): New macros.
* genattrtab.c (write_test_expr): Use new macros.
* final.c (insn_addresses, init_insn_lengths): Likewise.
(align_fuzz, shorten_branches): Likewise.
(final): Likewise. Do not reject new insns if their addresses
have been added to INSN_ADDRESSES.
* config/arm/arm.c, config/avr/avr.c: Use new macros.
* config/h8300/h8300.c, config/i370/i370.c: Likewise.
* config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
* config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
* config/sh/sh.c: Likewise.
(output_branchy_insn): Use INSN_ADDRESSES_NEW.
From-SVN: r35307
2000-07-28 04:17:26 +02:00
|
|
|
|
$(INSN_ATTR_H) except.h
|
1999-03-10 23:03:36 +01:00
|
|
|
|
lcm.o : lcm.c $(CONFIG_H) system.h $(RTL_H) $(REGS_H) hard-reg-set.h flags.h \
|
Makefile.in (INSN_ATTR_H): New macro.
* Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
on insn-attr.h with it.
* genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
* insn-addr.h: New header.
(insn_addresses_): Renamed from insn_addresses.
(INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
INSN_ADDRESSES_NEW): New macros.
* genattrtab.c (write_test_expr): Use new macros.
* final.c (insn_addresses, init_insn_lengths): Likewise.
(align_fuzz, shorten_branches): Likewise.
(final): Likewise. Do not reject new insns if their addresses
have been added to INSN_ADDRESSES.
* config/arm/arm.c, config/avr/avr.c: Use new macros.
* config/h8300/h8300.c, config/i370/i370.c: Likewise.
* config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
* config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
* config/sh/sh.c: Likewise.
(output_branchy_insn): Use INSN_ADDRESSES_NEW.
From-SVN: r35307
2000-07-28 04:17:26 +02:00
|
|
|
|
real.h insn-config.h $(INSN_ATTR_H) $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H)
|
2000-08-02 06:21:27 +02:00
|
|
|
|
ssa.o : ssa.c $(CONFIG_H) system.h $(REGS_H) varray.h \
|
|
|
|
|
hard-reg-set.h flags.h function.h real.h insn-config.h $(RECOG_H) \
|
|
|
|
|
$(BASIC_BLOCK_H) output.h ssa.h
|
|
|
|
|
dce.o : dce.c $(CONFIG_H) system.h $(RTL_H) hard-reg-set.h $(BASIC_BLOCK_H) \
|
|
|
|
|
ssa.h insn-config.h $(RECOG_H) output.h
|
2000-04-07 23:37:56 +02:00
|
|
|
|
conflict.o : conflict.c $(CONFIG_H) system.h $(OBSTACK_H) $(HASHTAB_H) \
|
2000-05-20 00:27:28 +02:00
|
|
|
|
$(RTL_H) hard-reg-set.h $(BASIC_BLOCK_H)
|
|
|
|
|
profile.o : profile.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
|
|
|
|
insn-flags.h insn-config.h output.h $(REGS_H) $(EXPR_H) function.h \
|
defaults.h: Provide default definitions for...
* defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
* cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
profile.c, sdbout.c, tradcif.y, tree.c, ch/decl.c, ch/timing.c,
cp/decl.c, cp/rtti.c, f/com.c, f/com.h, java/decl.c, java/expr.c:
Include defaults.h if not already included.
Don't define the above macros.
* Makefile.in, ch/Makefile.in, cp/Makefile.in, f/Makefile.in:
Update dependencies.
From-SVN: r36307
2000-09-11 03:50:49 +02:00
|
|
|
|
gcov-io.h toplev.h $(GGC_H) hard-reg-set.h $(BASIC_BLOCK_H) defaults.h
|
flow.c (flow_nodes_print, [...]): New functions.
* flow.c (flow_nodes_print, flow_loops_cfg_dump): New functions.
(flow_loop_nested_p, flow_loops_dump, flow_loops_free): Likewise.
(flow_loop_exits_find, flow_loop_nodes_find): Likewise.
(flow_depth_first_order_compute, flow_loop_pre_header_find): Likewise.
(flow_loop_tree_node_add, flow_loops_tree_build): Likewise.
(flow_loop_level_compute, low_loops_level_compute): Likewise.
(flow_loops_find, flow_loop_outside_edge_p): Likewise.
* basic-block.h: Protect from multiple inclusion.
(flow_loops_find, flow_loops_free, flow_loop_dump): Add protoypes.
(struct loops, struct loop): Define structures.
* sbitmap.c (sbitmap_a_subset_b_p): New function.
* sbitmap.h: Protect from multiple inclusion.
(sbitmap_a_subset_b_p): Add prototype.
* Makefile.in (LOOP_H): New macro.
(stmt.o, integrate.o, loop.o, unroll.o): Replace loop.h with LOOP_H.
From-SVN: r30720
1999-11-30 11:42:29 +01:00
|
|
|
|
loop.o : loop.c $(CONFIG_H) system.h $(RTL_H) flags.h $(LOOP_H) insn-config.h \
|
1998-07-02 15:49:34 +02:00
|
|
|
|
insn-flags.h $(REGS_H) hard-reg-set.h $(RECOG_H) $(EXPR_H) real.h \
|
2000-03-14 19:36:18 +01:00
|
|
|
|
$(BASIC_BLOCK_H) function.h toplev.h varray.h except.h cselib.h
|
Makefile.in (OBJS): Add doloop.o.
* Makefile.in (OBJS): Add doloop.o.
* doloop.c: New file.
* final.c (insn_current_reference_address): Return 0 before final.
* flags.h (flag_branch_on_count_reg): Fix typos in commentary.
* jump.c (any_uncondjump_p): Likewise.
* loop.c (indirect_jump_in_function): Make static.
(strength_reduce): Call doloop_optimize.
(insert_bct, instrument_loop_bct): Remove.
* loop.h (doloop_optimize): Prototype.
* recog.c (split_all_insns): Split all INSN_P.
* toplev.c (flag_branch_on_count_reg): Default on.
* config/c4x/c4x.c (c4x_optimization_options): Don't set
flag_branch_on_count_reg.
* config/i386/i386.c (override_options): Likewise.
* config/rs6000/rs6000.c (optimization_options): Likewise.
* config/i386/i386.md (decrement_and_branch_on_count): Remove.
(doloop_end): New.
(dbra_ge): Remove, as well as all it's splitters.
* config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
(doloop_end): New.
* config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
(ia64_register_move_cost): Declare.
* config/ia64/ia64.c (ar_lc_reg_operand): New.
(struct ia64_frame_info): Add ar_size.
(ia64_compute_frame_size): Set it.
(save_restore_insns): Save and restore ar.lc.
(ia64_register_move_cost): New, moved from header file. Handle
application registers.
(REG_AR_PFS, REG_AR_EC): Remove. Replace with AR_*_REGNUM numbers.
(emit_insn_group_barriers): Special case doloop_end_internal.
(ia64_epilogue_uses): Mark ar.lc live at end.
* config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
(AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
(FIRST_PSEUDO_REGISTER): Make room.
(AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
(FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
(REG_ALLOC_ORDER): Update.
(HARD_REGNO_MODE_OK): Update.
(REGISTER_NAMES): Update.
(enum reg_class): Add AR_M_REGS and AR_I_REGS.
(REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
(REGNO_REG_CLASS): Update.
(LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
(REGISTER_MOVE_COST): Move out of line.
(PREDICATE_CODES): Update.
* config/ia64/ia64.md (movdi patterns): Handle ar register classes.
(addsi3_plus1_alt, adddi3_plus1_alt): New.
(shladd_elim splitter): Allow constants in the predicate.
(doloop_end, doloop_end_internal): New.
From-SVN: r35358
2000-07-31 01:58:03 +02:00
|
|
|
|
doloop.o : doloop.c $(CONFIG_H) system.h $(RTL_H) flags.h $(LOOP_H) \
|
|
|
|
|
insn-flags.h $(EXPR_H) hard-reg-set.h $(BASIC_BLOCK_H)
|
1999-08-09 16:00:21 +02:00
|
|
|
|
unroll.o : unroll.c $(CONFIG_H) system.h $(RTL_H) insn-config.h function.h \
|
1999-12-05 01:20:43 +01:00
|
|
|
|
$(INTEGRATE_H) $(REGS_H) $(RECOG_H) flags.h $(EXPR_H) $(LOOP_H) toplev.h \
|
2000-05-20 00:27:28 +02:00
|
|
|
|
hard-reg-set.h varray.h $(BASIC_BLOCK_H)
|
Makefile.in (flow.o): Depend on TREE_H.
* Makefile.in (flow.o): Depend on TREE_H.
* basic-block.h (REG_SET_EQUAL_P): New.
(XOR_REG_SET): New.
(n_edges): Declare.
(free_regset_vector): Remove declaration.
(flow_delete_insn_chain): Declare.
(enum update_life_extent): New.
(update_life_info, count_or_remove_death_notes): Declare.
* combine.c (distribute_notes) [REG_DEAD]: Stop search at bb->head.
Verify register live at bb->global_live_at_start before adding USE.
* flow.c (HAVE_epilogue, HAVE_prologue): Provide default.
(CLEAN_ALLOCA): New.
(n_edges): New.
(PROP_*): New flags.
(find_basic_blocks_1): Use alloc_EXPR_LIST.
(clear_edges): Zero n_edges.
(make_edge): Increment n_edges.
(split_edge): Don't allocate bb->local_set. Increment n_edges.
(flow_delete_insn_chain): Export.
(delete_block): Decrement n_edges.
(merge_blocks_nomove): Likewise.
(life_analysis): Give life_analysis_1 PROP flags.
(verify_wide_reg_1, verify_wide_reg): New.
(verify_local_live_at_start): New.
(update_life_info): Rewrite to call into propogate_block.
(mark_reg): New.
(mark_regs_live_at_end): After reload, if epilogue as rtl,
always mark stack pointer. Conditionally mark PIC register.
After reload, mark call-saved registers, return regsiters.
(life_analysis_1): Accept PROP flags not remove_dead_code.
Call mark_regs_live_at_end before zeroing regs_ever_live.
Use calculate_global_regs_live. Copy global_live_at_end before
calling final propagate_block. Zero reg_next_use on exit.
(calculate_global_regs_live): New.
(allocate_bb_life_data): Don't allocate bb->local_set.
(init_regset_vector, free_regset_vector): Remove.
(propagate_block): Accept FLAGS not FINAL or REMOVE_DEAD_CODE.
Test flags before every operation. Warn if prologue/epilogue insn
would have been deleted.
(mark_set_regs, mark_set_1): Accept and use FLAGS.
Use alloc_EXPR_LIST.
(mark_used_regs): Accept and use FLAGS, not FINAL.
Remove special handling for RETURN.
(try_pre_increment): Use alloc_EXPR_LIST.
(dump_flow_info): Dump n_edges.
(unlink_insn_chain, split_hard_reg_notes): Remove.
(maybe_add_dead_note, maybe_add_dead_note_use): Remove.
(find_insn_with_note, new_insn_dead_notes): Remove.
(update_n_sets, sets_reg_or_subreg_1, sets_reg_or_subreg): Remove.
(maybe_remove_dead_notes, prepend_reg_notes): Remove.
(replace_insns): Remove.
(count_or_remove_death_notes): New.
(verify_flow_info): Abort on error after all checks.
(remove_edge): Decrement n_edges.
(remove_fake_edges): Tweek format.
* haifa-sched.c (schedule_insns): Use split_all_insns.
* output.h (update_life_info): Remove declaration.
* recog.c (split_all_insns): From the corpse of split_block_insns,
do the whole function block by block. Use update_life_info.
(recog_last_allowed_insn): New.
(recog_next_insn): Mind it.
(peephole2_optimize): Set it. Walk backwards through blocks.
Use update_life_info.
* rtl.h (update_flow_info, replace_insns): Remove declarations.
(split_all_insns): Declare.
* toplev.c (rest_of_compilation): Thread prologue before flow2.
Use split_all_insns.
* i386.md (or -1 peep2s): Disable.
From-SVN: r29877
1999-10-09 21:47:18 +02:00
|
|
|
|
flow.o : flow.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h insn-config.h \
|
1999-11-23 09:03:47 +01:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h toplev.h $(RECOG_H) \
|
2000-10-13 08:26:46 +02:00
|
|
|
|
insn-flags.h function.h except.h $(EXPR_H) ssa.h $(GGC_H)
|
2000-11-14 10:58:40 +01:00
|
|
|
|
dominance.o : dominance.c $(CONFIG_H) system.h $(RTL_H) hard-reg-set.h \
|
|
|
|
|
$(BASIC_BLOCK_H)
|
1999-08-09 16:00:21 +02:00
|
|
|
|
combine.o : combine.c $(CONFIG_H) system.h $(RTL_H) flags.h function.h \
|
Makefile.in (INSN_ATTR_H): New macro.
* Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
on insn-attr.h with it.
* genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
* insn-addr.h: New header.
(insn_addresses_): Renamed from insn_addresses.
(INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
INSN_ADDRESSES_NEW): New macros.
* genattrtab.c (write_test_expr): Use new macros.
* final.c (insn_addresses, init_insn_lengths): Likewise.
(align_fuzz, shorten_branches): Likewise.
(final): Likewise. Do not reject new insns if their addresses
have been added to INSN_ADDRESSES.
* config/arm/arm.c, config/avr/avr.c: Use new macros.
* config/h8300/h8300.c, config/i370/i370.c: Likewise.
* config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
* config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
* config/sh/sh.c: Likewise.
(output_branchy_insn): Use INSN_ADDRESSES_NEW.
From-SVN: r35307
2000-07-28 04:17:26 +02:00
|
|
|
|
insn-config.h insn-flags.h insn-codes.h $(INSN_ATTR_H) $(REGS_H) $(EXPR_H) \
|
1998-06-20 01:37:04 +02: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 15:58:42 +01:00
|
|
|
|
regclass.o : regclass.c $(CONFIG_H) system.h $(RTL_H) hard-reg-set.h flags.h \
|
1999-08-09 16:00:21 +02:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) insn-config.h $(RECOG_H) reload.h real.h \
|
2000-04-06 02:51:25 +02:00
|
|
|
|
toplev.h function.h output.h $(GGC_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 15:58:42 +01:00
|
|
|
|
local-alloc.o : local-alloc.c $(CONFIG_H) system.h $(RTL_H) flags.h \
|
1999-08-09 16:00:21 +02:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h insn-config.h $(RECOG_H) \
|
Makefile.in (INSN_ATTR_H): New macro.
* Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
on insn-attr.h with it.
* genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
* insn-addr.h: New header.
(insn_addresses_): Renamed from insn_addresses.
(INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
INSN_ADDRESSES_NEW): New macros.
* genattrtab.c (write_test_expr): Use new macros.
* final.c (insn_addresses, init_insn_lengths): Likewise.
(align_fuzz, shorten_branches): Likewise.
(final): Likewise. Do not reject new insns if their addresses
have been added to INSN_ADDRESSES.
* config/arm/arm.c, config/avr/avr.c: Use new macros.
* config/h8300/h8300.c, config/i370/i370.c: Likewise.
* config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
* config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
* config/sh/sh.c: Likewise.
(output_branchy_insn): Use INSN_ADDRESSES_NEW.
From-SVN: r35307
2000-07-28 04:17:26 +02:00
|
|
|
|
output.h function.h $(INSN_ATTR_H) toplev.h
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
bitmap.o : bitmap.c $(GCONFIG_H) system.h $(RTL_H) flags.h $(BASIC_BLOCK_H) \
|
1998-07-02 15:49:34 +02:00
|
|
|
|
$(REGS_H)
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
$(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
|
1999-08-09 16:00:21 +02:00
|
|
|
|
global.o : global.c $(CONFIG_H) system.h $(RTL_H) flags.h reload.h function.h \
|
1998-07-02 15:49:34 +02: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
|
1998-06-27 06:42:25 +02:00
|
|
|
|
reload.o : reload.c $(CONFIG_H) system.h $(RTL_H) flags.h output.h $(EXPR_H) \
|
1998-07-02 15:49:34 +02:00
|
|
|
|
reload.h $(RECOG_H) hard-reg-set.h insn-config.h insn-codes.h $(REGS_H) \
|
1999-08-09 16:00:21 +02:00
|
|
|
|
function.h real.h toplev.h
|
1998-06-27 06:42:25 +02:00
|
|
|
|
reload1.o : reload1.c $(CONFIG_H) system.h $(RTL_H) real.h flags.h $(EXPR_H) \
|
1998-07-02 15:49:34 +02:00
|
|
|
|
reload.h $(REGS_H) hard-reg-set.h insn-config.h insn-flags.h insn-codes.h \
|
2000-03-14 19:36:18 +01:00
|
|
|
|
$(BASIC_BLOCK_H) $(RECOG_H) output.h function.h toplev.h cselib.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 15:58:42 +01:00
|
|
|
|
caller-save.o : caller-save.c $(CONFIG_H) system.h $(RTL_H) flags.h \
|
1999-08-09 16:00:21 +02:00
|
|
|
|
$(REGS_H) hard-reg-set.h insn-config.h $(BASIC_BLOCK_H) function.h \
|
1998-06-27 06:42:25 +02: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 15:58:42 +01:00
|
|
|
|
reorg.o : reorg.c $(CONFIG_H) system.h $(RTL_H) conditions.h hard-reg-set.h \
|
Makefile.in (INSN_ATTR_H): New macro.
* Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
on insn-attr.h with it.
* genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
* insn-addr.h: New header.
(insn_addresses_): Renamed from insn_addresses.
(INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
INSN_ADDRESSES_NEW): New macros.
* genattrtab.c (write_test_expr): Use new macros.
* final.c (insn_addresses, init_insn_lengths): Likewise.
(align_fuzz, shorten_branches): Likewise.
(final): Likewise. Do not reject new insns if their addresses
have been added to INSN_ADDRESSES.
* config/arm/arm.c, config/avr/avr.c: Use new macros.
* config/h8300/h8300.c, config/i370/i370.c: Likewise.
* config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
* config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
* config/sh/sh.c: Likewise.
(output_branchy_insn): Use INSN_ADDRESSES_NEW.
From-SVN: r35307
2000-07-28 04:17:26 +02:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) insn-config.h $(INSN_ATTR_H) insn-flags.h \
|
1999-08-09 16:00:21 +02:00
|
|
|
|
$(RECOG_H) function.h flags.h output.h $(EXPR_H) toplev.h
|
1998-07-10 00:55:40 +02:00
|
|
|
|
alias.o : alias.c $(CONFIG_H) system.h $(RTL_H) flags.h hard-reg-set.h \
|
2000-10-25 07:00:53 +02:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) toplev.h output.h $(EXPR_H) insn-flags.h \
|
|
|
|
|
$(GGC_H) function.h cselib.h $(TREE_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 15:58:42 +01:00
|
|
|
|
regmove.o : regmove.c $(CONFIG_H) system.h $(RTL_H) insn-config.h \
|
2000-07-28 19:46:18 +02:00
|
|
|
|
$(RECOG_H) output.h $(REGS_H) hard-reg-set.h flags.h function.h \
|
1998-06-27 06:42:25 +02:00
|
|
|
|
$(EXPR_H) insn-flags.h $(BASIC_BLOCK_H) toplev.h
|
2000-12-03 13:53:49 +01:00
|
|
|
|
haifa-sched.o : haifa-sched.c $(CONFIG_H) system.h $(RTL_H) sched-int.h \
|
1999-08-09 16:00:21 +02:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h flags.h insn-config.h function.h \
|
2000-12-20 18:19:39 +01:00
|
|
|
|
$(INSN_ATTR_H) insn-flags.h toplev.h $(RECOG_H) except.h
|
2000-12-22 13:27:36 +01:00
|
|
|
|
sched-deps.o : sched-deps.c $(CONFIG_H) system.h $(RTL_H) sched-int.h \
|
2000-12-03 17:11:45 +01:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h flags.h insn-config.h function.h \
|
|
|
|
|
$(INSN_ATTR_H) toplev.h $(RECOG_H) except.h
|
2000-12-22 13:27:36 +01:00
|
|
|
|
sched-rgn.o : sched-rgn.c $(CONFIG_H) system.h $(RTL_H) sched-int.h \
|
2000-12-03 20:00:00 +01:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h flags.h insn-config.h function.h \
|
|
|
|
|
$(INSN_ATTR_H) toplev.h $(RECOG_H) except.h
|
2000-12-20 18:19:39 +01:00
|
|
|
|
sched-ebb.o : sched-ebb.c $(CONFIG_H) system.h $(RTL_H) sched-int.h \
|
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h flags.h insn-config.h function.h \
|
|
|
|
|
$(INSN_ATTR_H) toplev.h $(RECOG_H) except.h
|
2000-12-03 15:35:17 +01:00
|
|
|
|
sched-vis.o : sched-vis.c $(CONFIG_H) system.h $(RTL_H) sched-int.h \
|
2000-12-20 18:19:39 +01:00
|
|
|
|
hard-reg-set.h $(BASIC_BLOCK_H) $(INSN_ATTR_H) $(REGS_H)
|
1999-01-27 02:43:17 +01:00
|
|
|
|
final.o : final.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h intl.h \
|
Makefile.in (INSN_ATTR_H): New macro.
* Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
on insn-attr.h with it.
* genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
* insn-addr.h: New header.
(insn_addresses_): Renamed from insn_addresses.
(INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
INSN_ADDRESSES_NEW): New macros.
* genattrtab.c (write_test_expr): Use new macros.
* final.c (insn_addresses, init_insn_lengths): Likewise.
(align_fuzz, shorten_branches): Likewise.
(final): Likewise. Do not reject new insns if their addresses
have been added to INSN_ADDRESSES.
* config/arm/arm.c, config/avr/avr.c: Use new macros.
* config/h8300/h8300.c, config/i370/i370.c: Likewise.
* config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
* config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
* config/sh/sh.c: Likewise.
(output_branchy_insn): Use INSN_ADDRESSES_NEW.
From-SVN: r35307
2000-07-28 04:17:26 +02:00
|
|
|
|
$(REGS_H) $(RECOG_H) conditions.h insn-config.h $(INSN_ATTR_H) function.h \
|
1999-08-09 16:00:21 +02:00
|
|
|
|
real.h output.h hard-reg-set.h insn-flags.h insn-codes.h gstab.h except.h \
|
|
|
|
|
xcoffout.h defaults.h toplev.h reload.h dwarfout.h dwarf2out.h sdbout.h \
|
2000-05-12 18:26:15 +02:00
|
|
|
|
dbxout.h $(BASIC_BLOCK_H)
|
1999-11-10 08:21:02 +01:00
|
|
|
|
recog.o : recog.c $(CONFIG_H) system.h $(RTL_H) function.h $(BASIC_BLOCK_H) \
|
Makefile.in (INSN_ATTR_H): New macro.
* Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
on insn-attr.h with it.
* genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
* insn-addr.h: New header.
(insn_addresses_): Renamed from insn_addresses.
(INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
INSN_ADDRESSES_NEW): New macros.
* genattrtab.c (write_test_expr): Use new macros.
* final.c (insn_addresses, init_insn_lengths): Likewise.
(align_fuzz, shorten_branches): Likewise.
(final): Likewise. Do not reject new insns if their addresses
have been added to INSN_ADDRESSES.
* config/arm/arm.c, config/avr/avr.c: Use new macros.
* config/h8300/h8300.c, config/i370/i370.c: Likewise.
* config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
* config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
* config/sh/sh.c: Likewise.
(output_branchy_insn): Use INSN_ADDRESSES_NEW.
From-SVN: r35307
2000-07-28 04:17:26 +02:00
|
|
|
|
$(REGS_H) $(RECOG_H) hard-reg-set.h flags.h insn-config.h $(INSN_ATTR_H) \
|
2000-11-03 23:24:21 +01:00
|
|
|
|
insn-flags.h insn-codes.h real.h toplev.h output.h reload.h
|
1999-11-23 09:03:47 +01:00
|
|
|
|
reg-stack.o : reg-stack.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) $(RECOG_H) \
|
1999-08-09 16:00:21 +02:00
|
|
|
|
$(REGS_H) hard-reg-set.h flags.h insn-config.h insn-flags.h toplev.h \
|
1999-08-31 22:37:09 +02:00
|
|
|
|
varray.h function.h
|
2000-01-14 03:01:21 +01:00
|
|
|
|
predict.o: predict.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
|
|
|
|
insn-config.h $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h toplev.h \
|
2000-01-20 18:34:26 +01:00
|
|
|
|
$(RECOG_H) insn-flags.h function.h except.h $(EXPR_H)
|
2000-04-06 02:51:25 +02:00
|
|
|
|
lists.o: lists.c $(CONFIG_H) system.h toplev.h $(RTL_H) $(GGC_H)
|
2000-03-16 15:56:55 +01:00
|
|
|
|
bb-reorder.o : bb-reorder.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
|
|
|
|
insn-config.h $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h toplev.h \
|
|
|
|
|
$(RECOG_H) insn-flags.h function.h except.h $(EXPR_H)
|
2000-06-29 19:31:03 +02:00
|
|
|
|
timevar.o : timevar.c $(CONFIG_H) system.h $(TIMEVAR_H) flags.h intl.h
|
2000-10-27 22:58:57 +02:00
|
|
|
|
regrename.o : regrename.c $(CONFIG_H) system.h $(RTL_H) insn-config.h \
|
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h $(RECOG_H) function.h \
|
|
|
|
|
resource.h $(OBSTACK_H) flags.h
|
2000-04-30 13:01:53 +02:00
|
|
|
|
ifcvt.o : ifcvt.c $(CONFIG_H) system.h $(RTL_H) $(REGS_H) \
|
|
|
|
|
flags.h insn-config.h function.h $(RECOG_H) $(BASIC_BLOCK_H) $(EXPR_H) \
|
|
|
|
|
output.h
|
2000-09-17 09:38:23 +02:00
|
|
|
|
dependence.o : dependence.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) \
|
|
|
|
|
$(C_COMMON_H) flags.h varray.h $(EXPR_H)
|
2000-08-22 18:16:20 +02:00
|
|
|
|
|
2000-04-06 02:51:25 +02:00
|
|
|
|
$(out_object_file): $(out_file) $(CONFIG_H) $(TREE_H) $(GGC_H) \
|
1998-07-02 15:49:34 +02:00
|
|
|
|
$(RTL_H) $(REGS_H) hard-reg-set.h real.h insn-config.h conditions.h \
|
2000-12-21 19:26:07 +01:00
|
|
|
|
insn-flags.h output.h $(INSN_ATTR_H) insn-codes.h system.h toplev.h \
|
|
|
|
|
function.h sched-int.h
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
|
|
|
|
$(out_file) $(OUTPUT_OPTION)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1993-10-08 12:44:01 +01: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-23 00:55:23 +02:00
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ mips-tfile.o version.o $(LIBS)
|
1993-10-08 12:44:01 +01:00
|
|
|
|
|
Makefile.in (TREE_H, [...]): Depend on version.h.
* Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
* cccp.c: Include version.h and/or don't declare `version_string'.
* collect2.c: Likewise.
* alpha.c: Likewise.
* arm/aof.h: Likewise.
* arm/coff.h: Likewise.
* arm/elf.h: Likewise.
* arm/pe.h: Likewise.
* arm/tcoff.h: Likewise.
* arm/telf.h: Likewise.
* arm/tpe.h: Likewise.
* arm/vxarm.h: Likewise.
* convex/convex.c: Likewise.
* i386/dgux.c: Likewise.
* i386/sun386.h: Likewise.
* m88k/m88k.c: Likewise.
* mcore/mcore-pe.h: Likewise.
* mips/mips.h: Likewise.
* romp/romp.h: Likewise.
* sh/sh.c: Likewise.
* cpphash.c: Likewise.
* cppinit.c: Likewise.
* dwarf2out.c: Likewise.
* dwarfout.c: Likewise.
* gcc.c: Likewise.
* gcc.h: Likewise.
* mips-tfile.c: Likewise.
* protoize.c: Likewise.
* toplev.c: Likewise.
* tree.h: Likewise.
* version.c (version_string): Constify a char*.
* version.h: New file.
ch:
* grant.c: Don't declare `version_string'.
f:
* g77spec.c: Don't declare `version_string'.
java:
* Makefile.in (jv-scan, jcf-dump, gcjh): Depend on and link with
version.o.
(jcf-dump.o, gjavah.o, jv-scan.o): Depend on version.h.
* gjavah.c: Include version.h.
* jcf-dump.c: Likewise.
* jv-scan.c: Likewise.
From-SVN: r31984
2000-02-15 17:36:35 +01:00
|
|
|
|
mips-tfile.o : mips-tfile.c $(CONFIG_H) $(RTL_H) system.h version.h
|
1993-10-08 12:44:01 +01: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-23 00:55:23 +02:00
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ mips-tdump.o version.o $(LIBS)
|
1993-10-08 12:44:01 +01:00
|
|
|
|
|
1998-05-06 10:57:18 +02:00
|
|
|
|
mips-tdump.o : mips-tdump.c $(CONFIG_H) $(RTL_H) system.h
|
1993-10-08 12:44:01 +01:00
|
|
|
|
|
1993-12-12 13:48:37 +01: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 14:05:54 +02:00
|
|
|
|
halfpic.o: halfpic.c $(CONFIG_H) $(RTL_H) $(TREE_H) system.h
|
1993-12-12 13:48:37 +01:00
|
|
|
|
|
1992-02-03 23:08:59 +01: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 12:41:24 +02:00
|
|
|
|
alloca.o: $(srcdir)/../libiberty/alloca.c
|
|
|
|
|
rm -f alloca.c
|
|
|
|
|
$(LN_S) $(srcdir)/../libiberty/alloca.c alloca.c
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
$(CC) $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) \
|
|
|
|
|
$(ALLOCA_FLAGS) -c alloca.c
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(ALLOCA_FINISH)
|
1997-06-09 21:19:18 +02:00
|
|
|
|
#
|
1999-09-18 20:05:59 +02:00
|
|
|
|
# Generate header and source files from the machine description,
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# 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 06:40:25 +02:00
|
|
|
|
# This causes an anomaly in the results of make -n
|
1998-04-04 15:32:39 +02:00
|
|
|
|
# because insn-* is older than s-*
|
1992-09-04 06:40:25 +02:00
|
|
|
|
# and thus make -n thinks that insn-* will be updated
|
|
|
|
|
# and force recompilation of things that depend on it.
|
1993-03-22 08:11:36 +01:00
|
|
|
|
# We use move-if-change precisely to avoid such recompilation.
|
1992-09-04 06:40:25 +02:00
|
|
|
|
# But there is no way to teach make -n that it will be avoided.
|
|
|
|
|
|
1992-02-03 23:08:59 +01: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 19:45:24 +01: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 23:08:59 +01:00
|
|
|
|
|
1998-04-04 15:32:39 +02:00
|
|
|
|
insn-config.h: s-config ; @true
|
2000-12-09 17:27:51 +01:00
|
|
|
|
s-config : $(md_file) genconfig$(build_exeext) $(srcdir)/move-if-change
|
|
|
|
|
./genconfig$(build_exeext) $(md_file) > tmp-config.h
|
1999-09-14 09:42:59 +02:00
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-config.h insn-config.h
|
1998-04-04 15:32:39 +02:00
|
|
|
|
touch s-config
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1998-04-04 15:32:39 +02:00
|
|
|
|
insn-flags.h: s-flags ; @true
|
2000-12-09 17:27:51 +01:00
|
|
|
|
s-flags : $(md_file) genflags$(build_exeext) $(srcdir)/move-if-change
|
|
|
|
|
./genflags$(build_exeext) $(md_file) > tmp-flags.h
|
1999-09-14 09:42:59 +02:00
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-flags.h insn-flags.h
|
1998-04-04 15:32:39 +02:00
|
|
|
|
touch s-flags
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1998-04-04 15:32:39 +02:00
|
|
|
|
insn-codes.h: s-codes ; @true
|
2000-12-09 17:27:51 +01:00
|
|
|
|
s-codes : $(md_file) gencodes$(build_exeext) $(srcdir)/move-if-change
|
|
|
|
|
./gencodes$(build_exeext) $(md_file) > tmp-codes.h
|
1999-09-14 09:42:59 +02:00
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-codes.h insn-codes.h
|
1998-04-04 15:32:39 +02:00
|
|
|
|
touch s-codes
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1998-06-27 06:42:25 +02:00
|
|
|
|
insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) $(EXPR_H) real.h output.h \
|
1999-11-23 09:03:47 +01:00
|
|
|
|
insn-config.h insn-flags.h insn-codes.h system.h reload.h $(RECOG_H) \
|
|
|
|
|
function.h flags.h hard-reg-set.h resource.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-emit.c
|
|
|
|
|
|
1998-04-04 15:32:39 +02:00
|
|
|
|
insn-emit.c: s-emit ; @true
|
2000-12-09 17:27:51 +01:00
|
|
|
|
s-emit : $(md_file) genemit$(build_exeext) $(srcdir)/move-if-change
|
|
|
|
|
./genemit$(build_exeext) $(md_file) > tmp-emit.c
|
1999-09-14 09:42:59 +02:00
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-emit.c insn-emit.c
|
1998-04-04 15:32:39 +02:00
|
|
|
|
touch s-emit
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1997-12-07 01:31:01 +01:00
|
|
|
|
insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h $(RECOG_H) \
|
1999-10-08 19:10:19 +02:00
|
|
|
|
real.h output.h flags.h system.h function.h hard-reg-set.h resource.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-recog.c
|
|
|
|
|
|
1998-04-04 15:32:39 +02:00
|
|
|
|
insn-recog.c: s-recog ; @true
|
2000-12-09 17:27:51 +01:00
|
|
|
|
s-recog : $(md_file) genrecog$(build_exeext) $(srcdir)/move-if-change
|
|
|
|
|
./genrecog$(build_exeext) $(md_file) > tmp-recog.c
|
1999-09-14 09:42:59 +02:00
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-recog.c insn-recog.c
|
1998-04-04 15:32:39 +02:00
|
|
|
|
touch s-recog
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1993-03-30 22:31:01 +02:00
|
|
|
|
insn-opinit.o : insn-opinit.c $(CONFIG_H) $(RTL_H) insn-codes.h insn-flags.h \
|
1998-06-27 06:42:25 +02:00
|
|
|
|
insn-config.h flags.h $(RECOG_H) $(EXPR_H) reload.h system.h
|
1993-03-30 22:31:01 +02:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-opinit.c
|
|
|
|
|
|
1998-04-04 15:32:39 +02:00
|
|
|
|
insn-opinit.c: s-opinit ; @true
|
2000-12-09 17:27:51 +01:00
|
|
|
|
s-opinit : $(md_file) genopinit$(build_exeext) $(srcdir)/move-if-change
|
|
|
|
|
./genopinit$(build_exeext) $(md_file) > tmp-opinit.c
|
1999-09-14 09:42:59 +02:00
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-opinit.c insn-opinit.c
|
1998-04-04 15:32:39 +02:00
|
|
|
|
touch s-opinit
|
1993-03-30 22:31:01 +02: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-17 03:28:57 +02:00
|
|
|
|
insn-extract.o : insn-extract.c $(CONFIG_H) $(RTL_H) system.h toplev.h \
|
1999-11-23 09:03:47 +01:00
|
|
|
|
insn-config.h $(RECOG_H)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-extract.c
|
|
|
|
|
|
1998-04-04 15:32:39 +02:00
|
|
|
|
insn-extract.c: s-extract ; @true
|
2000-12-09 17:27:51 +01:00
|
|
|
|
s-extract : $(md_file) genextract$(build_exeext) $(srcdir)/move-if-change
|
|
|
|
|
./genextract$(build_exeext) $(md_file) > tmp-extract.c
|
1999-09-14 09:42:59 +02:00
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-extract.c insn-extract.c
|
1998-04-04 15:32:39 +02:00
|
|
|
|
touch s-extract
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1998-10-25 13:56:39 +01:00
|
|
|
|
insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) $(REGS_H) output.h real.h \
|
1999-11-23 09:03:47 +01:00
|
|
|
|
system.h insn-config.h $(RECOG_H) except.h function.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-peep.c
|
|
|
|
|
|
1998-04-04 15:32:39 +02:00
|
|
|
|
insn-peep.c: s-peep ; @true
|
2000-12-09 17:27:51 +01:00
|
|
|
|
s-peep : $(md_file) genpeep$(build_exeext) $(srcdir)/move-if-change
|
|
|
|
|
./genpeep$(build_exeext) $(md_file) > tmp-peep.c
|
1999-09-14 09:42:59 +02:00
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-peep.c insn-peep.c
|
1998-04-04 15:32:39 +02:00
|
|
|
|
touch s-peep
|
1992-02-03 23:08:59 +01: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 07:56:20 +02:00
|
|
|
|
insn-attrtab.o : insn-attrtab.c $(CONFIG_H) $(RTL_H) $(REGS_H) real.h \
|
Makefile.in (INSN_ATTR_H): New macro.
* Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
on insn-attr.h with it.
* genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
* insn-addr.h: New header.
(insn_addresses_): Renamed from insn_addresses.
(INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
INSN_ADDRESSES_NEW): New macros.
* genattrtab.c (write_test_expr): Use new macros.
* final.c (insn_addresses, init_insn_lengths): Likewise.
(align_fuzz, shorten_branches): Likewise.
(final): Likewise. Do not reject new insns if their addresses
have been added to INSN_ADDRESSES.
* config/arm/arm.c, config/avr/avr.c: Use new macros.
* config/h8300/h8300.c, config/i370/i370.c: Likewise.
* config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
* config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
* config/sh/sh.c: Likewise.
(output_branchy_insn): Use INSN_ADDRESSES_NEW.
From-SVN: r35307
2000-07-28 04:17:26 +02:00
|
|
|
|
output.h $(INSN_ATTR_H) insn-config.h system.h toplev.h $(RECOG_H)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-attrtab.c
|
|
|
|
|
|
1998-04-04 15:32:39 +02:00
|
|
|
|
insn-attr.h: s-attr ; @true
|
2000-12-09 17:27:51 +01:00
|
|
|
|
s-attr : $(md_file) genattr$(build_exeext) $(srcdir)/move-if-change
|
|
|
|
|
./genattr$(build_exeext) $(md_file) > tmp-attr.h
|
1999-09-14 09:42:59 +02:00
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-attr.h insn-attr.h
|
1998-04-04 15:32:39 +02:00
|
|
|
|
touch s-attr
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1998-04-04 15:32:39 +02:00
|
|
|
|
insn-attrtab.c: s-attrtab ; @true
|
2000-12-09 17:27:51 +01:00
|
|
|
|
s-attrtab : $(md_file) genattrtab$(build_exeext) $(srcdir)/move-if-change
|
|
|
|
|
./genattrtab$(build_exeext) $(md_file) > tmp-attrtab.c
|
1999-09-14 09:42:59 +02:00
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-attrtab.c insn-attrtab.c
|
1998-04-04 15:32:39 +02:00
|
|
|
|
touch s-attrtab
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
2000-04-06 02:51:25 +02:00
|
|
|
|
insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) $(GGC_H) $(REGS_H) real.h \
|
Makefile.in (INSN_ATTR_H): New macro.
* Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
on insn-attr.h with it.
* genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
* insn-addr.h: New header.
(insn_addresses_): Renamed from insn_addresses.
(INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
INSN_ADDRESSES_NEW): New macros.
* genattrtab.c (write_test_expr): Use new macros.
* final.c (insn_addresses, init_insn_lengths): Likewise.
(align_fuzz, shorten_branches): Likewise.
(final): Likewise. Do not reject new insns if their addresses
have been added to INSN_ADDRESSES.
* config/arm/arm.c, config/avr/avr.c: Use new macros.
* config/h8300/h8300.c, config/i370/i370.c: Likewise.
* config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
* config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
* config/sh/sh.c: Likewise.
(output_branchy_insn): Use INSN_ADDRESSES_NEW.
From-SVN: r35307
2000-07-28 04:17:26 +02:00
|
|
|
|
conditions.h hard-reg-set.h insn-config.h insn-flags.h $(INSN_ATTR_H) \
|
2000-01-27 21:40:24 +01:00
|
|
|
|
output.h $(RECOG_H) function.h insn-codes.h system.h toplev.h flags.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-output.c
|
|
|
|
|
|
1998-04-04 15:32:39 +02:00
|
|
|
|
insn-output.c: s-output ; @true
|
2000-12-09 17:27:51 +01:00
|
|
|
|
s-output : $(md_file) genoutput$(build_exeext) $(srcdir)/move-if-change
|
|
|
|
|
./genoutput$(build_exeext) $(md_file) > tmp-output.c
|
1999-09-14 09:42:59 +02:00
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-output.c insn-output.c
|
1998-04-04 15:32:39 +02:00
|
|
|
|
touch s-output
|
1998-01-08 22:17:05 +01:00
|
|
|
|
|
2000-04-06 02:51:25 +02:00
|
|
|
|
genrtl.o : genrtl.c $(CONFIG_H) $(RTL_H) system.h $(GGC_H)
|
1998-04-04 15:32:39 +02:00
|
|
|
|
genrtl.c genrtl.h : s-genrtl
|
1998-01-19 10:39:38 +01:00
|
|
|
|
@true # force gnu make to recheck modification times.
|
|
|
|
|
|
2000-12-09 17:27:51 +01:00
|
|
|
|
s-genrtl: gengenrtl$(build_exeext) $(srcdir)/move-if-change $(RTL_BASE_H)
|
|
|
|
|
./gengenrtl$(build_exeext) -h >tmp-genrtl.h
|
1999-09-14 09:42:59 +02:00
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-genrtl.h genrtl.h
|
2000-12-09 17:27:51 +01:00
|
|
|
|
./gengenrtl$(build_exeext) >tmp-genrtl.c
|
1999-09-14 09:42:59 +02:00
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-genrtl.c genrtl.c
|
1998-04-04 15:32:39 +02:00
|
|
|
|
touch s-genrtl
|
1997-06-09 21:19:18 +02:00
|
|
|
|
#
|
1992-02-03 23:08:59 +01: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
|
1999-09-18 20:05:59 +02:00
|
|
|
|
# because these programs don't really depend on anything
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# about the target machine. They do depend on config.h itself,
|
|
|
|
|
# since that describes the host machine.
|
|
|
|
|
|
Makefile.in (gensupport.o): Compile for the host.
* Makefile.in (gensupport.o): Compile for the host.
(host-prefix gensuuprt.o): Remove.
(genflags.o): Depend on gensupport.h and OBSTACK_H.
(genattrtab.o): Likewise.
(gencodes.o): Depend on gensupport.h.
(genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
(genpeep.o, genattr.o, genoutput.o): Likewise.
* gensupport.c (obstack, rtl_obstack): New.
(init_md_reader): Initialize rtl_obstack.
* gensupport.h (rtl_obstack): Declare.
(message_with_line): Declare.
* genattr.c: Remove all traces of obstack manipulation.
* gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
* genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
* genattrtab.c (obstack, rtl_obstack): Remove.
(main): Don't init rtl_obstack.
* genflags.c: Likewise.
* genrecog.c (message_with_line): Move ...
* gensupport.c: ... here.
From-SVN: r33742
2000-05-07 00:30:13 +02:00
|
|
|
|
gensupport.o: gensupport.c $(RTL_H) $(OBSTACK_H) system.h errors.h gensupport.h
|
2000-06-13 22:06:39 +02:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gensupport.c
|
Makefile.in (gensupport.o): Compile for the host.
* Makefile.in (gensupport.o): Compile for the host.
(host-prefix gensuuprt.o): Remove.
(genflags.o): Depend on gensupport.h and OBSTACK_H.
(genattrtab.o): Likewise.
(gencodes.o): Depend on gensupport.h.
(genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
(genpeep.o, genattr.o, genoutput.o): Likewise.
* gensupport.c (obstack, rtl_obstack): New.
(init_md_reader): Initialize rtl_obstack.
* gensupport.h (rtl_obstack): Declare.
(message_with_line): Declare.
* genattr.c: Remove all traces of obstack manipulation.
* gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
* genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
* genattrtab.c (obstack, rtl_obstack): Remove.
(main): Don't init rtl_obstack.
* genflags.c: Likewise.
* genrecog.c (message_with_line): Move ...
* gensupport.c: ... here.
From-SVN: r33742
2000-05-07 00:30:13 +02:00
|
|
|
|
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
hashtab.o: $(srcdir)/../libiberty/hashtab.c $(GCONFIG_H)
|
2000-11-22 02:22:02 +01:00
|
|
|
|
rm -f hashtab.c
|
|
|
|
|
$(LN_S) $(srcdir)/../libiberty/hashtab.c hashtab.c
|
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) hashtab.c
|
|
|
|
|
|
safe-ctype.h: New file.
include:
* safe-ctype.h: New file.
libiberty:
* safe-ctype.c: New file.
* Makefile.in (CFILES): Add safe-ctype.c.
(REQUIRED_OFILES): Add safe-ctype.o.
* argv.c: Define ISBLANK and use it, not isspace.
* basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
before calling TOLOWER(c)/TOUPPER(c).
gcc:
* Makefile.in (HOST_RTL): Add safe-ctype.o.
(safe-ctype.o): New rule.
* system.h: Include safe-ctype.h, not ctype.h. No need to
wrap ctype macros.
* cpphash.h: Zap IStable and related macros. Define is_* in
terms of safe-ctype.h macros.
* cppinit.c: Delete the IStable and all related code.
* tradcpp.c: Delete is_idchar, is_idstart, is_hor_space, and
is_space arrays. Delete initialize_char_syntax. Change all
references to the above arrays to use macros instead.
* tradcpp.h: Define is_idchar, is_idstart, is_space, and
is_nvspace in terms of safe_ctype.h's macros.
* tradcif.y: is_idchar, is_idstart are macros not arrays.
* config/i370/i370.c, config/winnt/dirent.c,
config/winnt/fixinc-nt.c, config/winnt/ld.c:
Use uppercase ctype macros. If we included ctype.h,
include safe-ctype.h instead.
* fixinc/fixfixes.c: Use uppercase ctype macros. Don't test
ISLOWER(c) before calling TOUPPER(c).
* fixinc/fixincl.c (extract_quoted_files): Simplify out some gunk.
* fixinc/gnu-regex.c: Include safe-ctype.h, not ctype.h. No need to
wrap ctype macros. Don't test ISUPPER(x) before calling TOLOWER(x).
gcc/ch:
* lex.c: Don't bother checking whether ISUPPER(c) before
calling TOLOWER(c). Don't bother checking whether isascii(c)
before testing ISSPACE(c); ISSPACE(c) includes '\n'.
gcc/f:
* Make-lang.in: Link f/fini with safe-ctype.o.
* bad.c: Don't test ISUPPER(c) || ISLOWER(c) before calling TOUPPER(c).
* com.c: Use TOUPPER, not ffesrc_toupper.
* fini.c: Don't test ISALPHA(c) before calling TOUPPER(c)/TOLOWER(c).
* intrin.c: Don't test IN_CTYPE_DOMAIN(c).
* src.c: Delete ffesrc_toupper_ and ffesrc_tolower_ and their
initializing code; use TOUPPER and TOLOWER instead of
ffesrc_toupper and ffesrc_tolower.
* src.h: Don't declare ffesrc_toupper_ or ffesrc_tolower_.
Don't define ffesrc_toupper or ffesrc_tolower.
gcc/java:
* jvgenmain.c: Use ISPRINT not isascii.
From-SVN: r38124
2000-12-08 04:00:26 +01:00
|
|
|
|
safe-ctype.o: $(srcdir)/../libiberty/safe-ctype.c $(GCONFIG_H)
|
|
|
|
|
rm -f safe-ctype.c
|
|
|
|
|
$(LN_S) $(srcdir)/../libiberty/safe-ctype.c safe-ctype.c
|
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) safe-ctype.c
|
|
|
|
|
|
2000-12-09 17:27:51 +01:00
|
|
|
|
genconfig$(build_exeext) : genconfig.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(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-23 00:55:23 +02:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
errors.c: New file...
1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
* errors.c: New file; defines functions error, warning, and
fatal, variables have_error and progname.
* errors.h: New file; prototypes and decls for stuff in errors.c.
* Makefile: Add rules to build errors.o and
$(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
genopinit, genrecog, genextract, genpeep, genattr, and
genoutput with errors.o. Add errors.h to deps of genconfig.o,
gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
genpeep.o, genattr.o, and genoutput.o.
* genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
define or prototype fatal. Set progname at beginning of main.
* genoutput.c: Likewise, and don't define or prototype error
either.
From-SVN: r28925
1999-08-27 09:47:17 +02:00
|
|
|
|
genconfig.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBS)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
Makefile.in (gensupport.o): Compile for the host.
* Makefile.in (gensupport.o): Compile for the host.
(host-prefix gensuuprt.o): Remove.
(genflags.o): Depend on gensupport.h and OBSTACK_H.
(genattrtab.o): Likewise.
(gencodes.o): Depend on gensupport.h.
(genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
(genpeep.o, genattr.o, genoutput.o): Likewise.
* gensupport.c (obstack, rtl_obstack): New.
(init_md_reader): Initialize rtl_obstack.
* gensupport.h (rtl_obstack): Declare.
(message_with_line): Declare.
* genattr.c: Remove all traces of obstack manipulation.
* gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
* genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
* genattrtab.c (obstack, rtl_obstack): Remove.
(main): Don't init rtl_obstack.
* genflags.c: Likewise.
* genrecog.c (message_with_line): Move ...
* gensupport.c: ... here.
From-SVN: r33742
2000-05-07 00:30:13 +02:00
|
|
|
|
genconfig.o : genconfig.c $(RTL_H) $(build_xm_file) \
|
|
|
|
|
system.h errors.h gensupport.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genconfig.c
|
|
|
|
|
|
2000-12-09 17:27:51 +01:00
|
|
|
|
genflags$(build_exeext) : genflags.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(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-23 00:55:23 +02:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
errors.c: New file...
1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
* errors.c: New file; defines functions error, warning, and
fatal, variables have_error and progname.
* errors.h: New file; prototypes and decls for stuff in errors.c.
* Makefile: Add rules to build errors.o and
$(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
genopinit, genrecog, genextract, genpeep, genattr, and
genoutput with errors.o. Add errors.h to deps of genconfig.o,
gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
genpeep.o, genattr.o, and genoutput.o.
* genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
define or prototype fatal. Set progname at beginning of main.
* genoutput.c: Likewise, and don't define or prototype error
either.
From-SVN: r28925
1999-08-27 09:47:17 +02:00
|
|
|
|
genflags.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBS)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
Makefile.in (gensupport.o): Compile for the host.
* Makefile.in (gensupport.o): Compile for the host.
(host-prefix gensuuprt.o): Remove.
(genflags.o): Depend on gensupport.h and OBSTACK_H.
(genattrtab.o): Likewise.
(gencodes.o): Depend on gensupport.h.
(genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
(genpeep.o, genattr.o, genoutput.o): Likewise.
* gensupport.c (obstack, rtl_obstack): New.
(init_md_reader): Initialize rtl_obstack.
* gensupport.h (rtl_obstack): Declare.
(message_with_line): Declare.
* genattr.c: Remove all traces of obstack manipulation.
* gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
* genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
* genattrtab.c (obstack, rtl_obstack): Remove.
(main): Don't init rtl_obstack.
* genflags.c: Likewise.
* genrecog.c (message_with_line): Move ...
* gensupport.c: ... here.
From-SVN: r33742
2000-05-07 00:30:13 +02:00
|
|
|
|
genflags.o : genflags.c $(RTL_H) $(OBSTACK_H) $(build_xm_file) \
|
|
|
|
|
system.h errors.h gensupport.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genflags.c
|
|
|
|
|
|
2000-12-09 17:27:51 +01:00
|
|
|
|
gencodes$(build_exeext) : gencodes.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(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-23 00:55:23 +02:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
errors.c: New file...
1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
* errors.c: New file; defines functions error, warning, and
fatal, variables have_error and progname.
* errors.h: New file; prototypes and decls for stuff in errors.c.
* Makefile: Add rules to build errors.o and
$(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
genopinit, genrecog, genextract, genpeep, genattr, and
genoutput with errors.o. Add errors.h to deps of genconfig.o,
gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
genpeep.o, genattr.o, and genoutput.o.
* genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
define or prototype fatal. Set progname at beginning of main.
* genoutput.c: Likewise, and don't define or prototype error
either.
From-SVN: r28925
1999-08-27 09:47:17 +02:00
|
|
|
|
gencodes.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBS)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
Makefile.in (gensupport.o): Compile for the host.
* Makefile.in (gensupport.o): Compile for the host.
(host-prefix gensuuprt.o): Remove.
(genflags.o): Depend on gensupport.h and OBSTACK_H.
(genattrtab.o): Likewise.
(gencodes.o): Depend on gensupport.h.
(genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
(genpeep.o, genattr.o, genoutput.o): Likewise.
* gensupport.c (obstack, rtl_obstack): New.
(init_md_reader): Initialize rtl_obstack.
* gensupport.h (rtl_obstack): Declare.
(message_with_line): Declare.
* genattr.c: Remove all traces of obstack manipulation.
* gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
* genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
* genattrtab.c (obstack, rtl_obstack): Remove.
(main): Don't init rtl_obstack.
* genflags.c: Likewise.
* genrecog.c (message_with_line): Move ...
* gensupport.c: ... here.
From-SVN: r33742
2000-05-07 00:30:13 +02:00
|
|
|
|
gencodes.o : gencodes.c $(RTL_H) $(build_xm_file) \
|
|
|
|
|
system.h errors.h gensupport.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gencodes.c
|
|
|
|
|
|
2000-12-09 17:27:51 +01:00
|
|
|
|
genemit$(build_exeext) : genemit.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(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-23 00:55:23 +02:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
errors.c: New file...
1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
* errors.c: New file; defines functions error, warning, and
fatal, variables have_error and progname.
* errors.h: New file; prototypes and decls for stuff in errors.c.
* Makefile: Add rules to build errors.o and
$(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
genopinit, genrecog, genextract, genpeep, genattr, and
genoutput with errors.o. Add errors.h to deps of genconfig.o,
gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
genpeep.o, genattr.o, and genoutput.o.
* genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
define or prototype fatal. Set progname at beginning of main.
* genoutput.c: Likewise, and don't define or prototype error
either.
From-SVN: r28925
1999-08-27 09:47:17 +02:00
|
|
|
|
genemit.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBS)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
Makefile.in (gensupport.o): Compile for the host.
* Makefile.in (gensupport.o): Compile for the host.
(host-prefix gensuuprt.o): Remove.
(genflags.o): Depend on gensupport.h and OBSTACK_H.
(genattrtab.o): Likewise.
(gencodes.o): Depend on gensupport.h.
(genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
(genpeep.o, genattr.o, genoutput.o): Likewise.
* gensupport.c (obstack, rtl_obstack): New.
(init_md_reader): Initialize rtl_obstack.
* gensupport.h (rtl_obstack): Declare.
(message_with_line): Declare.
* genattr.c: Remove all traces of obstack manipulation.
* gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
* genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
* genattrtab.c (obstack, rtl_obstack): Remove.
(main): Don't init rtl_obstack.
* genflags.c: Likewise.
* genrecog.c (message_with_line): Move ...
* gensupport.c: ... here.
From-SVN: r33742
2000-05-07 00:30:13 +02:00
|
|
|
|
genemit.o : genemit.c $(RTL_H) $(build_xm_file) system.h errors.h gensupport.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genemit.c
|
|
|
|
|
|
2000-12-09 17:27:51 +01:00
|
|
|
|
genopinit$(build_exeext) : genopinit.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(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-23 00:55:23 +02:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
errors.c: New file...
1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
* errors.c: New file; defines functions error, warning, and
fatal, variables have_error and progname.
* errors.h: New file; prototypes and decls for stuff in errors.c.
* Makefile: Add rules to build errors.o and
$(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
genopinit, genrecog, genextract, genpeep, genattr, and
genoutput with errors.o. Add errors.h to deps of genconfig.o,
gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
genpeep.o, genattr.o, and genoutput.o.
* genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
define or prototype fatal. Set progname at beginning of main.
* genoutput.c: Likewise, and don't define or prototype error
either.
From-SVN: r28925
1999-08-27 09:47:17 +02:00
|
|
|
|
genopinit.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBS)
|
1993-03-30 22:31:01 +02:00
|
|
|
|
|
Makefile.in (gensupport.o): Compile for the host.
* Makefile.in (gensupport.o): Compile for the host.
(host-prefix gensuuprt.o): Remove.
(genflags.o): Depend on gensupport.h and OBSTACK_H.
(genattrtab.o): Likewise.
(gencodes.o): Depend on gensupport.h.
(genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
(genpeep.o, genattr.o, genoutput.o): Likewise.
* gensupport.c (obstack, rtl_obstack): New.
(init_md_reader): Initialize rtl_obstack.
* gensupport.h (rtl_obstack): Declare.
(message_with_line): Declare.
* genattr.c: Remove all traces of obstack manipulation.
* gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
* genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
* genattrtab.c (obstack, rtl_obstack): Remove.
(main): Don't init rtl_obstack.
* genflags.c: Likewise.
* genrecog.c (message_with_line): Move ...
* gensupport.c: ... here.
From-SVN: r33742
2000-05-07 00:30:13 +02:00
|
|
|
|
genopinit.o : genopinit.c $(RTL_H) $(build_xm_file) \
|
|
|
|
|
system.h errors.h gensupport.h
|
1993-03-30 22:31:01 +02:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genopinit.c
|
|
|
|
|
|
2000-12-09 17:27:51 +01:00
|
|
|
|
genrecog$(build_exeext) : genrecog.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(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-23 00:55:23 +02:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
errors.c: New file...
1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
* errors.c: New file; defines functions error, warning, and
fatal, variables have_error and progname.
* errors.h: New file; prototypes and decls for stuff in errors.c.
* Makefile: Add rules to build errors.o and
$(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
genopinit, genrecog, genextract, genpeep, genattr, and
genoutput with errors.o. Add errors.h to deps of genconfig.o,
gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
genpeep.o, genattr.o, and genoutput.o.
* genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
define or prototype fatal. Set progname at beginning of main.
* genoutput.c: Likewise, and don't define or prototype error
either.
From-SVN: r28925
1999-08-27 09:47:17 +02:00
|
|
|
|
genrecog.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBS)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
Makefile.in (gensupport.o): Compile for the host.
* Makefile.in (gensupport.o): Compile for the host.
(host-prefix gensuuprt.o): Remove.
(genflags.o): Depend on gensupport.h and OBSTACK_H.
(genattrtab.o): Likewise.
(gencodes.o): Depend on gensupport.h.
(genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
(genpeep.o, genattr.o, genoutput.o): Likewise.
* gensupport.c (obstack, rtl_obstack): New.
(init_md_reader): Initialize rtl_obstack.
* gensupport.h (rtl_obstack): Declare.
(message_with_line): Declare.
* genattr.c: Remove all traces of obstack manipulation.
* gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
* genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
* genattrtab.c (obstack, rtl_obstack): Remove.
(main): Don't init rtl_obstack.
* genflags.c: Likewise.
* genrecog.c (message_with_line): Move ...
* gensupport.c: ... here.
From-SVN: r33742
2000-05-07 00:30:13 +02:00
|
|
|
|
genrecog.o : genrecog.c $(RTL_H) $(build_xm_file) \
|
|
|
|
|
system.h errors.h gensupport.h
|
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genrecog.c
|
2000-12-09 17:27:51 +01:00
|
|
|
|
|
|
|
|
|
genextract$(build_exeext) : genextract.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(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-23 00:55:23 +02:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
errors.c: New file...
1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
* errors.c: New file; defines functions error, warning, and
fatal, variables have_error and progname.
* errors.h: New file; prototypes and decls for stuff in errors.c.
* Makefile: Add rules to build errors.o and
$(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
genopinit, genrecog, genextract, genpeep, genattr, and
genoutput with errors.o. Add errors.h to deps of genconfig.o,
gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
genpeep.o, genattr.o, and genoutput.o.
* genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
define or prototype fatal. Set progname at beginning of main.
* genoutput.c: Likewise, and don't define or prototype error
either.
From-SVN: r28925
1999-08-27 09:47:17 +02:00
|
|
|
|
genextract.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBS)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
Makefile.in (gensupport.o): Compile for the host.
* Makefile.in (gensupport.o): Compile for the host.
(host-prefix gensuuprt.o): Remove.
(genflags.o): Depend on gensupport.h and OBSTACK_H.
(genattrtab.o): Likewise.
(gencodes.o): Depend on gensupport.h.
(genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
(genpeep.o, genattr.o, genoutput.o): Likewise.
* gensupport.c (obstack, rtl_obstack): New.
(init_md_reader): Initialize rtl_obstack.
* gensupport.h (rtl_obstack): Declare.
(message_with_line): Declare.
* genattr.c: Remove all traces of obstack manipulation.
* gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
* genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
* genattrtab.c (obstack, rtl_obstack): Remove.
(main): Don't init rtl_obstack.
* genflags.c: Likewise.
* genrecog.c (message_with_line): Move ...
* gensupport.c: ... here.
From-SVN: r33742
2000-05-07 00:30:13 +02:00
|
|
|
|
genextract.o : genextract.c $(RTL_H) $(build_xm_file) \
|
|
|
|
|
system.h insn-config.h errors.h gensupport.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genextract.c
|
|
|
|
|
|
2000-12-09 17:27:51 +01:00
|
|
|
|
genpeep$(build_exeext) : genpeep.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(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-23 00:55:23 +02:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
errors.c: New file...
1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
* errors.c: New file; defines functions error, warning, and
fatal, variables have_error and progname.
* errors.h: New file; prototypes and decls for stuff in errors.c.
* Makefile: Add rules to build errors.o and
$(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
genopinit, genrecog, genextract, genpeep, genattr, and
genoutput with errors.o. Add errors.h to deps of genconfig.o,
gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
genpeep.o, genattr.o, and genoutput.o.
* genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
define or prototype fatal. Set progname at beginning of main.
* genoutput.c: Likewise, and don't define or prototype error
either.
From-SVN: r28925
1999-08-27 09:47:17 +02:00
|
|
|
|
genpeep.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBS)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
Makefile.in (gensupport.o): Compile for the host.
* Makefile.in (gensupport.o): Compile for the host.
(host-prefix gensuuprt.o): Remove.
(genflags.o): Depend on gensupport.h and OBSTACK_H.
(genattrtab.o): Likewise.
(gencodes.o): Depend on gensupport.h.
(genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
(genpeep.o, genattr.o, genoutput.o): Likewise.
* gensupport.c (obstack, rtl_obstack): New.
(init_md_reader): Initialize rtl_obstack.
* gensupport.h (rtl_obstack): Declare.
(message_with_line): Declare.
* genattr.c: Remove all traces of obstack manipulation.
* gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
* genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
* genattrtab.c (obstack, rtl_obstack): Remove.
(main): Don't init rtl_obstack.
* genflags.c: Likewise.
* genrecog.c (message_with_line): Move ...
* gensupport.c: ... here.
From-SVN: r33742
2000-05-07 00:30:13 +02:00
|
|
|
|
genpeep.o : genpeep.c $(RTL_H) $(build_xm_file) system.h errors.h gensupport.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genpeep.c
|
|
|
|
|
|
2000-12-09 17:27:51 +01:00
|
|
|
|
genattr$(build_exeext) : genattr.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(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-23 00:55:23 +02:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
errors.c: New file...
1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
* errors.c: New file; defines functions error, warning, and
fatal, variables have_error and progname.
* errors.h: New file; prototypes and decls for stuff in errors.c.
* Makefile: Add rules to build errors.o and
$(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
genopinit, genrecog, genextract, genpeep, genattr, and
genoutput with errors.o. Add errors.h to deps of genconfig.o,
gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
genpeep.o, genattr.o, and genoutput.o.
* genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
define or prototype fatal. Set progname at beginning of main.
* genoutput.c: Likewise, and don't define or prototype error
either.
From-SVN: r28925
1999-08-27 09:47:17 +02:00
|
|
|
|
genattr.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBS)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
Makefile.in (gensupport.o): Compile for the host.
* Makefile.in (gensupport.o): Compile for the host.
(host-prefix gensuuprt.o): Remove.
(genflags.o): Depend on gensupport.h and OBSTACK_H.
(genattrtab.o): Likewise.
(gencodes.o): Depend on gensupport.h.
(genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
(genpeep.o, genattr.o, genoutput.o): Likewise.
* gensupport.c (obstack, rtl_obstack): New.
(init_md_reader): Initialize rtl_obstack.
* gensupport.h (rtl_obstack): Declare.
(message_with_line): Declare.
* genattr.c: Remove all traces of obstack manipulation.
* gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
* genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
* genattrtab.c (obstack, rtl_obstack): Remove.
(main): Don't init rtl_obstack.
* genflags.c: Likewise.
* genrecog.c (message_with_line): Move ...
* gensupport.c: ... here.
From-SVN: r33742
2000-05-07 00:30:13 +02:00
|
|
|
|
genattr.o : genattr.c $(RTL_H) $(build_xm_file) system.h errors.h gensupport.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genattr.c
|
|
|
|
|
|
2000-12-09 17:27:51 +01:00
|
|
|
|
genattrtab$(build_exeext) : genattrtab.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(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-23 00:55:23 +02:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
1999-11-02 16:48:26 +01:00
|
|
|
|
genattrtab.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBS)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
Makefile.in (gensupport.o): Compile for the host.
* Makefile.in (gensupport.o): Compile for the host.
(host-prefix gensuuprt.o): Remove.
(genflags.o): Depend on gensupport.h and OBSTACK_H.
(genattrtab.o): Likewise.
(gencodes.o): Depend on gensupport.h.
(genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
(genpeep.o, genattr.o, genoutput.o): Likewise.
* gensupport.c (obstack, rtl_obstack): New.
(init_md_reader): Initialize rtl_obstack.
* gensupport.h (rtl_obstack): Declare.
(message_with_line): Declare.
* genattr.c: Remove all traces of obstack manipulation.
* gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
* genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
* genattrtab.c (obstack, rtl_obstack): Remove.
(main): Don't init rtl_obstack.
* genflags.c: Likewise.
* genrecog.c (message_with_line): Move ...
* gensupport.c: ... here.
From-SVN: r33742
2000-05-07 00:30:13 +02:00
|
|
|
|
genattrtab.o : genattrtab.c $(RTL_H) $(OBSTACK_H) $(build_xm_file) \
|
|
|
|
|
system.h errors.h $(GGC_H) gensupport.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genattrtab.c
|
|
|
|
|
|
2000-12-09 17:27:51 +01:00
|
|
|
|
genoutput$(build_exeext) : genoutput.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(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-23 00:55:23 +02:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
errors.c: New file...
1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
* errors.c: New file; defines functions error, warning, and
fatal, variables have_error and progname.
* errors.h: New file; prototypes and decls for stuff in errors.c.
* Makefile: Add rules to build errors.o and
$(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
genopinit, genrecog, genextract, genpeep, genattr, and
genoutput with errors.o. Add errors.h to deps of genconfig.o,
gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
genpeep.o, genattr.o, and genoutput.o.
* genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
define or prototype fatal. Set progname at beginning of main.
* genoutput.c: Likewise, and don't define or prototype error
either.
From-SVN: r28925
1999-08-27 09:47:17 +02:00
|
|
|
|
genoutput.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBS)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
Makefile.in (gensupport.o): Compile for the host.
* Makefile.in (gensupport.o): Compile for the host.
(host-prefix gensuuprt.o): Remove.
(genflags.o): Depend on gensupport.h and OBSTACK_H.
(genattrtab.o): Likewise.
(gencodes.o): Depend on gensupport.h.
(genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
(genpeep.o, genattr.o, genoutput.o): Likewise.
* gensupport.c (obstack, rtl_obstack): New.
(init_md_reader): Initialize rtl_obstack.
* gensupport.h (rtl_obstack): Declare.
(message_with_line): Declare.
* genattr.c: Remove all traces of obstack manipulation.
* gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
* genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
* genattrtab.c (obstack, rtl_obstack): Remove.
(main): Don't init rtl_obstack.
* genflags.c: Likewise.
* genrecog.c (message_with_line): Move ...
* gensupport.c: ... here.
From-SVN: r33742
2000-05-07 00:30:13 +02:00
|
|
|
|
genoutput.o : genoutput.c $(RTL_H) $(build_xm_file) \
|
|
|
|
|
system.h errors.h gensupport.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genoutput.c
|
1998-01-08 22:17:05 +01:00
|
|
|
|
|
2000-12-09 17:27:51 +01:00
|
|
|
|
gengenrtl$(build_exeext) : gengenrtl.o $(HOST_LIBDEPS)
|
1998-01-08 22:17:05 +01:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
|
|
|
|
gengenrtl.o $(HOST_LIBS)
|
|
|
|
|
|
1999-11-23 09:03:47 +01:00
|
|
|
|
gengenrtl.o : gengenrtl.c $(RTL_BASE_H) system.h real.h
|
1998-01-08 22:17:05 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gengenrtl.c
|
1997-06-09 21:19:18 +02:00
|
|
|
|
#
|
1992-02-03 23:08:59 +01: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.
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
$(HOST_PREFIX_1)rtl.o: $(srcdir)/rtl.c $(GCONFIG_H) system.h $(RTL_H) \
|
2000-11-22 02:22:02 +01:00
|
|
|
|
bitmap.h $(GGC_H) toplev.h $(HASHTAB_H)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
rm -f $(HOST_PREFIX)rtl.c
|
1992-10-18 06:30:48 +01:00
|
|
|
|
sed -e 's/config[.]h/hconfig.h/' $(srcdir)/rtl.c > $(HOST_PREFIX)rtl.c
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)rtl.c
|
|
|
|
|
|
1999-11-10 08:21:02 +01:00
|
|
|
|
$(HOST_PREFIX_1)print-rtl.o: $(srcdir)/print-rtl.c $(CONFIG_H) \
|
|
|
|
|
$(RTL_H) $(BASIC_BLOCK_H) system.h
|
1992-05-06 05:33:12 +02:00
|
|
|
|
rm -f $(HOST_PREFIX)print-rtl.c
|
1992-10-18 06:30:48 +01:00
|
|
|
|
sed -e 's/config[.]h/hconfig.h/' $(srcdir)/print-rtl.c > $(HOST_PREFIX)print-rtl.c
|
1992-05-06 05:33:12 +02: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 23:13:47 +02:00
|
|
|
|
$(HOST_PREFIX_1)bitmap.o: $(srcdir)/bitmap.c $(CONFIG_H) system.h $(RTL_H) \
|
2000-05-20 00:27:28 +02:00
|
|
|
|
flags.h bitmap.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 23:13:47 +02: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
|
|
|
|
|
|
1999-11-10 07:26:16 +01:00
|
|
|
|
$(HOST_PREFIX_1)rtlanal.o: $(srcdir)/rtlanal.c $(CONFIG_H) system.h $(RTL_H)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
rm -f $(HOST_PREFIX)rtlanal.c
|
1992-10-18 06:30:48 +01:00
|
|
|
|
sed -e 's/config[.]h/hconfig.h/' $(srcdir)/rtlanal.c > $(HOST_PREFIX)rtlanal.c
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)rtlanal.c
|
|
|
|
|
|
1998-09-05 12:41:24 +02:00
|
|
|
|
$(HOST_PREFIX_1)alloca.o: $(srcdir)/../libiberty/alloca.c
|
1992-02-03 23:08:59 +01:00
|
|
|
|
rm -f $(HOST_PREFIX)alloca.c
|
1998-09-05 12:41:24 +02:00
|
|
|
|
$(LN_S) $(srcdir)/../libiberty/alloca.c $(HOST_PREFIX)alloca.c
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)alloca.c
|
|
|
|
|
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
$(HOST_PREFIX_1)obstack.o: $(srcdir)/../libiberty/obstack.c $(GCONFIG_H)
|
1992-02-03 23:08:59 +01: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 14:24:04 +02:00
|
|
|
|
sed -e 's/config[.]h/hconfig.h/' $(srcdir)/../libiberty/obstack.c > $(HOST_PREFIX)obstack.c
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)obstack.c
|
|
|
|
|
|
1998-09-05 04:24:45 +02:00
|
|
|
|
$(HOST_PREFIX_1)vfprintf.o: $(srcdir)/../libiberty/vfprintf.c
|
1998-05-07 13:44:09 +02:00
|
|
|
|
rm -f $(HOST_PREFIX)vfprintf.c
|
1998-09-05 12:41:24 +02:00
|
|
|
|
sed -e 's/config[.]h/hconfig.h/' $(srcdir)/../libiberty/vfprintf.c > $(HOST_PREFIX)vfprintf.c
|
1998-05-07 13:44:09 +02: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 23:08:59 +01:00
|
|
|
|
$(HOST_PREFIX_1)malloc.o: malloc.c
|
|
|
|
|
rm -f $(HOST_PREFIX)malloc.c
|
1992-10-18 06:30:48 +01:00
|
|
|
|
sed -e 's/config[.]h/hconfig.h/' $(srcdir)/malloc.c > $(HOST_PREFIX)malloc.c
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)malloc.c
|
|
|
|
|
|
errors.c: New file...
1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
* errors.c: New file; defines functions error, warning, and
fatal, variables have_error and progname.
* errors.h: New file; prototypes and decls for stuff in errors.c.
* Makefile: Add rules to build errors.o and
$(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
genopinit, genrecog, genextract, genpeep, genattr, and
genoutput with errors.o. Add errors.h to deps of genconfig.o,
gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
genpeep.o, genattr.o, and genoutput.o.
* genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
define or prototype fatal. Set progname at beginning of main.
* genoutput.c: Likewise, and don't define or prototype error
either.
From-SVN: r28925
1999-08-27 09:47:17 +02:00
|
|
|
|
$(HOST_PREFIX_1)errors.o: errors.c
|
|
|
|
|
rm -f $(HOST_PREFIX)errors.c
|
|
|
|
|
sed -e 's/config[.]h/hconfig.h/' $(srcdir)/errors.c > $(HOST_PREFIX)errors.c
|
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)errors.c
|
|
|
|
|
|
|
|
|
|
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# This satisfies the dependency that we get if you cross-compile a compiler
|
|
|
|
|
# that does not need to compile alloca, malloc or whatever.
|
1999-09-18 20:05:59 +02:00
|
|
|
|
$(HOST_PREFIX_1):
|
1992-02-03 23:08:59 +01:00
|
|
|
|
touch $(HOST_PREFIX_1)
|
1993-09-21 23:25:24 +02:00
|
|
|
|
|
1999-11-18 04:52:39 +01:00
|
|
|
|
$(HOST_PREFIX_1)ggc-none.o: ggc-none.c
|
1999-11-18 04:59:33 +01:00
|
|
|
|
rm -f $(HOST_PREFIX)ggc-none.c
|
|
|
|
|
sed -e 's/config[.]h/hconfig.h/' $(srcdir)/ggc-none.c > $(HOST_PREFIX)ggc-none.c
|
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)ggc-none.c
|
1999-11-18 04:52:39 +01:00
|
|
|
|
|
1999-01-27 02:43:17 +01:00
|
|
|
|
#
|
|
|
|
|
# Remake internationalization support.
|
|
|
|
|
|
|
|
|
|
intl.o: intl.c intl.h gansidecl.h Makefile
|
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
|
|
|
|
-DLOCALEDIR=\"$(localedir)\" \
|
configure.in: Remove AC_PROG_LEX and AC_PROG_YACC.
* configure.in: Remove AC_PROG_LEX and AC_PROG_YACC. Look for
flex and bison, specifically, first in a unified build and
then installed on the system.
* Makefile.in: Set BISON to @BISON@, FLEX to @FLEX@. Rename
LEXFLAGS to FLEXFLAGS. Adjust ORDINARY_FLAGS_TO_PASS to
match.
(collect2.o, gcc.o, prefix.o, toplev.o, alloca.o, intl.o,
cppdefault.o): Remove pointless sed munging of source file
name.
f:
* Make-lang.in (f/fini.o, f/proj-h.o): Remove pointless sed
munging of source file name.
($(srcdir)/f/intdoc.texi): Break up into several rules each of
which builds just one thing. Don't mess with $(LANGUAGES).
(f/ansify.o, f/intdoc.o): Remove unnecessary rules.
From-SVN: r37371
2000-11-10 18:23:09 +01:00
|
|
|
|
-c $(srcdir)/intl.c
|
1999-01-27 02:43:17 +01:00
|
|
|
|
|
2000-06-11 04:54:16 +02:00
|
|
|
|
$(top_builddir)/intl/libintl.a: intl.all
|
1999-01-27 02:43:17 +01:00
|
|
|
|
|
|
|
|
|
# Make sure all the headers are there for xgettext to scan.
|
2000-11-25 07:24:05 +01:00
|
|
|
|
$(INTL_TARGETS): $(CONFIG_H) $(srcdir)/c-parse.c
|
1999-01-27 02:43:17 +01:00
|
|
|
|
|
2000-11-05 11:35:33 +01:00
|
|
|
|
intl.all intl.install intl.uninstall \
|
1999-01-27 02:43:17 +01:00
|
|
|
|
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); \
|
2000-06-04 21:52:22 +02:00
|
|
|
|
if [ $$? -eq 0 ] ; then true ; else exit 1 ; fi ; \
|
1999-01-27 02:43:17 +01:00
|
|
|
|
done
|
|
|
|
|
|
1997-06-09 21:19:18 +02:00
|
|
|
|
#
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Remake cpp and protoize.
|
|
|
|
|
|
1999-08-25 04:49:56 +02:00
|
|
|
|
PREPROCESSOR_DEFINES = \
|
|
|
|
|
-DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
|
|
|
|
|
-DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \
|
2000-12-21 08:19:41 +01:00
|
|
|
|
-DGPLUSPLUS_TOOL_INCLUDE_DIR=\"$(gcc_gxx_target_include_dir)\" \
|
1999-08-25 04:49:56 +02:00
|
|
|
|
-DLOCAL_INCLUDE_DIR=\"$(includedir)\" \
|
|
|
|
|
-DCROSS_INCLUDE_DIR=\"$(gcc_tooldir)/sys-include\" \
|
|
|
|
|
-DTOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include\"
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
2000-07-18 02:59:49 +02:00
|
|
|
|
LIBCPP_OBJS = cpplib.o cpplex.o cppmacro.o cppexp.o cppfiles.o \
|
New macro expander.
2000-10-28 Neil Booth <neilb@earthling.net>
New macro expander.
* cpplib.c (struct answer): New.
(struct if_stack): Use cpp_lexer_pos rather than line and col.
Rename cmacro mi_cmacro.
(struct directive, KANDR, STDC89, EXTENSION, COND, IF_COND, INCL,
IN_I): New directive and flags.
(skip_rest_of_line, check_eol, run_directive, glue_header_name,
parse_answer, parse_assertion, find_answer): New functions.
(parse_ifdef, detect_if_not_defined, validate_else): Remove.
(lex_macro_node): New function to replace parse_ifdef and
get_define_node.
(_cpp_handle_directive): New function, combines _cpp_check_directive
and _cpp_check_linemarker.
(do_define, do_undef, parse_include, do_include, do_import,
do_include_next, read_line_number, do_line, do_ident, do_pragma,
do_pragma_once, do_pragma_poison, do_pragma_dependency):
Update for new token getting interface.
(do_ifdef, do_ifndef, do_if, do_else, do_endif, push_conditional)
: Update for new multiple-include optimisation technique.
(do_elif): Don't forget to invalidate controlling macros.
(unwind_if_stack, cpp_defined, cpp_push_buffer, cpp_pop_buffer): Update.
(parse_assertion, parse_answer, find_answer, _cpp_test_assertion):
Functions to handle assertions with the new token interface.
(do_assert, do_unassert): Use them.
(cpp_define, _cpp_define_builtin, cpp_undef, cpp_assert, cpp_unassert):
Use run_directive.
(_cpp_init_stacks): Register directive names. Don't register special
nodes.
* cpperror.c (print_containing_files, _cpp_begin_message): Update to
new position recording regime.
(cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
cpp_pedwarn_with_file_and_line): Update for _cpp_begin_message changes.
(cpp_type2name): Move to cpplex.c.
* cppexp.c (parse_charconst): spec_nodes is no longer a pointer.
(parse_defined): Update to handle new multiple include optimisation
method. Remove poisoned identifier warning.
(parse_assertion, TYPE_NAME): Delete.
(lex): Update for multiple include optimisation, removal of
CPP_DEFINED, to use _cpp_test_assertion for assertions and
cpp_token_as_text.
(_cpp_parse_expr): Update for MI optimisation, and to use op_as_text.
(op_as_text): New function, to wrap cpp_token_as_text.
* cppfiles.c (stack_include_file, _cpp_pop_file_buffer):
Update for MI optimisation.
(_cpp_execute_include): Take a token rather than 3 arguments. Fix
segfault on diagnostic.
(_cpp_compare_file_date): Take a token rather than 3 args.
(cpp_read_file): Work correctly for zero-length files.
* cpphash.c (_cpp_init_macros, _cpp_cleanup_macros): Rename
_cpp_init_hashtable and _cpp_cleanup_hashtable.
(cpp_lookup): Place identifiers at front of identifier pool
for _cpp_lookup_with_hash.
(_cpp_lookup_with_hash): Require identifiers to be at the front of
the identifier pool. Commit the memory if not already in the
hash table.
* cppinit.c (cpp_reader_init): Move cpp_init_completed test to top.
Initialise various members of cpp_reader, memory pools, and the
special nodes.
(cpp_printer_init): Delete.
(cpp_cleanup): Update.
(struct builtin, builtin_array, initialize_builtins): Update for new
hashnode definition and builtin handling.
(cpp_start_read, cpp_finish): Don't take or initialise a
printer. Update.
* cpplib.h (cpp_printer, cpp_toklist, CPP_DEFINED, BOL,
PASTED, VAR_ARGS, BEG_OF_FILE, IN_DIRECTIVE, KNOWN_DIRECTIVE,
T_VOID, T_SPECLINE, T_DATE, T_FILE, T_BASE_FILE, T_INCLUDE_LEVEL,
T_TIME, T_STDC, T_OPERATOR, T_POISON, T_MACRO, T_ASSERTION): Delete.
(struct cpp_pool, struct cpp_macro, struct cpp_lexer_pos,
struct cpp_lookahead, CPP_DHASH, enum mi_state, enum mi_ind,
NO_EXPAND, VARARGS_FIRST, struct cpp_token_with_pos,
struct toklist, struct cpp_context, struct specnodes,
TOKEN_LOOKAHEAD, TOKEN_BUFFSIZE, NODE_OPERATOR, NODE_POISONED,
NODE_BUILTIN, NODE_DIAGNOSTIC, NT_VOID, NT_MACRO, NT_ASSERTION,
enum builtin_type, cpp_can_paste): New.
(struct cpp_token): Delete line and col members.
(struct cpp_buffer): New member output_lineno.
(struct lexer_state): Delete indented, in_lex_line, seen_dot.
Add va_args_ok, poisoned_ok, prevent_expansion, parsing_args.
(struct cpp_reader): New members lexer_pos, macro_pos, directive_pos,
ident_pool, temp_string_pool, macro_pool, argument_pool, string_pool,
base_context, context, directive, mi_state, mi_if_not_defined,
mi_lexed, mi_cmacro, mi_ind_cmacro, la_read, la_write, la_unused,
mlstring_pos, macro_buffer, macro_buffer_len.
Delete members mls_line, mls_column, token_list, potential_control_macro,
temp_tokens, temp_cap, temp_alloced, temp_used, first_directive_token,
context_cap, cur_context, no_expand_level, paste_level, contexts, args,
save_parameter_spellings, need_newline, .
Change type of date, time and spec_nodes members.
Change prototypes for include and ident callbacks.
(struct cpp_hashnode): Change type of name. Remove union members
expansion and code. Add members macro, operator and builtin.
(cpp_token_len, cpp_token_as_text, cpp_spell_token, cpp_start_read,
cpp_finish, cpp_avoid_paste, cpp_get_token, cpp_get_line,
cpp_get_output_line, cpp_macro_definition, cpp_start_lookahead,
cpp_stop_lookahead): New prototypes.
(cpp_printer_init, cpp_dump_definition): Delete prototypes.
(U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr, ufputs):
Move from cpphash.h.
* cpphash.h (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr,
ufputs): Move to cpplib.h.
(enum spell_type, struct token_spelling, _cpp_token_spellings, TOKEN_SPELL,
TOKEN_NAME, struct answer, FREE_ANSWER, KANDR, STDC89, EXTENSION,
COND, EXPAND, INCL, COMMENTS, IN_I, struct directive, directive_handler,
struct spec_nodes, _cpp_digraph_spellings, _cpp_free_temp_tokens,
_cpp_init_input_buffer, _cpp_grow_token_buffer, _cpp_init_toklist,
_cpp_clear_toklist, _cpp_expand_token_space, _cpp_expand_name_space,
_cpp_equiv_tokens, _cpp_equiv_toklists, _cpp_process_directive,
_cpp_run_directive, _cpp_get_line, _cpp_get_raw_token, _cpp_glue_header_name,
_cpp_can_paste, _cpp_check_directive, _cpp_check_linemarker,
_cpp_parse_assertion, _cpp_find_answer): Delete.
(VALID_SIGN, ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE, POOL_SIZE,
POOL_USED, POOL_COMMIT, struct cpp_chunk, _cpp_lex_token, _cpp_init_pool,
_cpp_free_pool, _cpp_pool_reserve, _cpp_pool_alloc, _cpp_next_chunk,
_cpp_lock_pool, _cpp_unlock_pool, _cpp_test_assertion,
_cpp_handle_directive, DSC): New.
(struct include_file): New member defined.
(DO_NOT_REREAD, _cpp_begin_message, _cpp_execute_include,
_cpp_compare_file_date): Update.
(_cpp_pop_context, _cpp_get_token, _cpp_free_lookaheads, _cpp_push_token): New.
(_cpp_init_macros, _cpp_cleanup_macros): Rename to _cpp_init_hashtable,
_cpp_cleanup_hashtable.
* Makefile.in: Remove cppoutput.c.
* cppoutput.c: Delete
* fixheader.c (read_scan_file): Update for new cpp_get_token
prototype.
(recognized_function): New argument LINE.
* scan-decls.c (skip_to_closing_brace, scan_decls): Update for
new cpp_get_token prototype.
* scan.h (recognized_function): Update prototype.
* po/POTFILES.in: Remove cppoutput.c.
From-SVN: r37098
2000-10-28 19:59:06 +02:00
|
|
|
|
cpphash.o cpperror.o cppinit.o cppdefault.o \
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
mkdeps.o prefix.o version.o mbchar.o
|
1998-10-28 23:31:06 +01:00
|
|
|
|
|
cccp.c, [...]: Removed.
* cccp.c, cexp.y, cexp.c, cccp.1: Removed.
* configure.in: Delete --disable-cpplib option and all
references to cpp_main.
* configure: Regenerate.
* Makefile.in: Remove all references to CCCP, CCCP_OBJS,
@cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
cccp.o, cccp, or cppmain. Link cppmain.o straight to
cpp$(exeext). Add --no-headers to makeinfo command line when
generating INSTALL. Install and uninstall cpp.1 manpage, not
cccp.1.
* install.texi: Delete all references to cexp.y/cexp.c.
Delete ancient instructions for compiling GCC on 3b1.
* INSTALL: Regenerate.
* cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c,
ch/decl.c, ch/lex.c, cp/lex.c, f/lex.c, mips/t-ecoff,
mips/t-elf, mips/t-r3900: Remove references to cccp.c.
* convex.h, fx80.h, m68k.h, pdp11.h, contrib/gcc_update,
f/g77install.texi: Remove references to cexp.c/cexp.y.
* xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
which is no longer tested anywhere.
* po/POTFILES.in: Remove cccp.c and cexp.c. Comment out
alpha/vms-tramp.asm.
From-SVN: r33238
2000-04-19 00:34:13 +02:00
|
|
|
|
LIBCPP_DEPS = cpplib.h cpphash.h intl.h system.h
|
2000-03-09 00:43:41 +01:00
|
|
|
|
|
[multiple changes]
2000-08-04 Andreas Schwab <schwab@suse.de>
* cppmain.c (cb_def_pragma): Skip the first two tokens from the
token list, which are always `#' and `pragma'.
2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
* tree.c (tree_expr_nonnegative_p): Move to...
* fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
(rtl_expr_nonnegative_p): New.
* tree.h: Add prototype for rtl_expr_nonnegative_p.
* real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
CONST_DOUBLE_CHAIN: Move to...
* rtl.h: ...here. Use XCINT/XCEXP.
* Makefile.in: Remove toplev.o from OBJS. Add rule to make
libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
to VOL_FILES.
* objc/Make-lang.in (cc1obj): Link with $(BACKEND).
ch:
* Make-lang.in (cc1chill): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in (cc1chill): Link with $(BACKEND). Define BACKEND,
eliminate C_OBJS (was commented out), OBJS, OBJDEPS.
cp:
* Make-lang.in (cc1plus): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add C_OBJS, BACKEND; delete OBJS, OBJDEPS.
(cc1plus): Link with $(BACKEND) and $(C_OBJS).
f:
* Make-lang.in (f771): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add BACKEND; delete OBJS, OBJDEPS.
(f771): Link with $(BACKEND).
java:
* Make-lang.in (jc1, jv-scan): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add BACKEND; delete OBJS, OBJDEPS.
(jc1): Link with $(BACKEND).
(jv-scan): Depend on version.o, not all of $(OBJS) or $(BACKEND).
From-SVN: r35501
2000-08-05 02:50:02 +02:00
|
|
|
|
# Most of the other archives built/used by this makefile are for
|
|
|
|
|
# targets. This one is strictly for the host.
|
1998-10-28 23:31:06 +01:00
|
|
|
|
libcpp.a: $(LIBCPP_OBJS)
|
2000-02-27 13:37:56 +01:00
|
|
|
|
-rm -rf libcpp.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 23:39:13 +01:00
|
|
|
|
$(AR) $(AR_FLAGS) libcpp.a $(LIBCPP_OBJS)
|
|
|
|
|
if $(RANLIB_TEST) ; then $(RANLIB) libcpp.a ; else true ; fi
|
1998-10-28 23:31:06 +01:00
|
|
|
|
|
2000-07-31 20:29:58 +02:00
|
|
|
|
cpp0$(exeext): cppmain.o intl.o libcpp.a $(LIBDEPS)
|
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cpp0$(exeext) cppmain.o \
|
1999-04-01 10:05:46 +02:00
|
|
|
|
intl.o libcpp.a $(LIBS)
|
1995-03-16 23:01:13 +01:00
|
|
|
|
|
Convert cpplib to use libiberty/hashtab.c.
* cpplib.h (struct cpp_reader): Make hashtab and
all_include_files of type 'struct htab *'. Delete HASHSIZE
and ALL_INCLUDE_HASHSIZE macros.
* cpphash.h: Update prototypes.
(struct hashnode): Remove next, prev, and bucket_hdr members.
Make length a size_t. Add hash member.
(struct ihash): Remove next member. Add hash member. Make
name a flexible array member.
* cppfiles.c: Include hashtab.h.
(include_hash): Delete.
(IHASHSIZE): New macro.
(hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
(cpp_included): Do the hash lookup here.
(_cpp_find_include_file): Rewrite.
(cpp_read_file): Put the "fake" hash entry into the hash
table. Honor the control_macro, if it turns out we've seen
the file before. Don't push the buffer here.
(_cpp_read_include_file): Push the buffer here.
(OMODES): New macro. Use it whenever we call open(2).
* cpphash.c: Include hashtab.h.
(hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
_cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
_cpp_lookup_slot): New functions.
(HASHSIZE): new macro.
(hashf, _cpp_install, _cpp_delete_macro): Delete.
(_cpp_lookup): Use hashtab.h routines.
* cppinit.c: Include hashtab.h.
(cpp_reader_init): Call _cpp_init_macro_hash and
_cpp_init_include_hash. Don't allocate hashtab directly.
(cpp_cleanup): Just call htab_delete on pfile->hashtab and
pfile->all_include_files.
(initialize_builtins): Use _cpp_make_hashnode and
htab_find_slot to add hash entries.
(cpp_finish): Just call _cpp_dump_macro_hash.
* cpplib.c: Include hashtab.h.
(do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
create hash entries.
(do_pragma_poison, do_assert): Likewise.
(do_include): Don't push the buffer here. Don't increment
system_include_depth unless _cpp_read_include_file succeeds.
(do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
or htab_remove_elt.
(do_pragma_implementation): Use alloca to create copy.
* Makefile.in: Update dependencies.
From-SVN: r32497
2000-03-13 00:46:05 +01:00
|
|
|
|
cppmain.o: cppmain.c $(CONFIG_H) cpplib.h intl.h system.h
|
1996-12-08 00:05:10 +01:00
|
|
|
|
|
2000-03-09 00:43:41 +01:00
|
|
|
|
cpperror.o: cpperror.c $(CONFIG_H) $(LIBCPP_DEPS)
|
defaults.h: Provide default definitions for...
* defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
* cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
profile.c, sdbout.c, tradcif.y, tree.c, ch/decl.c, ch/timing.c,
cp/decl.c, cp/rtti.c, f/com.c, f/com.h, java/decl.c, java/expr.c:
Include defaults.h if not already included.
Don't define the above macros.
* Makefile.in, ch/Makefile.in, cp/Makefile.in, f/Makefile.in:
Update dependencies.
From-SVN: r36307
2000-09-11 03:50:49 +02:00
|
|
|
|
cppexp.o: cppexp.c $(CONFIG_H) $(LIBCPP_DEPS) defaults.h
|
Makefile.in (LIBCPP_OBJS): Add cpplex.o.
* Makefile.in (LIBCPP_OBJS): Add cpplex.o.
(cpplex.o): New target.
* po/POTFILES.in: Add cpplex.c.
* cpplex.c (_cpp_grow_token_buffer, null_cleanup,
cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
skip_block_comment, skip_line_comment, skip_comment,
copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
_cpp_parse_name, skip_string, parse_string,
_cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
_cpp_get_directive_token, find_position,
_cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
(maybe_macroexpand, _cpp_lex_token): New functions.
* cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
parse_goto_mark): Delete.
(_cpp_handle_eof): New function.
(_cpp_handle_directive): Rename from handle_directive.
(_cpp_output_line_command): Rename from output_line_command.
(do_if, do_elif): Call _cpp_parse_expr directly.
* cppfiles.c (_cpp_read_include_file): Don't call
init_input_buffer here.
* cpphash.c (quote_string): Move here, rename _cpp_quote_string.
* cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
here; pop the token_buffer and skip the rest of the line here.
* cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
here.
* cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
Define here.
(CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
CPP_GOTO_MARK): New macros.
(_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
_cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
_cpp_read_and_prescan, _cpp_init_input_buffer,
_cpp_grow_token_buffer, _cpp_get_directive_token,
_cpp_handle_directive, _cpp_handle_eof,
_cpp_output_line_command): Prototype them here.
* cpplib.h (enum cpp_token): Add CPP_MACRO.
(CPP_RESERVE, get_directive_token, cpp_grow_buffer,
quote_string, output_line_command): Remove.
From-SVN: r32513
2000-03-13 23:01:08 +01:00
|
|
|
|
cpplex.o: cpplex.c $(CONFIG_H) $(LIBCPP_DEPS)
|
2000-07-18 02:59:49 +02:00
|
|
|
|
cppmacro.o: cppmacro.c $(CONFIG_H) $(LIBCPP_DEPS)
|
cpplex.c: Don't include sys/mman.h.
toplevel:
* cpplex.c: Don't include sys/mman.h.
(cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
* cpplib.c: Include sys/mman.h and obstack.h.
(cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
obstack.
(cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
(_cpp_unwind_if_stack): Now static, unwind_if_stack. Don't
bother freeing if stack entries (they will be freed with their buffer).
(do_endif): Free if stack entries from the buffer obstack.
(push_conditional): Allocate if stack entries from the buffer obstack.
(find_answer): Rename to _cpp_find_answer.
(do_assert, do_unassert): Update.
* cpphash.h: Update prototypes.
(xobnew): New convenience macro.
* cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
Update comments.
(struct cpp_hashnode): Remove disabled field.
* cppinit.c: Don't include hashtab.h or splay-tree.h.
(report_missing_guard): Moved to cppfiles.c.
(cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
cpp_init_includes.
(cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
cpp_cleanup_includes. Don't destroy hashtab or
all_include_files here.
(cpp_finish): Use _cpp_report_missing_guards.
* cppfiles.c (report_missing_guard): Moved from cppinit.c.
(_cpp_init_include_table): Rename _cpp_init_includes.
(_cpp_cleanup_includes, _cpp_report_missing_guards): New.
* cppexp.c (parse_assertion): Update for new name of
find_answer.
* Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
* cpplib.c (do_ident): s/VSPACE/EOF/
testsuite:
* gcc.dg/cpp/ident.c: New test.
From-SVN: r34870
2000-07-05 07:33:57 +02:00
|
|
|
|
cpplib.o: cpplib.c $(CONFIG_H) $(LIBCPP_DEPS) $(OBSTACK_H)
|
2000-07-18 02:59:49 +02:00
|
|
|
|
cpphash.o: cpphash.c $(CONFIG_H) $(LIBCPP_DEPS) $(OBSTACK_H)
|
2000-06-21 20:41:38 +02:00
|
|
|
|
cppfiles.o: cppfiles.c $(CONFIG_H) $(LIBCPP_DEPS) $(SPLAY_TREE_H) mkdeps.h
|
2000-07-07 00:52:03 +02:00
|
|
|
|
cppinit.o: cppinit.c $(CONFIG_H) $(LIBCPP_DEPS) cppdefault.h \
|
|
|
|
|
mkdeps.h prefix.h output.h version.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 21:40:21 +01:00
|
|
|
|
|
2000-07-07 00:52:03 +02:00
|
|
|
|
cppdefault.o: cppdefault.c $(CONFIG_H) system.h cppdefault.h Makefile
|
1995-03-16 23:01:13 +01:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
1999-08-25 04:49:56 +02:00
|
|
|
|
$(PREPROCESSOR_DEFINES) \
|
configure.in: Remove AC_PROG_LEX and AC_PROG_YACC.
* configure.in: Remove AC_PROG_LEX and AC_PROG_YACC. Look for
flex and bison, specifically, first in a unified build and
then installed on the system.
* Makefile.in: Set BISON to @BISON@, FLEX to @FLEX@. Rename
LEXFLAGS to FLEXFLAGS. Adjust ORDINARY_FLAGS_TO_PASS to
match.
(collect2.o, gcc.o, prefix.o, toplev.o, alloca.o, intl.o,
cppdefault.o): Remove pointless sed munging of source file
name.
f:
* Make-lang.in (f/fini.o, f/proj-h.o): Remove pointless sed
munging of source file name.
($(srcdir)/f/intdoc.texi): Break up into several rules each of
which builds just one thing. Don't mess with $(LANGUAGES).
(f/ansify.o, f/intdoc.o): Remove unnecessary rules.
From-SVN: r37371
2000-11-10 18:23:09 +01:00
|
|
|
|
-c $(srcdir)/cppdefault.c
|
1999-02-04 12:36:54 +01:00
|
|
|
|
|
mkdeps.c, mkdeps.h: New files.
* mkdeps.c, mkdeps.h: New files.
* po/POTFILES.in: Add them.
* Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
(cpplib.o, cppinit.o): Depend on mkdeps.h.
(mkdeps.o): New target.
* cppfiles.c: Delete deps_output.
* cppinit.c: Include mkdeps.h. Delete known_suffixes,
OBJECT_SUFFIX, and base_name.
(cpp_cleanup): Use deps_free. Free ihash->name when clearing
the include hash.
(initialize_dependency_output): Use deps_init,
deps_add_target, deps_calc_target, and deps_add_dep. Remove
all the unnecessary string bashing.
(cpp_finish): Use deps_write. Remove an unnecessary nesting
level.
* cpplib.c (do_include): Use deps_add_dep.
* cpplib.h (struct cpp_reader): Replace deps_buffer,
deps_allocated_size, deps_size, deps_column members with
single pointer to a struct deps. Delete prototype of
deps_output.
From-SVN: r32329
2000-03-04 20:42:04 +01:00
|
|
|
|
mkdeps.o: mkdeps.c $(CONFIG_H) system.h mkdeps.h
|
|
|
|
|
|
2000-07-07 00:59:34 +02:00
|
|
|
|
# The traditional mode preprocessor, a separate program for ease of
|
|
|
|
|
# maintenance. Some code is shared with the ISO-C cpp.
|
Makefile.in (tradcpp0): Depend on mkdeps.h.
* Makefile.in (tradcpp0): Depend on mkdeps.h. Link mkdeps.o
* cppinit.c (cpp_start_read): Update comment, remove unneeded
if statement.
* tradcpp.c: Include mkdeps.h.
(deps, print_deps_phony_targets, deps_append, output_deps,
init_dependency_output, output_deps): New.
(deps_buffer, deps_allocated_size, deps_size, deps_column,
deps_output): Delete.
(print_deps_missing_files): Rename deps_missing_files.
(inhibit_output): Make global.
(main): Delete inhibit_output, deps_stream, deps_target.
Use mkdeps functionality in the same way as cpplib. Remove
-g3 handling. Handle -MF, -MP, -MQ, -MT. Update handling of
-M and -MM. Remove old handling of deps via deps_out, and
old reading of environment variables.
(get_filename): Update to use deps_add_dep.
From-SVN: r38885
2001-01-11 00:28:00 +01:00
|
|
|
|
tradcpp0$(exeext): tradcpp.o tradcif.o cppdefault.o version.o intl.o \
|
|
|
|
|
mkdeps.h $(LIBDEPS)
|
2000-07-31 20:29:58 +02:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o tradcpp0$(exeext) \
|
Makefile.in (tradcpp0): Depend on mkdeps.h.
* Makefile.in (tradcpp0): Depend on mkdeps.h. Link mkdeps.o
* cppinit.c (cpp_start_read): Update comment, remove unneeded
if statement.
* tradcpp.c: Include mkdeps.h.
(deps, print_deps_phony_targets, deps_append, output_deps,
init_dependency_output, output_deps): New.
(deps_buffer, deps_allocated_size, deps_size, deps_column,
deps_output): Delete.
(print_deps_missing_files): Rename deps_missing_files.
(inhibit_output): Make global.
(main): Delete inhibit_output, deps_stream, deps_target.
Use mkdeps functionality in the same way as cpplib. Remove
-g3 handling. Handle -MF, -MP, -MQ, -MT. Update handling of
-M and -MM. Remove old handling of deps via deps_out, and
old reading of environment variables.
(get_filename): Update to use deps_add_dep.
From-SVN: r38885
2001-01-11 00:28:00 +01:00
|
|
|
|
tradcpp.o tradcif.o mkdeps.o cppdefault.o version.o intl.o $(LIBS)
|
2000-07-07 00:59:34 +02:00
|
|
|
|
|
2000-11-19 01:30:05 +01:00
|
|
|
|
tradcpp.o: tradcpp.c $(CONFIG_H) system.h version.h cppdefault.h tradcpp.h
|
|
|
|
|
tradcif.o: $(srcdir)/tradcif.c $(CONFIG_H) system.h defaults.h tradcpp.h
|
2000-07-07 00:59:34 +02:00
|
|
|
|
|
|
|
|
|
$(srcdir)/tradcif.c: $(srcdir)/tradcif.y
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
(cd $(srcdir) && $(BISON) $(BISONFLAGS) -o tr$$$$.c tradcif.y && \
|
|
|
|
|
mv -f tr$$$$.c tradcif.c)
|
2000-07-07 00:59:34 +02:00
|
|
|
|
|
1993-01-26 19:45:24 +01:00
|
|
|
|
# Note for the stamp targets, we run the program `true' instead of
|
|
|
|
|
# having an empty command (nothing following the semicolon).
|
|
|
|
|
|
1998-03-22 00:47:27 +01:00
|
|
|
|
proto: config.status protoize$(exeext) unprotoize$(exeext) SYSCALLS.c.X
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1999-09-18 20:05:59 +02:00
|
|
|
|
PROTO_OBJS = intl.o version.o
|
1999-01-27 02:43:17 +01:00
|
|
|
|
|
|
|
|
|
protoize$(exeext): protoize.o $(PROTO_OBJS) $(LIBDEPS)
|
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ protoize.o $(PROTO_OBJS) $(LIBS)
|
1992-05-18 22:08:36 +02:00
|
|
|
|
|
1999-01-27 02:43:17 +01:00
|
|
|
|
unprotoize$(exeext): unprotoize.o $(PROTO_OBJS) $(LIBDEPS)
|
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ unprotoize.o $(PROTO_OBJS) $(LIBS)
|
1992-05-18 22:08:36 +02:00
|
|
|
|
|
1999-01-19 15:07:21 +01:00
|
|
|
|
protoize.o: protoize.c $(srcdir)/../include/getopt.h $(CONFIG_H) system.h \
|
Makefile.in (TREE_H, [...]): Depend on version.h.
* Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
* cccp.c: Include version.h and/or don't declare `version_string'.
* collect2.c: Likewise.
* alpha.c: Likewise.
* arm/aof.h: Likewise.
* arm/coff.h: Likewise.
* arm/elf.h: Likewise.
* arm/pe.h: Likewise.
* arm/tcoff.h: Likewise.
* arm/telf.h: Likewise.
* arm/tpe.h: Likewise.
* arm/vxarm.h: Likewise.
* convex/convex.c: Likewise.
* i386/dgux.c: Likewise.
* i386/sun386.h: Likewise.
* m88k/m88k.c: Likewise.
* mcore/mcore-pe.h: Likewise.
* mips/mips.h: Likewise.
* romp/romp.h: Likewise.
* sh/sh.c: Likewise.
* cpphash.c: Likewise.
* cppinit.c: Likewise.
* dwarf2out.c: Likewise.
* dwarfout.c: Likewise.
* gcc.c: Likewise.
* gcc.h: Likewise.
* mips-tfile.c: Likewise.
* protoize.c: Likewise.
* toplev.c: Likewise.
* tree.h: Likewise.
* version.c (version_string): Constify a char*.
* version.h: New file.
ch:
* grant.c: Don't declare `version_string'.
f:
* g77spec.c: Don't declare `version_string'.
java:
* Makefile.in (jv-scan, jcf-dump, gcjh): Depend on and link with
version.o.
(jcf-dump.o, gjavah.o, jv-scan.o): Depend on version.h.
* gjavah.c: Include version.h.
* jcf-dump.c: Likewise.
* jv-scan.c: Likewise.
From-SVN: r31984
2000-02-15 17:36:35 +01:00
|
|
|
|
Makefile version.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
1999-08-25 04:49:56 +02:00
|
|
|
|
$(DRIVER_DEFINES) $(PREPROCESSOR_DEFINES) \
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
$(srcdir)/protoize.c $(OUTPUT_OPTION)
|
1998-01-13 22:10:35 +01:00
|
|
|
|
|
1999-01-19 15:07:21 +01:00
|
|
|
|
unprotoize.o: unprotoize.c protoize.c $(srcdir)/../include/getopt.h \
|
Makefile.in (TREE_H, [...]): Depend on version.h.
* Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
* cccp.c: Include version.h and/or don't declare `version_string'.
* collect2.c: Likewise.
* alpha.c: Likewise.
* arm/aof.h: Likewise.
* arm/coff.h: Likewise.
* arm/elf.h: Likewise.
* arm/pe.h: Likewise.
* arm/tcoff.h: Likewise.
* arm/telf.h: Likewise.
* arm/tpe.h: Likewise.
* arm/vxarm.h: Likewise.
* convex/convex.c: Likewise.
* i386/dgux.c: Likewise.
* i386/sun386.h: Likewise.
* m88k/m88k.c: Likewise.
* mcore/mcore-pe.h: Likewise.
* mips/mips.h: Likewise.
* romp/romp.h: Likewise.
* sh/sh.c: Likewise.
* cpphash.c: Likewise.
* cppinit.c: Likewise.
* dwarf2out.c: Likewise.
* dwarfout.c: Likewise.
* gcc.c: Likewise.
* gcc.h: Likewise.
* mips-tfile.c: Likewise.
* protoize.c: Likewise.
* toplev.c: Likewise.
* tree.h: Likewise.
* version.c (version_string): Constify a char*.
* version.h: New file.
ch:
* grant.c: Don't declare `version_string'.
f:
* g77spec.c: Don't declare `version_string'.
java:
* Makefile.in (jv-scan, jcf-dump, gcjh): Depend on and link with
version.o.
(jcf-dump.o, gjavah.o, jv-scan.o): Depend on version.h.
* gjavah.c: Include version.h.
* jcf-dump.c: Likewise.
* jv-scan.c: Likewise.
From-SVN: r31984
2000-02-15 17:36:35 +01:00
|
|
|
|
$(CONFIG_H) system.h Makefile version.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
1999-08-25 04:49:56 +02:00
|
|
|
|
$(DRIVER_DEFINES) $(PREPROCESSOR_DEFINES) \
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
$(srcdir)/unprotoize.c $(OUTPUT_OPTION)
|
1992-02-03 23:08:59 +01: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-23 00:55:23 +02:00
|
|
|
|
SYSCALLS.c.X: $(srcdir)/sys-types.h $(srcdir)/sys-protos.h $(GCC_PASSES) \
|
|
|
|
|
stmp-int-hdrs
|
1992-06-06 21:49:38 +02:00
|
|
|
|
-rm -f SYSCALLS.c tmp-SYSCALLS.s
|
2000-07-17 11:23:16 +02:00
|
|
|
|
sed -e s/TARGET_GETGROUPS_T/$(TARGET_GETGROUPS_T)/ \
|
|
|
|
|
$(srcdir)/sys-types.h $(srcdir)/sys-protos.h > SYSCALLS.c
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
1992-06-06 21:49:38 +02:00
|
|
|
|
-aux-info $@ -S -o tmp-SYSCALLS.s SYSCALLS.c
|
|
|
|
|
-rm -f SYSCALLS.c tmp-SYSCALLS.s
|
1992-04-25 03:32:47 +02:00
|
|
|
|
|
1993-07-26 10:49:02 +02:00
|
|
|
|
|
1992-04-25 03:32:47 +02:00
|
|
|
|
test-protoize-simple: ./protoize ./unprotoize $(GCC_PASSES)
|
1992-05-22 23:22:42 +02:00
|
|
|
|
-rm -f tmp-proto.[cso]
|
1992-05-06 05:33:12 +02:00
|
|
|
|
cp $(srcdir)/protoize.c tmp-proto.c
|
|
|
|
|
chmod u+w tmp-proto.c
|
1992-05-22 23:22:42 +02:00
|
|
|
|
./protoize -N -B ./ -x getopt.h -c "-B./ -Wall -Wwrite-strings \
|
1999-08-25 04:49:56 +02:00
|
|
|
|
$(GCC_CFLAGS) $(INCLUDES) \
|
1992-04-25 03:32:47 +02:00
|
|
|
|
-DGCC_INCLUDE_DIR=0 \
|
|
|
|
|
-DGPLUSPLUS_INCLUDE_DIR=0 \
|
|
|
|
|
-DCROSS_INCLUDE_DIR=0 \
|
1993-01-02 10:05:01 +01:00
|
|
|
|
-DTOOL_INCLUDE_DIR=0 \
|
1999-08-25 04:49:56 +02:00
|
|
|
|
-DSTANDARD_EXEC_PREFIX=0 \
|
|
|
|
|
-DDEFAULT_TARGET_MACHINE=0 \
|
|
|
|
|
-DDEFAULT_TARGET_VERSION=0" tmp-proto.c
|
1992-06-26 05:41:06 +02:00
|
|
|
|
@echo '**********' Expect 400 lines of differences.
|
1992-05-22 23:22:42 +02: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 \
|
1999-08-25 04:49:56 +02:00
|
|
|
|
$(GCC_CFLAGS) $(INCLUDES) \
|
1992-04-25 03:32:47 +02:00
|
|
|
|
-DGCC_INCLUDE_DIR=0 \
|
|
|
|
|
-DGPLUSPLUS_INCLUDE_DIR=0 \
|
|
|
|
|
-DCROSS_INCLUDE_DIR=0 \
|
1993-01-02 10:05:01 +01:00
|
|
|
|
-DTOOL_INCLUDE_DIR=0 \
|
1999-08-25 04:49:56 +02:00
|
|
|
|
-DSTANDARD_EXEC_PREFIX=0 \
|
|
|
|
|
-DDEFAULT_TARGET_MACHINE=0 \
|
|
|
|
|
-DDEFAULT_TARGET_VERSION=0" tmp-proto.c
|
1992-04-25 03:32:47 +02:00
|
|
|
|
@echo Expect zero differences.
|
1992-05-06 05:33:12 +02: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-23 00:55:23 +02:00
|
|
|
|
-rm -f tmp-proto.[cs] tmp-proto$(objext)
|
1997-03-28 23:34:21 +01:00
|
|
|
|
|
gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(splay-tree.o, hash.o): Likewise.
GCONFIG_H: New.
(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
(hashtab.o): Likewise.
(gcov.o): Depend on $(CONFIG_H).
* configure.in: #include insn-codes.h in tm.h.
f:
* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).
java:
* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).
cp:
* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
From-SVN: r37680
2000-11-23 03:22:03 +01:00
|
|
|
|
gcov.o: gcov.c gcov-io.h intl.h system.h $(CONFIG_H)
|
1997-03-28 23:34:21 +01:00
|
|
|
|
|
1998-03-24 18:27:46 +01:00
|
|
|
|
# Only one of 'gcov' or 'gcov.exe' is actually built, depending
|
|
|
|
|
# upon whether $(exeext) is empty or not.
|
1999-01-27 02:43:17 +01:00
|
|
|
|
GCOV_OBJS = gcov.o intl.o
|
|
|
|
|
gcov$(exeext): $(GCOV_OBJS) $(LIBDEPS)
|
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) $(GCOV_OBJS) $(LIBS) -o $@
|
1997-06-09 21:19:18 +02:00
|
|
|
|
#
|
1993-01-14 21:10:31 +01:00
|
|
|
|
# Build the include directory. The stamp files are stmp-* rather than
|
1998-04-04 15:32:39 +02:00
|
|
|
|
# s-* so that mostlyclean does not force the include directory to
|
1993-01-14 21:10:31 +01:00
|
|
|
|
# be rebuilt.
|
|
|
|
|
|
1998-05-24 02:44:00 +02:00
|
|
|
|
# Build the include directory including float.h (which no longer depends upon
|
1993-04-08 16:53:33 +02:00
|
|
|
|
# enquire).
|
2000-02-27 01:10:15 +01:00
|
|
|
|
stmp-int-hdrs: $(STMP_FIXINC) $(USER_H) xlimits.h
|
1993-01-14 21:10:31 +01: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 21:57:58 +01:00
|
|
|
|
# The touch command is here to workaround an AIX/Linux NFS bug.
|
2000-04-03 09:41:25 +02:00
|
|
|
|
-if [ -d include ] ; then true; else mkdir include; chmod a+rx include; fi
|
1995-09-28 19:02:22 +01:00
|
|
|
|
for file in .. $(USER_H); do \
|
|
|
|
|
if [ X$$file != X.. ]; then \
|
|
|
|
|
realfile=`echo $$file | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
|
1998-01-14 21:57:58 +01:00
|
|
|
|
touch include/$$realfile; \
|
1996-09-26 23:10:02 +02:00
|
|
|
|
rm -f include/$$realfile; \
|
|
|
|
|
cp $$file include; \
|
|
|
|
|
chmod a+r include/$$realfile; \
|
1995-09-28 19:02:22 +01:00
|
|
|
|
fi; \
|
1993-01-14 21:10:31 +01:00
|
|
|
|
done
|
1993-01-18 17:12:57 +01:00
|
|
|
|
rm -f include/limits.h
|
1993-01-14 21:10:31 +01:00
|
|
|
|
cp xlimits.h include/limits.h
|
|
|
|
|
chmod a+r include/limits.h
|
1993-04-08 16:53:33 +02:00
|
|
|
|
rm -f include/float.h
|
1999-03-01 20:15:49 +01:00
|
|
|
|
if [ x$(FLOAT_H) != xMakefile.in ]; then \
|
|
|
|
|
cp $(srcdir)/config/$(FLOAT_H) include/float.h && \
|
1997-11-02 22:19:36 +01:00
|
|
|
|
chmod a+r include/float.h; \
|
|
|
|
|
else :; fi
|
1998-05-24 02:44:00 +02:00
|
|
|
|
# Install the README
|
|
|
|
|
rm -f include/README
|
|
|
|
|
cp $(srcdir)/README-fixinc include/README
|
|
|
|
|
chmod a+r include/README
|
|
|
|
|
touch $@
|
|
|
|
|
|
2000-02-01 23:30:35 +01:00
|
|
|
|
# fixinc.sh depends on this, not on specs directly.
|
|
|
|
|
# The idea is to make sure specs gets built, but not rerun fixinc.sh
|
|
|
|
|
# after each stage just because specs' mtime has changed.
|
|
|
|
|
specs.ready: specs
|
|
|
|
|
-if [ -f specs.ready ] ; then \
|
|
|
|
|
true; \
|
|
|
|
|
else \
|
|
|
|
|
touch specs.ready; \
|
|
|
|
|
fi
|
|
|
|
|
|
1999-04-27 01:00:53 +02:00
|
|
|
|
FIXINCSRCDIR=$(srcdir)/fixinc
|
|
|
|
|
fixinc.sh: $(FIXINCSRCDIR)/mkfixinc.sh $(FIXINCSRCDIR)/fixincl.c \
|
1999-04-29 17:38:02 +02:00
|
|
|
|
$(FIXINCSRCDIR)/procopen.c $(FIXINCSRCDIR)/gnu-regex.c \
|
|
|
|
|
$(FIXINCSRCDIR)/server.c $(FIXINCSRCDIR)/gnu-regex.h \
|
2000-02-01 23:30:35 +01:00
|
|
|
|
$(FIXINCSRCDIR)/server.h $(FIXINCSRCDIR)/inclhack.def specs.ready
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
(MAKE="$(MAKE)"; srcdir=`cd $(srcdir)/fixinc && pwd` ; \
|
2000-08-31 00:57:10 +02:00
|
|
|
|
CC="$(CC)"; CFLAGS="$(CFLAGS)"; LDFLAGS="$(LDFLAGS)"; \
|
2000-12-05 19:46:56 +01:00
|
|
|
|
WARN_CFLAGS="$(WARN_CFLAGS)"; \
|
|
|
|
|
export MAKE srcdir CC CFLAGS LDFLAGS WARN_CFLAGS; cd ./fixinc && \
|
2000-12-03 20:41:45 +01:00
|
|
|
|
$(SHELL) $${srcdir}/mkfixinc.sh $(build_canonical) $(target))
|
1999-03-11 09:53:13 +01:00
|
|
|
|
|
1993-01-14 21:10:31 +01:00
|
|
|
|
# Build fixed copies of system files.
|
1999-03-11 09:53:13 +01:00
|
|
|
|
stmp-fixinc: fixinc.sh gsyslimits.h
|
|
|
|
|
rm -rf include; mkdir include
|
1999-09-07 07:49:18 +02:00
|
|
|
|
-chmod a+rx include
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
(TARGET_MACHINE=$(target); srcdir=`cd $(srcdir); pwd`; \
|
1999-04-12 09:21:36 +02:00
|
|
|
|
INSTALL_ASSERT_H=$(INSTALL_ASSERT_H); SHELL=$(SHELL) ;\
|
|
|
|
|
export TARGET_MACHINE srcdir INSTALL_ASSERT_H SHELL ; \
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
$(SHELL) ./fixinc.sh `pwd`/include $(SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS); \
|
|
|
|
|
rm -f include/syslimits.h; \
|
1993-04-28 01:16:40 +02:00
|
|
|
|
if [ -f include/limits.h ]; then \
|
|
|
|
|
mv include/limits.h include/syslimits.h; \
|
|
|
|
|
else \
|
|
|
|
|
cp $(srcdir)/gsyslimits.h include/syslimits.h; \
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
fi; \
|
|
|
|
|
chmod a+r include/syslimits.h)
|
1999-03-26 21:50:16 +01:00
|
|
|
|
# If $(SYSTEM_HEADER_DIR) is $(tooldir)/sys-include, and
|
1998-10-02 03:05:51 +02:00
|
|
|
|
# that directory exists, then make sure that $(libsubdir) exists.
|
1999-03-26 21:50:16 +01:00
|
|
|
|
# This is because cpp is compiled to find $(tooldir)/include via
|
1998-10-02 03:05:51 +02:00
|
|
|
|
# $(libsubdir)/$(unlibsubdir), which will only work if $(libsubdir)
|
|
|
|
|
# exists.
|
1999-03-26 21:50:16 +01: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-02 03:05:51 +02: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 07:30:20 +01:00
|
|
|
|
touch stmp-fixinc
|
1993-04-15 09:41:21 +02:00
|
|
|
|
|
1993-07-26 10:49:02 +02:00
|
|
|
|
# Files related to the fixproto script.
|
2000-02-27 01:10:15 +01:00
|
|
|
|
# gen-protos and fix-header are compiled with HOST_CC, but they are only
|
|
|
|
|
# used in native and host-x-target builds, so it's safe to link them with
|
|
|
|
|
# libiberty.a.
|
1993-07-26 10:49:02 +02:00
|
|
|
|
|
1993-10-25 22:45:29 +01:00
|
|
|
|
deduced.h: $(GCC_PASSES) $(srcdir)/scan-types.sh stmp-int-hdrs
|
1998-05-19 23:41:03 +02:00
|
|
|
|
if [ -d $(SYSTEM_HEADER_DIR) ]; \
|
|
|
|
|
then \
|
2000-04-24 22:12:12 +02:00
|
|
|
|
CC="$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) -I. -I$(srcdir) -isystem include -isystem ${SYSTEM_HEADER_DIR}"; \
|
1993-07-26 10:49:02 +02:00
|
|
|
|
export CC; \
|
1998-05-19 23:41:03 +02:00
|
|
|
|
$(SHELL) $(srcdir)/scan-types.sh "$(srcdir)" >tmp-deduced.h; \
|
|
|
|
|
mv tmp-deduced.h deduced.h; \
|
|
|
|
|
else \
|
|
|
|
|
touch deduced.h; \
|
|
|
|
|
fi
|
1993-07-26 10:49:02 +02:00
|
|
|
|
|
2000-02-08 22:27:02 +01:00
|
|
|
|
GEN_PROTOS_OBJS = gen-protos.o scan.o
|
2000-12-09 17:27:51 +01:00
|
|
|
|
gen-protos$(build_exeext): $(GEN_PROTOS_OBJS)
|
|
|
|
|
${HOST_CC} $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
2000-02-27 01:10:15 +01:00
|
|
|
|
$(GEN_PROTOS_OBJS) ../libiberty/libiberty.a
|
1993-07-26 10:49:02 +02:00
|
|
|
|
|
2000-02-08 22:27:02 +01:00
|
|
|
|
gen-protos.o: gen-protos.c scan.h $(build_xm_file) system.h
|
1993-10-29 12:52:14 +01: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 14:05:54 +02:00
|
|
|
|
scan.o: scan.c scan.h $(build_xm_file) system.h
|
1993-10-29 12:52:14 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/scan.c
|
1993-10-26 20:11:25 +01:00
|
|
|
|
|
2000-12-09 17:27:51 +01:00
|
|
|
|
xsys-protos.h: $(GCC_PASSES) $(srcdir)/sys-protos.h deduced.h gen-protos$(build_exeext) Makefile
|
2000-07-17 11:23:16 +02:00
|
|
|
|
sed -e s/TARGET_GETGROUPS_T/$(TARGET_GETGROUPS_T)/ \
|
|
|
|
|
deduced.h $(srcdir)/sys-protos.h > tmp-fixtmp.c
|
1994-11-16 01:17:27 +01:00
|
|
|
|
mv tmp-fixtmp.c fixtmp.c
|
1995-03-16 23:05:46 +01:00
|
|
|
|
$(GCC_FOR_TARGET) fixtmp.c -w -U__SIZE_TYPE__ -U__PTRDIFF_TYPE__ -U__WCHAR_TYPE__ -E \
|
1993-08-10 04:16:16 +02:00
|
|
|
|
| sed -e 's/ / /g' -e 's/ *(/ (/g' -e 's/ [ ]*/ /g' -e 's/( )/()/' \
|
1994-11-16 01:17:27 +01:00
|
|
|
|
| ./gen-protos >xsys-protos.hT
|
|
|
|
|
mv xsys-protos.hT xsys-protos.h
|
1993-08-31 22:38:04 +02:00
|
|
|
|
rm -rf fixtmp.c
|
1993-07-26 10:49:02 +02:00
|
|
|
|
|
2000-06-21 01:36:33 +02:00
|
|
|
|
# This is nominally a 'build' program, but it's run only when host==build,
|
|
|
|
|
# so we can (indeed, must) use $(LIBDEPS) and $(LIBS).
|
|
|
|
|
fix-header: fix-header.o scan-decls.o scan.o xsys-protos.h $(LIBDEPS) \
|
1998-10-28 23:31:06 +01: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-23 00:55:23 +02:00
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ fix-header.o \
|
2000-06-21 01:36:33 +02:00
|
|
|
|
scan-decls.o scan.o libcpp.a $(LIBS)
|
1993-07-26 10:49:02 +02:00
|
|
|
|
|
2000-04-06 23:22:49 +02:00
|
|
|
|
fix-header.o: fix-header.c $(OBSTACK_H) scan.h \
|
2000-02-08 22:27:02 +01:00
|
|
|
|
xsys-protos.h $(build_xm_file) system.h cpplib.h
|
1993-10-29 12:52:14 +01: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 21:40:21 +01:00
|
|
|
|
scan-decls.o: scan-decls.c scan.h cpplib.h $(build_xm_file) system.h
|
1993-10-29 12:52:14 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/scan-decls.c
|
1993-07-26 10:49:02 +02:00
|
|
|
|
|
1993-10-25 22:45:29 +01: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
|
|
|
|
|
|
2000-02-27 01:10:15 +01:00
|
|
|
|
# stmp-int-headers is to make sure fixincludes has already finished.
|
1993-11-21 07:01:04 +01: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'.
|
2000-02-27 01:10:15 +01:00
|
|
|
|
stmp-fixproto: fixhdr.ready fixproto stmp-int-hdrs
|
2000-04-17 16:40:03 +02:00
|
|
|
|
if [ -f include/fixed ] ; then true; \
|
1993-11-21 07:01:04 +01:00
|
|
|
|
else \
|
1994-03-12 13:41:55 +01:00
|
|
|
|
: This line works around a 'make' bug in BSDI 1.1.; \
|
1995-04-05 23:16:26 +02:00
|
|
|
|
FIXPROTO_DEFINES="$(FIXPROTO_DEFINES)"; export FIXPROTO_DEFINES; \
|
1999-05-18 01:07:40 +02:00
|
|
|
|
mkinstalldirs="$(SHELL) $(srcdir)/mkinstalldirs"; \
|
|
|
|
|
export mkinstalldirs; \
|
1998-05-19 23:45:41 +02:00
|
|
|
|
if [ -d $(SYSTEM_HEADER_DIR) ] ; then \
|
|
|
|
|
$(SHELL) ${srcdir}/fixproto include include $(SYSTEM_HEADER_DIR); \
|
2000-04-17 16:40:03 +02:00
|
|
|
|
if [ $$? -eq 0 ] ; then true ; else exit 1 ; fi ; \
|
1998-05-19 23:45:41 +02:00
|
|
|
|
else true; fi; \
|
1993-11-21 07:01:04 +01:00
|
|
|
|
touch include/fixed; \
|
|
|
|
|
fi
|
1993-07-26 10:49:02 +02:00
|
|
|
|
touch stmp-fixproto
|
1997-06-09 21:19:18 +02:00
|
|
|
|
#
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Remake the info files.
|
|
|
|
|
|
2000-05-02 21:09:24 +02:00
|
|
|
|
doc: $(BUILD_INFO) gccbug
|
2001-01-13 01:24:39 +01:00
|
|
|
|
info: $(srcdir)/cpp.info $(srcdir)/gcc.info lang.info $(srcdir)/c-tree.info $(srcdir)/cppinternals.info
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
2000-12-08 23:54:06 +01:00
|
|
|
|
$(srcdir)/cpp.info: $(srcdir)/cpp.texi
|
|
|
|
|
cd $(srcdir) && $(MAKEINFO) $(MAKEINFOFLAGS) -o cpp.info cpp.texi
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
2000-12-08 23:54:06 +01:00
|
|
|
|
$(srcdir)/gcc.info: $(srcdir)/gcc.texi $(srcdir)/extend.texi $(srcdir)/install.texi \
|
1997-09-15 05:04:48 +02:00
|
|
|
|
$(srcdir)/invoke.texi $(srcdir)/md.texi $(srcdir)/rtl.texi \
|
2001-01-13 01:24:39 +01:00
|
|
|
|
$(srcdir)/tm.texi $(srcdir)/gcov.texi $(srcdir)/contrib.texi
|
2000-12-08 23:54:06 +01:00
|
|
|
|
cd $(srcdir) && $(MAKEINFO) $(MAKEINFOFLAGS) -o gcc.info gcc.texi
|
1992-05-24 21:40:47 +02:00
|
|
|
|
|
2000-12-08 23:54:06 +01:00
|
|
|
|
$(srcdir)/c-tree.info: $(srcdir)/c-tree.texi
|
|
|
|
|
cd $(srcdir) && $(MAKEINFO) $(MAKEINFOFLAGS) -o c-tree.info \
|
|
|
|
|
c-tree.texi
|
2000-09-24 23:47:45 +02:00
|
|
|
|
|
2001-01-13 01:24:39 +01:00
|
|
|
|
$(srcdir)/cppinternals.info: $(srcdir)/cppinternals.texi
|
|
|
|
|
cd $(srcdir) && $(MAKEINFO) $(MAKEINFOFLAGS) -o cppinternals.info \
|
|
|
|
|
cppinternals.texi
|
|
|
|
|
|
1997-09-15 05:04:48 +02:00
|
|
|
|
dvi: gcc.dvi cpp.dvi lang.dvi
|
1993-05-21 20:27:59 +02:00
|
|
|
|
|
1992-10-31 22:25:11 +01:00
|
|
|
|
# This works with GNU Make's default rule.
|
1997-09-15 05:04:48 +02: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
|
|
|
|
|
|
2001-01-13 22:17:13 +01:00
|
|
|
|
generated-manpages: $(srcdir)/gcov.1 $(srcdir)/cpp.1 $(srcdir)/gcc.1
|
2001-01-03 21:15:01 +01:00
|
|
|
|
|
2000-11-22 09:29:32 +01:00
|
|
|
|
$(srcdir)/gcov.1: $(srcdir)/gcov.texi
|
|
|
|
|
$(TEXI2POD) < $(srcdir)/gcov.texi > gcov.pod
|
|
|
|
|
($(POD2MAN) gcov.pod > $(srcdir)/gcov.1.T$$$$ && \
|
|
|
|
|
mv -f $(srcdir)/gcov.1.T$$$$ $(srcdir)/gcov.1) || \
|
|
|
|
|
(rm -f $(srcdir)/gcov.1.T$$$$ && exit 1)
|
|
|
|
|
rm -f gcov.pod
|
|
|
|
|
|
2001-01-03 21:15:01 +01:00
|
|
|
|
$(srcdir)/cpp.1: $(srcdir)/cpp.texi
|
|
|
|
|
$(TEXI2POD) < $(srcdir)/cpp.texi > cpp.pod
|
|
|
|
|
($(POD2MAN) cpp.pod > $(srcdir)/cpp.1.T$$$$ && \
|
|
|
|
|
mv -f $(srcdir)/cpp.1.T$$$$ $(srcdir)/cpp.1) || \
|
|
|
|
|
(rm -f $(srcdir)/cpp.1.T$$$$ && exit 1)
|
|
|
|
|
rm -f cpp.pod
|
|
|
|
|
|
2001-01-13 22:17:13 +01:00
|
|
|
|
$(srcdir)/gcc.1: $(srcdir)/invoke.texi
|
|
|
|
|
$(TEXI2POD) < $(srcdir)/invoke.texi > gcc.pod
|
|
|
|
|
($(POD2MAN) gcc.pod > $(srcdir)/gcc.1.T$$$$ && \
|
|
|
|
|
mv -f $(srcdir)/gcc.1.T$$$$ $(srcdir)/gcc.1) || \
|
|
|
|
|
(rm -f $(srcdir)/gcc.1.T$$$$ && exit 1)
|
|
|
|
|
rm -f gcc.pod
|
|
|
|
|
|
1997-06-09 21:19:18 +02:00
|
|
|
|
#
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Deletion of files made during compilation.
|
|
|
|
|
# There are four levels of this:
|
1995-04-26 00:07:11 +02:00
|
|
|
|
# `mostlyclean', `clean', `distclean' and `maintainer-clean'.
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# `mostlyclean' is useful while working on a particular type of machine.
|
1992-03-20 23:22:14 +01:00
|
|
|
|
# It deletes most, but not all, of the files made by compilation.
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# It does not delete libgcc.a or its parts, so it won't have to be recompiled.
|
1992-03-20 23:22:14 +01:00
|
|
|
|
# `clean' deletes everything made by running `make all'.
|
1992-04-04 23:34:42 +02:00
|
|
|
|
# `distclean' also deletes the files made by config.
|
1995-04-26 00:07:11 +02:00
|
|
|
|
# `maintainer-clean' also deletes everything that could be regenerated
|
1997-06-09 20:47:19 +02: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 10:25:33 +02:00
|
|
|
|
# (less duplicated code).
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1999-09-22 17:24:30 +02:00
|
|
|
|
INTL_MOSTLYCLEAN = intl.mostlyclean
|
|
|
|
|
mostlyclean: $(INTL_MOSTLYCLEAN) lang.mostlyclean
|
1992-02-03 23:08:59 +01:00
|
|
|
|
-rm -f $(STAGESTUFF)
|
2000-09-04 18:04:48 +02:00
|
|
|
|
-rm -rf libgcc
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# 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
|
1999-09-18 20:05:59 +02:00
|
|
|
|
-rm -f $(HOST_PREFIX_1)obstack.c
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Delete the temp files made in the course of building libgcc.a.
|
2000-05-03 20:21:49 +02:00
|
|
|
|
-rm -f xlimits.h libgcc1-test
|
1992-02-03 23:08:59 +01:00
|
|
|
|
for name in $(LIB1FUNCS); do rm -f $${name}.c; done
|
1998-04-04 15:32:39 +02:00
|
|
|
|
# Delete other built files.
|
2000-05-03 20:21:49 +02:00
|
|
|
|
-rm -f t-float.h-cross xsys-protos.hT
|
1998-04-04 15:32:39 +02:00
|
|
|
|
# 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 10:25:33 +02:00
|
|
|
|
-rm -f */stamp-* */tmp-*
|
1992-03-20 23:22:14 +01:00
|
|
|
|
# Delete debugging dump files.
|
2000-04-01 21:07:05 +02:00
|
|
|
|
-rm -f *.[0-9][0-9].* */*.[0-9][0-9].*
|
1992-03-20 23:22:14 +01:00
|
|
|
|
# Delete some files made during installation.
|
1999-03-01 20:15:49 +01:00
|
|
|
|
-rm -f specs float.h-* enquire SYSCALLS.c.X SYSCALLS.c
|
1994-03-08 02:10:40 +01:00
|
|
|
|
-rm -f collect collect2 mips-tfile mips-tdump alloca.s
|
1993-07-26 10:49:02 +02:00
|
|
|
|
# Delete files generated for fixproto
|
1993-10-22 22:51:32 +01:00
|
|
|
|
-rm -rf fix-header xsys-protos.h deduced.h tmp-deduced.h \
|
2000-12-09 17:27:51 +01:00
|
|
|
|
gen-protos$(build_exeext) fixproto.list fixtmp.* fixhdr.ready
|
2000-05-07 00:34:14 +02:00
|
|
|
|
# Delete files generated for fixincl
|
|
|
|
|
-rm -rf fixincl fixinc.sh specs.ready
|
2000-06-03 05:01:59 +02:00
|
|
|
|
(cd fixinc && $(MAKE) clean)
|
1992-03-20 23:22:14 +01: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 10:25:33 +02:00
|
|
|
|
-rm -f */*.toc */*.log */*.vr */*.fn */*.cp */*.tp */*.ky */*.pg
|
1992-04-04 23:34:42 +02:00
|
|
|
|
# Delete sorted indices we don't actually use.
|
|
|
|
|
-rm -f gcc.vrs gcc.kys gcc.tps gcc.pgs gcc.fns
|
1992-03-20 23:22:14 +01: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 10:25:33 +02:00
|
|
|
|
-rm -f core */core
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1992-04-04 23:34:42 +02:00
|
|
|
|
# Delete all files made by compilation
|
|
|
|
|
# that don't exist in the distribution.
|
1999-09-22 17:24:30 +02:00
|
|
|
|
INTL_CLEAN = intl.clean
|
|
|
|
|
clean: mostlyclean $(INTL_CLEAN) lang.clean
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
-rm -f libgcc.a libgcc_s$(SHLIB_EXT)
|
2000-07-17 22:55:43 +02:00
|
|
|
|
-rm -rf libgcc
|
1992-06-10 10:29:36 +02: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 10:25:33 +02:00
|
|
|
|
-rm -f */*.dvi
|
1993-01-14 21:10:31 +01:00
|
|
|
|
# Delete the include directory.
|
1998-04-04 15:32:39 +02:00
|
|
|
|
-rm -rf include
|
1994-07-20 04:17:55 +02:00
|
|
|
|
# Delete files used by the "multilib" facility (including libgcc subdirs).
|
1994-06-15 10:03:05 +02:00
|
|
|
|
-rm -f multilib.h tmpmultilib*
|
1994-07-20 04:17:55 +02: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-23 04:16:26 +01:00
|
|
|
|
-rm -fr stage1 stage2 stage3 stage4
|
2000-09-06 02:45:47 +02:00
|
|
|
|
# Delete stamps of bootstrap stages
|
2001-01-12 20:52:29 +01:00
|
|
|
|
-rm -f stage?_*
|
|
|
|
|
-rm -f clean?_*
|
|
|
|
|
-rm -f stage_last
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1992-04-04 23:34:42 +02:00
|
|
|
|
# Delete all files that users would normally create
|
|
|
|
|
# while building and installing GCC.
|
1999-01-27 02:43:17 +01:00
|
|
|
|
INTL_DISTCLEAN = intl.distclean
|
|
|
|
|
distclean: clean $(INTL_DISTCLEAN) lang.distclean
|
1999-09-20 12:00:03 +02:00
|
|
|
|
-rm -f tm.h tm_p.h config.h auto-host.h auto-build.h tconfig.h hconfig.h
|
2000-11-22 09:32:26 +01:00
|
|
|
|
-rm -f cstamp-h
|
1997-06-09 20:47:19 +02:00
|
|
|
|
-rm -f config.status config.run config.cache config.bak
|
1997-07-22 18:25:19 +02:00
|
|
|
|
-rm -f Make-lang Make-hooks Make-host Make-target
|
1998-08-30 17:50:47 +02:00
|
|
|
|
-rm -f Makefile specs.h options.h gencheck.h *.oaux
|
1997-12-25 00:56:08 +01:00
|
|
|
|
-rm -f gthr-default.h
|
1994-08-05 18:14:36 +02:00
|
|
|
|
-rm -f */stage1 */stage2 */stage3 */stage4 */include
|
1993-05-17 06:07:35 +02:00
|
|
|
|
-rm -f c-parse.output
|
1994-11-17 22:03:59 +01:00
|
|
|
|
-rm -f *.asm
|
1995-12-14 21:12:12 +01:00
|
|
|
|
-rm -f float.h
|
1997-09-07 21:45:33 +02:00
|
|
|
|
-rm -f site.exp site.bak testsuite/site.exp testsuite/site.bak
|
|
|
|
|
-rm -f testsuite/{gcc,g++}.{log,sum}
|
1999-01-27 02:43:17 +01:00
|
|
|
|
-rm -f intl/libintl.h libintl.h
|
2000-12-13 00:38:14 +01:00
|
|
|
|
-rm -f cxxmain.c splay-tree.c obstack.c alloca.c hashtab.c safe-ctype.c
|
2000-11-10 01:09:02 +01:00
|
|
|
|
-rm -f mklibgcc libgcc.map gccbug .gdbinit configargs.h
|
2000-11-22 09:29:32 +01:00
|
|
|
|
-rm -f gcov.pod
|
2000-11-10 01:09:02 +01:00
|
|
|
|
-rm -f fixinc/Makefile
|
|
|
|
|
-rmdir cp f java objc fixinc intl po 2>/dev/null
|
1992-03-20 23:22:14 +01: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 10:25:33 +02:00
|
|
|
|
extraclean: distclean lang.extraclean
|
1992-12-30 07:48:57 +01:00
|
|
|
|
-rm -rf =* ./"#"* *~* config/=* config/"#"* config/*~*
|
1992-06-10 10:29:36 +02:00
|
|
|
|
-rm -f patch* *.orig *.rej config/patch* config/*.orig config/*.rej
|
1993-05-17 06:07:35 +02:00
|
|
|
|
-rm -f config/*/=* config/*/"#"* config/*/*~*
|
|
|
|
|
-rm -f config/*/*.orig config/*/*.rej
|
1994-11-19 01:01:33 +01:00
|
|
|
|
-rm -f *.dvi *.ps *.oaux *.d *.[zZ] *.gz
|
1993-06-21 01:44:07 +02:00
|
|
|
|
-rm -f *.tar *.xtar *diff *.diff.* *.tar.* *.xtar.* *diffs
|
1993-05-17 06:07:35 +02:00
|
|
|
|
-rm -f *lose config/*lose config/*/*lose
|
1998-04-04 15:32:39 +02:00
|
|
|
|
-rm -f *.s *.s[0-9] *.i config/ChangeLog
|
1999-01-27 02:43:17 +01: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 10:25:33 +02: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 23:08:59 +01:00
|
|
|
|
|
1997-06-09 20:47:19 +02:00
|
|
|
|
# Get rid of every file that's generated from some other file, except for `configure'.
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Most of these files ARE PRESENT in the GCC distribution.
|
1999-09-22 17:24:30 +02:00
|
|
|
|
# We define INTL_DISTCLEAN, INTL_CLEAN & INTL_MOSTLYCLEAN to be empty in the
|
|
|
|
|
# submake, so that we don't descend into intl after its makefile has been
|
|
|
|
|
# removed.
|
1997-06-09 20:47:19 +02:00
|
|
|
|
maintainer-clean:
|
|
|
|
|
@echo 'This command is intended for maintainers to use; it'
|
|
|
|
|
@echo 'deletes files that may need special tools to rebuild.'
|
1999-09-22 17:24:30 +02:00
|
|
|
|
$(MAKE) INTL_DISTCLEAN= INTL_CLEAN= INTL_MOSTLYCLEAN= \
|
|
|
|
|
intl.maintainer-clean lang.maintainer-clean distclean
|
Integrated preprocessor.
top level:
* Makefile.in: Remove all references to c-parse.gperf,
c-gperf.h, and c-parse.h. Remove -d from yacc command line
generating c-parse.c. Update dependencies.
* c-parse.gperf, c-gperf.h: Delete.
* c-common.c: Don't define parse_options, cpp_token, yy_cur,
yy_lim, or yy_get_token. Don't define get_directive_line if
USE_CPPLIB.
* c-common.h: Add multiple include guard. Define RID values
for every keyword in C, C++, and Objective C. Put all the
modifiers first.
(struct c_fileinfo, get_fileinfo, dump_time_statistics): New.
* c-decl.c (c_decode_option): Handle -lang-objc here.
(print_lang_identifier): Handle C_IS_RESERVED_WORD case.
(grokdeclarator): Adjust for new RID scheme.
(extract_interface_info): New stub.
* c-lang.c: Don't declare yy_cur or parse_options.
(lang_init_options): Call cpp_init. Don't call
cpp_options_init.
(lang_init): Don't call check_newline if USE_CPPLIB.
* c-lex.c: Don't include c-parse.h. Do include timevar.h.
Elide lots of unnecessary code if USE_CPPLIB. Delete code
rendered unnecessary by new architecture. Move routines not
shared with C++ to c-parse.in. Maintain a local idea of the
line number. Handle C++ as well as C.
[USE_CPPLIB]: Declare and register callbacks for #ident and
for entering/leaving files.
(init_c_lex, c_lex): Are now the entry points to this file.
(check_newline): Break out directive handling to
process_directive.
(read_ucs, is_extended_char, utf8_extend_token): Moved here
from C++ front end.
(readescape, parse_float): Overhaul.
(lex_number, lex_string, lex_charconst): Break out of c_lex
(n'ee yylex).
(get_fileinfo, update_header_times, dump_one_header,
dump_time_statistics): New and/or moved here from C++.
Support per-file data needed by C++ and per-header timing
statistics (C++ only, at the moment).
* c-lex.h: Update prototypes. Add multiple include guard.
* c-tree.h (struct lang_identifier): Add rid_code field.
(C_IS_RESERVED_WORD, C_RID_CODE): New.
* c-parse.in: Include c-pragma.h. Remove unnecesary calls to
reinit_parse_for_function and/or position_after_white_space.
(save_filename, save_lineno): Look ahead before saving.
(label -> identifier ':'): Save file and line before shifting ':'.
(reservedwords): No need to call get_identifier.
(init_parse, finish_parse, yyerror, yylex, yyprint,
make_pointer_declarator): Are now here for C/ObjC.
(rid_to_yy): Conversion table from RID constants to Yacc codes.
* c-pragma.c: Rewrite parsing logic to fit with cpplib's
#pragma registry. Provide dummy implementation of that
interface if !USE_CPPLIB.
* c-pragma.h: Update to match.
* flags.h: Add multiple include guard.
(flag_detailed_statistics): Moved here from C++.
* toplev.c: Define flag_detailed_statistics.
* gcc.c (C specs): Use %(trad_capable_cpp) for -E|-M|-MM case
#if USE_CPPLIB.
* timevar.def (TV_CPP, TV_LEX): New.
* timevar.h: Add multiple include guard.
* objc/lang-specs.h: Use %(trad_capable_cpp) for -E|-M|-MM case
#if USE_CPPLIB.
* objc/objc-act.c: Don't mention yy_cur or parse_options.
Initialize cpplib properly. Force lineno to 0 after first
call to check_newline. Don't handle -lang-objc here.
Move forget_protocol_qualifiers and remember_protocol_qualifiers here.
cp:
* Make-lang.in, Makefile.in: Remove all references to input.c,
gxx.gperf, and hash.h. Add ../c-lex.o to C_OBJS.
* gxx.gperf, hash.h, input.c: Delete.
* lang-specs.h: Pass -lang-c++ to cc1plus so cpplib is
initialized properly.
* class.c (fixup_pending_inline): Take a tree, not a
struct pending_inline *. All callers changed.
(init_class_processing): Set RID_PUBLIC, RID_PRIVATE,
RID_PROTECTED entries in ridpointers[] array here.
* decl.c (duplicate_decls): Do not refer to struct
pending_inline.
(record_builtin_type, init_decl_processing): Use RID_MAX not
CP_RID_MAX.
(grokdeclarator): Use C_IS_RESERVED_WORD.
* decl2.c (lang_decode_option): Ignore -lang-c++ for sake of
cpplib.
(grok_x_components): Do not inspect pending_inlines chain.
* cp-tree.h (struct lang_identifier): Add rid_code entry.
(C_IS_RESERVED_WORD, C_RID_CODE, C_RID_YYCODE): New.
(flag_no_gnu_keywords, flag_operator_names, rid_to_yy): Declare.
(DEFARG_LENGTH, struct pending_inline, TIME_IDENTIFIER_TIME,
TIME_IDENTIFIER_FILEINFO): Kill.
Update prototypes.
* lex.h: Expunge cp_rid. Rewrite RIDBIT macros to use just a
single 32-bit word.
* parse.y: Call do_pending_inlines unconditionally.
reinit_parse_for_method is now snarf_method. fn.defpen is no
longer necessary. Remove unnecessary <itype> annotation on
SCOPE. Do not refer to end_of_file or struct pending_inline.
* semantics.c (begin_inline_definitions): Call
do_pending_inlines unconditionally.
* lex.c: Remove all code now shared with C front end.
Initialize cpplib properly if USE_CPPLIB. Put reserved words
into the get_identifier table. Rewrite pragma handling to
work with the registry. Move code to save tokens for later
processing to spew.c.
* spew.c: Rewrite everything in terms of token streams instead
of text. Move routines here from lex.c / input.c as
appropriate. GC-mark trees hanging off the pending inlines
chain.
testsuite:
* g++.old-deja/g++.benjamin/13478.C: Put meaningful tags on
ERROR markers.
* g++.old-deja/g++.brendan/crash8.C: Move ERROR marker up one line.
* gcc.dg/c99-array-nonobj-1.c: Don't expect func[] cases to fail.
* gcc.dg/wtr-label-1.c: Don't use unconstrained .* in error regexps.
* gcc.dg/wtr-suffix-1.c: Correct error regexps.
* gcc.dg/cpp/unc1.c, gcc.dg/cpp/unc2.c, gcc.dg/cpp/unc3.c:
Preprocess only.
* gcc.dg/cpp/unc4.c: Adjust line number in dg-error line.
* gcc.dg/noncompile/const-ll-1.c: Generalize error regexp.
From-SVN: r36216
2000-09-07 02:37:14 +02:00
|
|
|
|
-rm -f c-parse.y c-parse.c c-parse.output TAGS
|
2000-12-08 23:54:06 +01:00
|
|
|
|
-rm -f cpp.??s cpp.*aux
|
|
|
|
|
-rm -f gcc.??s gcc.*aux
|
|
|
|
|
-rm -f $(srcdir)/cpp.info* $(srcdir)/gcc.info* $(srcdir)/c-tree.info*
|
2001-01-13 01:24:39 +01:00
|
|
|
|
-rm -f $(srcdir)/cppinternals.info*
|
2001-01-13 22:17:13 +01:00
|
|
|
|
-rm -f $(srcdir)/gcov.1 $(srcdir)/cpp.1 $(srcdir)/gcc.1
|
1997-06-09 21:19:18 +02:00
|
|
|
|
#
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Entry points `install' and `uninstall'.
|
1992-03-20 23:22:14 +01:00
|
|
|
|
# Also use `install-collect2' to install collect2 when the config files don't.
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1992-09-04 06:40:25 +02:00
|
|
|
|
# The semicolon is to prevent the install.sh -> install default rule
|
1993-01-26 19:45:24 +01: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-27 03:28:16 +01:00
|
|
|
|
install: $(INSTALL_TARGET) ; @true
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1993-01-14 21:10:31 +01: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-23 00:55:23 +02:00
|
|
|
|
# Install the driver last so that the window when things are
|
|
|
|
|
# broken is small.
|
1993-07-05 17:35:24 +02:00
|
|
|
|
install-normal: install-common $(INSTALL_HEADERS) $(INSTALL_LIBGCC) \
|
2000-12-08 23:54:06 +01:00
|
|
|
|
$(INSTALL_CPP) install-man install-info intl.install \
|
2000-05-02 21:09:24 +02:00
|
|
|
|
lang.install-normal install-driver
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1992-10-18 06:30:48 +01: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 23:08:59 +01:00
|
|
|
|
# Run this on the target machine
|
|
|
|
|
# to finish installation of cross compiler.
|
1999-03-01 20:15:49 +01:00
|
|
|
|
# This is not used anymore now that float.h does not depend on enquire.
|
1992-02-03 23:08:59 +01:00
|
|
|
|
install-cross-rest: install-float-h-cross
|
|
|
|
|
|
1999-03-02 01:59:28 +01:00
|
|
|
|
# Handle cpp installation.
|
2000-07-31 20:29:58 +02:00
|
|
|
|
install-cpp: cpp$(exeext)
|
1999-10-26 07:12:14 +02:00
|
|
|
|
-if [ -f gcc-cross$(exeext) ] ; then \
|
|
|
|
|
rm -f $(bindir)/$(CPP_CROSS_NAME)$(exeext); \
|
2000-07-31 20:29:58 +02:00
|
|
|
|
$(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(bindir)/$(CPP_CROSS_NAME)$(exeext); \
|
1999-10-26 07:12:14 +02:00
|
|
|
|
if [ x$(cpp_install_dir) != x ]; then \
|
|
|
|
|
rm -f $(prefix)/$(cpp_install_dir)/$(CPP_CROSS_NAME)$(exeext); \
|
2000-07-31 20:29:58 +02:00
|
|
|
|
$(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(prefix)/$(cpp_install_dir)/$(CPP_CROSS_NAME)$(exeext); \
|
1999-10-26 07:12:14 +02:00
|
|
|
|
else true; fi; \
|
|
|
|
|
else \
|
|
|
|
|
rm -f $(bindir)/$(CPP_INSTALL_NAME)$(exeext); \
|
2000-07-31 20:29:58 +02:00
|
|
|
|
$(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(bindir)/$(CPP_INSTALL_NAME)$(exeext); \
|
1999-10-26 07:12:14 +02:00
|
|
|
|
if [ x$(cpp_install_dir) != x ]; then \
|
|
|
|
|
rm -f $(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
|
2000-07-31 20:29:58 +02:00
|
|
|
|
$(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
|
1999-10-26 07:12:14 +02:00
|
|
|
|
else true; fi; \
|
|
|
|
|
fi
|
1999-03-02 01:59:28 +01:00
|
|
|
|
|
|
|
|
|
uninstall-cpp:
|
1999-10-26 07:12:14 +02:00
|
|
|
|
-rm -f $(bindir)/$(CPP_INSTALL_NAME)$(exeext)
|
|
|
|
|
-rm -f $(bindir)/$(CPP_CROSS_NAME)$(exeext)
|
1999-03-02 01:59:28 +01:00
|
|
|
|
-if [ x$(cpp_install_dir) != x ]; then \
|
1999-10-26 07:12:14 +02:00
|
|
|
|
rm -f $(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
|
|
|
|
|
rm -f $(prefix)/$(cpp_install_dir)/$(CPP_CROSS_NAME)$(exeext); \
|
1999-03-02 01:59:28 +01:00
|
|
|
|
else true; fi
|
|
|
|
|
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Install float.h for cross compiler.
|
|
|
|
|
# Run this on the target machine!
|
1999-03-01 20:15:49 +01:00
|
|
|
|
# This is not used anymore now that float.h does not depend on enquire.
|
1996-09-30 00:11:33 +02:00
|
|
|
|
install-float-h-cross: installdirs
|
1993-01-25 06:08:13 +01: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 23:08:59 +01:00
|
|
|
|
-rm -f $(libsubdir)/include/float.h
|
1992-10-31 22:00:49 +01:00
|
|
|
|
$(INSTALL_DATA) $(tmpdir)/float.h $(libsubdir)/include/float.h
|
|
|
|
|
-rm -f $(tmpdir)/float.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
chmod a-x $(libsubdir)/include/float.h
|
|
|
|
|
|
1996-09-30 00:11:33 +02: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-02 01:35:37 +02: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 19:40:43 +01:00
|
|
|
|
# This dir isn't currently searched by cpp.
|
1995-05-02 01:35:37 +02: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 07:42:18 +02: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-02 01:35:37 +02: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 07:46:43 +01:00
|
|
|
|
-if [ -d $(gcc_tooldir) ] ; then true ; else mkdir $(gcc_tooldir) ; chmod a+rx $(gcc_tooldir) ; fi
|
1995-05-02 01:35:37 +02: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
|
2001-01-07 10:27:25 +01:00
|
|
|
|
-if [ -d $(slibdir) ] ; then true ; else mkdir $(slibdir) ; chmod a+rx $(slibdir) ; fi
|
1998-11-19 07:49:46 +01:00
|
|
|
|
# We don't use mkdir -p to create the parents of man1dir,
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# because some systems don't support it.
|
1998-11-19 07:49:46 +01:00
|
|
|
|
# Instead, we use this technique to create the immediate parent of man1dir.
|
|
|
|
|
-parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
|
1995-05-02 01:35:37 +02:00
|
|
|
|
if [ -d $$parent ] ; then true ; else mkdir $$parent ; chmod a+rx $$parent ; fi
|
1998-11-19 07:49:46 +01:00
|
|
|
|
-if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; chmod a+rx $(man1dir) ; fi
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
|
|
|
|
# Install the compiler executables built during cross compilation.
|
1996-09-30 00:11:33 +02:00
|
|
|
|
install-common: native installdirs $(EXTRA_PARTS) lang.install-common
|
1992-02-03 23:08:59 +01: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 19:02:35 +02:00
|
|
|
|
for file in $(EXTRA_PASSES) $(EXTRA_PROGRAMS) $(USE_COLLECT2) ..; do \
|
1992-02-03 23:08:59 +01:00
|
|
|
|
if [ x"$$file" != x.. ]; then \
|
|
|
|
|
rm -f $(libsubdir)/$$file; \
|
|
|
|
|
$(INSTALL_PROGRAM) $$file $(libsubdir)/$$file; \
|
|
|
|
|
else true; fi; \
|
|
|
|
|
done
|
1994-04-25 19:02:35 +02:00
|
|
|
|
for file in $(EXTRA_PARTS) ..; do \
|
|
|
|
|
if [ x"$$file" != x.. ]; then \
|
|
|
|
|
rm -f $(libsubdir)/$$file; \
|
|
|
|
|
$(INSTALL_DATA) $$file $(libsubdir)/$$file; \
|
1997-11-02 22:19:36 +01:00
|
|
|
|
chmod a-x $(libsubdir)/$$file; \
|
1994-04-25 19:02:35 +02:00
|
|
|
|
else true; fi; \
|
|
|
|
|
done
|
1992-07-03 00:18:02 +02:00
|
|
|
|
# Don't mess with specs if it doesn't exist yet.
|
1992-07-07 20:27:34 +02:00
|
|
|
|
-if [ -f specs ] ; then \
|
|
|
|
|
rm -f $(libsubdir)/specs; \
|
1992-07-03 00:18:02 +02:00
|
|
|
|
$(INSTALL_DATA) specs $(libsubdir)/specs; \
|
1997-11-02 22:19:36 +01:00
|
|
|
|
chmod a-x $(libsubdir)/specs; \
|
1992-07-03 00:18:02 +02: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-23 00:55:23 +02:00
|
|
|
|
# Install protoize if it was compiled.
|
|
|
|
|
-if [ -f protoize$(exeext) ]; \
|
|
|
|
|
then \
|
1998-06-22 20:32:14 +02: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-23 00:55:23 +02:00
|
|
|
|
rm -f $(libsubdir)/SYSCALLS.c.X; \
|
|
|
|
|
$(INSTALL_DATA) SYSCALLS.c.X $(libsubdir)/SYSCALLS.c.X; \
|
|
|
|
|
chmod a-x $(libsubdir)/SYSCALLS.c.X; \
|
|
|
|
|
fi
|
2000-07-31 20:29:58 +02:00
|
|
|
|
-rm -f $(libsubdir)/cpp0$(exeext)
|
|
|
|
|
$(INSTALL_PROGRAM) cpp0$(exeext) $(libsubdir)/cpp0$(exeext)
|
|
|
|
|
-rm -f $(libsubdir)/tradcpp0$(exeext)
|
|
|
|
|
$(INSTALL_PROGRAM) tradcpp0$(exeext) $(libsubdir)/tradcpp0$(exeext)
|
1997-08-21 18:23:22 +02:00
|
|
|
|
# Install gcov if it was compiled.
|
1997-03-28 23:34:21 +01:00
|
|
|
|
-if [ -f gcov$(exeext) ]; \
|
|
|
|
|
then \
|
|
|
|
|
rm -f $(bindir)/gcov$(exeext); \
|
1999-01-18 04:32:53 +01:00
|
|
|
|
$(INSTALL_PROGRAM) gcov$(exeext) $(bindir)/$(GCOV_INSTALL_NAME)$(exeext); \
|
1997-03-28 23:34:21 +01:00
|
|
|
|
fi
|
2000-03-14 00:51:26 +01:00
|
|
|
|
$(INSTALL_PROGRAM) gccbug $(bindir)/$(GCCBUG_INSTALL_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-23 00:55:23 +02:00
|
|
|
|
|
1996-07-19 00:06:04 +02:00
|
|
|
|
# Install the driver program as $(target_alias)-gcc
|
1999-01-22 07:46:43 +01:00
|
|
|
|
# and also as either gcc (if native) or $(gcc_tooldir)/bin/gcc.
|
1998-03-22 00:47:27 +01:00
|
|
|
|
install-driver: xgcc$(exeext)
|
1995-02-21 23:54:50 +01:00
|
|
|
|
-if [ -f gcc-cross$(exeext) ] ; then \
|
|
|
|
|
rm -f $(bindir)/$(GCC_CROSS_NAME)$(exeext); \
|
1995-03-07 17:56:39 +01:00
|
|
|
|
$(INSTALL_PROGRAM) gcc-cross$(exeext) $(bindir)/$(GCC_CROSS_NAME)$(exeext); \
|
1999-01-22 07:46:43 +01: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 23:08:59 +01:00
|
|
|
|
else true; fi; \
|
|
|
|
|
else \
|
1995-02-21 23:54:50 +01:00
|
|
|
|
rm -f $(bindir)/$(GCC_INSTALL_NAME)$(exeext); \
|
|
|
|
|
$(INSTALL_PROGRAM) xgcc$(exeext) $(bindir)/$(GCC_INSTALL_NAME)$(exeext); \
|
1996-07-19 00:06:04 +02:00
|
|
|
|
rm -f $(bindir)/$(target_alias)-gcc-1$(exeext); \
|
1997-09-11 22:39:08 +02:00
|
|
|
|
$(LN) $(bindir)/$(GCC_INSTALL_NAME)$(exeext) $(bindir)/$(target_alias)-gcc-1$(exeext); \
|
1996-07-19 00:06:04 +02:00
|
|
|
|
mv $(bindir)/$(target_alias)-gcc-1$(exeext) $(bindir)/$(target_alias)-gcc$(exeext); \
|
1992-02-03 23:08:59 +01:00
|
|
|
|
fi
|
|
|
|
|
|
1993-05-18 22:48:27 +02:00
|
|
|
|
# Install the info files.
|
1997-08-25 02:25:22 +02:00
|
|
|
|
# $(INSTALL_DATA) might be a relative pathname, so we can't cd into srcdir
|
1998-07-02 08:19:07 +02:00
|
|
|
|
# to do the install.
|
1996-09-30 00:11:33 +02:00
|
|
|
|
install-info: doc installdirs lang.install-info
|
1993-05-18 22:48:27 +02:00
|
|
|
|
-rm -f $(infodir)/cpp.info* $(infodir)/gcc.info*
|
2001-01-13 01:24:39 +01:00
|
|
|
|
-rm -f $(infodir)/c-tree.info* $(infodir)/cppinternals.info*
|
2000-12-08 23:54:06 +01:00
|
|
|
|
if [ -f $(srcdir)/gcc.info ]; then \
|
2001-01-13 01:24:39 +01:00
|
|
|
|
for f in $(srcdir)/cpp.info* $(srcdir)/gcc.info* \
|
|
|
|
|
$(srcdir)/c-tree.info* $(srcdir)/cppinternals.info*; do \
|
2000-12-08 23:54:06 +01:00
|
|
|
|
realfile=`echo $$f | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
|
|
|
|
|
$(INSTALL_DATA) $$f $(infodir)/$$realfile; \
|
|
|
|
|
done; \
|
|
|
|
|
else true; fi
|
1998-07-02 08:19:07 +02:00
|
|
|
|
-if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
|
1998-07-26 00:30:26 +02:00
|
|
|
|
if [ -f $(infodir)/dir ] ; then \
|
2001-01-13 01:24:39 +01:00
|
|
|
|
for f in cpp.info gcc.info c-tree.info cppinternals.info; do \
|
2000-12-08 23:54:06 +01:00
|
|
|
|
if [ -f $(infodir)/$$f ]; then \
|
|
|
|
|
install-info --dir-file=$(infodir)/dir $(infodir)/$$f; \
|
|
|
|
|
else true; fi \
|
1998-06-26 18:38:36 +02:00
|
|
|
|
done; \
|
1998-07-26 00:30:26 +02:00
|
|
|
|
else true; fi; \
|
1998-06-26 18:38:36 +02:00
|
|
|
|
else true; fi;
|
1993-05-18 22:48:27 +02:00
|
|
|
|
-chmod a-x $(infodir)/cpp.info* $(infodir)/gcc.info*
|
2001-01-13 01:24:39 +01:00
|
|
|
|
-chmod a-x $(infodir)/c-tree.info* $(infodir)/cppinternals.info*
|
1993-05-18 22:48:27 +02:00
|
|
|
|
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Install the man pages.
|
2001-01-03 21:15:01 +01:00
|
|
|
|
install-man: installdirs $(srcdir)/gcc.1 $(GENERATED_MANPAGES) lang.install-man
|
1997-11-02 22:19:36 +01:00
|
|
|
|
-if [ -f gcc-cross$(exeext) ] ; then \
|
1998-11-19 07:49:46 +01: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 22:03:59 +01:00
|
|
|
|
else \
|
1998-11-19 07:49:46 +01: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 22:03:59 +01:00
|
|
|
|
fi
|
cccp.c, [...]: Removed.
* cccp.c, cexp.y, cexp.c, cccp.1: Removed.
* configure.in: Delete --disable-cpplib option and all
references to cpp_main.
* configure: Regenerate.
* Makefile.in: Remove all references to CCCP, CCCP_OBJS,
@cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
cccp.o, cccp, or cppmain. Link cppmain.o straight to
cpp$(exeext). Add --no-headers to makeinfo command line when
generating INSTALL. Install and uninstall cpp.1 manpage, not
cccp.1.
* install.texi: Delete all references to cexp.y/cexp.c.
Delete ancient instructions for compiling GCC on 3b1.
* INSTALL: Regenerate.
* cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c,
ch/decl.c, ch/lex.c, cp/lex.c, f/lex.c, mips/t-ecoff,
mips/t-elf, mips/t-r3900: Remove references to cccp.c.
* convex.h, fx80.h, m68k.h, pdp11.h, contrib/gcc_update,
f/g77install.texi: Remove references to cexp.c/cexp.y.
* xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
which is no longer tested anywhere.
* po/POTFILES.in: Remove cccp.c and cexp.c. Comment out
alpha/vms-tramp.asm.
From-SVN: r33238
2000-04-19 00:34:13 +02:00
|
|
|
|
-rm -f $(man1dir)/cpp$(manext)
|
|
|
|
|
-$(INSTALL_DATA) $(srcdir)/cpp.1 $(man1dir)/cpp$(manext)
|
2001-01-03 21:15:01 +01:00
|
|
|
|
-chmod a-x $(man1dir)/cpp$(manext)
|
2000-11-22 09:29:32 +01:00
|
|
|
|
-rm -f $(man1dir)/gcov$(manext)
|
|
|
|
|
-$(INSTALL_DATA) $(srcdir)/gcov.1 $(man1dir)/gcov$(manext)
|
2001-01-03 21:15:01 +01:00
|
|
|
|
-chmod a-x $(man1dir)/gcov$(manext)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
|
|
|
|
# Install the library.
|
2001-01-07 10:27:25 +01:00
|
|
|
|
install-libgcc: libgcc.mk libgcc.a installdirs
|
|
|
|
|
if $(RANLIB_TEST_FOR_TARGET); then \
|
|
|
|
|
r_f_t=$(RANLIB_FOR_TARGET); \
|
|
|
|
|
else \
|
|
|
|
|
r_f_t=: ; \
|
|
|
|
|
fi; \
|
|
|
|
|
$(MAKE) INSTALL_DATA="$(INSTALL_DATA)" \
|
|
|
|
|
RANLIB_FOR_TARGET="$$r_f_t" \
|
|
|
|
|
libsubdir="$(libsubdir)" \
|
|
|
|
|
slibdir="$(slibdir)" \
|
|
|
|
|
-f libgcc.mk install
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1994-06-15 10:03:05 +02:00
|
|
|
|
# Install multiple versions of libgcc.a.
|
1996-09-30 00:11:33 +02:00
|
|
|
|
install-multilib: stmp-multilib installdirs
|
2001-01-07 10:27:25 +01:00
|
|
|
|
if $(RANLIB_TEST_FOR_TARGET); then \
|
|
|
|
|
r_f_t=$(RANLIB_FOR_TARGET); \
|
|
|
|
|
else \
|
|
|
|
|
r_f_t=: ; \
|
|
|
|
|
fi; \
|
|
|
|
|
$(MAKE) INSTALL_DATA="$(INSTALL_DATA)" \
|
|
|
|
|
RANLIB_FOR_TARGET="$$r_f_t" \
|
|
|
|
|
libsubdir="$(libsubdir)" \
|
|
|
|
|
slibdir="$(slibdir)" \
|
|
|
|
|
-f libgcc.mk install
|
1994-06-15 10:03:05 +02:00
|
|
|
|
|
1993-01-14 21:10:31 +01:00
|
|
|
|
# Install all the header files built in the include subdirectory.
|
1995-09-28 19:02:22 +01:00
|
|
|
|
install-headers: install-include-dir $(INSTALL_HEADERS_DIR) $(INSTALL_ASSERT_H)
|
1993-01-14 21:10:31 +01:00
|
|
|
|
# Fix symlinks to absolute paths in the installed include directory to
|
|
|
|
|
# point to the installed directory, not the build directory.
|
1997-09-11 22:39:08 +02:00
|
|
|
|
# Don't need to use LN_S here since we really do need ln -s and no substitutes.
|
1993-01-14 21:10:31 +01: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-24 00:09:10 +01:00
|
|
|
|
ln -s `echo $$i | sed "s|/[^/]*|/..|g" | sed 's|/..$$||'``echo "$$dest" | sed "s|$$dir||"` $(libsubdir)/include/$$i; \
|
1993-01-14 21:10:31 +01:00
|
|
|
|
fi; \
|
|
|
|
|
done; \
|
|
|
|
|
fi
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1993-01-14 21:10:31 +01:00
|
|
|
|
# Create or recreate the gcc private include file directory.
|
1996-09-30 00:11:33 +02:00
|
|
|
|
install-include-dir: installdirs
|
1993-01-14 21:10:31 +01:00
|
|
|
|
-rm -rf $(libsubdir)/include
|
|
|
|
|
mkdir $(libsubdir)/include
|
|
|
|
|
-chmod a+rx $(libsubdir)/include
|
|
|
|
|
|
|
|
|
|
# Install the include directory using tar.
|
2000-02-27 01:10:15 +01:00
|
|
|
|
install-headers-tar: stmp-int-hdrs $(STMP_FIXPROTO) install-include-dir
|
1999-04-03 15:01:48 +02: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 ; \
|
1999-08-07 09:39:28 +02:00
|
|
|
|
tar -cf - .; exit 0) | (cd $(libsubdir)/include; tar xpf - )
|
1993-07-02 07:12:45 +02: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 21:10:31 +01:00
|
|
|
|
|
|
|
|
|
# Install the include directory using cpio.
|
2000-02-27 01:10:15 +01:00
|
|
|
|
install-headers-cpio: stmp-int-hdrs $(STMP_FIXPROTO) install-include-dir
|
1999-04-03 15:01:48 +02:00
|
|
|
|
# See discussion about the use of `pwd` above
|
|
|
|
|
cd `pwd`/include ; \
|
|
|
|
|
find . -print | cpio -pdum $(libsubdir)/include
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1993-06-05 10:10:50 +02: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-30 00:11:33 +02:00
|
|
|
|
install-assert-h: assert.h installdirs
|
1992-10-07 08:50:32 +01:00
|
|
|
|
if [ -f $(assertdir)/assert.h ]; \
|
|
|
|
|
then \
|
1993-01-04 20:05:01 +01:00
|
|
|
|
if grep "__eprintf" $(assertdir)/assert.h >/dev/null; \
|
1992-10-09 02:48:26 +01:00
|
|
|
|
then \
|
1992-10-07 08:50:32 +01:00
|
|
|
|
rm -f $(assertdir)/assert.h; \
|
|
|
|
|
$(INSTALL_DATA) $(srcdir)/assert.h $(assertdir)/assert.h; \
|
1992-10-08 20:43:37 +01:00
|
|
|
|
chmod a-x $(assertdir)/assert.h; \
|
1992-10-07 08:50:32 +01:00
|
|
|
|
else true; \
|
|
|
|
|
fi; \
|
1992-10-03 02:09:38 +01:00
|
|
|
|
else \
|
1992-10-06 21:39:15 +01:00
|
|
|
|
rm -f $(assertdir)/assert.h; \
|
|
|
|
|
$(INSTALL_DATA) $(srcdir)/assert.h $(assertdir)/assert.h; \
|
1992-10-08 20:43:37 +01:00
|
|
|
|
chmod a-x $(assertdir)/assert.h; \
|
1992-10-03 02:09:38 +01:00
|
|
|
|
fi
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
1998-04-06 22:51:28 +02:00
|
|
|
|
# Use this target to install the program `collect2' under the name `collect2'.
|
1996-09-30 00:11:33 +02:00
|
|
|
|
install-collect2: collect2 installdirs
|
1998-04-06 22:51:28 +02:00
|
|
|
|
$(INSTALL_PROGRAM) collect2$(exeext) $(libsubdir)/collect2$(exeext)
|
1992-03-20 23:22:14 +01:00
|
|
|
|
# Install the driver program as $(libsubdir)/gcc for collect2.
|
1995-02-21 23:54:50 +01:00
|
|
|
|
$(INSTALL_PROGRAM) xgcc$(exeext) $(libsubdir)/gcc$(exeext)
|
1992-03-20 23:22:14 +01:00
|
|
|
|
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Cancel installation by deleting the installed files.
|
1999-03-02 01:59:28 +01:00
|
|
|
|
uninstall: intl.uninstall lang.uninstall $(UNINSTALL_CPP)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
-rm -rf $(libsubdir)
|
1995-02-21 23:54:50 +01:00
|
|
|
|
-rm -rf $(bindir)/$(GCC_INSTALL_NAME)$(exeext)
|
|
|
|
|
-rm -rf $(bindir)/$(GCC_CROSS_NAME)$(exeext)
|
1999-01-18 04:32:53 +01: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 07:49:46 +01:00
|
|
|
|
-rm -rf $(man1dir)/$(GCC_INSTALL_NAME)$(manext)
|
|
|
|
|
-rm -rf $(man1dir)/$(GCC_CROSS_NAME)$(manext)
|
cccp.c, [...]: Removed.
* cccp.c, cexp.y, cexp.c, cccp.1: Removed.
* configure.in: Delete --disable-cpplib option and all
references to cpp_main.
* configure: Regenerate.
* Makefile.in: Remove all references to CCCP, CCCP_OBJS,
@cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
cccp.o, cccp, or cppmain. Link cppmain.o straight to
cpp$(exeext). Add --no-headers to makeinfo command line when
generating INSTALL. Install and uninstall cpp.1 manpage, not
cccp.1.
* install.texi: Delete all references to cexp.y/cexp.c.
Delete ancient instructions for compiling GCC on 3b1.
* INSTALL: Regenerate.
* cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c,
ch/decl.c, ch/lex.c, cp/lex.c, f/lex.c, mips/t-ecoff,
mips/t-elf, mips/t-r3900: Remove references to cccp.c.
* convex.h, fx80.h, m68k.h, pdp11.h, contrib/gcc_update,
f/g77install.texi: Remove references to cexp.c/cexp.y.
* xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
which is no longer tested anywhere.
* po/POTFILES.in: Remove cccp.c and cexp.c. Comment out
alpha/vms-tramp.asm.
From-SVN: r33238
2000-04-19 00:34:13 +02:00
|
|
|
|
-rm -rf $(man1dir)/cpp$(manext)
|
1998-11-19 07:49:46 +01:00
|
|
|
|
-rm -rf $(man1dir)/protoize$(manext)
|
|
|
|
|
-rm -rf $(man1dir)/unprotoize$(manext)
|
1998-06-29 23:40:49 +02:00
|
|
|
|
-rm -f $(infodir)/cpp.info* $(infodir)/gcc.info*
|
2001-01-13 01:24:39 +01:00
|
|
|
|
-rm -f $(infodir)/c-tree.info* $(infodir)/cppinternals.info*
|
1997-06-09 21:19:18 +02:00
|
|
|
|
#
|
1999-09-18 20:05:59 +02:00
|
|
|
|
# These targets are for the dejagnu testsuites. The file site.exp
|
1997-08-19 17:36:20 +02:00
|
|
|
|
# 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
|
2000-10-26 09:28:25 +02:00
|
|
|
|
@echo "set HAVE_LIBSTDCXX_V3 @HAVE_LIBSTDCXX_V3@" >> ./tmp0
|
1997-08-19 17:36:20 +02:00
|
|
|
|
# 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 23:48:43 +02:00
|
|
|
|
echo "set tmpdir $(objdir)/testsuite" >> ./tmp0
|
1997-08-19 17:36:20 +02: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?
|
|
|
|
|
|
2000-10-24 06:00:07 +02:00
|
|
|
|
CHECK_TARGETS = check-gcc check-g++ check-g77 check-objc @CHECK_PO@
|
1997-08-19 17:36:20 +02:00
|
|
|
|
|
|
|
|
|
check: $(CHECK_TARGETS)
|
|
|
|
|
|
2001-01-11 18:11:28 +01:00
|
|
|
|
# The idea is to parallelize testing of multilibs, for example:
|
2001-01-12 22:56:35 +01:00
|
|
|
|
# make -j3 check-gcc//sh-hms-sim/{-m1,-m2,-m3,-m3e,-m4}/{,-nofpu}
|
2001-01-11 18:11:28 +01:00
|
|
|
|
# will run 3 concurrent sessions of check-gcc, eventually testing
|
|
|
|
|
# all 10 combinations. GNU make is required, as is a shell that expands
|
|
|
|
|
# alternations within braces.
|
2001-01-12 22:56:35 +01:00
|
|
|
|
check-gcc//% check-g++//% check-g77//% check-objc//%: site.exp
|
|
|
|
|
target=`echo "$@" | sed 's,//.*,,'`; \
|
|
|
|
|
variant=`echo "$@" | sed 's,^[^/]*//,,'`; \
|
2001-01-11 18:11:28 +01:00
|
|
|
|
vardots=`echo "$$variant" | sed 's,/,.,g'`; \
|
|
|
|
|
$(MAKE) TESTSUITEDIR="testsuite.$$vardots" \
|
|
|
|
|
RUNTESTFLAGS="--target_board=$$variant $(RUNTESTFLAGS)" \
|
|
|
|
|
"$$target"
|
|
|
|
|
|
|
|
|
|
TESTSUITEDIR = testsuite
|
|
|
|
|
|
|
|
|
|
$(TESTSUITEDIR)/site.exp: site.exp
|
|
|
|
|
test -d $(TESTSUITEDIR) || mkdir $(TESTSUITEDIR)
|
|
|
|
|
-rm -f $@
|
|
|
|
|
sed '/set tmpdir/ s|testsuite|$(TESTSUITEDIR)|' < site.exp > $@
|
|
|
|
|
|
|
|
|
|
check-g++: $(TESTSUITEDIR)/site.exp
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
-(rootme=`pwd`; export rootme; \
|
1997-08-19 17:36:20 +02:00
|
|
|
|
srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
|
2001-01-11 18:11:28 +01:00
|
|
|
|
cd $(TESTSUITEDIR); \
|
1997-08-19 17:36:20 +02:00
|
|
|
|
EXPECT=${EXPECT} ; export EXPECT ; \
|
|
|
|
|
if [ -f $${rootme}/../expect/expect ] ; then \
|
1999-04-09 15:49:23 +02:00
|
|
|
|
TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; pwd` ; \
|
1997-08-19 17:36:20 +02:00
|
|
|
|
export TCL_LIBRARY ; fi ; \
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
$(RUNTEST) --tool g++ $(RUNTESTFLAGS))
|
1997-08-19 17:36:20 +02:00
|
|
|
|
|
2001-01-11 18:11:28 +01:00
|
|
|
|
check-gcc: $(TESTSUITEDIR)/site.exp
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
-(rootme=`pwd`; export rootme; \
|
1997-08-19 17:36:20 +02:00
|
|
|
|
srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
|
2001-01-11 18:11:28 +01:00
|
|
|
|
cd $(TESTSUITEDIR); \
|
1997-08-19 17:36:20 +02:00
|
|
|
|
EXPECT=${EXPECT} ; export EXPECT ; \
|
|
|
|
|
if [ -f $${rootme}/../expect/expect ] ; then \
|
1999-04-09 15:49:23 +02:00
|
|
|
|
TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; pwd` ; \
|
1997-08-19 17:36:20 +02:00
|
|
|
|
export TCL_LIBRARY ; fi ; \
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
$(RUNTEST) --tool gcc $(RUNTESTFLAGS))
|
1997-08-19 17:36:20 +02:00
|
|
|
|
|
2001-01-11 18:11:28 +01:00
|
|
|
|
check-g77: $(TESTSUITEDIR)/site.exp
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
-(rootme=`pwd`; export rootme; \
|
1997-10-06 20:02:25 +02:00
|
|
|
|
srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
|
2001-01-11 18:11:28 +01:00
|
|
|
|
cd $(TESTSUITEDIR); \
|
1997-10-06 20:02:25 +02:00
|
|
|
|
EXPECT=${EXPECT} ; export EXPECT ; \
|
|
|
|
|
if [ -f $${rootme}/../expect/expect ] ; then \
|
1999-04-09 15:49:23 +02:00
|
|
|
|
TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; pwd` ; \
|
1997-10-06 20:02:25 +02:00
|
|
|
|
export TCL_LIBRARY ; fi ; \
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
$(RUNTEST) --tool g77 $(RUNTESTFLAGS))
|
1997-10-06 20:02:25 +02:00
|
|
|
|
|
2001-01-11 18:11:28 +01:00
|
|
|
|
check-objc: $(TESTSUITEDIR)/site.exp
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
-(rootme=`pwd`; export rootme; \
|
1998-09-03 01:48:01 +02:00
|
|
|
|
srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
|
2001-01-11 18:11:28 +01:00
|
|
|
|
cd $(TESTSUITEDIR); \
|
1998-09-03 01:48:01 +02:00
|
|
|
|
EXPECT=${EXPECT} ; export EXPECT ; \
|
|
|
|
|
if [ -f $${rootme}/../expect/expect ] ; then \
|
1999-04-09 15:49:23 +02:00
|
|
|
|
TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; pwd` ; \
|
1998-09-03 01:48:01 +02:00
|
|
|
|
export TCL_LIBRARY ; fi ; \
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
$(RUNTEST) --tool objc $(RUNTESTFLAGS))
|
1998-09-03 01:48:01 +02:00
|
|
|
|
|
2000-10-24 06:00:07 +02:00
|
|
|
|
check-po:
|
|
|
|
|
if test -f cp/Makefile && test -f f/Makefile && \
|
|
|
|
|
test -f java/Makefile && test -f objc/Makefile; then \
|
2000-12-17 16:31:16 +01:00
|
|
|
|
$(MAKE) -C po check-po; \
|
2000-10-24 06:00:07 +02:00
|
|
|
|
fi
|
|
|
|
|
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# These exist for maintenance purposes.
|
|
|
|
|
|
|
|
|
|
# Update the tags table.
|
|
|
|
|
TAGS: force
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
(cd $(srcdir); \
|
1998-04-04 15:32:39 +02:00
|
|
|
|
mkdir tmp-tags; \
|
cccp.c, [...]: Removed.
* cccp.c, cexp.y, cexp.c, cccp.1: Removed.
* configure.in: Delete --disable-cpplib option and all
references to cpp_main.
* configure: Regenerate.
* Makefile.in: Remove all references to CCCP, CCCP_OBJS,
@cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
cccp.o, cccp, or cppmain. Link cppmain.o straight to
cpp$(exeext). Add --no-headers to makeinfo command line when
generating INSTALL. Install and uninstall cpp.1 manpage, not
cccp.1.
* install.texi: Delete all references to cexp.y/cexp.c.
Delete ancient instructions for compiling GCC on 3b1.
* INSTALL: Regenerate.
* cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c,
ch/decl.c, ch/lex.c, cp/lex.c, f/lex.c, mips/t-ecoff,
mips/t-elf, mips/t-r3900: Remove references to cccp.c.
* convex.h, fx80.h, m68k.h, pdp11.h, contrib/gcc_update,
f/g77install.texi: Remove references to cexp.c/cexp.y.
* xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
which is no longer tested anywhere.
* po/POTFILES.in: Remove cccp.c and cexp.c. Comment out
alpha/vms-tramp.asm.
From-SVN: r33238
2000-04-19 00:34:13 +02:00
|
|
|
|
mv -f c-parse.[ch] =*.[chy] tmp-tags; \
|
1992-02-03 23:08:59 +01:00
|
|
|
|
etags *.y *.h *.c; \
|
1998-04-04 15:32:39 +02:00
|
|
|
|
mv tmp-tags/* .; \
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
rmdir tmp-tags)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
2000-02-11 18:50:31 +01:00
|
|
|
|
# A list of files to be destroyed during "lean" builds.
|
[multiple changes]
2000-08-04 Andreas Schwab <schwab@suse.de>
* cppmain.c (cb_def_pragma): Skip the first two tokens from the
token list, which are always `#' and `pragma'.
2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
* tree.c (tree_expr_nonnegative_p): Move to...
* fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
(rtl_expr_nonnegative_p): New.
* tree.h: Add prototype for rtl_expr_nonnegative_p.
* real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
CONST_DOUBLE_CHAIN: Move to...
* rtl.h: ...here. Use XCINT/XCEXP.
* Makefile.in: Remove toplev.o from OBJS. Add rule to make
libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
to VOL_FILES.
* objc/Make-lang.in (cc1obj): Link with $(BACKEND).
ch:
* Make-lang.in (cc1chill): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in (cc1chill): Link with $(BACKEND). Define BACKEND,
eliminate C_OBJS (was commented out), OBJS, OBJDEPS.
cp:
* Make-lang.in (cc1plus): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add C_OBJS, BACKEND; delete OBJS, OBJDEPS.
(cc1plus): Link with $(BACKEND) and $(C_OBJS).
f:
* Make-lang.in (f771): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add BACKEND; delete OBJS, OBJDEPS.
(f771): Link with $(BACKEND).
java:
* Make-lang.in (jc1, jv-scan): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add BACKEND; delete OBJS, OBJDEPS.
(jc1): Link with $(BACKEND).
(jv-scan): Depend on version.o, not all of $(OBJS) or $(BACKEND).
From-SVN: r35501
2000-08-05 02:50:02 +02:00
|
|
|
|
VOL_FILES=`echo $(BACKEND) $(OBJS) $(C_OBJS) $(LIBCPP_OBJS) *.c *.h gen*`
|
2000-02-11 18:50:31 +01:00
|
|
|
|
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
# Flags to pass to stage2 and later recursive makes. Note that the
|
|
|
|
|
# WARN_CFLAGS setting can't be to the expansion of GCC_WARN_CFLAGS in
|
|
|
|
|
# the context of the stage_x rule.
|
|
|
|
|
STAGE2_FLAGS_TO_PASS = \
|
|
|
|
|
CFLAGS="$(BOOT_CFLAGS)" \
|
|
|
|
|
LDFLAGS="$(BOOT_LDFLAGS)" \
|
|
|
|
|
WARN_CFLAGS="\$$(GCC_WARN_CFLAGS)" \
|
|
|
|
|
STRICT_WARN="$(STRICT2_WARN)" \
|
|
|
|
|
libdir=$(libdir) \
|
|
|
|
|
LANGUAGES="$(LANGUAGES)" \
|
|
|
|
|
OUTPUT_OPTION="-o \$$@"
|
|
|
|
|
|
1992-05-01 03:51:23 +02: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.
|
2001-01-12 20:52:29 +01:00
|
|
|
|
stage1_build:
|
2000-10-09 23:13:04 +02:00
|
|
|
|
+$(MAKE) CC="$(CC)" libdir=$(libdir) LANGUAGES="$(BOOT_LANGUAGES)"
|
2001-01-12 20:52:29 +01:00
|
|
|
|
touch stage1_build
|
|
|
|
|
echo stage1_build > stage_last
|
2000-09-06 02:45:47 +02:00
|
|
|
|
|
2001-01-12 20:52:29 +01:00
|
|
|
|
stage1_copy: stage1_build
|
1992-02-03 23:08:59 +01:00
|
|
|
|
$(MAKE) stage1
|
2001-01-12 20:52:29 +01:00
|
|
|
|
touch stage1_copy
|
|
|
|
|
echo stage2_build > stage_last
|
2000-09-06 02:45:47 +02:00
|
|
|
|
|
1992-03-20 23:22:14 +01: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.
|
2001-01-12 20:52:29 +01:00
|
|
|
|
stage2_build: stage1_copy
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
+$(MAKE) CC="stage1/xgcc$(exeext) -Bstage1/ -B$(build_tooldir)/bin/" \
|
|
|
|
|
STAGE_PREFIX=stage1/ \
|
|
|
|
|
$(STAGE2_FLAGS_TO_PASS)
|
2001-01-12 20:52:29 +01:00
|
|
|
|
touch stage2_build
|
|
|
|
|
echo stage2_build > stage_last
|
2000-09-06 02:45:47 +02:00
|
|
|
|
|
2001-01-12 20:52:29 +01:00
|
|
|
|
stage2_copy: stage2_build
|
2000-09-06 02:45:47 +02:00
|
|
|
|
+$(MAKE) stage2
|
2001-01-12 20:52:29 +01:00
|
|
|
|
touch stage2_copy
|
|
|
|
|
echo stage3_build > stage_last
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
|
2001-01-12 20:52:29 +01:00
|
|
|
|
stage3_build: stage2_copy
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
+$(MAKE) CC="stage2/xgcc$(exeext) -Bstage2/ -B$(build_tooldir)/bin/" \
|
|
|
|
|
STAGE_PREFIX=stage2/ \
|
|
|
|
|
$(STAGE2_FLAGS_TO_PASS)
|
2001-01-12 20:52:29 +01:00
|
|
|
|
touch stage3_build
|
|
|
|
|
echo stage3_build > stage_last
|
2000-09-06 02:45:47 +02:00
|
|
|
|
|
|
|
|
|
# For bootstrap4:
|
2001-01-12 20:52:29 +01:00
|
|
|
|
stage3_copy: stage3_build
|
|
|
|
|
+$(MAKE) stage3
|
|
|
|
|
touch stage3_copy
|
|
|
|
|
echo stage4_build > stage_last
|
|
|
|
|
|
|
|
|
|
stage4_build: stage3_copy
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
+$(MAKE) CC="stage3/xgcc$(exeext) -B$(build_tooldir)/bin/ -Bstage3/" \
|
|
|
|
|
STAGE_PREFIX=stage3/ \
|
|
|
|
|
$(STAGE2_FLAGS_TO_PASS)
|
2001-01-12 20:52:29 +01:00
|
|
|
|
touch stage4_build
|
|
|
|
|
echo stage4_build > stage_last
|
2000-09-06 02:45:47 +02:00
|
|
|
|
|
|
|
|
|
# Additional steps for *-lean targets:
|
2001-01-12 20:52:29 +01:00
|
|
|
|
clean_s1: stage1_copy
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
-(cd stage1 && rm -f $(VOL_FILES))
|
2000-09-06 02:45:47 +02:00
|
|
|
|
touch clean_s1
|
|
|
|
|
|
2001-01-12 20:52:29 +01:00
|
|
|
|
clean_s2: stage2_copy
|
2000-09-06 02:45:47 +02:00
|
|
|
|
-rm -rf stage1
|
|
|
|
|
touch clean_s2
|
|
|
|
|
|
2001-01-12 20:52:29 +01:00
|
|
|
|
# The various entry points for bootstrapping.
|
|
|
|
|
|
|
|
|
|
bootstrap: stage3_build
|
|
|
|
|
@echo
|
|
|
|
|
@echo Bootstrap complete - make \"quickstrap\" to redo last build,
|
|
|
|
|
@echo \"restage1\" through \"restage3\" to rebuild specific stages,
|
|
|
|
|
@echo or \"cleanstrap\" to redo the bootstrap from scratch.
|
|
|
|
|
|
|
|
|
|
bootstrap-lean : clean_s1 clean_s2 stage3_build
|
|
|
|
|
@echo
|
|
|
|
|
@echo Bootstrap complete - make \"quickstrap\" to redo last build,
|
|
|
|
|
@echo or \"cleanstrap\" to redo the bootstrap from scratch.
|
|
|
|
|
|
|
|
|
|
bootstrap2: bootstrap
|
|
|
|
|
|
|
|
|
|
bootstrap2-lean : bootstrap_lean
|
|
|
|
|
|
|
|
|
|
bootstrap3 bootstrap3-lean: bootstrap
|
2000-09-06 02:45:47 +02:00
|
|
|
|
|
2001-01-12 20:52:29 +01:00
|
|
|
|
bootstrap4 bootstrap4-lean: stage4_build
|
|
|
|
|
|
|
|
|
|
unstage1 unstage2 unstage3 unstage4:
|
|
|
|
|
-set -vx; stage=`echo $@ | sed -e 's/un//'`; \
|
|
|
|
|
if test -d $$stage; then \
|
|
|
|
|
mv $$stage/* . 2>/dev/null; \
|
|
|
|
|
for i in `cd $$stage; echo *` ; do \
|
|
|
|
|
if test -d $$stage/$$i; then \
|
|
|
|
|
mv $$stage/$$i/* $$i/. 2>/dev/null; \
|
|
|
|
|
else \
|
|
|
|
|
mv $$stage/$$i .; \
|
|
|
|
|
fi \
|
|
|
|
|
done \
|
|
|
|
|
fi ; \
|
|
|
|
|
rm -f $${stage}_build $${stage}_copy ;\
|
|
|
|
|
echo $${stage}_build > stage_last
|
|
|
|
|
|
|
|
|
|
restage1: unstage1
|
|
|
|
|
$(MAKE) stage1_build
|
|
|
|
|
|
|
|
|
|
restage2: unstage2
|
|
|
|
|
$(MAKE) LANGUAGES="$(LANGUAGES)" stage2_build
|
|
|
|
|
|
|
|
|
|
restage3: unstage3
|
|
|
|
|
$(MAKE) LANGUAGES="$(LANGUAGES)" stage3_build
|
|
|
|
|
|
|
|
|
|
restage4: unstage4
|
|
|
|
|
$(MAKE) LANGUAGES="$(LANGUAGES)" stage4_build
|
|
|
|
|
|
|
|
|
|
bubblestrap:
|
|
|
|
|
if test -f stage3_build; then true; else \
|
|
|
|
|
echo; echo You must \"make bootstrap\" first.; \
|
|
|
|
|
exit 1; \
|
|
|
|
|
fi
|
|
|
|
|
for i in stage3 \
|
|
|
|
|
unstage1 stage1_build stage1_copy \
|
|
|
|
|
unstage2 stage2_build stage2_copy \
|
|
|
|
|
unstage3 stage3_build ; \
|
|
|
|
|
do \
|
|
|
|
|
$(MAKE) LANGUAGES="$(LANGUAGES)" $$i || exit 1 ; \
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
quickstrap:
|
|
|
|
|
if test -f stage_last ; then \
|
|
|
|
|
LAST=`cat stage_last`; rm $$LAST; $(MAKE) LANGUAGES="$(LANGUAGES)" $$LAST; \
|
|
|
|
|
else \
|
|
|
|
|
$(MAKE) stage1_build; \
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
cleanstrap:
|
|
|
|
|
-$(MAKE) clean
|
|
|
|
|
$(MAKE) LANGUAGES="$(LANGUAGES)" bootstrap
|
1997-10-26 19:45:07 +01:00
|
|
|
|
|
1992-04-12 23:11:03 +02:00
|
|
|
|
# Compare the object files in the current directory with those in the
|
|
|
|
|
# stage2 directory.
|
|
|
|
|
|
1993-07-29 02:15:21 +02:00
|
|
|
|
# ./ avoids bug in some versions of tail.
|
1997-10-26 19:28:57 +01:00
|
|
|
|
compare compare3 compare4 compare-lean compare3-lean compare4-lean: force
|
1997-09-11 05:36:41 +02:00
|
|
|
|
-rm -f .bad_compare
|
1997-10-26 19:28:57 +01: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-23 00:55:23 +02:00
|
|
|
|
for file in *$(objext); do \
|
1993-07-29 02:15:21 +02:00
|
|
|
|
tail +16c ./$$file > tmp-foo1; \
|
1997-10-26 19:28:57 +01:00
|
|
|
|
tail +16c stage$$stage/$$file > tmp-foo2 \
|
1997-09-11 05:36:41 +02:00
|
|
|
|
&& (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $$file differs >> .bad_compare) || true; \
|
1992-04-12 23:11:03 +02:00
|
|
|
|
done
|
1997-10-26 19:28:57 +01:00
|
|
|
|
case "$@" in compare | compare-lean ) stage=2 ;; * ) stage=`echo $@ | sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
|
1999-01-27 02:43:17 +01: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-23 00:55:23 +02: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 10:25:33 +02:00
|
|
|
|
tail +16c ./$$file > tmp-foo1; \
|
1997-10-26 19:28:57 +01:00
|
|
|
|
tail +16c stage$$stage/$$file > tmp-foo2 \
|
1997-09-11 05:36:41 +02:00
|
|
|
|
&& (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $$file differs >> .bad_compare) || true; \
|
1994-04-25 21:04:42 +02:00
|
|
|
|
done; \
|
1998-12-26 09:19:18 +01: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 10:25:33 +02:00
|
|
|
|
done
|
1992-04-12 23:11:03 +02:00
|
|
|
|
-rm -f tmp-foo*
|
1997-11-17 06:46:29 +01:00
|
|
|
|
case "$@" in compare | compare-lean ) stage=2 ;; * ) stage=`echo $@ | sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
|
1997-09-11 05:36:41 +02:00
|
|
|
|
if [ -f .bad_compare ]; then \
|
|
|
|
|
echo "Bootstrap comparison failure!"; \
|
|
|
|
|
cat .bad_compare; \
|
|
|
|
|
exit 1; \
|
1997-10-26 19:28:57 +01:00
|
|
|
|
else \
|
|
|
|
|
case "$@" in \
|
|
|
|
|
*-lean ) rm -rf stage$$stage ;; \
|
1997-12-09 07:53:10 +01:00
|
|
|
|
*) ;; \
|
1997-10-26 19:28:57 +01:00
|
|
|
|
esac; true; \
|
1997-09-11 05:36:41 +02:00
|
|
|
|
fi
|
1992-04-12 23:11:03 +02:00
|
|
|
|
|
1997-10-26 19:28:57 +01: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 08:37:11 +02:00
|
|
|
|
-rm -f .bad_compare
|
1997-10-26 19:28:57 +01:00
|
|
|
|
case "$@" in gnucompare | gnucompare-lean ) stage=2 ;; * ) stage=`echo $@ | sed -e 's,^gnucompare\([0-9][0-9]*\).*,\1,'` ;; esac; \
|
1997-09-29 08:37:11 +02:00
|
|
|
|
for file in *$(objext); do \
|
1997-10-26 19:28:57 +01:00
|
|
|
|
(cmp --ignore-initial=16 $$file stage$$stage/$$file > /dev/null 2>&1 || echo $$file differs >> .bad_compare) || true; \
|
1997-09-29 08:37:11 +02:00
|
|
|
|
done
|
1997-10-26 19:28:57 +01:00
|
|
|
|
case "$@" in gnucompare | gnucompare-lean ) stage=2 ;; * ) stage=`echo $@ | sed -e 's,^gnucompare\([0-9][0-9]*\).*,\1,'` ;; esac; \
|
1999-01-27 02:43:17 +01:00
|
|
|
|
for dir in tmp-foo intl $(SUBDIRS); do \
|
1997-09-29 08:37:11 +02:00
|
|
|
|
if [ "`echo $$dir/*$(objext)`" != "$$dir/*$(objext)" ] ; then \
|
|
|
|
|
for file in $$dir/*$(objext); do \
|
1997-10-26 19:28:57 +01:00
|
|
|
|
(cmp --ignore-initial=16 $$file stage$$stage/$$file > /dev/null 2>&1 || echo $$file differs >> .bad_compare) || true; \
|
1997-09-29 08:37:11 +02:00
|
|
|
|
done; \
|
1998-12-26 09:19:18 +01:00
|
|
|
|
else true; fi; \
|
1997-09-29 08:37:11 +02:00
|
|
|
|
done
|
1997-11-17 06:46:29 +01:00
|
|
|
|
case "$@" in gnucompare | gnucompare-lean ) stage=2 ;; * ) stage=`echo $@ | sed -e 's,^gnucompare\([0-9][0-9]*\).*,\1,'` ;; esac; \
|
1997-09-29 08:37:11 +02:00
|
|
|
|
if [ -f .bad_compare ]; then \
|
|
|
|
|
echo "Bootstrap comparison failure!"; \
|
|
|
|
|
cat .bad_compare; \
|
|
|
|
|
exit 1; \
|
1997-10-26 19:28:57 +01:00
|
|
|
|
else \
|
|
|
|
|
case "$@" in \
|
|
|
|
|
*-lean ) rm -rf stage$$stage ;; \
|
|
|
|
|
esac; true; \
|
1997-09-29 08:37:11 +02:00
|
|
|
|
fi
|
|
|
|
|
|
1992-02-03 23:08:59 +01: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 10:25:33 +02:00
|
|
|
|
stage1-start:
|
1992-03-20 23:22:14 +01:00
|
|
|
|
-if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi
|
2000-09-06 16:45:28 +02:00
|
|
|
|
$(MAKE) -f libgcc.mk libgcc-stage-start stage=stage1
|
|
|
|
|
-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 10:25:33 +02:00
|
|
|
|
do \
|
1994-10-29 00:01:16 +01: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 10:25:33 +02:00
|
|
|
|
done
|
1992-02-03 23:08:59 +01:00
|
|
|
|
-mv $(STAGESTUFF) stage1
|
1999-01-27 02:43:17 +01:00
|
|
|
|
-mv intl/*$(objext) stage1/intl
|
1994-11-17 22:03:59 +01:00
|
|
|
|
# Copy as/ld if they exist to stage dir, so that running xgcc from the stage
|
|
|
|
|
# dir will work properly.
|
1997-09-11 22:39:08 +02: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 23:08:59 +01: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 23:39:13 +01:00
|
|
|
|
-if $(RANLIB_TEST_FOR_TARGET) ; then \
|
|
|
|
|
$(RANLIB_FOR_TARGET) stage1/libgcc.a; \
|
|
|
|
|
else true; fi
|
1996-11-14 03:01:54 +01:00
|
|
|
|
-for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
|
|
|
|
|
cp stage1/$${f} . ; \
|
1997-09-01 18:08:40 +02:00
|
|
|
|
else true; \
|
1996-11-14 03:01:54 +01: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 10:25:33 +02:00
|
|
|
|
stage1: force stage1-start lang.stage1
|
1992-02-03 23:08:59 +01: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 10:25:33 +02:00
|
|
|
|
stage2-start:
|
1992-03-20 23:22:14 +01:00
|
|
|
|
-if [ -d stage2 ] ; then true ; else mkdir stage2 ; fi
|
2000-09-06 16:45:28 +02:00
|
|
|
|
$(MAKE) -f libgcc.mk libgcc-stage-start stage=stage2
|
|
|
|
|
-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 10:25:33 +02:00
|
|
|
|
do \
|
1994-10-29 00:01:16 +01: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 10:25:33 +02:00
|
|
|
|
done
|
1992-02-03 23:08:59 +01:00
|
|
|
|
-mv $(STAGESTUFF) stage2
|
1999-01-27 02:43:17 +01:00
|
|
|
|
-mv intl/*$(objext) stage2/intl
|
1994-11-17 22:03:59 +01:00
|
|
|
|
# Copy as/ld if they exist to stage dir, so that running xgcc from the stage
|
|
|
|
|
# dir will work properly.
|
1997-09-11 22:39:08 +02: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 23:08:59 +01: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 23:39:13 +01:00
|
|
|
|
-if $(RANLIB_TEST_FOR_TARGET) ; then \
|
|
|
|
|
$(RANLIB_FOR_TARGET) stage2/libgcc.a; \
|
|
|
|
|
else true; fi
|
1996-11-14 03:01:54 +01:00
|
|
|
|
-for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
|
|
|
|
|
cp stage2/$${f} . ; \
|
1997-09-01 18:08:40 +02:00
|
|
|
|
else true; \
|
1996-11-14 03:01:54 +01: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 10:25:33 +02:00
|
|
|
|
stage2: force stage2-start lang.stage2
|
1992-02-03 23:08:59 +01: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 10:25:33 +02:00
|
|
|
|
stage3-start:
|
1992-04-17 15:18:20 +02:00
|
|
|
|
-if [ -d stage3 ] ; then true ; else mkdir stage3 ; fi
|
2000-09-06 16:45:28 +02:00
|
|
|
|
$(MAKE) -f libgcc.mk libgcc-stage-start stage=stage3
|
|
|
|
|
-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 10:25:33 +02:00
|
|
|
|
do \
|
1994-10-29 00:01:16 +01: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 10:25:33 +02:00
|
|
|
|
done
|
1992-02-03 23:08:59 +01:00
|
|
|
|
-mv $(STAGESTUFF) stage3
|
1999-01-27 02:43:17 +01:00
|
|
|
|
-mv intl/*$(objext) stage3/intl
|
1994-11-17 22:03:59 +01:00
|
|
|
|
# Copy as/ld if they exist to stage dir, so that running xgcc from the stage
|
|
|
|
|
# dir will work properly.
|
1997-09-11 22:39:08 +02: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 23:08:59 +01: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 23:39:13 +01:00
|
|
|
|
-if $(RANLIB_TEST_FOR_TARGET) ; then \
|
|
|
|
|
$(RANLIB_FOR_TARGET) stage3/libgcc.a; \
|
|
|
|
|
else true; fi
|
1996-11-14 03:01:54 +01:00
|
|
|
|
-for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
|
|
|
|
|
cp stage3/$${f} . ; \
|
1997-09-01 18:08:40 +02:00
|
|
|
|
else true; \
|
1996-11-14 03:01:54 +01: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 10:25:33 +02:00
|
|
|
|
stage3: force stage3-start lang.stage3
|
1992-02-03 23:08:59 +01: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 10:25:33 +02:00
|
|
|
|
stage4-start:
|
1992-04-17 15:18:20 +02:00
|
|
|
|
-if [ -d stage4 ] ; then true ; else mkdir stage4 ; fi
|
2000-09-06 16:45:28 +02:00
|
|
|
|
$(MAKE) -f libgcc.mk libgcc-stage-start stage=stage4
|
|
|
|
|
-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 10:25:33 +02:00
|
|
|
|
do \
|
1994-10-29 00:01:16 +01: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 10:25:33 +02:00
|
|
|
|
done
|
1992-02-03 23:08:59 +01:00
|
|
|
|
-mv $(STAGESTUFF) stage4
|
1999-01-27 02:43:17 +01:00
|
|
|
|
-mv intl/*$(objext) stage4/intl
|
1994-11-17 22:03:59 +01:00
|
|
|
|
# Copy as/ld if they exist to stage dir, so that running xgcc from the stage
|
|
|
|
|
# dir will work properly.
|
1997-09-11 22:39:08 +02: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 23:08:59 +01: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 23:39:13 +01:00
|
|
|
|
-if $(RANLIB_TEST_FOR_TARGET) ; then \
|
|
|
|
|
$(RANLIB_FOR_TARGET) stage4/libgcc.a; \
|
|
|
|
|
else true; fi
|
1996-11-14 03:01:54 +01:00
|
|
|
|
-for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
|
|
|
|
|
cp stage4/$${f} . ; \
|
1997-09-01 18:08:40 +02:00
|
|
|
|
else true; \
|
1996-11-14 03:01:54 +01: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 10:25:33 +02:00
|
|
|
|
stage4: force stage4-start lang.stage4
|
1992-02-03 23:08:59 +01: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-23 00:55:23 +02:00
|
|
|
|
risky-stage1: stage1
|
2000-12-17 16:31:16 +01:00
|
|
|
|
-$(MAKE) clean
|
1992-02-03 23:08:59 +01: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-23 00:55:23 +02:00
|
|
|
|
risky-stage2: stage2
|
2000-12-17 16:31:16 +01:00
|
|
|
|
-$(MAKE) clean
|
1992-02-03 23:08:59 +01: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-23 00:55:23 +02:00
|
|
|
|
risky-stage3: stage3
|
2000-12-17 16:31:16 +01:00
|
|
|
|
-$(MAKE) clean
|
1992-02-03 23:08:59 +01: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-23 00:55:23 +02:00
|
|
|
|
risky-stage4: stage4
|
2000-12-17 16:31:16 +01:00
|
|
|
|
-$(MAKE) clean
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
|
|
|
|
#In GNU Make, ignore whether `stage*' exists.
|
1995-04-26 00:07:11 +02:00
|
|
|
|
.PHONY: stage1 stage2 stage3 stage4 clean maintainer-clean TAGS bootstrap
|
1992-02-03 23:08:59 +01:00
|
|
|
|
.PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
|
|
|
|
|
|
|
|
|
|
force:
|
1998-05-24 02:44:00 +02: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
|