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
|
|
|
|
|
Makefile.in, [...]: replace "GNU CC" with "GCC".
* Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
bitmap.h, builtin-types.def, builtins.c, builtins.def,
c-aux-info.c, c-common.c, c-common.def, c-common.h,
c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
conditions.h, config.gcc, configure.frag, configure.in,
conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
emit-rtl.c, errors.c, errors.h, except.c, except.h,
exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
gencheck.c, gencodes.c, genconfig.c, genemit.c,
genextract.c, genflags.c, gengenrtl.c, genmultilib,
genopinit.c, genoutput.c, genpeep.c, genrecog.c,
gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
params.h, predict.c, predict.def, predict.h, prefix.c,
prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
regclass.c, regmove.c, regrename.c, regs.h, reload.c,
reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
xcoffout.h: replace "GNU CC" with "GCC".
From-SVN: r45105
2001-08-22 16:35:51 +02:00
|
|
|
|
#This file is part of GCC.
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
Makefile.in, [...]: replace "GNU CC" with "GCC".
* Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
bitmap.h, builtin-types.def, builtins.c, builtins.def,
c-aux-info.c, c-common.c, c-common.def, c-common.h,
c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
conditions.h, config.gcc, configure.frag, configure.in,
conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
emit-rtl.c, errors.c, errors.h, except.c, except.h,
exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
gencheck.c, gencodes.c, genconfig.c, genemit.c,
genextract.c, genflags.c, gengenrtl.c, genmultilib,
genopinit.c, genoutput.c, genpeep.c, genrecog.c,
gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
params.h, predict.c, predict.def, predict.h, prefix.c,
prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
regclass.c, regmove.c, regrename.c, regs.h, reload.c,
reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
xcoffout.h: replace "GNU CC" with "GCC".
From-SVN: r45105
2001-08-22 16:35:51 +02:00
|
|
|
|
#GCC is free software; you can redistribute it and/or modify
|
1992-02-03 23:08:59 +01:00
|
|
|
|
#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.
|
|
|
|
|
|
Makefile.in, [...]: replace "GNU CC" with "GCC".
* Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
bitmap.h, builtin-types.def, builtins.c, builtins.def,
c-aux-info.c, c-common.c, c-common.def, c-common.h,
c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
conditions.h, config.gcc, configure.frag, configure.in,
conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
emit-rtl.c, errors.c, errors.h, except.c, except.h,
exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
gencheck.c, gencodes.c, genconfig.c, genemit.c,
genextract.c, genflags.c, gengenrtl.c, genmultilib,
genopinit.c, genoutput.c, genpeep.c, genrecog.c,
gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
params.h, predict.c, predict.def, predict.h, prefix.c,
prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
regclass.c, regmove.c, regrename.c, regs.h, reload.c,
reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
xcoffout.h: replace "GNU CC" with "GCC".
From-SVN: r45105
2001-08-22 16:35:51 +02:00
|
|
|
|
#GCC is distributed in the hope that it will be useful,
|
1992-02-03 23:08:59 +01:00
|
|
|
|
#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
|
Makefile.in, [...]: replace "GNU CC" with "GCC".
* Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
bitmap.h, builtin-types.def, builtins.c, builtins.def,
c-aux-info.c, c-common.c, c-common.def, c-common.h,
c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
conditions.h, config.gcc, configure.frag, configure.in,
conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
emit-rtl.c, errors.c, errors.h, except.c, except.h,
exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
gencheck.c, gencodes.c, genconfig.c, genemit.c,
genextract.c, genflags.c, gengenrtl.c, genmultilib,
genopinit.c, genoutput.c, genpeep.c, genrecog.c,
gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
params.h, predict.c, predict.def, predict.h, prefix.c,
prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
regclass.c, regmove.c, regrename.c, regs.h, reload.c,
reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
xcoffout.h: replace "GNU CC" with "GCC".
From-SVN: r45105
2001-08-22 16:35:51 +02:00
|
|
|
|
#along with GCC; 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
|
|
|
|
|
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
|
|
|
|
|
1999-09-18 20:05:59 +02:00
|
|
|
|
# Various ways of specifying flags for compilations:
|
2001-04-13 12:14:47 +02:00
|
|
|
|
# CFLAGS is for the user to override to, e.g., do a cross build with -O2.
|
|
|
|
|
# For recursive bootstrap builds CFLAGS is used to pass in STAGE1_CFLAGS
|
|
|
|
|
# or BOOT_CFLAGS
|
|
|
|
|
# STAGE1_CFLAGS is set by configure on some targets or passed from toplevel
|
|
|
|
|
# and sets the CFLAGS passed to stage1 of a bootstrap compilation.
|
|
|
|
|
# BOOT_CFLAGS is the value of CFLAGS to pass to the stage2, stage3 and stage4
|
|
|
|
|
# bootstrap 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.
|
|
|
|
|
XCFLAGS =
|
|
|
|
|
TCFLAGS =
|
2001-08-04 00:02:55 +02:00
|
|
|
|
CFLAGS = -g
|
|
|
|
|
STAGE1_CFLAGS = -g @stage1_cflags@
|
|
|
|
|
BOOT_CFLAGS = -g -O2
|
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
|
|
|
|
|
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
|
2001-03-07 20:05:25 +01:00
|
|
|
|
RANLIB = @RANLIB@
|
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
|
|
|
|
|
2001-05-16 21:05:50 +02:00
|
|
|
|
# Some versions of `touch' (such as the version on Solaris 2.8)
|
2001-05-13 21:37:13 +02:00
|
|
|
|
# do not correctly set the timestamp due to buggy versions of `utime'
|
2001-05-16 21:05:50 +02:00
|
|
|
|
# in the kernel. So, we use `echo' instead.
|
2001-05-13 21:37:13 +02:00
|
|
|
|
STAMP = echo timestamp >
|
|
|
|
|
|
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
|
|
|
|
|
2000-07-17 11:23:16 +02:00
|
|
|
|
# Substitution type for target's getgroups 2nd arg.
|
|
|
|
|
TARGET_GETGROUPS_T = @TARGET_GETGROUPS_T@
|
|
|
|
|
|
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
|
|
|
|
|
i * libgcc1-test.c, libgcc1.c, config/i386/perform.h: Delete file.
* testsuite/gcc.dg/complete-port.c: New (revised version of
libgcc1-test.c)
* po/POTFILES.in: Remove libgcc1-test.c and libgcc1.c.
* Makefile.in: Delete variables: OLDCC, CCLIBFLAGS, OLDAR,
OLDAR_FLAGS, LIBGCC1, LIBGCC1_TEST, CROSS_LIBGCC1,
LIB1FUNCS, and LIB1FUNCS_EXTRA. Delete rules: libgcc1-test,
libgcc1-test.o. Clarify commentary now that libgcc1 no longer exists.
* cross-make: Don't set LIBGCC1.
* mklibgcc.in: Delete all code for building from libgcc1.c.
Always honor LIB1ASMFUNCS if set.
* crtstuff.c, floatlib.c, longlong.h, config/fp-bit.c,
config/arc/lib1funcs.asm, config/arm/lib1funcs.asm,
config/d30v/libgcc1.asm, config/fr30/lib1funcs.asm,
config/h8300/lib1funcs.asm, config/i386/cygwin.asm,
config/i386/uwin.asm, config/m68hc11/larith.asm,
config/m68k/lb1sf68.asm, config/mcore/lib1.asm,
config/mn10200/lib1funcs.asm, config/sh/lib1funcs.asm,
config/sparc/lb1spc.asm, config/sparc/lb1spl.asm,
config/v850/lib1funcs.asm, config/c4x/libgcc.S:
Delete or update references to libgcc1 in commentary.
* config/t-libc-ok, config/t-linux, config/t-linux-aout,
config/t-netbsd, config/a29k/t-a29kbare, config/a29k/t-vx29k,
config/alpha/t-interix, config/alpha/t-osf, config/alpha/t-vms,
config/arc/t-arc, config/arm/t-arm-aout, config/arm/t-arm-coff,
config/arm/t-arm-elf, config/arm/t-linux, config/arm/t-pe,
config/arm/t-semi, config/arm/t-strongarm-coff,
config/arm/t-strongarm-elf, config/arm/t-strongarm-pe,
config/arm/t-xscale-coff, config/arm/t-xscale-elf, config/avr/t-avr,
config/c4x/t-c4x, config/d30v/t-d30v, config/fr30/t-fr30,
config/h8300/t-h8300, config/i386/t-beos, config/i386/t-cygwin,
config/i386/t-i386elf, config/i386/t-interix, config/i386/t-netware,
config/i386/t-next, config/i386/t-rtems-i386, config/i386/t-sol2,
config/i960/t-960bare, config/i960/t-vxworks960, config/ia64/t-ia64,
config/m32r/t-m32r, config/m68hc11/t-m68hc11-gas, config/m68k/t-lynx,
config/m68k/t-m68kbare, config/m68k/t-m68kelf,
config/m68k/t-mot3300-gald, config/m68k/t-mot3300-gas,
config/m68k/t-next, config/m68k/t-vxworks68, config/m88k/t-bug,
config/m88k/t-dgux, config/m88k/t-dgux-gas, config/m88k/t-dguxbcs,
config/m88k/t-luna, config/m88k/t-luna-gas, config/m88k/t-m88k,
config/m88k/t-m88k-gas, config/m88k/t-sysv4, config/mcore/t-mcore,
config/mcore/t-mcore-pe, config/mips/t-bsd, config/mips/t-bsd-gas,
config/mips/t-cross64, config/mips/t-ecoff, config/mips/t-elf,
config/mips/t-iris6, config/mips/t-r3900, config/mips/t-svr3,
config/mips/t-svr3-gas, config/mips/t-svr4, config/mips/t-svr4-gas,
config/mips/t-ultrix, config/mn10200/t-mn10200,
config/mn10300/t-mn10300, config/pa/t-linux, config/pa/t-linux64,
config/pa/t-pa, config/pa/t-pa64, config/pa/t-pro,
config/pdp11/t-pdp11, config/pj/t-pj, config/rs6000/t-aix43,
config/rs6000/t-beos, config/rs6000/t-darwin, config/rs6000/t-newas,
config/rs6000/t-ppccomm, config/rs6000/t-rs6000, config/sh/t-linux,
config/sh/t-sh, config/sparc/t-chorus-elf, config/sparc/t-elf,
config/sparc/t-sol2, config/sparc/t-sp86x, config/sparc/t-sparcbare,
config/sparc/t-sparclite, config/sparc/t-splet,
config/sparc/t-sunos41, config/sparc/t-vxsparc,
config/sparc/t-vxsparc64, config/v850/t-v850:
Don't set any of LIBGCC1, CROSS_LIBGCC1, or LIBGCC1_TEST.
* config/alpha/alpha.h, config/i386/i386.h, config/i860/i860.h:
Don't set FLOAT_VALUE_TYPE, FLOAT_ARG_TYPE, INTIFY, or FLOATIFY.
* config/d30v/d30v.h: Don't mention LIBGCC_NEEDS_DOUBLE,
FLOAT_VALUE_TYPE, FLOAT_ARG_TYPE, FLOATIFY, INTIFY,
nongcc_SI_type, nongcc_word_type, or perform_*
* config/i860/fx2800: Don't define perform_umodsi3 or perform_modsi3.
* config/i386/386bsd.h, config/i386/beos-elf.h,
config/i386/linux-aout.h, config/i386/linux-oldld.h,
config/i386/linux.h, config/i386/mach.h, config/i386/netbsd.h,
config/i386/openbsd.h, config/i386/osfrose.h, config/i386/rtemself.h:
Don't include i386/perform.h.
* config/a29k/t-a29k, config/arm/t-semiaof, config/i370/t-i370,
config/i370/t-linux, config/i370/t-mvs, config/i370/t-oe,
config/i386/t-djgpp, config/i386/t-i386bare, config/i386/t-vsta,
config/ia64/t-hpux, config/mips/t-mips, config/mips/t-mips-gas,
config/mips/t-osfrose, config/sparc/t-sp64, config/sparc/t-sunos40,
config/vax/t-openbsd, config/vax/t-vax: Delete.
* config.gcc: Remove references to deleted files.
(arm-semi-aof): Use arm/t-semi for tmake_file.
* gcc.texi, install.texi, invoke.texi, tm.texi:
Delete or rewrite text which is no longer relevant now that
libgcc1 no longer exists.
* config/t-openbsd, config/alpha/t-interix, config/i386/t-interix:
No need to set INSTALL_ASSERT_H. (Missed in previous sweep.)
From-SVN: r42188
2001-05-17 05:16:18 +02:00
|
|
|
|
# The GCC to use for compiling libgcc.a, enquire, and crt*.o.
|
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).
|
2001-11-08 23:48:13 +01:00
|
|
|
|
GCC_FOR_TARGET = ./xgcc -B./ -B$(build_tooldir)/bin/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-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
|
|
|
|
|
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`
|
2001-05-16 21:05:50 +02:00
|
|
|
|
AR_FLAGS_FOR_TARGET =
|
2000-04-01 00:28:33 +02:00
|
|
|
|
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 = ` \
|
2001-05-09 15:37:28 +02:00
|
|
|
|
if [ -f ./nm ] ; then \
|
|
|
|
|
echo ./nm ; \
|
|
|
|
|
elif [ -f $(objdir)/../binutils/nm-new ] ; then \
|
|
|
|
|
echo $(objdir)/../binutils/nm-new ; \
|
2000-10-06 07:46:02 +02:00
|
|
|
|
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
|
2001-11-07 17:34:37 +01:00
|
|
|
|
FIBHEAP_H = $(srcdir)/../include/fibheap.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.
|
2001-11-08 23:48:13 +01:00
|
|
|
|
CROSS_SYSTEM_HEADER_DIR = $(build_tooldir)/sys-include
|
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
|
|
|
|
|
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@
|
2001-08-04 00:02:55 +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@
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
tm_p_file_list=@tm_p_file_list@
|
|
|
|
|
tm_p_file=@tm_p_file@
|
|
|
|
|
build_xm_file_list=@build_xm_file_list@
|
|
|
|
|
build_xm_file=@build_xm_file@
|
|
|
|
|
build_xm_defines=@build_xm_defines@
|
|
|
|
|
host_xm_file_list=@host_xm_file_list@
|
|
|
|
|
host_xm_file=@host_xm_file@
|
|
|
|
|
host_xm_defines=@host_xm_defines@
|
|
|
|
|
xm_file=@xm_file@
|
2001-03-11 22:19:11 +01:00
|
|
|
|
xm_defines=@xm_defines@
|
1997-05-18 14:31:46 +02:00
|
|
|
|
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@
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
target_cpu_default=@target_cpu_default@
|
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@
|
2001-11-08 23:48:13 +01:00
|
|
|
|
# Since gcc_tooldir does not exist at build-time, use -B$(build_tooldir)/bin/
|
1999-01-22 08:17:21 +01:00
|
|
|
|
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@
|
1993-06-05 10:10:50 +02:00
|
|
|
|
# Directory to search for site-specific includes.
|
2001-09-29 20:22:05 +02:00
|
|
|
|
local_includedir = $(local_prefix)/include
|
|
|
|
|
includedir = $(prefix)/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
|
2001-10-19 17:17:39 +02:00
|
|
|
|
datadir = @datadir@
|
1999-01-27 02:43:17 +01:00
|
|
|
|
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@
|
2001-10-21 18:29:13 +02:00
|
|
|
|
INTLDEPS = @INTLDEPS@
|
1999-01-27 02:43:17 +01:00
|
|
|
|
|
2001-07-26 18:27:36 +02:00
|
|
|
|
# Character encoding conversion library.
|
|
|
|
|
LIBICONV = @LIBICONV@
|
|
|
|
|
|
1999-01-27 02:43:17 +01:00
|
|
|
|
# List of internationalization subdirectories.
|
Makefile.in (INTL_TARGETS, POSUB): Delete all references.
* Makefile.in (INTL_TARGETS, POSUB): Delete all references.
(INTL_SUBDIRS): Just intl.
(.SUFFIXES): Add .gmo .po .pox.
(native): Also depend on build-@POSUB@.
(intl.all, intl.install): Depend on config.h and things it includes.
(po-generated): New target; depend on c-parse.c and tradcif.c.
(install-normal): Also depend on install-@POSUB@.
(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
(build-, install-, build-po, update-po, install-po,
.po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
* aclocal.m4: Prefix each entry in CATALOGS with "po/"
* configure.in: Don't munge XGETTEXT. Don't generate
po/Makefile.in.
* configure: Regenerate.
* exgettext: Delete.
* config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
* cp/Make-lang.in, java/Make-lang.in, objc/Make-lang.in: Replace
$(INTL_TARGETS) with po-generated.
po:
* EXCLUDES: New file.
* exgettext: New helper script; completely rewritten.
* Makefile.in.in, POTFILES.in: Delete.
From-SVN: r46680
2001-10-31 18:40:07 +01:00
|
|
|
|
INTL_SUBDIRS = intl
|
1999-01-27 02:43:17 +01:00
|
|
|
|
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# 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@
|
2001-01-21 02:51:42 +01:00
|
|
|
|
STRSTR=@strstr@
|
1998-05-07 13:44:09 +02:00
|
|
|
|
|
i * libgcc1-test.c, libgcc1.c, config/i386/perform.h: Delete file.
* testsuite/gcc.dg/complete-port.c: New (revised version of
libgcc1-test.c)
* po/POTFILES.in: Remove libgcc1-test.c and libgcc1.c.
* Makefile.in: Delete variables: OLDCC, CCLIBFLAGS, OLDAR,
OLDAR_FLAGS, LIBGCC1, LIBGCC1_TEST, CROSS_LIBGCC1,
LIB1FUNCS, and LIB1FUNCS_EXTRA. Delete rules: libgcc1-test,
libgcc1-test.o. Clarify commentary now that libgcc1 no longer exists.
* cross-make: Don't set LIBGCC1.
* mklibgcc.in: Delete all code for building from libgcc1.c.
Always honor LIB1ASMFUNCS if set.
* crtstuff.c, floatlib.c, longlong.h, config/fp-bit.c,
config/arc/lib1funcs.asm, config/arm/lib1funcs.asm,
config/d30v/libgcc1.asm, config/fr30/lib1funcs.asm,
config/h8300/lib1funcs.asm, config/i386/cygwin.asm,
config/i386/uwin.asm, config/m68hc11/larith.asm,
config/m68k/lb1sf68.asm, config/mcore/lib1.asm,
config/mn10200/lib1funcs.asm, config/sh/lib1funcs.asm,
config/sparc/lb1spc.asm, config/sparc/lb1spl.asm,
config/v850/lib1funcs.asm, config/c4x/libgcc.S:
Delete or update references to libgcc1 in commentary.
* config/t-libc-ok, config/t-linux, config/t-linux-aout,
config/t-netbsd, config/a29k/t-a29kbare, config/a29k/t-vx29k,
config/alpha/t-interix, config/alpha/t-osf, config/alpha/t-vms,
config/arc/t-arc, config/arm/t-arm-aout, config/arm/t-arm-coff,
config/arm/t-arm-elf, config/arm/t-linux, config/arm/t-pe,
config/arm/t-semi, config/arm/t-strongarm-coff,
config/arm/t-strongarm-elf, config/arm/t-strongarm-pe,
config/arm/t-xscale-coff, config/arm/t-xscale-elf, config/avr/t-avr,
config/c4x/t-c4x, config/d30v/t-d30v, config/fr30/t-fr30,
config/h8300/t-h8300, config/i386/t-beos, config/i386/t-cygwin,
config/i386/t-i386elf, config/i386/t-interix, config/i386/t-netware,
config/i386/t-next, config/i386/t-rtems-i386, config/i386/t-sol2,
config/i960/t-960bare, config/i960/t-vxworks960, config/ia64/t-ia64,
config/m32r/t-m32r, config/m68hc11/t-m68hc11-gas, config/m68k/t-lynx,
config/m68k/t-m68kbare, config/m68k/t-m68kelf,
config/m68k/t-mot3300-gald, config/m68k/t-mot3300-gas,
config/m68k/t-next, config/m68k/t-vxworks68, config/m88k/t-bug,
config/m88k/t-dgux, config/m88k/t-dgux-gas, config/m88k/t-dguxbcs,
config/m88k/t-luna, config/m88k/t-luna-gas, config/m88k/t-m88k,
config/m88k/t-m88k-gas, config/m88k/t-sysv4, config/mcore/t-mcore,
config/mcore/t-mcore-pe, config/mips/t-bsd, config/mips/t-bsd-gas,
config/mips/t-cross64, config/mips/t-ecoff, config/mips/t-elf,
config/mips/t-iris6, config/mips/t-r3900, config/mips/t-svr3,
config/mips/t-svr3-gas, config/mips/t-svr4, config/mips/t-svr4-gas,
config/mips/t-ultrix, config/mn10200/t-mn10200,
config/mn10300/t-mn10300, config/pa/t-linux, config/pa/t-linux64,
config/pa/t-pa, config/pa/t-pa64, config/pa/t-pro,
config/pdp11/t-pdp11, config/pj/t-pj, config/rs6000/t-aix43,
config/rs6000/t-beos, config/rs6000/t-darwin, config/rs6000/t-newas,
config/rs6000/t-ppccomm, config/rs6000/t-rs6000, config/sh/t-linux,
config/sh/t-sh, config/sparc/t-chorus-elf, config/sparc/t-elf,
config/sparc/t-sol2, config/sparc/t-sp86x, config/sparc/t-sparcbare,
config/sparc/t-sparclite, config/sparc/t-splet,
config/sparc/t-sunos41, config/sparc/t-vxsparc,
config/sparc/t-vxsparc64, config/v850/t-v850:
Don't set any of LIBGCC1, CROSS_LIBGCC1, or LIBGCC1_TEST.
* config/alpha/alpha.h, config/i386/i386.h, config/i860/i860.h:
Don't set FLOAT_VALUE_TYPE, FLOAT_ARG_TYPE, INTIFY, or FLOATIFY.
* config/d30v/d30v.h: Don't mention LIBGCC_NEEDS_DOUBLE,
FLOAT_VALUE_TYPE, FLOAT_ARG_TYPE, FLOATIFY, INTIFY,
nongcc_SI_type, nongcc_word_type, or perform_*
* config/i860/fx2800: Don't define perform_umodsi3 or perform_modsi3.
* config/i386/386bsd.h, config/i386/beos-elf.h,
config/i386/linux-aout.h, config/i386/linux-oldld.h,
config/i386/linux.h, config/i386/mach.h, config/i386/netbsd.h,
config/i386/openbsd.h, config/i386/osfrose.h, config/i386/rtemself.h:
Don't include i386/perform.h.
* config/a29k/t-a29k, config/arm/t-semiaof, config/i370/t-i370,
config/i370/t-linux, config/i370/t-mvs, config/i370/t-oe,
config/i386/t-djgpp, config/i386/t-i386bare, config/i386/t-vsta,
config/ia64/t-hpux, config/mips/t-mips, config/mips/t-mips-gas,
config/mips/t-osfrose, config/sparc/t-sp64, config/sparc/t-sunos40,
config/vax/t-openbsd, config/vax/t-vax: Delete.
* config.gcc: Remove references to deleted files.
(arm-semi-aof): Use arm/t-semi for tmake_file.
* gcc.texi, install.texi, invoke.texi, tm.texi:
Delete or rewrite text which is no longer relevant now that
libgcc1 no longer exists.
* config/t-openbsd, config/alpha/t-interix, config/i386/t-interix:
No need to set INSTALL_ASSERT_H. (Missed in previous sweep.)
From-SVN: r42188
2001-05-17 05:16:18 +02:00
|
|
|
|
# libgcc.a may be built directly or via stmp-multilib,
|
|
|
|
|
# and installed likewise. Overridden by t-fragment.
|
1993-07-05 17:35:24 +02:00
|
|
|
|
LIBGCC = libgcc.a
|
|
|
|
|
INSTALL_LIBGCC = install-libgcc
|
|
|
|
|
|
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
|
|
|
|
|
2001-03-28 13:04:51 +02:00
|
|
|
|
# Additional sources to handle exceptions; overridden on ia64.
|
|
|
|
|
LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
|
|
|
|
|
$(srcdir)/unwind-sjlj.c
|
|
|
|
|
LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h
|
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
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
2001-04-10 01:43:06 +02:00
|
|
|
|
# List of extra C and assembler files to add to static and shared libgcc2.
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# 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
|
|
|
|
|
2001-04-10 01:43:06 +02:00
|
|
|
|
# List of extra C and assembler files to add to static libgcc2.
|
|
|
|
|
# Assembler files should have names ending in `.asm'.
|
|
|
|
|
LIB2FUNCS_STATIC_EXTRA =
|
|
|
|
|
|
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.
|
2001-08-10 01:12:38 +02:00
|
|
|
|
HOST_CFLAGS=$(ALL_CFLAGS) -DGENERATOR_FILE
|
1992-02-03 23:08:59 +01:00
|
|
|
|
HOST_LDFLAGS=$(LDFLAGS)
|
|
|
|
|
HOST_CPPFLAGS=$(ALL_CPPFLAGS)
|
1992-03-20 23:22:14 +01:00
|
|
|
|
HOST_OBSTACK=$(OBSTACK)
|
1998-05-07 13:44:09 +02:00
|
|
|
|
HOST_VFPRINTF=$(VFPRINTF)
|
|
|
|
|
HOST_DOPRINT=$(DOPRINT)
|
2001-01-21 02:51:42 +01:00
|
|
|
|
HOST_STRSTR=$(STRSTR)
|
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.
|
configure.in: Add AC_ARG_PROGRAM to support program name transformation with --program-prefix...
* configure.in: Add AC_ARG_PROGRAM to support program name
transformation with --program-prefix, --program-suffix and
--program-transform-name.
* Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
program_transform_name the way suggested by autoconf.
(GCC_TARGET_INSTALL_NAME): Define.
(install-driver): Use the transformed target alias name.
* Make-lang.in (CXX_INSTALL_NAME, GXX_CROSS_NAME,
DEMANGLER_CROSS_NAME): Handle program_transform_name the way
suggested by autoconf.
(GXX_TARGET_INSTALL_NAME, CXX_TARGET_INSTALL_NAME): Define.
(c++.install-common): Use the transformed target alias names.
* Make-lang.in (G77_INSTALL_NAME, G77_CROSS_NAME): Handle
program_transform_name the way suggested by autoconf.
* Make-lang.in (JAVA_INSTALL_NAME, JAVA_CROSS_NAME): Handle
program_transform_name the way suggested by autoconf.
(java.install-common): Also transform auxiliary program names with
program_transform_name.
From-SVN: r46856
2001-11-08 21:18:18 +01:00
|
|
|
|
GCC_INSTALL_NAME = `echo gcc|sed '$(program_transform_name)'`
|
|
|
|
|
GCC_TARGET_INSTALL_NAME = $(target_alias)-`echo gcc|sed '$(program_transform_name)'`
|
|
|
|
|
CPP_INSTALL_NAME = `echo cpp|sed '$(program_transform_name)'`
|
|
|
|
|
PROTOIZE_INSTALL_NAME = `echo protoize|sed '$(program_transform_name)'`
|
|
|
|
|
UNPROTOIZE_INSTALL_NAME = `echo unprotoize|sed '$(program_transform_name)'`
|
|
|
|
|
GCOV_INSTALL_NAME = `echo gcov|sed '$(program_transform_name)'`
|
|
|
|
|
GCCBUG_INSTALL_NAME = `echo gccbug|sed '$(program_transform_name)'`
|
1994-11-17 22:03:59 +01:00
|
|
|
|
|
|
|
|
|
# Actual name to use when installing a cross-compiler.
|
configure.in: Add AC_ARG_PROGRAM to support program name transformation with --program-prefix...
* configure.in: Add AC_ARG_PROGRAM to support program name
transformation with --program-prefix, --program-suffix and
--program-transform-name.
* Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
program_transform_name the way suggested by autoconf.
(GCC_TARGET_INSTALL_NAME): Define.
(install-driver): Use the transformed target alias name.
* Make-lang.in (CXX_INSTALL_NAME, GXX_CROSS_NAME,
DEMANGLER_CROSS_NAME): Handle program_transform_name the way
suggested by autoconf.
(GXX_TARGET_INSTALL_NAME, CXX_TARGET_INSTALL_NAME): Define.
(c++.install-common): Use the transformed target alias names.
* Make-lang.in (G77_INSTALL_NAME, G77_CROSS_NAME): Handle
program_transform_name the way suggested by autoconf.
* Make-lang.in (JAVA_INSTALL_NAME, JAVA_CROSS_NAME): Handle
program_transform_name the way suggested by autoconf.
(java.install-common): Also transform auxiliary program names with
program_transform_name.
From-SVN: r46856
2001-11-08 21:18:18 +01:00
|
|
|
|
GCC_CROSS_NAME = `echo gcc|sed '$(program_transform_cross_name)'`
|
|
|
|
|
CPP_CROSS_NAME = `echo cpp|sed '$(program_transform_cross_name)'`
|
|
|
|
|
PROTOIZE_CROSS_NAME = `echo protoize|sed '$(program_transform_cross_name)'`
|
|
|
|
|
UNPROTOIZE_CROSS_NAME = `echo unprotoize|sed '$(program_transform_cross_name)'`
|
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:
|
|
|
|
|
|
2001-05-24 00:58:41 +02: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
|
Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
* Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
(CONFIG_H, TCONFIG_H, TM_P_H): Update.
(GEN, STAGESTUFF): Add new files.
(insn-constants.h, s-constants, tm-preds.h, s-preds,
genconstants, genpreds, genconstants.o, genpreds.o): New rules.
(hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
* mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
as well as insn-codes.h and insn-flags.h in config.h; and no
extra headers in tconfig.h and hconfig.h.
* gencodes.c: Eliminate code to generate predicate declarations
or #defines for md-file constants.
* genconstants.c, genpreds.c: New files.
* i386.md: Re-order guard expressions such that TARGET_64BIT
comes first, when this permits better optimization. Add
TARGET_64BIT to more x86-64 patterns. Add comment explaining
why this is desirable.
From-SVN: r44743
2001-08-09 19:11:00 +02:00
|
|
|
|
# several files generated by those generators.
|
2001-05-24 00:58:41 +02:00
|
|
|
|
GCONFIG_H = config.h $(host_xm_file_list)
|
|
|
|
|
HCONFIG_H = hconfig.h $(build_xm_file_list)
|
expr.h: Split out optab- and libfunc-related code to...
* expr.h: Split out optab- and libfunc-related code to...
* optabs.h, libfuncs.h: ... these new headers.
* Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
(OPTABS_H): New.
(various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
dependencies.
* mkconfig.sh: Don't include insn-codes.h from config.h.
* reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
enum insn_code is available. Move reload_in_optab and
reload_out_optab array declarations to optabs.h.
* regmove.c (gen_add3_insn): Move to optabs.c, export from
there, prototype in expr.h.
* gencodes.c: Cleanup: zap global variables, don't use
printf where puts will do, don't bother defining MAX_INSN_CODE
which nothing uses, let CODE_FOR_nothing get its value implicitly.
* genemit.c, genopinit.c: Include optabs.h in generated file.
* genoutput.c: Include insn-codes.h in generated file.
* builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
Include optabs.h.
* builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/m88k/m88k.c, config/sparc/sparc.c:
Include libfuncs.h.
* reload.c: Include expr.h and optabs.h before reload.h.
* config/alpha/alpha.c: Include tree.h before reload.h.
* config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
and reload.h in that order.
* config/sparc/sparc.c: Include debug.h.
* recog.c: Include insn-codes.h.
cp:
* Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
* except.c: Include libfuncs.h.
java:
* Make-lang.in (java/decl.o): Update dependencies.
* decl.c: Include libfuncs.h, don't include toplev.h.
From-SVN: r44858
2001-08-13 17:56:51 +02:00
|
|
|
|
CONFIG_H = $(GCONFIG_H) insn-constants.h insn-flags.h
|
Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
* Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
(CONFIG_H, TCONFIG_H, TM_P_H): Update.
(GEN, STAGESTUFF): Add new files.
(insn-constants.h, s-constants, tm-preds.h, s-preds,
genconstants, genpreds, genconstants.o, genpreds.o): New rules.
(hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
* mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
as well as insn-codes.h and insn-flags.h in config.h; and no
extra headers in tconfig.h and hconfig.h.
* gencodes.c: Eliminate code to generate predicate declarations
or #defines for md-file constants.
* genconstants.c, genpreds.c: New files.
* i386.md: Re-order guard expressions such that TARGET_64BIT
comes first, when this permits better optimization. Add
TARGET_64BIT to more x86-64 patterns. Add comment explaining
why this is desirable.
From-SVN: r44743
2001-08-09 19:11:00 +02:00
|
|
|
|
TCONFIG_H = tconfig.h $(xm_file_list)
|
Makefile.in (TARGET_H, [...]): New.
* Makefile.in (TARGET_H, TARGET_DEF_H): New.
(c-decl.o, tree.o, c-typeck.o, $(out_object_file)): Update.
* c-decl.c (duplicate_decls): Use function pointer.
* c-typeck.c (common_type): Similarly.
* tree.c (valid_machine_attribute): Similarly.
(merge_machine_type_attributes): Rename merge_type_attributes.
(merge_machine_decl_attributes): Rename merge_decl_attributes.
(merge_dllimport_decl_attributes): New function.
* tree.h (merge_machine_type_attributes): Rename merge_type_attributes.
(merge_machine_decl_attributes): Rename merge_decl_attributes.
(merge_dllimport_decl_attributes): New prototype.
* target.h: New.
* target-def.h: New.
doc: (Joseph Myers)
* doc/gcc.texi, doc/tm.texi: Update documentation.
cp: Make-lang.in: Update dependencies.
* spew.c: Include target.h.
(duplicate_decls): Call target function.
* decl2.c: include target.h
(import_export_class): Use existence of target function pointer.
* typeck.c: Include target.h.
(qualify_type_recursive): Rename variable. Call target function.
(type_after_usual_arithmetic_conversions): Similarly.
(common_type): Similarly.
config: * 1750a/1750a.c, a29k/29k.c, alpha/alpha.c, arc/arc.c, arm/arm.c,
avr/avr.c, c4x/c4x.c, clipper/clipper.c, convex/convex.c,
d30v/d30v.c, dsp16xx/dsp16xx.c, elxsi/elxsi.c, fr30/fr30.c,
i370/i370.c, i386/i386.c, i860/i860.c, i960/i960.c, ia64/ia64.c,
m32r/m32r.c, m68hc11/m68hc11.c, m68k/m68k.c, m88k/m88k.c,
mips/mips.c, mn10200/mn10200.c, mn10300/mn10300.c, ns32k/ns32k.c,
pa/pa.c, pdp11/pdp11.c, pj/pj.c, romp/romp.c, rs6000/rs6000.c,
sh/sh.c, sparc/sparc.c, v850/v850.c, vax/vax.c, we32k/we32k.c)
: Include target.h and target-def.h. Define target.
* arc/arc-protos.h (arc_valid_machine_decl_attribute): Remove.
* arc/arc.c (arc_valid_machine_decl_attribute): Rename
arc_valid_decl_attribute, make static.
* arc/arc.h (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* arm/arm-protos.h (arm_valid_machine_decl_attribute,
arm_valid_type_attribute_p, arm_pe_valid_machine_decl_attribute,
arm_pe_merge_machine_decl_attributes): Remove.
* arm/arm.c (arm_valid_machine_decl_attribute_p): Rename
arm_valid_decl_attribute_p, make static.
(arm_pe_valid_decl_attribute_p): Move from pe.c.
* arm/pe.c (arm_pe_valid_machine_decl_attribute_p): Move to arm.c.
(arm_pe_merge_machine_decl_attributes): Move to tree.c.
* arm/arm.h (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* arm/coff.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* arm/elf.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): New.
(VALID_MACHINE_TYPE_ATTRIBUTE, VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* avr/avr-protos.h (valid_machine_type_attribute,
valid_machine_decl_attribute): Remove.
* avr/avr.c (valid_machine_type_attribute,
valid_machine_decl_attribute): Rename and make static.
* avr/avr.h (VALID_MACHINE_TYPE_ATTRIBUTE,
VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* c4x/c4x-protos.h (c4x_valid_type_attribute_p): Remove.
* c4x/c4x.c (c4x_valid_type_attribute_p): Make static.
* c4x/c4x.h (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* d30v/d30v.h: Remove obsolete comments.
* h8300/h8300-protos.h (h8300_valid_machine_decl_attribute): Remove.
* h8300/h8300.c (h8300_valid_machine_decl_attribute): Rename, make
static.
* h8300/h8300.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* i386/cygwin.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
(i386_pe_merge_decl_attributes, MERGE_MACHINE_DECL_ATTRIBUTES,
i386_pe_valid_type_attributes_p): Remove.
* i386/i386-protos.h (ix86_valid_decl_attribute_p,
ix86_valid_type_attribute_p): Remove.
* i386/i386.c (ix86_valid_decl_attribute_p): Remove.
(ix86_valid_type_attribute_p): Make static.
* i386/i386.h (VALID_MACHINE_DECL_ATTRIBUTE,
VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* i386/winnt.c (i386_pe_merge_decl_attributes): Move to tree.c.
* ia64/ia64-protos.h (ia64_valid_type_attribute): Remove.
* ia64/ia64.c (ia64_valid_type_attribute): Make static.
* ia64/ia64.h (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* m32r/m32r-protos.h (m32r_valid_machine_decl_attribute): Remove.
* m32r/m32r.c (m32r_valid_decl_attribute): Make static.
* m32r/m32r.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* m68hc11/m68hc11-protos.h (m68hc11_valid_decl_attribute_p,
m68hc11_valid_type_attribute_p): Remove.
* m68hc11/m68hc11.c (m68hc11_valid_decl_attribute_p): Remove.
(m68hc11_valid_type_attribute_p): Make static.
* m68hc11/m68hc11.h (VALID_MACHINE_DECL_ATTRIBUTE,
VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* mcore/mcore-protos.h (mcore_valid_machine_decl_attribute,
mcore_merge_machine_decl_attribute): Remove.
* mcore/mcore.c (mcore_valid_machine_decl_attribute): Rename,
make static.
(mcore_merge_machine_decl_attributes): Move to tree.c.
* mcore/mcore.h (VALID_MACHINE_DECL_ATTRIBUTE,
VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
(TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
* ns32k/ns32k-protos.h (ns32k_valid_decl_attribute_p,
ns32k_valid_type_attribute_p): Remove.
* ns32k/ns32k.c (ns32k_valid_decl_attribute_p): Remove.
(ns32k_valid_type_attribute_p): Make static.
* ns32k/ns32k.h (VALID_MACHINE_DECL_ATTRIBUTE,
VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* rs6000/rs6000-protos.h (rs6000_valid_decl_attribute_p,
rs6000_valid_type_attribute_p): Remove.
* rs6000/rs6000.c (rs6000_valid_decl_attribute_p): Remove.
(rs6000_valid_type_attribute_p): Make static.
* rs6000/rs6000.h (VALID_MACHINE_DECL_ATTRIBUTE,
VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* sh/sh-protos.h (sh_valid_machine_decl_attribute): Remove.
* sh/sh.c (sh_valid_machine_decl_attribute): Rename, make static.
* sh/sh.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* v850/v850-protos.h (v850_valid_machine_decl_attribute): Remove.
* v850/v850.c (v850_valid_machine_decl_attribute): Rename, make static.
* v850/v850.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
From-SVN: r43585
2001-06-26 20:09:27 +02:00
|
|
|
|
TARGET_H = target.h
|
|
|
|
|
TARGET_DEF_H = target-def.h
|
Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
* Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
(CONFIG_H, TCONFIG_H, TM_P_H): Update.
(GEN, STAGESTUFF): Add new files.
(insn-constants.h, s-constants, tm-preds.h, s-preds,
genconstants, genpreds, genconstants.o, genpreds.o): New rules.
(hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
* mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
as well as insn-codes.h and insn-flags.h in config.h; and no
extra headers in tconfig.h and hconfig.h.
* gencodes.c: Eliminate code to generate predicate declarations
or #defines for md-file constants.
* genconstants.c, genpreds.c: New files.
* i386.md: Re-order guard expressions such that TARGET_64BIT
comes first, when this permits better optimization. Add
TARGET_64BIT to more x86-64 patterns. Add comment explaining
why this is desirable.
From-SVN: r44743
2001-08-09 19:11:00 +02:00
|
|
|
|
TM_P_H = tm_p.h $(tm_p_file_list) tm-preds.h
|
2001-05-24 00:58:41 +02:00
|
|
|
|
|
|
|
|
|
MACHMODE_H = machmode.h machmode.def
|
|
|
|
|
RTL_BASE_H = rtl.h rtl.def $(MACHMODE_H)
|
|
|
|
|
RTL_H = $(RTL_BASE_H) genrtl.h
|
2001-06-26 21:24:09 +02:00
|
|
|
|
PARAMS_H = params.h params.def
|
2001-05-24 00:58:41 +02:00
|
|
|
|
TREE_H = tree.h real.h tree.def $(MACHMODE_H) tree-check.h version.h builtins.def
|
|
|
|
|
BASIC_BLOCK_H = basic-block.h bitmap.h sbitmap.h varray.h
|
|
|
|
|
DEMANGLE_H = $(srcdir)/../include/demangle.h
|
|
|
|
|
RECOG_H = recog.h
|
expr.h: Split out optab- and libfunc-related code to...
* expr.h: Split out optab- and libfunc-related code to...
* optabs.h, libfuncs.h: ... these new headers.
* Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
(OPTABS_H): New.
(various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
dependencies.
* mkconfig.sh: Don't include insn-codes.h from config.h.
* reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
enum insn_code is available. Move reload_in_optab and
reload_out_optab array declarations to optabs.h.
* regmove.c (gen_add3_insn): Move to optabs.c, export from
there, prototype in expr.h.
* gencodes.c: Cleanup: zap global variables, don't use
printf where puts will do, don't bother defining MAX_INSN_CODE
which nothing uses, let CODE_FOR_nothing get its value implicitly.
* genemit.c, genopinit.c: Include optabs.h in generated file.
* genoutput.c: Include insn-codes.h in generated file.
* builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
Include optabs.h.
* builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/m88k/m88k.c, config/sparc/sparc.c:
Include libfuncs.h.
* reload.c: Include expr.h and optabs.h before reload.h.
* config/alpha/alpha.c: Include tree.h before reload.h.
* config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
and reload.h in that order.
* config/sparc/sparc.c: Include debug.h.
* recog.c: Include insn-codes.h.
cp:
* Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
* except.c: Include libfuncs.h.
java:
* Make-lang.in (java/decl.o): Update dependencies.
* decl.c: Include libfuncs.h, don't include toplev.h.
From-SVN: r44858
2001-08-13 17:56:51 +02:00
|
|
|
|
EXPR_H = expr.h
|
|
|
|
|
OPTABS_H = optabs.h insn-codes.h
|
2001-05-24 00:58:41 +02:00
|
|
|
|
REGS_H = regs.h varray.h $(MACHMODE_H)
|
|
|
|
|
INTEGRATE_H = integrate.h varray.h
|
|
|
|
|
LOOP_H = loop.h varray.h bitmap.h
|
|
|
|
|
GCC_H = gcc.h version.h
|
|
|
|
|
GGC_H = ggc.h varray.h
|
|
|
|
|
TIMEVAR_H = timevar.h timevar.def
|
|
|
|
|
INSN_ATTR_H = insn-attr.h $(srcdir)/insn-addr.h $(srcdir)/varray.h
|
|
|
|
|
C_COMMON_H = c-common.h $(SPLAY_TREE_H)
|
|
|
|
|
C_TREE_H = c-tree.h $(C_COMMON_H)
|
|
|
|
|
SYSTEM_H = system.h hwint.h $(srcdir)/../include/libiberty.h
|
2001-06-10 00:39:25 +02:00
|
|
|
|
PREDICT_H = predict.h predict.def
|
2001-08-04 14:01:59 +02:00
|
|
|
|
CPPLIB_H = cpplib.h line-map.h
|
2001-05-24 00:58:41 +02:00
|
|
|
|
|
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)
|
|
|
|
|
|
1992-03-20 23:22:14 +01:00
|
|
|
|
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 `
|
2001-01-21 02:51:42 +01:00
|
|
|
|
USE_HOST_STRSTR= ` case "${HOST_STRSTR}" in ?*) echo ${HOST_PREFIX}${HOST_STRSTR} ;; esac `
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
# Dependency on obstack or whatever library facilities
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# are not installed in the system libraries.
|
aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
libiberty:
* aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
* configure.in: Replace all alloca logic with a simple use of
the above new macro.
* config.table: Kill *-*-beos* entry.
* config/mh-beos: Delete.
* configure, config.in: Regenerate.
* Makefile.in (ALLOCA, HFILES): Kill.
(REQUIRED_OFILES): Add alloca.o.
(alloca.o): Depend on libiberty.h.
(argv.o): Don't depend on alloca-conf.h.
* alloca-conf.h: Delete.
* alloca.c: Include libiberty.h. Kill all #ifdef emacs
blocks. Provide the C alloca unconditionally. Use PTR where
appropriate. Make i00afunc static.
* argv.c: Don't include alloca-conf.h.
include:
* libiberty.h: Prototype C_alloca; define alloca to either
__builtin_alloca or C_alloca as appropriate.
gcc:
* aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE
AC_FUNC_ALLOCA.
* configure, config.in: Regenerate.
* config.gcc: Remove references to deleted files.
* genattr.c, genattrtab.c, genextract.c, genoutput.c,
genrecog.c, rtl.c: Do not use alloca anywhere.
* Makefile.in, build-make, system.h, config/x-interix,
config/x-svr4, config/xm-interix.h, config/xm-openbsd.h,
config/alpha/xm-alpha.h, config/alpha/xm-vms.h,
config/arc/xm-arc.h, config/arm/xm-arm.h,
config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
config/h8300/xm-h8300.h, config/i370/x-oe,
config/i370/xm-linux.h, config/i386/x-aix, config/i386/x-beos,
config/i386/x-ncr3000, config/i386/x-sco5,
config/i386/xm-dgux.h, config/i860/x-sysv4,
config/i960/xm-i960.h, config/m32r/xm-m32r.h,
config/m68k/x-crds, config/m68k/x-dpx2, config/m68k/x-hp320,
config/m68k/x-hp320g, config/m69k/x-mot3300,
config/m68k/x-mot3300-gas, config/m68k/xm-amix.h,
config/m68k/xm-hp320.h, config/m68k/xm-m68kv.h,
config/m68k/xm-mot3300.h, config/m88k/x-dolph,
config/m88k/x-sysv4, config/m88k/x-tekXD88,
config/m88k/xm-m88k.h, config/mcore/xm-mcore.h,
config/mips/x-iris, config/mips/x-iris3,
config/mips/x-sni-svr4, config/mips/x-sysv,
config/mips/xm-iris6.h, config/mips/xm-mips.h,
config/mips/xm-nws3250v4.h, config/pa/x-hpux,
config/pa/x-pa-mpeix, config/pa/xm-pa.h,
config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h,
config/pa/xm-papro.h, config/romp/xm-romp.h,
config/rs6000/x-aix31, config/rs6000/x-aix41,
config/rs6000/x-beos, config/rs6000/x-lynx,
config/rs6000/x-mach, config/rs6000/x-rs6000,
config/rs6000/x-sysv4, config/rs6000/xm-rs6000.h,
config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
config/sparc/x-sysv4, config/sparc/xm-linux.h,
config/sparc/xm-pbd.h, config/sparc/xm-sparc.h,
config/vax/xm-vms.h: Eradicate all references to alloca and
related stuff.
* config/xm-alloca.h, config/clipper/x-clix,
config/i386/xm-sysv4.h, config/i860/x-fx2800,
config/i860/x-sysv3, config/m88k/x-sysv3,
config/sparc/xm-sol2.h, config/we32k/x-we32k: Delete
(contained only alloca related hacks).
* config/i386/xm-beos.h, config/rs6000/xm-beos.h: Just define
USE_C_ALLOCA.
From-SVN: r40259
2001-03-06 10:52:35 +01:00
|
|
|
|
# We don't use USE_* because backquote expansion doesn't work in deps.
|
2001-10-21 18:29:13 +02:00
|
|
|
|
LIBDEPS= $(INTLDEPS) $(OBSTACK) $(VFPRINTF) $(DOPRINT) $(STRSTR)
|
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.
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
HOST_LIBDEPS= $(HOST_PREFIX)$(HOST_OBSTACK) \
|
aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
libiberty:
* aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
* configure.in: Replace all alloca logic with a simple use of
the above new macro.
* config.table: Kill *-*-beos* entry.
* config/mh-beos: Delete.
* configure, config.in: Regenerate.
* Makefile.in (ALLOCA, HFILES): Kill.
(REQUIRED_OFILES): Add alloca.o.
(alloca.o): Depend on libiberty.h.
(argv.o): Don't depend on alloca-conf.h.
* alloca-conf.h: Delete.
* alloca.c: Include libiberty.h. Kill all #ifdef emacs
blocks. Provide the C alloca unconditionally. Use PTR where
appropriate. Make i00afunc static.
* argv.c: Don't include alloca-conf.h.
include:
* libiberty.h: Prototype C_alloca; define alloca to either
__builtin_alloca or C_alloca as appropriate.
gcc:
* aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE
AC_FUNC_ALLOCA.
* configure, config.in: Regenerate.
* config.gcc: Remove references to deleted files.
* genattr.c, genattrtab.c, genextract.c, genoutput.c,
genrecog.c, rtl.c: Do not use alloca anywhere.
* Makefile.in, build-make, system.h, config/x-interix,
config/x-svr4, config/xm-interix.h, config/xm-openbsd.h,
config/alpha/xm-alpha.h, config/alpha/xm-vms.h,
config/arc/xm-arc.h, config/arm/xm-arm.h,
config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
config/h8300/xm-h8300.h, config/i370/x-oe,
config/i370/xm-linux.h, config/i386/x-aix, config/i386/x-beos,
config/i386/x-ncr3000, config/i386/x-sco5,
config/i386/xm-dgux.h, config/i860/x-sysv4,
config/i960/xm-i960.h, config/m32r/xm-m32r.h,
config/m68k/x-crds, config/m68k/x-dpx2, config/m68k/x-hp320,
config/m68k/x-hp320g, config/m69k/x-mot3300,
config/m68k/x-mot3300-gas, config/m68k/xm-amix.h,
config/m68k/xm-hp320.h, config/m68k/xm-m68kv.h,
config/m68k/xm-mot3300.h, config/m88k/x-dolph,
config/m88k/x-sysv4, config/m88k/x-tekXD88,
config/m88k/xm-m88k.h, config/mcore/xm-mcore.h,
config/mips/x-iris, config/mips/x-iris3,
config/mips/x-sni-svr4, config/mips/x-sysv,
config/mips/xm-iris6.h, config/mips/xm-mips.h,
config/mips/xm-nws3250v4.h, config/pa/x-hpux,
config/pa/x-pa-mpeix, config/pa/xm-pa.h,
config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h,
config/pa/xm-papro.h, config/romp/xm-romp.h,
config/rs6000/x-aix31, config/rs6000/x-aix41,
config/rs6000/x-beos, config/rs6000/x-lynx,
config/rs6000/x-mach, config/rs6000/x-rs6000,
config/rs6000/x-sysv4, config/rs6000/xm-rs6000.h,
config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
config/sparc/x-sysv4, config/sparc/xm-linux.h,
config/sparc/xm-pbd.h, config/sparc/xm-sparc.h,
config/vax/xm-vms.h: Eradicate all references to alloca and
related stuff.
* config/xm-alloca.h, config/clipper/x-clix,
config/i386/xm-sysv4.h, config/i860/x-fx2800,
config/i860/x-sysv3, config/m88k/x-sysv3,
config/sparc/xm-sol2.h, config/we32k/x-we32k: Delete
(contained only alloca related hacks).
* config/i386/xm-beos.h, config/rs6000/xm-beos.h: Just define
USE_C_ALLOCA.
From-SVN: r40259
2001-03-06 10:52:35 +01:00
|
|
|
|
$(HOST_PREFIX)$(HOST_VFPRINTF) $(HOST_PREFIX)$(HOST_DOPRINT) \
|
|
|
|
|
$(HOST_PREFIX)$(HOST_STRSTR)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
|
|
|
|
# How to link with both our special library facilities
|
|
|
|
|
# and the system's installed libraries.
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
LIBS = $(OBSTACK) $(INTLLIBS) @LIBS@ $(VFPRINTF) $(DOPRINT) \
|
config.gcc: Don't default xmake_file to ${cpu_type}/x-${cpu_type}.
2001-05-01 Zack Weinberg <zackw@stanford.edu>
* config.gcc: Don't default xmake_file to ${cpu_type}/x-${cpu_type}.
Remove references to deleted files.
(*-*-openbsd): No need to override xmake_file.
(*-*-sysv4): Treat like *-*-sysv.
* configure.in: Probe for ldopen in various places, and set up
collect2 to be linked with them if found.
Don't dink with Windows registry stuff unless $host_os is a
Win32 os name. Check to see if we need -ladvapi32.
* configure: Regenerate.
* Makefile: Get rid of CLIB and HOST_CLIB.
Substitute in COLLECT2_LIBS and link collect2 against its contents.
* build-make: Get rid of HOST_CLIB.
* config/a29k/x-unix, config/alpha/x-osf, config/i386/x-aix,
config/i386/x-osfrose, config/m68k/x-dpx2, config/mips/x-iris3,
config/mips/x-mips, config/mips/x-osfrose, config/mips/x-sony,
config/mips/x-sysv, config/rs6000/x-aix31, config/rs6000/x-aix41,
config/rs6000/x-rs6000: Delete.
* config/i386/x-cygwin, config/m68k/t-aux, config/mips/x-iris:
Don't set CLIB.
24 x-host fragments remain, 0 x-cpu, 3 top level.
2001-05-01 Zack Weinberg <zackw@stanford.edu>
* aclocal.m4 (gcc_AC_C_CHAR_BIT): Correct test program.
* configure: Regenerate.
From-SVN: r41732
2001-05-01 19:45:05 +02:00
|
|
|
|
$(STRSTR) ../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.
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
HOST_LIBS = $(USE_HOST_OBSTACK) $(USE_HOST_VFPRINTF) \
|
config.gcc: Don't default xmake_file to ${cpu_type}/x-${cpu_type}.
2001-05-01 Zack Weinberg <zackw@stanford.edu>
* config.gcc: Don't default xmake_file to ${cpu_type}/x-${cpu_type}.
Remove references to deleted files.
(*-*-openbsd): No need to override xmake_file.
(*-*-sysv4): Treat like *-*-sysv.
* configure.in: Probe for ldopen in various places, and set up
collect2 to be linked with them if found.
Don't dink with Windows registry stuff unless $host_os is a
Win32 os name. Check to see if we need -ladvapi32.
* configure: Regenerate.
* Makefile: Get rid of CLIB and HOST_CLIB.
Substitute in COLLECT2_LIBS and link collect2 against its contents.
* build-make: Get rid of HOST_CLIB.
* config/a29k/x-unix, config/alpha/x-osf, config/i386/x-aix,
config/i386/x-osfrose, config/m68k/x-dpx2, config/mips/x-iris3,
config/mips/x-mips, config/mips/x-osfrose, config/mips/x-sony,
config/mips/x-sysv, config/rs6000/x-aix31, config/rs6000/x-aix41,
config/rs6000/x-rs6000: Delete.
* config/i386/x-cygwin, config/m68k/t-aux, config/mips/x-iris:
Don't set CLIB.
24 x-host fragments remain, 0 x-cpu, 3 top level.
2001-05-01 Zack Weinberg <zackw@stanford.edu>
* aclocal.m4 (gcc_AC_C_CHAR_BIT): Correct test program.
* configure: Regenerate.
From-SVN: r41732
2001-05-01 19:45:05 +02:00
|
|
|
|
$(USE_HOST_DOPRINT) $(USE_HOST_STRSTR)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
i386.md: Global update to use new string syntax where it will improve readability.
* config/i386/i386.md: Global update to use new string syntax
where it will improve readability. Warning fixes:
(*truncdfsf2_2): Abort if which_alternative is not 0 or 1.
(*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64,
*adddi_4_rex64, *adddi_5_rex64): Cast 1 to unsigned int.
* read-rtl.c: Syntactic sugar for C embedded in strings in
machine descriptions.
(read_string): Break inner loop into separate function. Takes
an int. Dispatch to read_quoted_string or read_braced_string
as appropriate. Automatically insert a leading star on braced
strings if STAR_IF_BRACED is true.
(read_quoted_string, read_braced_string): New functions.
* doc/rtl.texi, doc/md.texi: Document new syntax. Update
examples to match.
* rtl.c: Split RTL reader (read_rtx, read_skip_spaces,
traverse_md_constants, fatal_with_file_and_line,
fatal_expected_char, read_name, read_string, def_hash,
def_name_eq_p, read_constants, and related data) to its own
file. Weed out now-unnecessary #includes.
* read-rtl.c: New file.
* Makefile.in (HOST_RTL): Add read-rtl.o.
(read-rtl.o): New rule.
(rtl.o, $(HOST_PREFIX_1)rtl.o): Update dependencies.
* doc/gcc.texi (Passes): Talk briefly about the support
library used by genfoo.
* doc/rtl.texi (Reading RTL): read_rtx is not available in the
compiler itself.
From-SVN: r43646
2001-06-28 23:50:09 +02:00
|
|
|
|
HOST_RTL = $(HOST_PREFIX)rtl.o read-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,
|
configure.in: Kill tm.h.
* configure.in: Kill tm.h. Include the files in the $tm_file
list in all three of config.h, hconfig.h, tconfig.h, after the
relevant set of xm_files. Put TARGET_CPU_DEFAULT in all
three, include insn-codes.h in all three (#ifndef GENERATOR_FILE).
* configure: Regenerate.
* Makefile.in (clean): Don't delete tm.h.
* system.h: If SUCCESS_EXIT_CODE and FATAL_EXIT_CODE are not
defined, set them from EXIT_SUCCESS and EXIT_FAILURE. If
those are not defined, set SEC and FEC to 0 and 1.
* gcc.texi: Update to match.
* crtstuff.c: Include tconfig.h, not auto-host.h and tm.h.
* config/fp-bit.c, config/m68k/aux-crt2.asm,
config/m68k/aux-crtn.asm, config/m68k/aux-mcount.c:
Include tconfig.h, not tm.h.
* config/xm-lynx.h, config/xm-std32.h,
config/a29k/xm-a29k.h, config/a29k/xm-unix.h,
config/alpha/xm-alpha.h, config/arc/xm-arc.h,
config/avr/xm-avr.h, config/c4x/xm-c4x.h,
config/clipper/xm-clix.h, config/convex/xm-convex.h,
config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
config/elxsi/xm-elxsi.h, config/fr30/xm-fr30.h,
config/h8300/xm-h8300.h, config/i370/xm-linux.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/ia64/xm-ia64.h,
config/m32r/xm-m32r.h, config/m68hc11/xm-m68hc11.h,
config/m88k/xm-m88k.h, config/mcore/xm-mcore.h,
config/mips/xm-mips.h, config/mn10200/xm-mn10200.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pa/xm-linux.h, config/pa/xm-pa.h,
config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h,
config/pa/xm-papro.h, config/pdp11/xm-pdp11.h,
config/pj/xm-pj.h, config/romp/xm-romp.h,
config/rs6000/xm-beos.h, config/rs6000/xm-rs6000.h,
config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
config/sparc/xm-sparc.h, config/sparc/xm-sysv4.h,
config/v850/xm-v850.h, config/vax/xm-vax.h,
config/we32k/xm-we32k.h:
Don't include tm.h.
Don't define SUCCESS_EXIT_CODE or FATAL_EXIT_CODE.
* config/i370/xm-i370.h, config/i370/xm-mvs.h,
config/i370/xm-oe.h: Don't include tm.h. Don't define
SUCCESS_EXIT_CODE.
* config/vax/xm-vms.h: Don't include tm.h.
* config/xm-lynx.h, config/avr/xm-avr.h,
config/fr30/xm-fr30.h, config/pdp11/xm-pdp11.h,
Delete; made empty by above changes.
* config/i386/xm-lynx.h, config/m68k/xm-lynx.h,
config/rs6000/xm-lynx.h, config/sparc/xm-lynx.h:
Don't include config/xm-lynx.h or tm.h.
* config/xm-gnu.h: Don't include fcntl.h.
* config/sparc/xm-lynx.h: Don't include sys/types.h and
sys/wait.h.
* config/clipper/xm-clix.h, config/vax/xm-vax.h: Don't define isinf.
From-SVN: r40199
2001-03-03 04:32:55 +01:00
|
|
|
|
# so that *config.h will be found in the compilation
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# 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)" \
|
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)" \
|
2001-01-20 00:37:07 +01:00
|
|
|
|
"MAKEOVERRIDES=" \
|
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
|
|
|
|
"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)" \
|
2001-11-08 23:48:13 +01:00
|
|
|
|
"build_tooldir=$(build_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.
|
2001-09-22 15:59:01 +02:00
|
|
|
|
C_AND_OBJC_OBJS = attribs.o 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
|
|
|
|
|
2001-10-29 15:34:18 +01:00
|
|
|
|
OBJS = alias.o bb-reorder.o bitmap.o builtins.o caller-save.o calls.o \
|
|
|
|
|
cfg.o cfganal.o cfgbuild.o cfgcleanup.o cfgloop.o cfgrtl.o combine.o \
|
|
|
|
|
conflict.o convert.o cse.o cselib.o dbxout.o debug.o dependence.o df.o \
|
|
|
|
|
diagnostic.o doloop.o dominance.o dwarf2asm.o dwarf2out.o dwarfout.o \
|
|
|
|
|
emit-rtl.o except.o explow.o expmed.o expr.o final.o flow.o \
|
|
|
|
|
fold-const.o function.o gcse.o genrtl.o ggc-common.o global.o graph.o \
|
|
|
|
|
haifa-sched.o hash.o hashtable.o ifcvt.o insn-attrtab.o insn-emit.o \
|
|
|
|
|
insn-extract.o insn-opinit.o insn-output.o insn-peep.o insn-recog.o \
|
|
|
|
|
integrate.o intl.o jump.o langhooks.o lcm.o lists.o local-alloc.o \
|
|
|
|
|
loop.o mbchar.o optabs.o params.o predict.o print-rtl.o print-tree.o \
|
|
|
|
|
profile.o real.o recog.o reg-stack.o regclass.o regmove.o regrename.o \
|
|
|
|
|
reload.o reload1.o reorg.o resource.o rtl.o rtlanal.o rtl-error.o \
|
|
|
|
|
sbitmap.o sched-deps.o sched-ebb.o sched-rgn.o sched-vis.o sdbout.o \
|
|
|
|
|
sibcall.o simplify-rtx.o splay-tree.o ssa.o ssa-ccp.o ssa-dce.o stmt.o \
|
|
|
|
|
stor-layout.o stringpool.o timevar.o toplev.o tree.o tree-inline.o \
|
2001-11-05 16:38:01 +01:00
|
|
|
|
unroll.o varasm.o varray.o version.o xcoffout.o cfglayout.o \
|
Makefile.in (OBJS): Add dwarf2asm.o.
* Makefile.in (OBJS): Add dwarf2asm.o.
* dwarf2asm.c, dwarf2asm.h: New files.
* dwarf2out.c (*): Use them.
(size_of_uleb128, size_of_sleb128): Remove.
(output_uleb128, output_sleb128): Remove.
(UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Remove.
(UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Remove.
(UNALIGNED_OFFSET_ASM_OP, UNALIGNED_WORD_ASM_OP): Remove.
(FDE_LABEL, LINE_NUMBER_BEGIN_LABEL, LINE_NUMBER_END_LABEL): New.
(ASM_OUTPUT_DWARF_DATA1, ASM_OUTPUT_DWARF_DELTA1): Remove.
(ASM_OUTPUT_DWARF_DATA2, ASM_OUTPUT_DWARF_DELTA2): Remove.
(ASM_OUTPUT_DWARF_DATA4, ASM_OUTPUT_DWARF_DELTA4): Remove.
(ASM_OUTPUT_DWARF_DATA, ASM_OUTPUT_DWARF_DELTA): Remove.
(ASM_OUTPUT_DWARF_ADDR, ASM_OUTPUT_DWARF_ADDR_DATA): Remove.
(ASM_OUTPUT_DWARF_ADDR_DELTA, ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
(ASM_OUTPUT_DWARF_OFFSET4, ASM_OUTPUT_DWARF_OFFSET): Remove.
(ASM_OUTPUT_DWARF_CONST_DOUBLE): Remove.
(ASM_OUTPUT_DWARF_NSTRING, ASM_OUTPUT_DWARF_STRING): Remove.
(dwarf2out_frame_debug): Remove unused variables.
(output_loc_operands): Don't abort on 8 byte constants if
host integers are wide enough.
(output_symbolic_ref): Remove.
(size_of_die): Don't assume 4 byte host integers.
(output_line_info): Use ASM_GENERATE_INTERNAL_LABEL for begin
and end labels.
(add_const_value_attribute) [CONST_INT]: Verify we're not doing
something stupid with HOST_WIDE_INT to long truncation.
[CONST_DOUBLE]: Likewise.
* config/arm/conix-elf.h (UNALIGNED_WORD_ASM_OP): Remove.
(ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
* config/arm/unknown-elf.h: Likewise.
* config/rs6000/aix.h (UNALIGNED_SHORT_ASM_OP): New.
(UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): New.
(ASM_OUTPUT_DWARF_ADDR_VAR, ASM_OUTPUT_DWARF_DELTA_VAR): Remove.
(ASM_OUTPUT_DWARF_DELTA2, ASM_OUTPUT_DWARF_DELTA4): Remove.
(ASM_OUTPUT_DWARF_DELTA, ASM_OUTPUT_DWARF_ADDR_DELTA): Remove.
(ASM_OUTPUT_DWARF_ADDR, ASM_OUTPUT_DWARF_DATA4): Remove.
(ASM_OUTPUT_DWARF_DATA2, ASM_OUTPUT_DWARF_OFFSET4): Remove.
(ASM_OUTPUT_DWARF_OFFSET): Remove.
* config/rs6000/sysv4.h (ASM_OUTPUT_DWARF_ADDR): Remove.
* config/sparc/sp64-elf.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
(UNALIGNED_LONGLONG_ASM_OP, ASM_OUTPUT_DWARF_ADDR): Remove.
(ASM_OUTPUT_DWARF_ADDR_CONST, ASM_OUTPUT_DWARF_REF): Remove.
From-SVN: r40197
2001-03-03 03:17:07 +01:00
|
|
|
|
$(GGC) $(out_object_file) $(EXTRA_OBJS)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
2001-03-05 13:17:45 +01:00
|
|
|
|
BACKEND = main.o libbackend.a
|
[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
|
|
|
|
|
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) \
|
Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
* Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
(CONFIG_H, TCONFIG_H, TM_P_H): Update.
(GEN, STAGESTUFF): Add new files.
(insn-constants.h, s-constants, tm-preds.h, s-preds,
genconstants, genpreds, genconstants.o, genpreds.o): New rules.
(hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
* mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
as well as insn-codes.h and insn-flags.h in config.h; and no
extra headers in tconfig.h and hconfig.h.
* gencodes.c: Eliminate code to generate predicate declarations
or #defines for md-file constants.
* genconstants.c, genpreds.c: New files.
* i386.md: Re-order guard expressions such that TARGET_64BIT
comes first, when this permits better optimization. Add
TARGET_64BIT to more x86-64 patterns. Add comment explaining
why this is desirable.
From-SVN: r44743
2001-08-09 19:11:00 +02:00
|
|
|
|
gencheck$(build_exeext) genpreds$(build_exeext) genconstants$(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 \
|
Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
* Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
(CONFIG_H, TCONFIG_H, TM_P_H): Update.
(GEN, STAGESTUFF): Add new files.
(insn-constants.h, s-constants, tm-preds.h, s-preds,
genconstants, genpreds, genconstants.o, genpreds.o): New rules.
(hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
* mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
as well as insn-codes.h and insn-flags.h in config.h; and no
extra headers in tconfig.h and hconfig.h.
* gencodes.c: Eliminate code to generate predicate declarations
or #defines for md-file constants.
* genconstants.c, genpreds.c: New files.
* i386.md: Re-order guard expressions such that TARGET_64BIT
comes first, when this permits better optimization. Add
TARGET_64BIT to more x86-64 patterns. Add comment explaining
why this is desirable.
From-SVN: r44743
2001-08-09 19:11:00 +02:00
|
|
|
|
insn-attr.h insn-attrtab.c insn-opinit.c insn-constants.h tm-preds.h \
|
|
|
|
|
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 \
|
Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
* Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
(CONFIG_H, TCONFIG_H, TM_P_H): Update.
(GEN, STAGESTUFF): Add new files.
(insn-constants.h, s-constants, tm-preds.h, s-preds,
genconstants, genpreds, genconstants.o, genpreds.o): New rules.
(hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
* mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
as well as insn-codes.h and insn-flags.h in config.h; and no
extra headers in tconfig.h and hconfig.h.
* gencodes.c: Eliminate code to generate predicate declarations
or #defines for md-file constants.
* genconstants.c, genpreds.c: New files.
* i386.md: Re-order guard expressions such that TARGET_64BIT
comes first, when this permits better optimization. Add
TARGET_64BIT to more x86-64 patterns. Add comment explaining
why this is desirable.
From-SVN: r44743
2001-08-09 19:11:00 +02:00
|
|
|
|
s-attr s-attrtab s-opinit s-preds s-constants 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) \
|
Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
* Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
(CONFIG_H, TCONFIG_H, TM_P_H): Update.
(GEN, STAGESTUFF): Add new files.
(insn-constants.h, s-constants, tm-preds.h, s-preds,
genconstants, genpreds, genconstants.o, genpreds.o): New rules.
(hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
* mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
as well as insn-codes.h and insn-flags.h in config.h; and no
extra headers in tconfig.h and hconfig.h.
* gencodes.c: Eliminate code to generate predicate declarations
or #defines for md-file constants.
* genconstants.c, genpreds.c: New files.
* i386.md: Re-order guard expressions such that TARGET_64BIT
comes first, when this permits better optimization. Add
TARGET_64BIT to more x86-64 patterns. Add comment explaining
why this is desirable.
From-SVN: r44743
2001-08-09 19:11:00 +02:00
|
|
|
|
gencheck$(build_exeext) genpreds$(build_exeext) genconstants$(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
|
|
|
|
|
|
|
|
|
# Library members defined in libgcc2.c.
|
2001-07-06 16:41:52 +02:00
|
|
|
|
LIB2FUNCS = _muldi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _clz \
|
|
|
|
|
_cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi \
|
|
|
|
|
_fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi \
|
|
|
|
|
_fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi \
|
|
|
|
|
_floatditf \
|
2001-06-13 16:26:03 +02:00
|
|
|
|
_clear_cache _trampoline __main _exit \
|
2000-10-18 23:33:41 +02:00
|
|
|
|
_absvsi2 _absvdi2 _addvsi3 _addvdi3 _subvsi3 _subvdi3 \
|
2001-07-06 16:41:52 +02:00
|
|
|
|
_mulvsi3 _mulvdi3 _negvsi2 _negvdi2 _ctors
|
1998-06-09 12:34:59 +02:00
|
|
|
|
|
2001-05-14 04:46:22 +02:00
|
|
|
|
# Defined in libgcc2.c, included only in the static library.
|
2001-08-06 18:57:53 +02:00
|
|
|
|
LIB2FUNCS_ST = _eprintf _bb __gcc_bcmp
|
2001-05-14 04:46:22 +02: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
|
|
|
|
|
2001-07-06 16:41:52 +02:00
|
|
|
|
# These might cause a divide overflow trap and so are compiled with
|
|
|
|
|
# unwinder info.
|
|
|
|
|
LIB2_DIVMOD_FUNCS = _divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4
|
|
|
|
|
|
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.
|
Makefile.in (INTL_TARGETS, POSUB): Delete all references.
* Makefile.in (INTL_TARGETS, POSUB): Delete all references.
(INTL_SUBDIRS): Just intl.
(.SUFFIXES): Add .gmo .po .pox.
(native): Also depend on build-@POSUB@.
(intl.all, intl.install): Depend on config.h and things it includes.
(po-generated): New target; depend on c-parse.c and tradcif.c.
(install-normal): Also depend on install-@POSUB@.
(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
(build-, install-, build-po, update-po, install-po,
.po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
* aclocal.m4: Prefix each entry in CATALOGS with "po/"
* configure.in: Don't munge XGETTEXT. Don't generate
po/Makefile.in.
* configure: Regenerate.
* exgettext: Delete.
* config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
* cp/Make-lang.in, java/Make-lang.in, objc/Make-lang.in: Replace
$(INTL_TARGETS) with po-generated.
po:
* EXCLUDES: New file.
* exgettext: New helper script; completely rewritten.
* Makefile.in.in, POTFILES.in: Delete.
From-SVN: r46680
2001-10-31 18:40:07 +01:00
|
|
|
|
# For i18n support, we also need .gmo, .po, .pox.
|
1998-05-06 21:03:14 +02:00
|
|
|
|
.SUFFIXES:
|
Makefile.in (INTL_TARGETS, POSUB): Delete all references.
* Makefile.in (INTL_TARGETS, POSUB): Delete all references.
(INTL_SUBDIRS): Just intl.
(.SUFFIXES): Add .gmo .po .pox.
(native): Also depend on build-@POSUB@.
(intl.all, intl.install): Depend on config.h and things it includes.
(po-generated): New target; depend on c-parse.c and tradcif.c.
(install-normal): Also depend on install-@POSUB@.
(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
(build-, install-, build-po, update-po, install-po,
.po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
* aclocal.m4: Prefix each entry in CATALOGS with "po/"
* configure.in: Don't munge XGETTEXT. Don't generate
po/Makefile.in.
* configure: Regenerate.
* exgettext: Delete.
* config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
* cp/Make-lang.in, java/Make-lang.in, objc/Make-lang.in: Replace
$(INTL_TARGETS) with po-generated.
po:
* EXCLUDES: New file.
* exgettext: New helper script; completely rewritten.
* Makefile.in.in, POTFILES.in: Delete.
From-SVN: r46680
2001-10-31 18:40:07 +01:00
|
|
|
|
.SUFFIXES: .c .o .po .pox .gmo
|
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
|
|
|
|
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
config.h: cs-config.h ; @true
|
|
|
|
|
hconfig.h: cs-hconfig.h ; @true
|
|
|
|
|
tconfig.h: cs-tconfig.h ; @true
|
|
|
|
|
tm_p.h: cs-tm_p.h ; @true
|
|
|
|
|
|
|
|
|
|
cs-config.h: Makefile
|
|
|
|
|
HEADERS="$(host_xm_file)" DEFINES="$(host_xm_defines)" \
|
|
|
|
|
TARGET_CPU_DEFAULT="$(target_cpu_default)" \
|
|
|
|
|
$(SHELL) $(srcdir)/mkconfig.sh config.h
|
|
|
|
|
|
|
|
|
|
cs-hconfig.h: Makefile
|
|
|
|
|
HEADERS="$(build_xm_file)" DEFINES="$(build_xm_defines)" \
|
|
|
|
|
TARGET_CPU_DEFAULT="$(target_cpu_default)" \
|
|
|
|
|
$(SHELL) $(srcdir)/mkconfig.sh hconfig.h
|
|
|
|
|
|
2001-03-29 00:20:31 +02:00
|
|
|
|
cs-tconfig.h: Makefile $(CONFIG_H) except.h
|
2001-03-11 22:19:11 +01:00
|
|
|
|
HEADERS="$(xm_file)" DEFINES="$(xm_defines)" \
|
|
|
|
|
TARGET_CPU_DEFAULT="" \
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
$(SHELL) $(srcdir)/mkconfig.sh tconfig.h
|
2001-03-28 07:24:24 +02:00
|
|
|
|
# ??? Need extra help to get this definition copied to where libgcc can
|
|
|
|
|
# see it. It shouldn't matter which compiler we use to get there.
|
|
|
|
|
echo '#include "config.h"' > conftest.c
|
|
|
|
|
echo '#include "except.h"' >> conftest.c
|
|
|
|
|
echo 'xyzzy USING_SJLJ_EXCEPTIONS' >> conftest.c
|
2001-03-29 00:20:31 +02:00
|
|
|
|
$(HOST_CC) -E conftest.c $(ALL_CFLAGS) $(INCLUDES) > conftest.out
|
2001-03-28 07:24:24 +02:00
|
|
|
|
sed -e 's/xyzzy/#define USING_SJLJ_EXCEPTIONS/' -e '/#define/p' \
|
|
|
|
|
-e d conftest.out >> tconfig.h
|
|
|
|
|
rm conftest.*
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
|
|
|
|
|
cs-tm_p.h: Makefile
|
|
|
|
|
HEADERS="$(tm_p_file)" DEFINES="" TARGET_CPU_DEFAULT="" \
|
|
|
|
|
$(SHELL) $(srcdir)/mkconfig.sh tm_p.h
|
|
|
|
|
|
2001-08-02 19:36:33 +02:00
|
|
|
|
# Don't automatically run autoconf, since configure.in might be accidentally
|
|
|
|
|
# newer than configure. Also, this writes into the source directory which
|
|
|
|
|
# might be on a read-only file system. If configured for maintainer mode
|
|
|
|
|
# then do allow autoconf to be run.
|
|
|
|
|
|
|
|
|
|
$(srcdir)/configure: @MAINT@ $(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
|
2001-05-16 21:05:50 +02:00
|
|
|
|
CONFIG_FILES=gccbug CONFIG_HEADERS= ./config.status
|
2000-04-05 00:54:44 +02:00
|
|
|
|
|
2000-05-03 20:21:49 +02:00
|
|
|
|
mklibgcc: $(srcdir)/mklibgcc.in
|
2001-05-16 21:05:50 +02:00
|
|
|
|
CONFIG_FILES=mklibgcc CONFIG_HEADERS= ./config.status
|
2000-05-03 20:21:49 +02:00
|
|
|
|
|
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.
|
2001-08-02 19:36:33 +02:00
|
|
|
|
|
|
|
|
|
# Don't run autoheader automatically either.
|
|
|
|
|
# Only run it if maintainer mode is enabled.
|
|
|
|
|
@MAINT@ $(srcdir)/config.in: $(srcdir)/cstamp-h.in
|
|
|
|
|
@MAINT@ $(srcdir)/cstamp-h.in: $(srcdir)/configure.in $(srcdir)/acconfig.h
|
|
|
|
|
@MAINT@ (cd $(srcdir) && autoheader)
|
|
|
|
|
@MAINT@ @rm -f $(srcdir)/cstamp-h.in
|
|
|
|
|
@MAINT@ 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 \
|
i * libgcc1-test.c, libgcc1.c, config/i386/perform.h: Delete file.
* testsuite/gcc.dg/complete-port.c: New (revised version of
libgcc1-test.c)
* po/POTFILES.in: Remove libgcc1-test.c and libgcc1.c.
* Makefile.in: Delete variables: OLDCC, CCLIBFLAGS, OLDAR,
OLDAR_FLAGS, LIBGCC1, LIBGCC1_TEST, CROSS_LIBGCC1,
LIB1FUNCS, and LIB1FUNCS_EXTRA. Delete rules: libgcc1-test,
libgcc1-test.o. Clarify commentary now that libgcc1 no longer exists.
* cross-make: Don't set LIBGCC1.
* mklibgcc.in: Delete all code for building from libgcc1.c.
Always honor LIB1ASMFUNCS if set.
* crtstuff.c, floatlib.c, longlong.h, config/fp-bit.c,
config/arc/lib1funcs.asm, config/arm/lib1funcs.asm,
config/d30v/libgcc1.asm, config/fr30/lib1funcs.asm,
config/h8300/lib1funcs.asm, config/i386/cygwin.asm,
config/i386/uwin.asm, config/m68hc11/larith.asm,
config/m68k/lb1sf68.asm, config/mcore/lib1.asm,
config/mn10200/lib1funcs.asm, config/sh/lib1funcs.asm,
config/sparc/lb1spc.asm, config/sparc/lb1spl.asm,
config/v850/lib1funcs.asm, config/c4x/libgcc.S:
Delete or update references to libgcc1 in commentary.
* config/t-libc-ok, config/t-linux, config/t-linux-aout,
config/t-netbsd, config/a29k/t-a29kbare, config/a29k/t-vx29k,
config/alpha/t-interix, config/alpha/t-osf, config/alpha/t-vms,
config/arc/t-arc, config/arm/t-arm-aout, config/arm/t-arm-coff,
config/arm/t-arm-elf, config/arm/t-linux, config/arm/t-pe,
config/arm/t-semi, config/arm/t-strongarm-coff,
config/arm/t-strongarm-elf, config/arm/t-strongarm-pe,
config/arm/t-xscale-coff, config/arm/t-xscale-elf, config/avr/t-avr,
config/c4x/t-c4x, config/d30v/t-d30v, config/fr30/t-fr30,
config/h8300/t-h8300, config/i386/t-beos, config/i386/t-cygwin,
config/i386/t-i386elf, config/i386/t-interix, config/i386/t-netware,
config/i386/t-next, config/i386/t-rtems-i386, config/i386/t-sol2,
config/i960/t-960bare, config/i960/t-vxworks960, config/ia64/t-ia64,
config/m32r/t-m32r, config/m68hc11/t-m68hc11-gas, config/m68k/t-lynx,
config/m68k/t-m68kbare, config/m68k/t-m68kelf,
config/m68k/t-mot3300-gald, config/m68k/t-mot3300-gas,
config/m68k/t-next, config/m68k/t-vxworks68, config/m88k/t-bug,
config/m88k/t-dgux, config/m88k/t-dgux-gas, config/m88k/t-dguxbcs,
config/m88k/t-luna, config/m88k/t-luna-gas, config/m88k/t-m88k,
config/m88k/t-m88k-gas, config/m88k/t-sysv4, config/mcore/t-mcore,
config/mcore/t-mcore-pe, config/mips/t-bsd, config/mips/t-bsd-gas,
config/mips/t-cross64, config/mips/t-ecoff, config/mips/t-elf,
config/mips/t-iris6, config/mips/t-r3900, config/mips/t-svr3,
config/mips/t-svr3-gas, config/mips/t-svr4, config/mips/t-svr4-gas,
config/mips/t-ultrix, config/mn10200/t-mn10200,
config/mn10300/t-mn10300, config/pa/t-linux, config/pa/t-linux64,
config/pa/t-pa, config/pa/t-pa64, config/pa/t-pro,
config/pdp11/t-pdp11, config/pj/t-pj, config/rs6000/t-aix43,
config/rs6000/t-beos, config/rs6000/t-darwin, config/rs6000/t-newas,
config/rs6000/t-ppccomm, config/rs6000/t-rs6000, config/sh/t-linux,
config/sh/t-sh, config/sparc/t-chorus-elf, config/sparc/t-elf,
config/sparc/t-sol2, config/sparc/t-sp86x, config/sparc/t-sparcbare,
config/sparc/t-sparclite, config/sparc/t-splet,
config/sparc/t-sunos41, config/sparc/t-vxsparc,
config/sparc/t-vxsparc64, config/v850/t-v850:
Don't set any of LIBGCC1, CROSS_LIBGCC1, or LIBGCC1_TEST.
* config/alpha/alpha.h, config/i386/i386.h, config/i860/i860.h:
Don't set FLOAT_VALUE_TYPE, FLOAT_ARG_TYPE, INTIFY, or FLOATIFY.
* config/d30v/d30v.h: Don't mention LIBGCC_NEEDS_DOUBLE,
FLOAT_VALUE_TYPE, FLOAT_ARG_TYPE, FLOATIFY, INTIFY,
nongcc_SI_type, nongcc_word_type, or perform_*
* config/i860/fx2800: Don't define perform_umodsi3 or perform_modsi3.
* config/i386/386bsd.h, config/i386/beos-elf.h,
config/i386/linux-aout.h, config/i386/linux-oldld.h,
config/i386/linux.h, config/i386/mach.h, config/i386/netbsd.h,
config/i386/openbsd.h, config/i386/osfrose.h, config/i386/rtemself.h:
Don't include i386/perform.h.
* config/a29k/t-a29k, config/arm/t-semiaof, config/i370/t-i370,
config/i370/t-linux, config/i370/t-mvs, config/i370/t-oe,
config/i386/t-djgpp, config/i386/t-i386bare, config/i386/t-vsta,
config/ia64/t-hpux, config/mips/t-mips, config/mips/t-mips-gas,
config/mips/t-osfrose, config/sparc/t-sp64, config/sparc/t-sunos40,
config/vax/t-openbsd, config/vax/t-vax: Delete.
* config.gcc: Remove references to deleted files.
(arm-semi-aof): Use arm/t-semi for tmake_file.
* gcc.texi, install.texi, invoke.texi, tm.texi:
Delete or rewrite text which is no longer relevant now that
libgcc1 no longer exists.
* config/t-openbsd, config/alpha/t-interix, config/i386/t-interix:
No need to set INSTALL_ASSERT_H. (Missed in previous sweep.)
From-SVN: r42188
2001-05-17 05:16:18 +02:00
|
|
|
|
$(LIBGCC) $(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.
|
Makefile.in (INTL_TARGETS, POSUB): Delete all references.
* Makefile.in (INTL_TARGETS, POSUB): Delete all references.
(INTL_SUBDIRS): Just intl.
(.SUFFIXES): Add .gmo .po .pox.
(native): Also depend on build-@POSUB@.
(intl.all, intl.install): Depend on config.h and things it includes.
(po-generated): New target; depend on c-parse.c and tradcif.c.
(install-normal): Also depend on install-@POSUB@.
(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
(build-, install-, build-po, update-po, install-po,
.po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
* aclocal.m4: Prefix each entry in CATALOGS with "po/"
* configure.in: Don't munge XGETTEXT. Don't generate
po/Makefile.in.
* configure: Regenerate.
* exgettext: Delete.
* config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
* cp/Make-lang.in, java/Make-lang.in, objc/Make-lang.in: Replace
$(INTL_TARGETS) with po-generated.
po:
* EXCLUDES: New file.
* exgettext: New helper script; completely rewritten.
* Makefile.in.in, POTFILES.in: Delete.
From-SVN: r46680
2001-10-31 18:40:07 +01:00
|
|
|
|
native: config.status auto-host.h intl.all build-@POSUB@ $(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
|
|
|
|
|
|
|
|
|
# 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)
|
2001-03-07 20:05:25 +01:00
|
|
|
|
-$(RANLIB) libbackend.a
|
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
|
|
|
|
|
2001-03-28 13:04:51 +02:00
|
|
|
|
LIB2ADD = $(LIB2FUNCS_EXTRA)
|
2001-04-10 01:43:06 +02:00
|
|
|
|
LIB2ADD_ST = $(LIB2FUNCS_STATIC_EXTRA)
|
2000-05-03 20:21:49 +02:00
|
|
|
|
|
2001-04-10 01:43:06 +02:00
|
|
|
|
libgcc.mk: config.status Makefile mklibgcc $(LIB2ADD) $(LIB2ADD_ST) xgcc$(exeext)
|
2000-05-03 20:21:49 +02:00
|
|
|
|
objext='$(objext)' \
|
|
|
|
|
LIB1ASMFUNCS='$(LIB1ASMFUNCS)' \
|
|
|
|
|
LIB2FUNCS='$(LIB2FUNCS)' \
|
2001-05-14 04:46:22 +02:00
|
|
|
|
LIB2FUNCS_ST='$(LIB2FUNCS_ST)' \
|
2000-05-03 20:21:49 +02:00
|
|
|
|
LIB2ADD='$(LIB2ADD)' \
|
2001-04-10 01:43:06 +02:00
|
|
|
|
LIB2ADD_ST='$(LIB2ADD_ST)' \
|
2001-03-28 13:04:51 +02:00
|
|
|
|
LIB2ADDEH='$(LIB2ADDEH)' \
|
|
|
|
|
LIB2ADDEHDEP='$(LIB2ADDEHDEP)' \
|
2000-05-03 20:21:49 +02:00
|
|
|
|
FPBIT='$(FPBIT)' \
|
|
|
|
|
FPBIT_FUNCS='$(FPBIT_FUNCS)' \
|
2001-07-06 16:41:52 +02:00
|
|
|
|
LIB2_DIVMOD_FUNCS='$(LIB2_DIVMOD_FUNCS)' \
|
2000-05-03 20:21:49 +02:00
|
|
|
|
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)' \
|
2001-08-03 11:19:17 +02:00
|
|
|
|
mkinstalldirs='$(SHELL) $(srcdir)/mkinstalldirs' \
|
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) \
|
i * libgcc1-test.c, libgcc1.c, config/i386/perform.h: Delete file.
* testsuite/gcc.dg/complete-port.c: New (revised version of
libgcc1-test.c)
* po/POTFILES.in: Remove libgcc1-test.c and libgcc1.c.
* Makefile.in: Delete variables: OLDCC, CCLIBFLAGS, OLDAR,
OLDAR_FLAGS, LIBGCC1, LIBGCC1_TEST, CROSS_LIBGCC1,
LIB1FUNCS, and LIB1FUNCS_EXTRA. Delete rules: libgcc1-test,
libgcc1-test.o. Clarify commentary now that libgcc1 no longer exists.
* cross-make: Don't set LIBGCC1.
* mklibgcc.in: Delete all code for building from libgcc1.c.
Always honor LIB1ASMFUNCS if set.
* crtstuff.c, floatlib.c, longlong.h, config/fp-bit.c,
config/arc/lib1funcs.asm, config/arm/lib1funcs.asm,
config/d30v/libgcc1.asm, config/fr30/lib1funcs.asm,
config/h8300/lib1funcs.asm, config/i386/cygwin.asm,
config/i386/uwin.asm, config/m68hc11/larith.asm,
config/m68k/lb1sf68.asm, config/mcore/lib1.asm,
config/mn10200/lib1funcs.asm, config/sh/lib1funcs.asm,
config/sparc/lb1spc.asm, config/sparc/lb1spl.asm,
config/v850/lib1funcs.asm, config/c4x/libgcc.S:
Delete or update references to libgcc1 in commentary.
* config/t-libc-ok, config/t-linux, config/t-linux-aout,
config/t-netbsd, config/a29k/t-a29kbare, config/a29k/t-vx29k,
config/alpha/t-interix, config/alpha/t-osf, config/alpha/t-vms,
config/arc/t-arc, config/arm/t-arm-aout, config/arm/t-arm-coff,
config/arm/t-arm-elf, config/arm/t-linux, config/arm/t-pe,
config/arm/t-semi, config/arm/t-strongarm-coff,
config/arm/t-strongarm-elf, config/arm/t-strongarm-pe,
config/arm/t-xscale-coff, config/arm/t-xscale-elf, config/avr/t-avr,
config/c4x/t-c4x, config/d30v/t-d30v, config/fr30/t-fr30,
config/h8300/t-h8300, config/i386/t-beos, config/i386/t-cygwin,
config/i386/t-i386elf, config/i386/t-interix, config/i386/t-netware,
config/i386/t-next, config/i386/t-rtems-i386, config/i386/t-sol2,
config/i960/t-960bare, config/i960/t-vxworks960, config/ia64/t-ia64,
config/m32r/t-m32r, config/m68hc11/t-m68hc11-gas, config/m68k/t-lynx,
config/m68k/t-m68kbare, config/m68k/t-m68kelf,
config/m68k/t-mot3300-gald, config/m68k/t-mot3300-gas,
config/m68k/t-next, config/m68k/t-vxworks68, config/m88k/t-bug,
config/m88k/t-dgux, config/m88k/t-dgux-gas, config/m88k/t-dguxbcs,
config/m88k/t-luna, config/m88k/t-luna-gas, config/m88k/t-m88k,
config/m88k/t-m88k-gas, config/m88k/t-sysv4, config/mcore/t-mcore,
config/mcore/t-mcore-pe, config/mips/t-bsd, config/mips/t-bsd-gas,
config/mips/t-cross64, config/mips/t-ecoff, config/mips/t-elf,
config/mips/t-iris6, config/mips/t-r3900, config/mips/t-svr3,
config/mips/t-svr3-gas, config/mips/t-svr4, config/mips/t-svr4-gas,
config/mips/t-ultrix, config/mn10200/t-mn10200,
config/mn10300/t-mn10300, config/pa/t-linux, config/pa/t-linux64,
config/pa/t-pa, config/pa/t-pa64, config/pa/t-pro,
config/pdp11/t-pdp11, config/pj/t-pj, config/rs6000/t-aix43,
config/rs6000/t-beos, config/rs6000/t-darwin, config/rs6000/t-newas,
config/rs6000/t-ppccomm, config/rs6000/t-rs6000, config/sh/t-linux,
config/sh/t-sh, config/sparc/t-chorus-elf, config/sparc/t-elf,
config/sparc/t-sol2, config/sparc/t-sp86x, config/sparc/t-sparcbare,
config/sparc/t-sparclite, config/sparc/t-splet,
config/sparc/t-sunos41, config/sparc/t-vxsparc,
config/sparc/t-vxsparc64, config/v850/t-v850:
Don't set any of LIBGCC1, CROSS_LIBGCC1, or LIBGCC1_TEST.
* config/alpha/alpha.h, config/i386/i386.h, config/i860/i860.h:
Don't set FLOAT_VALUE_TYPE, FLOAT_ARG_TYPE, INTIFY, or FLOATIFY.
* config/d30v/d30v.h: Don't mention LIBGCC_NEEDS_DOUBLE,
FLOAT_VALUE_TYPE, FLOAT_ARG_TYPE, FLOATIFY, INTIFY,
nongcc_SI_type, nongcc_word_type, or perform_*
* config/i860/fx2800: Don't define perform_umodsi3 or perform_modsi3.
* config/i386/386bsd.h, config/i386/beos-elf.h,
config/i386/linux-aout.h, config/i386/linux-oldld.h,
config/i386/linux.h, config/i386/mach.h, config/i386/netbsd.h,
config/i386/openbsd.h, config/i386/osfrose.h, config/i386/rtemself.h:
Don't include i386/perform.h.
* config/a29k/t-a29k, config/arm/t-semiaof, config/i370/t-i370,
config/i370/t-linux, config/i370/t-mvs, config/i370/t-oe,
config/i386/t-djgpp, config/i386/t-i386bare, config/i386/t-vsta,
config/ia64/t-hpux, config/mips/t-mips, config/mips/t-mips-gas,
config/mips/t-osfrose, config/sparc/t-sp64, config/sparc/t-sunos40,
config/vax/t-openbsd, config/vax/t-vax: Delete.
* config.gcc: Remove references to deleted files.
(arm-semi-aof): Use arm/t-semi for tmake_file.
* gcc.texi, install.texi, invoke.texi, tm.texi:
Delete or rewrite text which is no longer relevant now that
libgcc1 no longer exists.
* config/t-openbsd, config/alpha/t-interix, config/i386/t-interix:
No need to set INSTALL_ASSERT_H. (Missed in previous sweep.)
From-SVN: r42188
2001-05-17 05:16:18 +02:00
|
|
|
|
libgcc.mk $(srcdir)/libgcc2.c $(TCONFIG_H) \
|
2001-03-28 13:04:51 +02:00
|
|
|
|
$(MACHMODE_H) longlong.h gbl-ctors.h config.status stmp-int-hdrs \
|
2001-04-10 01:43:06 +02:00
|
|
|
|
tsystem.h $(FPBIT) $(DPBIT) $(LIB2ADD) $(LIB2ADD_ST) $(LIB2ADDEH) \
|
2001-05-22 16:16:58 +02:00
|
|
|
|
$(LIB2ADDEHDEP) $(EXTRA_PARTS) $(srcdir)/config/$(LIB1ASMSRC)
|
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
|
|
|
|
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)" \
|
2001-08-10 00:33:35 +02:00
|
|
|
|
INCLUDES="$(INCLUDES)" \
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
CONFIG_H="$(TCONFIG_H)" MACHMODE_H="$(MACHMODE_H)" \
|
2000-05-04 20:13:14 +02:00
|
|
|
|
LIB1ASMSRC='$(LIB1ASMSRC)' \
|
2001-01-20 00:37:07 +01:00
|
|
|
|
MAKEOVERRIDES= \
|
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 \
|
2001-06-01 11:17:41 +02:00
|
|
|
|
"`test @enable_multilib@ != yes || echo $(MULTILIB_OPTIONS)`" \
|
|
|
|
|
"`test @enable_multilib@ != yes || echo $(MULTILIB_DIRNAMES)`" \
|
|
|
|
|
"`test @enable_multilib@ != yes || echo $(MULTILIB_MATCHES)`" \
|
|
|
|
|
"`test @enable_multilib@ != yes || echo $(MULTILIB_EXCEPTIONS)`" \
|
|
|
|
|
"`test @enable_multilib@ != yes || echo $(MULTILIB_EXTRA_OPTS)`" \
|
|
|
|
|
"`test @enable_multilib@ != yes || echo $(MULTILIB_EXCLUSIONS)`" \
|
2001-02-05 10:48:00 +01:00
|
|
|
|
> tmp-mlib.h
|
1999-09-14 09:42:59 +02:00
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-mlib.h multilib.h
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) 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
|
|
|
|
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)" \
|
2001-08-10 00:33:35 +02:00
|
|
|
|
INCLUDES="$(INCLUDES)" \
|
2000-05-03 20:21:49 +02:00
|
|
|
|
CONFIG_H="$(CONFIG_H)" MACHMODE_H="$(MACHMODE_H)" \
|
2000-05-05 01:21:48 +02:00
|
|
|
|
LIB1ASMSRC='$(LIB1ASMSRC)' \
|
2001-01-20 00:37:07 +01:00
|
|
|
|
MAKEOVERRIDES= \
|
2000-05-03 20:21:49 +02:00
|
|
|
|
-f libgcc.mk all
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) 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.
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
$(T)crtbegin.o: crtstuff.c $(GCC_PASSES) $(TCONFIG_H) auto-host.h \
|
2001-03-28 13:04:51 +02:00
|
|
|
|
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
|
|
|
|
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
$(T)crtend.o: crtstuff.c $(GCC_PASSES) $(TCONFIG_H) auto-host.h \
|
2001-03-28 13:04:51 +02:00
|
|
|
|
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.
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
$(T)crtbeginS.o: crtstuff.c $(GCC_PASSES) $(TCONFIG_H) auto-host.h \
|
2001-03-28 13:04:51 +02:00
|
|
|
|
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_BEGIN -DCRTSTUFFS_O \
|
|
|
|
|
-o $(T)crtbeginS$(objext)
|
1995-07-26 14:18:04 +02:00
|
|
|
|
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
$(T)crtendS.o: crtstuff.c $(GCC_PASSES) $(TCONFIG_H) auto-host.h \
|
2001-03-28 13:04:51 +02:00
|
|
|
|
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)
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) 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.
|
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
c-errors.o: c-errors.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(C_TREE_H) flags.h \
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
diagnostic.h $(TM_P_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 \
|
2001-08-04 14:01:59 +02:00
|
|
|
|
$(C_TREE_H) input.h flags.h $(SYSTEM_H) toplev.h output.h $(CPPLIB_H) \
|
2001-06-10 15:48:04 +02:00
|
|
|
|
diagnostic.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
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
c-decl.o : c-decl.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) $(C_TREE_H) \
|
Makefile.in (TARGET_H, [...]): New.
* Makefile.in (TARGET_H, TARGET_DEF_H): New.
(c-decl.o, tree.o, c-typeck.o, $(out_object_file)): Update.
* c-decl.c (duplicate_decls): Use function pointer.
* c-typeck.c (common_type): Similarly.
* tree.c (valid_machine_attribute): Similarly.
(merge_machine_type_attributes): Rename merge_type_attributes.
(merge_machine_decl_attributes): Rename merge_decl_attributes.
(merge_dllimport_decl_attributes): New function.
* tree.h (merge_machine_type_attributes): Rename merge_type_attributes.
(merge_machine_decl_attributes): Rename merge_decl_attributes.
(merge_dllimport_decl_attributes): New prototype.
* target.h: New.
* target-def.h: New.
doc: (Joseph Myers)
* doc/gcc.texi, doc/tm.texi: Update documentation.
cp: Make-lang.in: Update dependencies.
* spew.c: Include target.h.
(duplicate_decls): Call target function.
* decl2.c: include target.h
(import_export_class): Use existence of target function pointer.
* typeck.c: Include target.h.
(qualify_type_recursive): Rename variable. Call target function.
(type_after_usual_arithmetic_conversions): Similarly.
(common_type): Similarly.
config: * 1750a/1750a.c, a29k/29k.c, alpha/alpha.c, arc/arc.c, arm/arm.c,
avr/avr.c, c4x/c4x.c, clipper/clipper.c, convex/convex.c,
d30v/d30v.c, dsp16xx/dsp16xx.c, elxsi/elxsi.c, fr30/fr30.c,
i370/i370.c, i386/i386.c, i860/i860.c, i960/i960.c, ia64/ia64.c,
m32r/m32r.c, m68hc11/m68hc11.c, m68k/m68k.c, m88k/m88k.c,
mips/mips.c, mn10200/mn10200.c, mn10300/mn10300.c, ns32k/ns32k.c,
pa/pa.c, pdp11/pdp11.c, pj/pj.c, romp/romp.c, rs6000/rs6000.c,
sh/sh.c, sparc/sparc.c, v850/v850.c, vax/vax.c, we32k/we32k.c)
: Include target.h and target-def.h. Define target.
* arc/arc-protos.h (arc_valid_machine_decl_attribute): Remove.
* arc/arc.c (arc_valid_machine_decl_attribute): Rename
arc_valid_decl_attribute, make static.
* arc/arc.h (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* arm/arm-protos.h (arm_valid_machine_decl_attribute,
arm_valid_type_attribute_p, arm_pe_valid_machine_decl_attribute,
arm_pe_merge_machine_decl_attributes): Remove.
* arm/arm.c (arm_valid_machine_decl_attribute_p): Rename
arm_valid_decl_attribute_p, make static.
(arm_pe_valid_decl_attribute_p): Move from pe.c.
* arm/pe.c (arm_pe_valid_machine_decl_attribute_p): Move to arm.c.
(arm_pe_merge_machine_decl_attributes): Move to tree.c.
* arm/arm.h (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* arm/coff.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* arm/elf.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): New.
(VALID_MACHINE_TYPE_ATTRIBUTE, VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* avr/avr-protos.h (valid_machine_type_attribute,
valid_machine_decl_attribute): Remove.
* avr/avr.c (valid_machine_type_attribute,
valid_machine_decl_attribute): Rename and make static.
* avr/avr.h (VALID_MACHINE_TYPE_ATTRIBUTE,
VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* c4x/c4x-protos.h (c4x_valid_type_attribute_p): Remove.
* c4x/c4x.c (c4x_valid_type_attribute_p): Make static.
* c4x/c4x.h (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* d30v/d30v.h: Remove obsolete comments.
* h8300/h8300-protos.h (h8300_valid_machine_decl_attribute): Remove.
* h8300/h8300.c (h8300_valid_machine_decl_attribute): Rename, make
static.
* h8300/h8300.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* i386/cygwin.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
(i386_pe_merge_decl_attributes, MERGE_MACHINE_DECL_ATTRIBUTES,
i386_pe_valid_type_attributes_p): Remove.
* i386/i386-protos.h (ix86_valid_decl_attribute_p,
ix86_valid_type_attribute_p): Remove.
* i386/i386.c (ix86_valid_decl_attribute_p): Remove.
(ix86_valid_type_attribute_p): Make static.
* i386/i386.h (VALID_MACHINE_DECL_ATTRIBUTE,
VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* i386/winnt.c (i386_pe_merge_decl_attributes): Move to tree.c.
* ia64/ia64-protos.h (ia64_valid_type_attribute): Remove.
* ia64/ia64.c (ia64_valid_type_attribute): Make static.
* ia64/ia64.h (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* m32r/m32r-protos.h (m32r_valid_machine_decl_attribute): Remove.
* m32r/m32r.c (m32r_valid_decl_attribute): Make static.
* m32r/m32r.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* m68hc11/m68hc11-protos.h (m68hc11_valid_decl_attribute_p,
m68hc11_valid_type_attribute_p): Remove.
* m68hc11/m68hc11.c (m68hc11_valid_decl_attribute_p): Remove.
(m68hc11_valid_type_attribute_p): Make static.
* m68hc11/m68hc11.h (VALID_MACHINE_DECL_ATTRIBUTE,
VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* mcore/mcore-protos.h (mcore_valid_machine_decl_attribute,
mcore_merge_machine_decl_attribute): Remove.
* mcore/mcore.c (mcore_valid_machine_decl_attribute): Rename,
make static.
(mcore_merge_machine_decl_attributes): Move to tree.c.
* mcore/mcore.h (VALID_MACHINE_DECL_ATTRIBUTE,
VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
(TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
* ns32k/ns32k-protos.h (ns32k_valid_decl_attribute_p,
ns32k_valid_type_attribute_p): Remove.
* ns32k/ns32k.c (ns32k_valid_decl_attribute_p): Remove.
(ns32k_valid_type_attribute_p): Make static.
* ns32k/ns32k.h (VALID_MACHINE_DECL_ATTRIBUTE,
VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* rs6000/rs6000-protos.h (rs6000_valid_decl_attribute_p,
rs6000_valid_type_attribute_p): Remove.
* rs6000/rs6000.c (rs6000_valid_decl_attribute_p): Remove.
(rs6000_valid_type_attribute_p): Make static.
* rs6000/rs6000.h (VALID_MACHINE_DECL_ATTRIBUTE,
VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* sh/sh-protos.h (sh_valid_machine_decl_attribute): Remove.
* sh/sh.c (sh_valid_machine_decl_attribute): Rename, make static.
* sh/sh.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* v850/v850-protos.h (v850_valid_machine_decl_attribute): Remove.
* v850/v850.c (v850_valid_machine_decl_attribute): Rename, make static.
* v850/v850.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
From-SVN: r43585
2001-06-26 20:09:27 +02:00
|
|
|
|
$(GGC_H) $(TARGET_H) c-lex.h flags.h function.h output.h $(EXPR_H) \
|
2001-10-20 12:04:00 +02:00
|
|
|
|
debug.h toplev.h intl.h $(TM_P_H) tree-inline.h $(TIMEVAR_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
c-typeck.o : c-typeck.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(C_TREE_H) \
|
Makefile.in (TARGET_H, [...]): New.
* Makefile.in (TARGET_H, TARGET_DEF_H): New.
(c-decl.o, tree.o, c-typeck.o, $(out_object_file)): Update.
* c-decl.c (duplicate_decls): Use function pointer.
* c-typeck.c (common_type): Similarly.
* tree.c (valid_machine_attribute): Similarly.
(merge_machine_type_attributes): Rename merge_type_attributes.
(merge_machine_decl_attributes): Rename merge_decl_attributes.
(merge_dllimport_decl_attributes): New function.
* tree.h (merge_machine_type_attributes): Rename merge_type_attributes.
(merge_machine_decl_attributes): Rename merge_decl_attributes.
(merge_dllimport_decl_attributes): New prototype.
* target.h: New.
* target-def.h: New.
doc: (Joseph Myers)
* doc/gcc.texi, doc/tm.texi: Update documentation.
cp: Make-lang.in: Update dependencies.
* spew.c: Include target.h.
(duplicate_decls): Call target function.
* decl2.c: include target.h
(import_export_class): Use existence of target function pointer.
* typeck.c: Include target.h.
(qualify_type_recursive): Rename variable. Call target function.
(type_after_usual_arithmetic_conversions): Similarly.
(common_type): Similarly.
config: * 1750a/1750a.c, a29k/29k.c, alpha/alpha.c, arc/arc.c, arm/arm.c,
avr/avr.c, c4x/c4x.c, clipper/clipper.c, convex/convex.c,
d30v/d30v.c, dsp16xx/dsp16xx.c, elxsi/elxsi.c, fr30/fr30.c,
i370/i370.c, i386/i386.c, i860/i860.c, i960/i960.c, ia64/ia64.c,
m32r/m32r.c, m68hc11/m68hc11.c, m68k/m68k.c, m88k/m88k.c,
mips/mips.c, mn10200/mn10200.c, mn10300/mn10300.c, ns32k/ns32k.c,
pa/pa.c, pdp11/pdp11.c, pj/pj.c, romp/romp.c, rs6000/rs6000.c,
sh/sh.c, sparc/sparc.c, v850/v850.c, vax/vax.c, we32k/we32k.c)
: Include target.h and target-def.h. Define target.
* arc/arc-protos.h (arc_valid_machine_decl_attribute): Remove.
* arc/arc.c (arc_valid_machine_decl_attribute): Rename
arc_valid_decl_attribute, make static.
* arc/arc.h (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* arm/arm-protos.h (arm_valid_machine_decl_attribute,
arm_valid_type_attribute_p, arm_pe_valid_machine_decl_attribute,
arm_pe_merge_machine_decl_attributes): Remove.
* arm/arm.c (arm_valid_machine_decl_attribute_p): Rename
arm_valid_decl_attribute_p, make static.
(arm_pe_valid_decl_attribute_p): Move from pe.c.
* arm/pe.c (arm_pe_valid_machine_decl_attribute_p): Move to arm.c.
(arm_pe_merge_machine_decl_attributes): Move to tree.c.
* arm/arm.h (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* arm/coff.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* arm/elf.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): New.
(VALID_MACHINE_TYPE_ATTRIBUTE, VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* avr/avr-protos.h (valid_machine_type_attribute,
valid_machine_decl_attribute): Remove.
* avr/avr.c (valid_machine_type_attribute,
valid_machine_decl_attribute): Rename and make static.
* avr/avr.h (VALID_MACHINE_TYPE_ATTRIBUTE,
VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* c4x/c4x-protos.h (c4x_valid_type_attribute_p): Remove.
* c4x/c4x.c (c4x_valid_type_attribute_p): Make static.
* c4x/c4x.h (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* d30v/d30v.h: Remove obsolete comments.
* h8300/h8300-protos.h (h8300_valid_machine_decl_attribute): Remove.
* h8300/h8300.c (h8300_valid_machine_decl_attribute): Rename, make
static.
* h8300/h8300.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* i386/cygwin.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
(i386_pe_merge_decl_attributes, MERGE_MACHINE_DECL_ATTRIBUTES,
i386_pe_valid_type_attributes_p): Remove.
* i386/i386-protos.h (ix86_valid_decl_attribute_p,
ix86_valid_type_attribute_p): Remove.
* i386/i386.c (ix86_valid_decl_attribute_p): Remove.
(ix86_valid_type_attribute_p): Make static.
* i386/i386.h (VALID_MACHINE_DECL_ATTRIBUTE,
VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* i386/winnt.c (i386_pe_merge_decl_attributes): Move to tree.c.
* ia64/ia64-protos.h (ia64_valid_type_attribute): Remove.
* ia64/ia64.c (ia64_valid_type_attribute): Make static.
* ia64/ia64.h (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* m32r/m32r-protos.h (m32r_valid_machine_decl_attribute): Remove.
* m32r/m32r.c (m32r_valid_decl_attribute): Make static.
* m32r/m32r.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* m68hc11/m68hc11-protos.h (m68hc11_valid_decl_attribute_p,
m68hc11_valid_type_attribute_p): Remove.
* m68hc11/m68hc11.c (m68hc11_valid_decl_attribute_p): Remove.
(m68hc11_valid_type_attribute_p): Make static.
* m68hc11/m68hc11.h (VALID_MACHINE_DECL_ATTRIBUTE,
VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* mcore/mcore-protos.h (mcore_valid_machine_decl_attribute,
mcore_merge_machine_decl_attribute): Remove.
* mcore/mcore.c (mcore_valid_machine_decl_attribute): Rename,
make static.
(mcore_merge_machine_decl_attributes): Move to tree.c.
* mcore/mcore.h (VALID_MACHINE_DECL_ATTRIBUTE,
VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
(TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
* ns32k/ns32k-protos.h (ns32k_valid_decl_attribute_p,
ns32k_valid_type_attribute_p): Remove.
* ns32k/ns32k.c (ns32k_valid_decl_attribute_p): Remove.
(ns32k_valid_type_attribute_p): Make static.
* ns32k/ns32k.h (VALID_MACHINE_DECL_ATTRIBUTE,
VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* rs6000/rs6000-protos.h (rs6000_valid_decl_attribute_p,
rs6000_valid_type_attribute_p): Remove.
* rs6000/rs6000.c (rs6000_valid_decl_attribute_p): Remove.
(rs6000_valid_type_attribute_p): Make static.
* rs6000/rs6000.h (VALID_MACHINE_DECL_ATTRIBUTE,
VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* sh/sh-protos.h (sh_valid_machine_decl_attribute): Remove.
* sh/sh.c (sh_valid_machine_decl_attribute): Rename, make static.
* sh/sh.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
* v850/v850-protos.h (v850_valid_machine_decl_attribute): Remove.
* v850/v850.c (v850_valid_machine_decl_attribute): Rename, make static.
* v850/v850.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
From-SVN: r43585
2001-06-26 20:09:27 +02:00
|
|
|
|
$(TARGET_H) flags.h intl.h output.h $(EXPR_H) $(RTL_H) toplev.h $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
c-lang.o : c-lang.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(C_TREE_H) \
|
2001-11-12 01:02:36 +01:00
|
|
|
|
$(GGC_H) c-lex.h toplev.h diagnostic.h output.h function.h $(VARRAY_H) \
|
2001-11-06 22:12:14 +01:00
|
|
|
|
$(RTL_H) $(EXPR_H) tree-inline.h insn-config.h integrate.h langhooks.h \
|
|
|
|
|
langhooks-def.h
|
Makefile.in (c-lex.o): Wrap long lines.
* Makefile.in (c-lex.o): Wrap long lines. Depend on debug.h.
* c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
hooks directly.
* dbxout.c (dbx_debug_hooks): Add new hooks.
(dbxout_start_new_source_file): Rename dbxout_start_source_file,
make static.
(dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
make static.
* dbxout.h (dbxout_start_new_source_file,
dbxout_resume_previous_source_file): Delete.
* debug.c (do_nothing_debug_hooks): Add new hooks.
(debug_nothing_init_finish): Rename debug_nothing_file_charstar.
(debug_nothing_int_charstar, debug_nothing_int): New.
* debug.h (gcc_debug_hooks): New hooks define, undef,
start_source_file and end_source_file.
(debug_nothing_init_finish): Rename debug_nothing_file_charstar.
(debug_nothing_int_charstar, debug_nothing_int): New.
* dwarf2out.c (dwarf2_debug_hooks): Add new hooks.
(dwarf2out_start_source_file, dwarf2out_end_source_file,
dwarf2out_define, dwarf2out_undef): Make static.
* dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
dwarf2out_define, dwarf2out_undef): Remove.
* dwarfout.c (dwarf_debug_hooks): Add new hooks.
(dwarfout_start_source_file, dwarfout_end_source_file,
dwarfout_define, dwarfout_undef): Make static.
(dwarfout_start_source_file_check,
dwarfout_end_source_file_check): New.
(dwarfout_define, dwarfout_finish): Update.
* dwarfout.h (dwarfout_start_new_source_file,
dwarfout_resume_previous_source_file, dwarfout_define,
dwarfout_undef): Remove.
* sdbout.c (sdb_debug_hooks): Add new hooks.
(sdbout_start_new_source_file): Rename sdbout_start_source_file,
make static.
(sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
make static, take an arg.
* sdbout.h (sdbout_start_new_source_file,
sdbout_resume_previous_source_file): Delete.
* toplev.c (debug_start_source_file, debug_end_source_file,
debug_define, debug_undef): Delete.
* toplev.h (debug_start_source_file, debug_end_source_file,
debug_define, debug_undef): Delete.
* java/jcf-parse.c: Include debug.h.
(parse_class_file): Update to use debug hooks directly.
* java/Make-lang.in (jcf-parse.o): Depend on debug.h.
From-SVN: r43952
2001-07-11 22:51:46 +02:00
|
|
|
|
c-lex.o : c-lex.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) c-lex.h \
|
|
|
|
|
debug.h $(C_TREE_H) \
|
2000-09-17 09:38:23 +02:00
|
|
|
|
c-pragma.h input.h intl.h flags.h toplev.h output.h \
|
2001-08-04 14:01:59 +02:00
|
|
|
|
mbchar.h $(CPPLIB_H) $(EXPR_H) $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
c-aux-info.o : c-aux-info.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(C_TREE_H) \
|
2000-09-17 09:38:23 +02:00
|
|
|
|
flags.h toplev.h
|
2001-03-28 00:57:35 +02:00
|
|
|
|
c-convert.o : c-convert.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) flags.h toplev.h
|
|
|
|
|
c-pragma.o: c-pragma.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) function.h \
|
2001-08-31 21:27:12 +02:00
|
|
|
|
c-pragma.h toplev.h output.h $(GGC_H) $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
mbchar.o: mbchar.c $(CONFIG_H) $(SYSTEM_H) mbchar.h
|
|
|
|
|
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
|
2001-03-28 00:57:35 +02:00
|
|
|
|
sbitmap.o: sbitmap.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h hard-reg-set.h \
|
2001-08-04 00:02:55 +02:00
|
|
|
|
$(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
|
config.gcc: Don't default xmake_file to ${cpu_type}/x-${cpu_type}.
2001-05-01 Zack Weinberg <zackw@stanford.edu>
* config.gcc: Don't default xmake_file to ${cpu_type}/x-${cpu_type}.
Remove references to deleted files.
(*-*-openbsd): No need to override xmake_file.
(*-*-sysv4): Treat like *-*-sysv.
* configure.in: Probe for ldopen in various places, and set up
collect2 to be linked with them if found.
Don't dink with Windows registry stuff unless $host_os is a
Win32 os name. Check to see if we need -ladvapi32.
* configure: Regenerate.
* Makefile: Get rid of CLIB and HOST_CLIB.
Substitute in COLLECT2_LIBS and link collect2 against its contents.
* build-make: Get rid of HOST_CLIB.
* config/a29k/x-unix, config/alpha/x-osf, config/i386/x-aix,
config/i386/x-osfrose, config/m68k/x-dpx2, config/mips/x-iris3,
config/mips/x-mips, config/mips/x-osfrose, config/mips/x-sony,
config/mips/x-sysv, config/rs6000/x-aix31, config/rs6000/x-aix41,
config/rs6000/x-rs6000: Delete.
* config/i386/x-cygwin, config/m68k/t-aux, config/mips/x-iris:
Don't set CLIB.
24 x-host fragments remain, 0 x-cpu, 3 top level.
2001-05-01 Zack Weinberg <zackw@stanford.edu>
* aclocal.m4 (gcc_AC_C_CHAR_BIT): Correct test program.
* configure: Regenerate.
From-SVN: r41732
2001-05-01 19:45:05 +02:00
|
|
|
|
COLLECT2_LIBS = @COLLECT2_LIBS@
|
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.
|
2001-08-17 16:41:51 +02:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o T$@ \
|
config.gcc: Don't default xmake_file to ${cpu_type}/x-${cpu_type}.
2001-05-01 Zack Weinberg <zackw@stanford.edu>
* config.gcc: Don't default xmake_file to ${cpu_type}/x-${cpu_type}.
Remove references to deleted files.
(*-*-openbsd): No need to override xmake_file.
(*-*-sysv4): Treat like *-*-sysv.
* configure.in: Probe for ldopen in various places, and set up
collect2 to be linked with them if found.
Don't dink with Windows registry stuff unless $host_os is a
Win32 os name. Check to see if we need -ladvapi32.
* configure: Regenerate.
* Makefile: Get rid of CLIB and HOST_CLIB.
Substitute in COLLECT2_LIBS and link collect2 against its contents.
* build-make: Get rid of HOST_CLIB.
* config/a29k/x-unix, config/alpha/x-osf, config/i386/x-aix,
config/i386/x-osfrose, config/m68k/x-dpx2, config/mips/x-iris3,
config/mips/x-mips, config/mips/x-osfrose, config/mips/x-sony,
config/mips/x-sysv, config/rs6000/x-aix31, config/rs6000/x-aix41,
config/rs6000/x-rs6000: Delete.
* config/i386/x-cygwin, config/m68k/t-aux, config/mips/x-iris:
Don't set CLIB.
24 x-host fragments remain, 0 x-cpu, 3 top level.
2001-05-01 Zack Weinberg <zackw@stanford.edu>
* aclocal.m4 (gcc_AC_C_CHAR_BIT): Correct test program.
* configure: Regenerate.
From-SVN: r41732
2001-05-01 19:45:05 +02:00
|
|
|
|
$(COLLECT2_OBJS) $(LIBS) $(COLLECT2_LIBS)
|
2001-08-17 16:41:51 +02:00
|
|
|
|
mv -f T$@ $@
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
2001-03-28 00:57:35 +02: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) \
|
2001-08-10 00:33:35 +02:00
|
|
|
|
-DTARGET_MACHINE=\"$(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)/collect2.c
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
tlink.o: tlink.c $(DEMANGLE_H) hash.h $(CONFIG_H) $(SYSTEM_H) collect2.h intl.h
|
|
|
|
|
hash.o: hash.c hash.h $(SYSTEM_H) toplev.h $(GCONFIG_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
|
|
|
|
|
2001-03-28 00:57:35 +02: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
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
doprint.o: $(srcdir)/doprint.c $(GCONFIG_H) $(SYSTEM_H)
|
2001-01-21 02:51:42 +01:00
|
|
|
|
$(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) \
|
|
|
|
|
$(srcdir)/doprint.c $(OUTPUT_OPTION)
|
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
strstr.o: $(srcdir)/../libiberty/strstr.c $(GCONFIG_H) $(SYSTEM_H)
|
2001-01-21 02:51:42 +01:00
|
|
|
|
rm -f strstr.c
|
|
|
|
|
$(LN_S) $(srcdir)/../libiberty/strstr.c strstr.c
|
|
|
|
|
$(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) \
|
|
|
|
|
strstr.c $(OUTPUT_OPTION)
|
|
|
|
|
|
2001-03-19 18:36:46 +01:00
|
|
|
|
splay-tree.o: $(srcdir)/../libiberty/splay-tree.c $(GCONFIG_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
|
|
|
|
$(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
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) 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.
|
|
|
|
|
|
2001-03-28 00:57:35 +02: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-10-08 22:54:07 +02:00
|
|
|
|
$(EXPR_H) $(TM_P_H) builtin-types.def builtin-attrs.def $(TARGET_H)
|
2001-01-14 00:30:02 +01:00
|
|
|
|
|
2001-09-22 15:59:01 +02:00
|
|
|
|
# A file used by all variants of C and some other languages.
|
|
|
|
|
|
|
|
|
|
attribs.o : attribs.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(OBSTACK_H) flags.h \
|
|
|
|
|
toplev.h output.h c-pragma.h $(RTL_H) $(GGC_H) $(EXPR_H) $(TM_P_H) \
|
|
|
|
|
builtin-types.def $(TARGET_H)
|
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
c-format.o : c-format.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) \
|
2001-01-14 00:30:02 +01:00
|
|
|
|
$(C_COMMON_H) flags.h toplev.h intl.h diagnostic.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
c-semantics.o : c-semantics.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(C_TREE_H) \
|
2000-09-17 09:38:23 +02:00
|
|
|
|
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)
|
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
c-dump.o: c-dump.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(C_TREE_H) \
|
2000-11-10 05:29:45 +01:00
|
|
|
|
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)/../\" \
|
2001-06-01 11:17:41 +02:00
|
|
|
|
`test "X$${SHLIB_LINK}" = "X" || test "@enable_shared@" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` \
|
|
|
|
|
`test "X$${SHLIB_MULTILIB}" = "X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"`
|
2001-01-07 10:42:49 +01:00
|
|
|
|
|
2001-03-28 00:57:35 +02: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)
|
2001-02-11 22:23:42 +01:00
|
|
|
|
(SHLIB_LINK='$(SHLIB_LINK)' \
|
|
|
|
|
SHLIB_MULTILIB='$(SHLIB_MULTILIB)'; \
|
1996-12-07 17:53:42 +01:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
|
|
|
|
$(DRIVER_DEFINES) \
|
2001-02-11 22:23:42 +01:00
|
|
|
|
-c $(srcdir)/gcc.c)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
gccspec.o: gccspec.c $(CONFIG_H) $(SYSTEM_H) $(GCC_H)
|
2001-06-16 18:33:28 +02:00
|
|
|
|
(SHLIB_LINK='$(SHLIB_LINK)' \
|
|
|
|
|
SHLIB_MULTILIB='$(SHLIB_MULTILIB)'; \
|
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
|
|
|
|
$(DRIVER_DEFINES) \
|
|
|
|
|
-c $(srcdir)/gccspec.c)
|
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
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
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) s-check
|
1998-05-21 21:20:37 +02:00
|
|
|
|
|
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)
|
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
gencheck.o : gencheck.c gencheck.h tree.def $(HCONFIG_H) $(SYSTEM_H) \
|
2001-05-16 21:05:50 +02:00
|
|
|
|
$(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
|
|
|
|
|
2001-04-03 04:05:54 +02:00
|
|
|
|
ggc-common.o: ggc-common.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) \
|
2001-09-20 17:12:54 +02:00
|
|
|
|
flags.h $(GGC_H) varray.h hash.h $(HASHTAB_H) $(TM_P_H)
|
1999-09-11 21:48:37 +02:00
|
|
|
|
|
2001-04-03 04:05:54 +02:00
|
|
|
|
ggc-simple.o: ggc-simple.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
$(GGC_H) varray.h $(TIMEVAR_H) $(TM_P_H)
|
1999-09-04 20:25:41 +02:00
|
|
|
|
|
2001-04-03 04:05:54 +02:00
|
|
|
|
ggc-page.o: ggc-page.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \
|
|
|
|
|
toplev.h $(GGC_H) varray.h $(TIMEVAR_H) $(TM_P_H)
|
1999-09-23 22:00:57 +02:00
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
stringpool.o: stringpool.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(OBSTACK_H) \
|
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
|
|
|
|
flags.h toplev.h
|
|
|
|
|
|
Makefile.in (OBJS, [...]): Update.
* Makefile.in (OBJS, LIBCPP_OBJS, LIBCPP_DEPS,
cpplib.o, cpphash.o, fix-header): Update.
(hashtable.o): New target.
* c-common.h: Include cpplib.h. Define C_RID_CODE and
struct c_common_identifier here.
* c-lang.c (c_init_options): Update. Call set_identifier_size.
* c-lex.c (c_lex): Update.
* c-pragma.h: Update.
* c-tree.h (struct lang_identifier): Contain c_common_identifier.
Delete rid_code.
(C_RID_CODE): Delete.
* cpphash.c: Rewrite to use hashtable.c.
* cpphash.h: Update include guards.
(struct cpp_reader): Remove hashtab.
hash_ob and buffer_ob are no longer pointers. Add hash_table
and our_hashtable.
(HASHSTEP, _cpp_init_hashtable, _cpp_lookup_with_hash): Delete.
(_cpp_cleanup_hashtable): Rename _cpp_destroy_hashtable.
(_cpp_cleanup_stacks): Rename _cpp_init_directives.
* cppinit.c (cpp_create_reader): Update.
* cpplex.c (cpp_ideq, parse_identifier, cpp_output_token): Update.
(cpp_interpret_charconst): Eliminate warning.
* cpplib.c (do_pragma, do_endif, push_conditional,
cpp_push_buffer, cpp_pop_buffer): Update.
(_cpp_init_stacks): Rename cpp_init_directives.
(_cpp_cleanup_stacks): Remove.
* cpplib.h: Update include guards. Include tree-core.h and c-rid.h.
(cpp_hashnode, cpp_token, NODE_LEN, NODE_NAME,
cpp_forall_identifiers, cpp_create_reader): Update.
(C_RID_CODE, cpp_make_node): New.
(c_common_identifier): New identifier node for C front ends.
* cppmain.c (main): Update.
* fix-header.c (read_scan_file): Update.
* flags.h (id_clash_len): Make unsigned.
* ggc.h (ggc_mark_nonnull_tree): New.
* hashtable.c: New.
* hashtable.h: New.
* stringpool.c: Update comments and copyright. Update to use
hashtable.c.
* toplev.c (approx_sqrt): Move to hashtable.c.
(id_clash_len): Make unsigned.
* toplev.h (ident_hash): New.
* tree.c (gcc_obstack_init): Move to hashtable.c.
* tree.h: Include hashtable.h.
(IDENTIFIER_POINTER, IDENTIFIER_LENGTH): Update.
(GCC_IDENT_TO_HT_IDENT, HT_IDENT_TO_GCC_IDENT): New.
(struct tree_identifier): Update.
(make_identifier): New.
cp:
* cp-tree.h (struct lang_identifier, C_RID_YYCODE): Update.
(C_RID_CODE): Remove.
* lex.c (cxx_init_options): Call set_identifier_size. Update.
(init_parse): Don't do it here.
objc:
* objc-act.c (objc_init_options): Call set_identifier_size. Update.
From-SVN: r42334
2001-05-20 08:26:45 +02:00
|
|
|
|
hashtable.o: hashtable.c hashtable.h $(CONFIG_H) $(SYSTEM_H) $(OBSTACK_H)
|
|
|
|
|
|
2001-08-06 23:07:41 +02:00
|
|
|
|
line-map.o: line-map.c line-map.h intl.h $(CONFIG_H) $(SYSTEM_H)
|
2001-08-03 01:03:31 +02:00
|
|
|
|
|
2001-04-03 04:05:54 +02:00
|
|
|
|
ggc-none.o: ggc-none.c $(GCONFIG_H) $(SYSTEM_H) $(GGC_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-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
|
|
|
|
|
2001-03-28 00:57:35 +02: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
|
|
|
|
|
2001-03-28 00:57:35 +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
|
|
|
|
|
2001-10-08 22:54:07 +02:00
|
|
|
|
langhooks.o : langhooks.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) toplev.h \
|
2001-11-06 22:12:14 +01:00
|
|
|
|
tree-inline.h $(RTL_H) insn-config.h integrate.h langhooks.h langhooks-def.h
|
2001-03-28 00:57:35 +02:00
|
|
|
|
tree.o : tree.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) flags.h function.h toplev.h \
|
Makefile.in: Update.
* Makefile.in: Update.
* c-decl.c (print_lang_decl, print_lang_type): Remove.
(print_lang_identifier): Rename c_print_identifier.
* c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
(print_lang_statistics, lang_print_xnode): Remove.
* c-parse.in (set_yydebug): Rename c_set_yydebug.
* c-tree.h (c_set_yydebug, c_print_identifier): New.
* langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
(LANG_HOOKS_INITIALIZER): Update.
* langhooks.h (struct lang_hooks): New members.
(lang_print_tree_hook): New.
* langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
* print-tree.c: Include langhooks.h.
(print_node): Update.
* toplev.c (decode_d_option): Update.
* tree.c: Include langhooks.h.
(dump_tree_statistics): Update.
* tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
ada:
* misc.c (gnat_print_decl, gnat_print_type): Renamed.
(LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
(print_lang_statistics, lang_print_xnode, print_lang_identifier,
set_yydebug): Remove.
cp:
* cp-lang.c (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): Override.
* cp-tree.h (print_class_statistics): Remove.
(cxx_print_statistics, cxx_print_xnode, cxx_print_decl, cxx_print_type,
cxx_print_identifier, cxx_set_yydebug): New.
* lex.c (set_yydebug): Rename c_set_yydebug.
* ptree.c (print_lang_decl, print_lang_type, print_lang_identifier,
lang_print_xnode): Rename.
* tree.c (print_lang_statistics): Rename.
f:
* com.c (ffe_print_identifier): Rename.
(LANG_HOOKS_PRINT_IDENTIFIER): Override.
(lang_print_xnode, print_lang_decl, print_lang_statistics,
print_lang_type, set_yydebug): Remove.
java:
* java-tree.h (java_set_yydebug): New.
* jcf-parse.c (set_yydebug): Rename java_set_yydebug.
* lang.c (LANG_HOOKS_SET_YYDEBUG): Override.
(print_lang_decl, print_lang_type, print_lang_identifier,
print_lang_statistics, lang_print_xnode): Remove.
objc:
* objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
LANG_HOOKS_SET_YYDEBUG): Override.
(lang_print_xnode, print_lang_statistics): Remove.
From-SVN: r46907
2001-11-10 00:30:44 +01:00
|
|
|
|
$(GGC_H) $(HASHTAB_H) $(TARGET_H) output.h $(TM_P_H) langhooks.h
|
Makefile.in (tree-inline.o): Depend on newly-included headers.
* Makefile.in (tree-inline.o): Depend on newly-included headers.
* tree-inline.c: Include headers needed for the functions moved in.
(struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
(remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
(copy_body, initialize_inlined_parameters): Likewise.
(declare_return_variable, inlinable_function_p): Likewise.
(expand_call_inline, expand_calls_inline): Likewise.
(optimize_inline_calls, clone_body): Likewise.
(walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
(copy_tree_r, remap_save_expr): Likewise.
From-SVN: r46023
2001-10-05 05:48:18 +02:00
|
|
|
|
tree-inline.o : tree-inline.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) \
|
|
|
|
|
expr.h flags.h params.h input.h insn-config.h $(INTEGRATE_H) \
|
2001-11-06 22:12:14 +01:00
|
|
|
|
$(VARRAY_H) $(HASHTAB_H) $(SPLAY_TREE_H) toplev.h langhooks.h \
|
Makefile.in (tree-inline.o): Depend on newly-included headers.
* Makefile.in (tree-inline.o): Depend on newly-included headers.
* tree-inline.c: Include headers needed for the functions moved in.
(struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
(remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
(copy_body, initialize_inlined_parameters): Likewise.
(declare_return_variable, inlinable_function_p): Likewise.
(expand_call_inline, expand_calls_inline): Likewise.
(optimize_inline_calls, clone_body): Likewise.
(walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
(copy_tree_r, remap_save_expr): Likewise.
From-SVN: r46023
2001-10-05 05:48:18 +02:00
|
|
|
|
$(C_COMMON_H) tree-inline.h
|
Makefile.in: Update.
* Makefile.in: Update.
* c-decl.c (print_lang_decl, print_lang_type): Remove.
(print_lang_identifier): Rename c_print_identifier.
* c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
(print_lang_statistics, lang_print_xnode): Remove.
* c-parse.in (set_yydebug): Rename c_set_yydebug.
* c-tree.h (c_set_yydebug, c_print_identifier): New.
* langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
(LANG_HOOKS_INITIALIZER): Update.
* langhooks.h (struct lang_hooks): New members.
(lang_print_tree_hook): New.
* langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
* print-tree.c: Include langhooks.h.
(print_node): Update.
* toplev.c (decode_d_option): Update.
* tree.c: Include langhooks.h.
(dump_tree_statistics): Update.
* tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
ada:
* misc.c (gnat_print_decl, gnat_print_type): Renamed.
(LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
(print_lang_statistics, lang_print_xnode, print_lang_identifier,
set_yydebug): Remove.
cp:
* cp-lang.c (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): Override.
* cp-tree.h (print_class_statistics): Remove.
(cxx_print_statistics, cxx_print_xnode, cxx_print_decl, cxx_print_type,
cxx_print_identifier, cxx_set_yydebug): New.
* lex.c (set_yydebug): Rename c_set_yydebug.
* ptree.c (print_lang_decl, print_lang_type, print_lang_identifier,
lang_print_xnode): Rename.
* tree.c (print_lang_statistics): Rename.
f:
* com.c (ffe_print_identifier): Rename.
(LANG_HOOKS_PRINT_IDENTIFIER): Override.
(lang_print_xnode, print_lang_decl, print_lang_statistics,
print_lang_type, set_yydebug): Remove.
java:
* java-tree.h (java_set_yydebug): New.
* jcf-parse.c (set_yydebug): Rename java_set_yydebug.
* lang.c (LANG_HOOKS_SET_YYDEBUG): Override.
(print_lang_decl, print_lang_type, print_lang_identifier,
print_lang_statistics, lang_print_xnode): Remove.
objc:
* objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
LANG_HOOKS_SET_YYDEBUG): Override.
(lang_print_xnode, print_lang_statistics): Remove.
From-SVN: r46907
2001-11-10 00:30:44 +01:00
|
|
|
|
print-tree.o : print-tree.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(GGC_H) \
|
|
|
|
|
langhooks.h
|
2001-03-28 00:57:35 +02:00
|
|
|
|
stor-layout.o : stor-layout.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) flags.h \
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
function.h $(EXPR_H) $(RTL_H) toplev.h $(GGC_H) $(TM_P_H)
|
2001-09-20 17:12:54 +02:00
|
|
|
|
fold-const.o : fold-const.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) flags.h \
|
|
|
|
|
toplev.h $(HASHTAB_H) $(EXPR_H) $(RTL_H) $(GGC_H) $(TM_P_H)
|
2001-08-14 21:22:48 +02:00
|
|
|
|
diagnostic.o : diagnostic.c diagnostic.h real.h diagnostic.def \
|
|
|
|
|
$(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(TM_P_H) flags.h $(GGC_H) \
|
|
|
|
|
input.h toplev.h intl.h
|
2001-03-28 00:57:35 +02:00
|
|
|
|
toplev.o : toplev.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) function.h \
|
2001-07-26 08:56:13 +02:00
|
|
|
|
flags.h xcoffout.h input.h $(INSN_ATTR_H) output.h diagnostic.h \
|
Makefile.in (toplev.o, [...]): Don't depend on dwarfout.h.
* Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
dwarfout.h.
* dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
to conditionally compiled block.
(dbx_debug_hooks, xcoff_debug_hooks): Update.
* dbxout.h (dbxout_function): Remove.
* debug.c (do_nothing_debug_hooks): Update.
* debug.h (struct gcc_debug_hooks): New hooks function_decl,
global_decl, deferred_inline_function.
* dwarf2out.c (dwarf2_debug_hooks): Update.
(dwarf2out_global_decl): New.
* dwarfout.c: Don't include dwarfout.h.
(dwarfout_global_decl, dwarfout_function_decl,
dwarfout_deferred_inline_function): New.
(dwarf_debug_hooks): Update.
* dwarfout.h: Remove.
* final.c: Don't include dwarfout.h.
* sdbout.c (sdbout_global_decl): New.
(sdbout_debug_hooks): Update.
* toplev.c: Don't include dwarfout.h.
(check_global_declarations, rest_of_compilation): Use new debug hooks.
(note_deferral_of_defined_inline_function): Remove.
* toplev.h (note_deferral_of_defined_inline_function): Remove.
* ch/Makefile.in (lex.o): No dependence on dwarfout.h.
* ch/lex.c: Don't include dwarfout.h.
* cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
(semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
* cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
* cp/optimize.c: Include debug.h.
(maybe_clone_body): Use debug hook.
* cp/semantics.c: Include debug.h.
(expand_body): Use debug hook.
* po/POTFILES.in: Remove dwarfout.h.
From-SVN: r44145
2001-07-19 08:22:04 +02:00
|
|
|
|
debug.h insn-config.h intl.h $(RECOG_H) Makefile toplev.h \
|
2000-05-20 00:27:28 +02:00
|
|
|
|
dwarf2out.h sdbout.h dbxout.h $(EXPR_H) hard-reg-set.h $(BASIC_BLOCK_H) \
|
2001-02-14 17:24:45 +01:00
|
|
|
|
graph.h $(LOOP_H) except.h $(REGS_H) $(TIMEVAR_H) $(lang_options_files) \
|
2001-11-06 22:12:14 +01:00
|
|
|
|
ssa.h $(PARAMS_H) $(TM_P_H) reload.h dwarf2asm.h $(TARGET_H) halfpic.h \
|
|
|
|
|
langhooks.h
|
2001-08-10 00:33:35 +02:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
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
|
2001-10-20 13:24:36 +02:00
|
|
|
|
main.o : main.c $(CONFIG_H) $(SYSTEM_H) toplev.h
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
2001-08-14 21:22:48 +02:00
|
|
|
|
rtl-error.o: rtl-error.c system.h $(RTL_H) $(INSN_ATTR_H) insn-config.h \
|
2001-09-17 04:13:44 +02:00
|
|
|
|
input.h toplev.h intl.h diagnostic.h $(CONFIG_H)
|
2001-08-14 21:22:48 +02:00
|
|
|
|
|
2001-06-30 19:23:53 +02:00
|
|
|
|
rtl.o : rtl.c $(GCONFIG_H) $(SYSTEM_H) $(RTL_H) real.h $(GGC_H) errors.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)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
2001-10-17 11:31:36 +02:00
|
|
|
|
print-rtl.o : print-rtl.c $(GCONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) \
|
|
|
|
|
hard-reg-set.h $(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)
|
i386.md: Global update to use new string syntax where it will improve readability.
* config/i386/i386.md: Global update to use new string syntax
where it will improve readability. Warning fixes:
(*truncdfsf2_2): Abort if which_alternative is not 0 or 1.
(*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64,
*adddi_4_rex64, *adddi_5_rex64): Cast 1 to unsigned int.
* read-rtl.c: Syntactic sugar for C embedded in strings in
machine descriptions.
(read_string): Break inner loop into separate function. Takes
an int. Dispatch to read_quoted_string or read_braced_string
as appropriate. Automatically insert a leading star on braced
strings if STAR_IF_BRACED is true.
(read_quoted_string, read_braced_string): New functions.
* doc/rtl.texi, doc/md.texi: Document new syntax. Update
examples to match.
* rtl.c: Split RTL reader (read_rtx, read_skip_spaces,
traverse_md_constants, fatal_with_file_and_line,
fatal_expected_char, read_name, read_string, def_hash,
def_name_eq_p, read_constants, and related data) to its own
file. Weed out now-unnecessary #includes.
* read-rtl.c: New file.
* Makefile.in (HOST_RTL): Add read-rtl.o.
(read-rtl.o): New rule.
(rtl.o, $(HOST_PREFIX_1)rtl.o): Update dependencies.
* doc/gcc.texi (Passes): Talk briefly about the support
library used by genfoo.
* doc/rtl.texi (Reading RTL): read_rtx is not available in the
compiler itself.
From-SVN: r43646
2001-06-28 23:50:09 +02:00
|
|
|
|
|
2001-10-19 21:42:46 +02:00
|
|
|
|
rtlanal.o : rtlanal.c $(CONFIG_H) $(SYSTEM_H) toplev.h $(RTL_H) hard-reg-set.h $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
errors.o : errors.c $(GCONFIG_H) $(SYSTEM_H) errors.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)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
varasm.o : varasm.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) flags.h \
|
2001-07-22 23:33:57 +02:00
|
|
|
|
function.h $(EXPR_H) hard-reg-set.h $(REGS_H) $(OBSTACK_H) \
|
2001-07-26 08:56:13 +02:00
|
|
|
|
output.h c-pragma.h toplev.h xcoffout.h debug.h $(GGC_H) $(TM_P_H) \
|
target.h (gcc_target): Add asm_out.named_section, section_type_flags, have_named_sections.
* target.h (gcc_target): Add asm_out.named_section,
section_type_flags, have_named_sections.
* target-def.h (TARGET_ASM_NAMED_SECTION): New.
(TARGET_HAVE_NAMED_SECTIONS): New.
(TARGET_SECTION_TYPE_FLAGS): New.
* Makefile.in (toplev.o): Depend on TARGET_H.
(varasm.o, dbxout.o): Likewise.
* c-common.c (decl_attributes): Check targetm.have_named_sections
instead of ifdef ASM_OUTPUT_SECTION_NAME.
* dbxout.c (dbxout_function_decl): Likewise.
(dbxout_function_end): Likewise.
* toplev.c (compile_file): Likewise.
* varasm.c (exception_section): Likewise.
* cp/decl2.c (finish_objects): Likewise.
* defaults.h (EH_FRAME_SECTION): Remove.
(EH_FRAME_SECTION_ASM_OP): Remove.
(EH_FRAME_SECTION_NAME): New.
(UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
(UNIQUE_SECTION_P): Remove.
* dwarf2out.c (SECTION_FORMAT): Remove.
(ASM_OUTPUT_SECTION): Remove.
(output_call_frame_info): Use named_section_flags.
(output_comp_unit, dwarf2out_start_source_file): Likewise.
(dwarf2out_end_source_file, dwarf2out_define): Likewise.
(dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
* varasm.c (in_eh_frame, eh_frame_section): Remove.
(named_section_flags): New.
(named_section): Use it and targetm.section_type_flags.
(resolve_unique_section): New.
(assemble_start_function): Use it.
(asm_emit_uninitialised, assemble_variable): Likewise.
(default_section_type_flags): New.
(default_no_named_section, default_elf_asm_named_section): New.
(default_coff_asm_named_section, default_pe_asm_named_section): New.
* output.h: Update varasm.c decls.
(SECTION_*): New flags.
* crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
(__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
* config/elfos.h (UNIQUE_SECTION_P): Remove.
* config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
* config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
* config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
* config/i386/i386-interix.h, config/i386/win32.h: Likewise.
* config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
* config/mips/elf.h, config/mips/elf64.h: Likewise.
* config/mips/iris6gld.h, config/mips/mips.h: Likewise.
* config/pa/pa64-hpux.h,
* config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
(TARGET_ASM_NAMED_SECTION): New.
* config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
* config/alpha/vms.h, config/arm/coff.h: Likewise.
* config/arm/conix-elf.h, config/arm/elf.h: Likewise.
* config/arm/linux-elf.h, config/arm/pe.h: Likewise.
* config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
* config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
* config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
* config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
* config/i386/sco5.h, config/i386/win32.h: Likewise.
* config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
* config/mcore/mcore.h, config/mips/elf.h: Likewise.
* config/mips/elf64.h, config/mips/iris6.h: Likewise.
* config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
* config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
* config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
* config/sparc/sysv4.h: Likewise.
* config/nextstep.h: Error until named sections implemented.
* config/a29k/a29k.c (a29k_asm_named_section): New.
* config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
(vms_section_type_flags, vms_asm_named_section): New.
* config/arm/arm.c (arm_elf_asm_named_section): New.
* config/avr/avr.c (asm_output_section_name): Remove.
* config/avr/avr-protos.h: Update.
* config/c4x/c4x.c (c4x_asm_named_section): New.
* config/h8300/h8300.c (h8300_asm_named_section): New.
* config/i386/i386.c (sco_asm_named_section): New.
* config/i386/winnt.c (SECTION_PE_SHARED): New.
(i386_pe_section_type_flags): New.
(i386_pe_asm_named_section): New.
* config/i386/i386-protos.h: Update.
* config/m68k/m68k.c (m68k_coff_asm_named_section): New.
* config/mcore/mcore.c (mcore_asm_named_section): New.
* config/mips/mips.c (iris6_asm_named_section): New.
* config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
instead of UNIQUE_SECTION_P.
* config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
(xcoff_asm_named_section): New.
* config/sh/sh.c (sh_asm_named_section): New.
* config/sparc/sparc.c (sparc_elf_asm_named_section): New.
* config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
* config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
(EH_FRAME_SECTION_NAME): New.
(EXCEPTION_SECTION): New.
* config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
(DEBUG_*_SECTION): Remove.
* config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
* config/mips/iris6.h (DEBUG_*_SECTION): Remove.
(EH_FRAME_SECTION_ASM_OP): Remove.
* doc/tm.texi (UNIQUE_SECTION_P): Remove.
(ASM_OUTPUT_SECTION_NAME): Remove.
(TARGET_ASM_NAMED_SECTION): New.
(TARGET_HAVE_NAMED_SECTIONS): New.
(TARGET_SECTION_TYPE_FLAGS): New.
(EH_FRAME_SECTION_ASM_OP): Remove.
(EH_FRAME_SECTION_NAME): New.
From-SVN: r44623
2001-08-04 03:31:41 +02:00
|
|
|
|
$(HASHTAB_H) $(TARGET_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
function.o : function.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \
|
2001-08-22 02:33:33 +02:00
|
|
|
|
function.h $(EXPR_H) libfuncs.h $(REGS_H) hard-reg-set.h \
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
insn-config.h $(RECOG_H) output.h toplev.h except.h hash.h $(GGC_H) $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
stmt.o : stmt.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h function.h \
|
2001-08-21 17:51:22 +02:00
|
|
|
|
insn-config.h hard-reg-set.h $(EXPR_H) libfuncs.h except.h \
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
$(LOOP_H) $(RECOG_H) toplev.h output.h varray.h $(GGC_H) $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
except.o : except.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \
|
expr.h: Split out optab- and libfunc-related code to...
* expr.h: Split out optab- and libfunc-related code to...
* optabs.h, libfuncs.h: ... these new headers.
* Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
(OPTABS_H): New.
(various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
dependencies.
* mkconfig.sh: Don't include insn-codes.h from config.h.
* reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
enum insn_code is available. Move reload_in_optab and
reload_out_optab array declarations to optabs.h.
* regmove.c (gen_add3_insn): Move to optabs.c, export from
there, prototype in expr.h.
* gencodes.c: Cleanup: zap global variables, don't use
printf where puts will do, don't bother defining MAX_INSN_CODE
which nothing uses, let CODE_FOR_nothing get its value implicitly.
* genemit.c, genopinit.c: Include optabs.h in generated file.
* genoutput.c: Include insn-codes.h in generated file.
* builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
Include optabs.h.
* builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/m88k/m88k.c, config/sparc/sparc.c:
Include libfuncs.h.
* reload.c: Include expr.h and optabs.h before reload.h.
* config/alpha/alpha.c: Include tree.h before reload.h.
* config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
and reload.h in that order.
* config/sparc/sparc.c: Include debug.h.
* recog.c: Include insn-codes.h.
cp:
* Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
* except.c: Include libfuncs.h.
java:
* Make-lang.in (java/decl.o): Update dependencies.
* decl.c: Include libfuncs.h, don't include toplev.h.
From-SVN: r44858
2001-08-13 17:56:51 +02:00
|
|
|
|
except.h function.h $(EXPR_H) libfuncs.h integrate.h \
|
2001-03-28 13:04:51 +02:00
|
|
|
|
insn-config.h hard-reg-set.h $(BASIC_BLOCK_H) output.h \
|
|
|
|
|
dwarf2asm.h dwarf2out.h toplev.h $(HASHTAB_H) intl.h $(GGC_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
expr.o : expr.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h function.h \
|
expr.h: Split out optab- and libfunc-related code to...
* expr.h: Split out optab- and libfunc-related code to...
* optabs.h, libfuncs.h: ... these new headers.
* Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
(OPTABS_H): New.
(various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
dependencies.
* mkconfig.sh: Don't include insn-codes.h from config.h.
* reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
enum insn_code is available. Move reload_in_optab and
reload_out_optab array declarations to optabs.h.
* regmove.c (gen_add3_insn): Move to optabs.c, export from
there, prototype in expr.h.
* gencodes.c: Cleanup: zap global variables, don't use
printf where puts will do, don't bother defining MAX_INSN_CODE
which nothing uses, let CODE_FOR_nothing get its value implicitly.
* genemit.c, genopinit.c: Include optabs.h in generated file.
* genoutput.c: Include insn-codes.h in generated file.
* builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
Include optabs.h.
* builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/m88k/m88k.c, config/sparc/sparc.c:
Include libfuncs.h.
* reload.c: Include expr.h and optabs.h before reload.h.
* config/alpha/alpha.c: Include tree.h before reload.h.
* config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
and reload.h in that order.
* config/sparc/sparc.c: Include debug.h.
* recog.c: Include insn-codes.h.
cp:
* Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
* except.c: Include libfuncs.h.
java:
* Make-lang.in (java/decl.o): Update dependencies.
* decl.c: Include libfuncs.h, don't include toplev.h.
From-SVN: r44858
2001-08-13 17:56:51 +02:00
|
|
|
|
$(REGS_H) $(EXPR_H) $(OPTABS_H) libfuncs.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 \
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
reload.h $(GGC_H) intl.h $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
builtins.o : builtins.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \
|
expr.h: Split out optab- and libfunc-related code to...
* expr.h: Split out optab- and libfunc-related code to...
* optabs.h, libfuncs.h: ... these new headers.
* Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
(OPTABS_H): New.
(various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
dependencies.
* mkconfig.sh: Don't include insn-codes.h from config.h.
* reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
enum insn_code is available. Move reload_in_optab and
reload_out_optab array declarations to optabs.h.
* regmove.c (gen_add3_insn): Move to optabs.c, export from
there, prototype in expr.h.
* gencodes.c: Cleanup: zap global variables, don't use
printf where puts will do, don't bother defining MAX_INSN_CODE
which nothing uses, let CODE_FOR_nothing get its value implicitly.
* genemit.c, genopinit.c: Include optabs.h in generated file.
* genoutput.c: Include insn-codes.h in generated file.
* builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
Include optabs.h.
* builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/m88k/m88k.c, config/sparc/sparc.c:
Include libfuncs.h.
* reload.c: Include expr.h and optabs.h before reload.h.
* config/alpha/alpha.c: Include tree.h before reload.h.
* config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
and reload.h in that order.
* config/sparc/sparc.c: Include debug.h.
* recog.c: Include insn-codes.h.
cp:
* Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
* except.c: Include libfuncs.h.
java:
* Make-lang.in (java/decl.o): Update dependencies.
* decl.c: Include libfuncs.h, don't include toplev.h.
From-SVN: r44858
2001-08-13 17:56:51 +02:00
|
|
|
|
$(TARGET_H) function.h $(REGS_H) $(EXPR_H) $(OPTABS_H) insn-config.h \
|
1999-07-22 13:04:58 +02:00
|
|
|
|
$(RECOG_H) output.h typeclass.h hard-reg-set.h toplev.h hard-reg-set.h \
|
expr.h: Split out optab- and libfunc-related code to...
* expr.h: Split out optab- and libfunc-related code to...
* optabs.h, libfuncs.h: ... these new headers.
* Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
(OPTABS_H): New.
(various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
dependencies.
* mkconfig.sh: Don't include insn-codes.h from config.h.
* reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
enum insn_code is available. Move reload_in_optab and
reload_out_optab array declarations to optabs.h.
* regmove.c (gen_add3_insn): Move to optabs.c, export from
there, prototype in expr.h.
* gencodes.c: Cleanup: zap global variables, don't use
printf where puts will do, don't bother defining MAX_INSN_CODE
which nothing uses, let CODE_FOR_nothing get its value implicitly.
* genemit.c, genopinit.c: Include optabs.h in generated file.
* genoutput.c: Include insn-codes.h in generated file.
* builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
Include optabs.h.
* builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/m88k/m88k.c, config/sparc/sparc.c:
Include libfuncs.h.
* reload.c: Include expr.h and optabs.h before reload.h.
* config/alpha/alpha.c: Include tree.h before reload.h.
* config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
and reload.h in that order.
* config/sparc/sparc.c: Include debug.h.
* recog.c: Include insn-codes.h.
cp:
* Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
* except.c: Include libfuncs.h.
java:
* Make-lang.in (java/decl.o): Update dependencies.
* decl.c: Include libfuncs.h, don't include toplev.h.
From-SVN: r44858
2001-08-13 17:56:51 +02:00
|
|
|
|
except.h $(TM_P_H) $(PREDICT_H) libfuncs.h
|
2001-03-28 00:57:35 +02:00
|
|
|
|
calls.o : calls.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h $(EXPR_H) \
|
expr.h: Split out optab- and libfunc-related code to...
* expr.h: Split out optab- and libfunc-related code to...
* optabs.h, libfuncs.h: ... these new headers.
* Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
(OPTABS_H): New.
(various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
dependencies.
* mkconfig.sh: Don't include insn-codes.h from config.h.
* reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
enum insn_code is available. Move reload_in_optab and
reload_out_optab array declarations to optabs.h.
* regmove.c (gen_add3_insn): Move to optabs.c, export from
there, prototype in expr.h.
* gencodes.c: Cleanup: zap global variables, don't use
printf where puts will do, don't bother defining MAX_INSN_CODE
which nothing uses, let CODE_FOR_nothing get its value implicitly.
* genemit.c, genopinit.c: Include optabs.h in generated file.
* genoutput.c: Include insn-codes.h in generated file.
* builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
Include optabs.h.
* builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/m88k/m88k.c, config/sparc/sparc.c:
Include libfuncs.h.
* reload.c: Include expr.h and optabs.h before reload.h.
* config/alpha/alpha.c: Include tree.h before reload.h.
* config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
and reload.h in that order.
* config/sparc/sparc.c: Include debug.h.
* recog.c: Include insn-codes.h.
cp:
* Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
* except.c: Include libfuncs.h.
java:
* Make-lang.in (java/decl.o): Update dependencies.
* decl.c: Include libfuncs.h, don't include toplev.h.
From-SVN: r44858
2001-08-13 17:56:51 +02:00
|
|
|
|
libfuncs.h $(REGS_H) toplev.h output.h function.h $(TIMEVAR_H) $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
expmed.o : expmed.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \
|
expr.h: Split out optab- and libfunc-related code to...
* expr.h: Split out optab- and libfunc-related code to...
* optabs.h, libfuncs.h: ... these new headers.
* Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
(OPTABS_H): New.
(various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
dependencies.
* mkconfig.sh: Don't include insn-codes.h from config.h.
* reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
enum insn_code is available. Move reload_in_optab and
reload_out_optab array declarations to optabs.h.
* regmove.c (gen_add3_insn): Move to optabs.c, export from
there, prototype in expr.h.
* gencodes.c: Cleanup: zap global variables, don't use
printf where puts will do, don't bother defining MAX_INSN_CODE
which nothing uses, let CODE_FOR_nothing get its value implicitly.
* genemit.c, genopinit.c: Include optabs.h in generated file.
* genoutput.c: Include insn-codes.h in generated file.
* builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
Include optabs.h.
* builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/m88k/m88k.c, config/sparc/sparc.c:
Include libfuncs.h.
* reload.c: Include expr.h and optabs.h before reload.h.
* config/alpha/alpha.c: Include tree.h before reload.h.
* config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
and reload.h in that order.
* config/sparc/sparc.c: Include debug.h.
* recog.c: Include insn-codes.h.
cp:
* Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
* except.c: Include libfuncs.h.
java:
* Make-lang.in (java/decl.o): Update dependencies.
* decl.c: Include libfuncs.h, don't include toplev.h.
From-SVN: r44858
2001-08-13 17:56:51 +02:00
|
|
|
|
insn-config.h $(EXPR_H) $(OPTABS_H) $(RECOG_H) real.h \
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
toplev.h $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
explow.o : explow.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \
|
expr.h: Split out optab- and libfunc-related code to...
* expr.h: Split out optab- and libfunc-related code to...
* optabs.h, libfuncs.h: ... these new headers.
* Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
(OPTABS_H): New.
(various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
dependencies.
* mkconfig.sh: Don't include insn-codes.h from config.h.
* reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
enum insn_code is available. Move reload_in_optab and
reload_out_optab array declarations to optabs.h.
* regmove.c (gen_add3_insn): Move to optabs.c, export from
there, prototype in expr.h.
* gencodes.c: Cleanup: zap global variables, don't use
printf where puts will do, don't bother defining MAX_INSN_CODE
which nothing uses, let CODE_FOR_nothing get its value implicitly.
* genemit.c, genopinit.c: Include optabs.h in generated file.
* genoutput.c: Include insn-codes.h in generated file.
* builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
Include optabs.h.
* builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/m88k/m88k.c, config/sparc/sparc.c:
Include libfuncs.h.
* reload.c: Include expr.h and optabs.h before reload.h.
* config/alpha/alpha.c: Include tree.h before reload.h.
* config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
and reload.h in that order.
* config/sparc/sparc.c: Include debug.h.
* recog.c: Include insn-codes.h.
cp:
* Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
* except.c: Include libfuncs.h.
java:
* Make-lang.in (java/decl.o): Update dependencies.
* decl.c: Include libfuncs.h, don't include toplev.h.
From-SVN: r44858
2001-08-13 17:56:51 +02:00
|
|
|
|
hard-reg-set.h insn-config.h $(EXPR_H) $(OPTABS_H) $(RECOG_H) \
|
mkconfig.sh: Include insn-flags.h.
* mkconfig.sh: Include insn-flags.h.
* Makefile.in (CONFIG_H): Include insn-flags.h.
(lots of objects): Remove insn-codes.h and insn-flags.h.
* alias.c, bb-reorder.c, calls.c, do-loop.c, flow.c, haifa-sched.c,
integrate.c, jump.c, loop.c, predict.c, profile.c, reg-stack.c,
regmove.c, reorg.c, a29k/a29k.c, alpha/alpha.c, arc/arc.c, arm/arm.c,
avr/avr.c, clipper/clipper.c, convex/convex.c, d30v/d30v.c,
dsp16xx/dsp16xx.c, fr30/fr30.c, h8300/h8300.c, i370/i370.c,
i386/i386.c, i860/i860.c, ia64/ia64.c, m32r/m32r.c, m68hc11/m68hc11.c,
m68k/m68k.c, m88k/m88k.c, mcore/mcore.c, mn10200/mn10200.c,
mn10300/mn10300.c, ns32k/ns32k.c, pa/pa.c, pdp11/pdp11.c,
pj/pj.c, romp/romp.c, rs6000/rs6000.c, sh/sh.c, sparc/sparc.c,
v850/v850.c, vax/vax.c:
Don't include insn-flags.h.
* diagnostic.c, expr.h, reload.c, toplev.c:
Don't include insn-codes.h.
* builtins.c, combine.c, except.c, explow.c, expmed.c, expr.c,
final.c, function.c, optabs.c, recog.c, reload1.c, stmt.c,
c4x/c4x.c, i960/i960.c, mips/mips.c:
Don't include insn-codes.h or insn-flags.h.
* genemit.c, genopinit.c, genoutput.c: Don't include insn-codes.h
or insn-flags.h in the generated code.
* genflags.c (gen_proto): Use "struct rtx_def *" instead of "rtx".
(main): Forward declare struct rtx_def.
From-SVN: r40754
2001-03-22 19:48:52 +01:00
|
|
|
|
toplev.h function.h $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
optabs.o : optabs.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \
|
expr.h: Split out optab- and libfunc-related code to...
* expr.h: Split out optab- and libfunc-related code to...
* optabs.h, libfuncs.h: ... these new headers.
* Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
(OPTABS_H): New.
(various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
dependencies.
* mkconfig.sh: Don't include insn-codes.h from config.h.
* reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
enum insn_code is available. Move reload_in_optab and
reload_out_optab array declarations to optabs.h.
* regmove.c (gen_add3_insn): Move to optabs.c, export from
there, prototype in expr.h.
* gencodes.c: Cleanup: zap global variables, don't use
printf where puts will do, don't bother defining MAX_INSN_CODE
which nothing uses, let CODE_FOR_nothing get its value implicitly.
* genemit.c, genopinit.c: Include optabs.h in generated file.
* genoutput.c: Include insn-codes.h in generated file.
* builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
Include optabs.h.
* builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/m88k/m88k.c, config/sparc/sparc.c:
Include libfuncs.h.
* reload.c: Include expr.h and optabs.h before reload.h.
* config/alpha/alpha.c: Include tree.h before reload.h.
* config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
and reload.h in that order.
* config/sparc/sparc.c: Include debug.h.
* recog.c: Include insn-codes.h.
cp:
* Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
* except.c: Include libfuncs.h.
java:
* Make-lang.in (java/decl.o): Update dependencies.
* decl.c: Include libfuncs.h, don't include toplev.h.
From-SVN: r44858
2001-08-13 17:56:51 +02:00
|
|
|
|
insn-config.h $(EXPR_H) $(OPTABS_H) libfuncs.h $(RECOG_H) reload.h \
|
2001-03-28 13:04:51 +02:00
|
|
|
|
toplev.h $(GGC_H) real.h $(TM_P_H) except.h
|
Makefile.in (toplev.o, [...]): Depend on debug.h, wrap long lines.
* Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
dwarf2out.o): Depend on debug.h, wrap long lines.
* dbxout.c: Include debug.h.
(dbx_debug_hooks): New.
(dbxout_init): Make static, take just 2 args.
(dbxout_finish): Make static.
* dbxout.h (dbxout_init, dbxout_finish): Delete.
* debug.c: New file.
* debug.h: New file.
* dwarf2out.c: Include debug.h.
(dwarf2_debug_hooks): New.
(dwarf2out_init): Make static.
(dwarf2out_finish): Make static, take 2 args.
* dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
* dwarfout.c: Include debug.h.
(dwarf_debug_hooks): New.
(dwarfout_init): Make static.
(dwarfout_finish): Make static, take 2 args.
* dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
* sdbout.c: Include debug.h.
(sdb_debug_hooks): New.
(sdbout_init): Make static, take 2 args.
* sdbout.h (sdbout_init): Delete.
* toplev.c: Include debug.h.
(debug_hooks): New.
(compile_file): Set deubg_hooks based on command line options.
Use the hooks unconditionally rather than conditional compilation.
From-SVN: r43908
2001-07-10 20:44:34 +02:00
|
|
|
|
dbxout.o : dbxout.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) flags.h \
|
2001-11-09 08:14:20 +01:00
|
|
|
|
$(REGS_H) debug.h $(TM_P_H) $(TARGET_H) function.h langhooks.h \
|
Makefile.in (toplev.o, [...]): Depend on debug.h, wrap long lines.
* Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
dwarf2out.o): Depend on debug.h, wrap long lines.
* dbxout.c: Include debug.h.
(dbx_debug_hooks): New.
(dbxout_init): Make static, take just 2 args.
(dbxout_finish): Make static.
* dbxout.h (dbxout_init, dbxout_finish): Delete.
* debug.c: New file.
* debug.h: New file.
* dwarf2out.c: Include debug.h.
(dwarf2_debug_hooks): New.
(dwarf2out_init): Make static.
(dwarf2out_finish): Make static, take 2 args.
* dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
* dwarfout.c: Include debug.h.
(dwarf_debug_hooks): New.
(dwarfout_init): Make static.
(dwarfout_finish): Make static, take 2 args.
* dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
* sdbout.c: Include debug.h.
(sdb_debug_hooks): New.
(sdbout_init): Make static, take 2 args.
* sdbout.h (sdbout_init): Delete.
* toplev.c: Include debug.h.
(debug_hooks): New.
(compile_file): Set deubg_hooks based on command line options.
Use the hooks unconditionally rather than conditional compilation.
From-SVN: r43908
2001-07-10 20:44:34 +02:00
|
|
|
|
insn-config.h reload.h gstab.h xcoffout.h output.h dbxout.h toplev.h
|
|
|
|
|
debug.o : debug.c $(CONFIG_H) $(SYSTEM_H)
|
|
|
|
|
sdbout.o : sdbout.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) flags.h \
|
2001-01-28 02:50:22 +01:00
|
|
|
|
function.h $(EXPR_H) output.h hard-reg-set.h $(REGS_H) real.h \
|
2001-03-21 20:43:36 +01:00
|
|
|
|
insn-config.h $(OBSTACK_H) xcoffout.h c-pragma.h ggc.h \
|
Makefile.in (toplev.o, [...]): Depend on debug.h, wrap long lines.
* Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
dwarf2out.o): Depend on debug.h, wrap long lines.
* dbxout.c: Include debug.h.
(dbx_debug_hooks): New.
(dbxout_init): Make static, take just 2 args.
(dbxout_finish): Make static.
* dbxout.h (dbxout_init, dbxout_finish): Delete.
* debug.c: New file.
* debug.h: New file.
* dwarf2out.c: Include debug.h.
(dwarf2_debug_hooks): New.
(dwarf2out_init): Make static.
(dwarf2out_finish): Make static, take 2 args.
* dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
* dwarfout.c: Include debug.h.
(dwarf_debug_hooks): New.
(dwarfout_init): Make static.
(dwarfout_finish): Make static, take 2 args.
* dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
* sdbout.c: Include debug.h.
(sdb_debug_hooks): New.
(sdbout_init): Make static, take 2 args.
* sdbout.h (sdbout_init): Delete.
* toplev.c: Include debug.h.
(debug_hooks): New.
(compile_file): Set deubg_hooks based on command line options.
Use the hooks unconditionally rather than conditional compilation.
From-SVN: r43908
2001-07-10 20:44:34 +02:00
|
|
|
|
sdbout.h toplev.h $(TM_P_H) except.h debug.h
|
2001-03-28 00:57:35 +02:00
|
|
|
|
dwarfout.o : dwarfout.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) dwarf.h \
|
Makefile.in (toplev.o, [...]): Don't depend on dwarfout.h.
* Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
dwarfout.h.
* dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
to conditionally compiled block.
(dbx_debug_hooks, xcoff_debug_hooks): Update.
* dbxout.h (dbxout_function): Remove.
* debug.c (do_nothing_debug_hooks): Update.
* debug.h (struct gcc_debug_hooks): New hooks function_decl,
global_decl, deferred_inline_function.
* dwarf2out.c (dwarf2_debug_hooks): Update.
(dwarf2out_global_decl): New.
* dwarfout.c: Don't include dwarfout.h.
(dwarfout_global_decl, dwarfout_function_decl,
dwarfout_deferred_inline_function): New.
(dwarf_debug_hooks): Update.
* dwarfout.h: Remove.
* final.c: Don't include dwarfout.h.
* sdbout.c (sdbout_global_decl): New.
(sdbout_debug_hooks): Update.
* toplev.c: Don't include dwarfout.h.
(check_global_declarations, rest_of_compilation): Use new debug hooks.
(note_deferral_of_defined_inline_function): Remove.
* toplev.h (note_deferral_of_defined_inline_function): Remove.
* ch/Makefile.in (lex.o): No dependence on dwarfout.h.
* ch/lex.c: Don't include dwarfout.h.
* cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
(semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
* cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
* cp/optimize.c: Include debug.h.
(maybe_clone_body): Use debug hook.
* cp/semantics.c: Include debug.h.
(expand_body): Use debug hook.
* po/POTFILES.in: Remove dwarfout.h.
From-SVN: r44145
2001-07-19 08:22:04 +02:00
|
|
|
|
flags.h insn-config.h reload.h output.h toplev.h $(TM_P_H) \
|
2001-11-09 08:14:20 +01:00
|
|
|
|
debug.h langhooks.h
|
2001-03-28 00:57:35 +02:00
|
|
|
|
dwarf2out.o : dwarf2out.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) dwarf2.h \
|
Makefile.in (toplev.o, [...]): Depend on debug.h, wrap long lines.
* Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
dwarf2out.o): Depend on debug.h, wrap long lines.
* dbxout.c: Include debug.h.
(dbx_debug_hooks): New.
(dbxout_init): Make static, take just 2 args.
(dbxout_finish): Make static.
* dbxout.h (dbxout_init, dbxout_finish): Delete.
* debug.c: New file.
* debug.h: New file.
* dwarf2out.c: Include debug.h.
(dwarf2_debug_hooks): New.
(dwarf2out_init): Make static.
(dwarf2out_finish): Make static, take 2 args.
* dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
* dwarfout.c: Include debug.h.
(dwarf_debug_hooks): New.
(dwarfout_init): Make static.
(dwarfout_finish): Make static, take 2 args.
* dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
* sdbout.c: Include debug.h.
(sdb_debug_hooks): New.
(sdbout_init): Make static, take 2 args.
* sdbout.h (sdbout_init): Delete.
* toplev.c: Include debug.h.
(debug_hooks): New.
(compile_file): Set deubg_hooks based on command line options.
Use the hooks unconditionally rather than conditional compilation.
From-SVN: r43908
2001-07-10 20:44:34 +02:00
|
|
|
|
debug.h flags.h insn-config.h reload.h output.h diagnostic.h \
|
expr.h: Split out optab- and libfunc-related code to...
* expr.h: Split out optab- and libfunc-related code to...
* optabs.h, libfuncs.h: ... these new headers.
* Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
(OPTABS_H): New.
(various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
dependencies.
* mkconfig.sh: Don't include insn-codes.h from config.h.
* reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
enum insn_code is available. Move reload_in_optab and
reload_out_optab array declarations to optabs.h.
* regmove.c (gen_add3_insn): Move to optabs.c, export from
there, prototype in expr.h.
* gencodes.c: Cleanup: zap global variables, don't use
printf where puts will do, don't bother defining MAX_INSN_CODE
which nothing uses, let CODE_FOR_nothing get its value implicitly.
* genemit.c, genopinit.c: Include optabs.h in generated file.
* genoutput.c: Include insn-codes.h in generated file.
* builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
Include optabs.h.
* builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/m88k/m88k.c, config/sparc/sparc.c:
Include libfuncs.h.
* reload.c: Include expr.h and optabs.h before reload.h.
* config/alpha/alpha.c: Include tree.h before reload.h.
* config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
and reload.h in that order.
* config/sparc/sparc.c: Include debug.h.
* recog.c: Include insn-codes.h.
cp:
* Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
* except.c: Include libfuncs.h.
java:
* Make-lang.in (java/decl.o): Update dependencies.
* decl.c: Include libfuncs.h, don't include toplev.h.
From-SVN: r44858
2001-08-13 17:56:51 +02:00
|
|
|
|
hard-reg-set.h $(REGS_H) $(EXPR_H) libfuncs.h toplev.h dwarf2out.h varray.h \
|
2001-11-09 08:14:20 +01:00
|
|
|
|
$(GGC_H) except.h dwarf2asm.h $(TM_P_H) langhooks.h
|
2001-05-20 21:56:31 +02:00
|
|
|
|
dwarf2asm.o : dwarf2asm.c $(CONFIG_H) $(SYSTEM_H) flags.h $(RTL_H) $(TREE_H) \
|
|
|
|
|
output.h dwarf2asm.h $(TM_P_H)
|
2001-03-28 00:57:35 +02: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)
|
2001-03-28 00:57:35 +02: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 \
|
2001-11-06 22:12:14 +01:00
|
|
|
|
$(HASHTAB_H) $(TM_P_H) debug.h langhooks.h
|
2001-03-28 00:57:35 +02:00
|
|
|
|
real.o : real.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) toplev.h $(TM_P_H)
|
|
|
|
|
integrate.o : integrate.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \
|
2001-07-15 18:50:41 +02:00
|
|
|
|
debug.h $(INTEGRATE_H) insn-config.h $(EXPR_H) real.h $(REGS_H) \
|
2001-02-14 17:24:45 +01:00
|
|
|
|
intl.h function.h output.h $(RECOG_H) except.h toplev.h $(LOOP_H) \
|
Table-driven attributes.
* c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
* tree.h (struct tree_decl): Change machine_attributes to
attributes.
* doc/c-tree.texi: Document that all attributes are now attached
to decls and types.
* c-common.c (add_attribute, attrtab, attrtab_idx,
default_valid_lang_attribute, valid_lang_attribute): Remove.
(attribute_tables, attributes_initialized,
c_common_attribute_table, default_lang_attribute_table): New
variables.
(handle_packed_attribute, handle_nocommon_attribute,
handle_common_attribute, handle_noreturn_attribute,
handle_unused_attribute, handle_const_attribute,
handle_transparent_union_attribute, handle_constructor_attribute,
handle_destructor_attribute, handle_mode_attribute,
handle_section_attribute, handle_aligned_attribute,
handle_weak_attribute, handle_alias_attribute,
handle_no_instrument_function_attribute,
handle_no_check_memory_usage_attribute, handle_malloc_attribute,
handle_no_limit_stack_attribute, handle_pure_attribute): New
functions.
(init_attributes, decl_attributes): Rewrite to implement
table-driven attributes.
* c-common.h (enum attribute_flags): Move to tree.h.
* c-format.c (decl_handle_format_attribute,
decl_handle_format_arg_attribute): Rename to
handle_format_attribute and handle_format_arg_attribute. Update
for table-driven attributes.
* c-common.h (decl_handle_format_attribute,
decl_handle_format_arg_attribute): Remove prototypes.
(handle_format_attribute, handle_format_arg_attribute): Add
prototypes.
* c-decl.c (grokdeclarator): Handle attributes nested inside
declarators.
* c-parse.in (setattrs, maybe_setattrs): Remove.
(maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
Update to handle nested attributes properly.
(maybe_resetattrs, after_type_declarator,
parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
absdcl1_ea, direct_absdcl1): Update to handle nested attributes
properly.
(make_pointer_declarator): Update to handle nested attributes
properly.
* doc/extend.texi: Update documentation of limits of attributes
syntax. Warn about problems with attribute semantics in C++.
* target.h (struct target): Remove valid_decl_attribute and
valid_type_attribute. Add attribute_table and
function_attribute_inlinable_p.
* target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
TARGET_VALID_TYPE_ATTRIBUTE): Remove.
(TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
Add.
(TARGET_INITIALIZER): Update.
* integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
definition.
(function_attribute_inlinable_p): New function. Check for the
presence of any machine attributes before using
targetm.function_attribute_inlinable_p.
(function_cannot_inline_p): Update.
* Makefile.in (integrate.o): Update dependencies.
* doc/tm.texi: Update documentation of target attributes and
example definition of TARGET_VALID_TYPE_ATTRIBUTE.
* tree.c (default_valid_attribute_p, valid_machine_attribute):
Remove.
(default_target_attribute_table,
default_function_attribute_inlinable_p): New.
(lookup_attribute): Update comment to clarify handling of multiple
attributes with the same name.
(merge_attributes, attribute_list_contained): Allow multiple
attributes with the same name but different arguments to appear in
the same attribute list.
* tree.h (default_valid_attribute_p): Remove prototype.
(struct attribute_spec): New.
(default_target_attribute_table): Declare.
(enum attribute_flags): Move from c-common.h. Add
ATTR_FLAG_TYPE_IN_PLACE.
(default_function_attribute_inlinable_p): Declare.
* config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
(TARGET_VALID_DECL_ATTRIBUTE): Don't define.
(TARGET_ATTRIBUTE_TABLE): Define.
(vms_attribute_table): New.
* config/arc/arc.c (arc_valid_decl_attribute): Remove.
(TARGET_VALID_DECL_ATTRIBUTE): Don't define.
(TARGET_ATTRIBUTE_TABLE): Define.
(arc_attribute_table, arc_handle_interrupt_attribute): New.
* config/arm/arm.c (arm_valid_type_attribute_p,
arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
Remove.
(TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
define.
(TARGET_ATTRIBUTE_TABLE): Define.
(arm_attribute_table, arm_handle_fndecl_attribute,
arm_handle_isr_attribute): New.
* config/avr/avr.c (avr_valid_type_attribute,
avr_valid_decl_attribute): Remove.
(TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
define.
(TARGET_ATTRIBUTE_TABLE): Define.
(avr_attribute_table, avr_handle_progmem_attribute,
avr_handle_fndecl_attribute): New.
* config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
(TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
(TARGET_ATTRIBUTE_TABLE): Define.
(c4x_attribute_table, c4x_handle_fntype_attribute): New.
* config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
(TARGET_VALID_DECL_ATTRIBUTE): Don't define.
(TARGET_ATTRIBUTE_TABLE): Define.
(h8300_attribute_table, h8300_handle_fndecl_attribute,
h8300_handle_eightbit_data_attribute,
h8300_handle_tiny_data_attribute): New.
* config/i386/i386-protos.h (ix86_valid_type_attribute_p,
i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
Remove prototypes.
(ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
declarations.
* config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
(TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
define.
(TARGET_ATTRIBUTE_TABLE): Define.
(ix86_attribute_table, ix86_handle_cdecl_attribute,
ix86_handle_regparm_attribute): New.
* config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
i386_pe_valid_type_attribute_p): Remove.
(ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
* config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
(TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
(TARGET_ATTRIBUTE_TABLE): Define.
(ia64_attribute_table): New.
* config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
interrupt_ident2, model_ident1, model_ident2): Remove.
(TARGET_VALID_DECL_ATTRIBUTE): Don't define.
(TARGET_ATTRIBUTE_TABLE): Define.
(init_idents): Update.
(m32r_attribute_table, m32r_handle_model_attribute): New.
* config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
Remove.
(TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
(TARGET_ATTRIBUTE_TABLE): Define.
(m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
* config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
(TARGET_VALID_DECL_ATTRIBUTE): Don't define.
(TARGET_ATTRIBUTE_TABLE): Define.
(mcore_attribute_table, mcore_handle_naked_attribute): New.
* config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
(TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
(TARGET_ATTRIBUTE_TABLE): Define.
(ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
* config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
(TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
(TARGET_ATTRIBUTE_TABLE): Define.
(rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
* config/sh/sh.c (sh_valid_decl_attribute): Remove.
(TARGET_VALID_DECL_ATTRIBUTE): Don't define.
(TARGET_ATTRIBUTE_TABLE): Define.
(sh_attribute_table, sh_handle_interrupt_handler_attribute,
sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
New.
* config/stormy16/stormy16.c (stormy16_valid_type_attribute):
Remove.
(TARGET_VALID_TYPE_ATTRIBUTE): Don't define
(TARGET_ATTRIBUTE_TABLE): Define.
(stormy16_attribute_table, stormy16_handle_interrupt_attribute):
New.
* config/v850/v850.c (v850_valid_decl_attribute): Remove.
(TARGET_VALID_DECL_ATTRIBUTE): Don't define.
(TARGET_ATTRIBUTE_TABLE): Define.
(v850_attribute_table, v850_handle_interrupt_attribute,
v850_handle_data_area_attribute): New.
* config/v850/v850-c.c (mark_current_function_as_interrupt):
Return void. Call decl_attributes instead of
valid_machine_attribute.
cp:
Table-driven attributes.
* decl.c: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
* decl2.c (cplus_decl_attributes): Only take one attributes
parameter.
* cp-tree.c (cplus_decl_attributes): Update prototype.
* class.c (finish_struct), decl.c (start_decl, start_function),
decl2.c (grokfield), friend.c (do_friend), parse.y
(parse_bitfield): Update calls to cplus_decl_attributes.
* decl.c (grokdeclarator): Take a pointer to a single ordinary
attribute list.
* decl.h (grokdeclarator): Update prototype.
* decl2.c (grokfield): Take a single ordinary attribute list.
* friend.c (do_friend): Likewise.
* decl.c (shadow_tag, groktypename, start_decl,
start_handler_parms, grokdeclarator, grokparms, start_function,
start_method), decl2.c (grokfield, grokbitfield, grokoptypename),
parse.y (parse_field, parse_bitfield, component_decl_1), pt.c
(process_template_parm, do_decl_instantiation): Pass single
ordinary attribute lists around.
* decl.c (grokdeclarator): Correct handling of nested attributes.
Revert the patch
1998-10-18 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (grokdeclarator): Embedded attrs bind to the right,
not the left.
.
* cp-tree.h (cp_valid_lang_attribute): Remove declaration
(cp_attribute_table): Declare.
* decl.c (valid_lang_attribute): Don't define.
(lang_attribute_table): Define.
(init_decl_processing): Initialize lang_attribute_table instead of
valid_lang_attribute.
* tree.c (cp_valid_lang_attribute): Remove.
(handle_java_interface_attribute, handle_com_interface_attribute,
handle_init_priority_attribute): New functions.
(cp_attribute_table): New array.
* decl2.c (import_export_class): Don't use
targetm.valid_type_attribute.
testsuite:
Table-driven attributes.
* g++.dg/ext/attrib1.C: New test.
From-SVN: r45718
2001-09-21 03:27:06 +02:00
|
|
|
|
$(PARAMS_H) $(TM_P_H) $(TARGET_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
jump.o : jump.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h hard-reg-set.h $(REGS_H) \
|
mkconfig.sh: Include insn-flags.h.
* mkconfig.sh: Include insn-flags.h.
* Makefile.in (CONFIG_H): Include insn-flags.h.
(lots of objects): Remove insn-codes.h and insn-flags.h.
* alias.c, bb-reorder.c, calls.c, do-loop.c, flow.c, haifa-sched.c,
integrate.c, jump.c, loop.c, predict.c, profile.c, reg-stack.c,
regmove.c, reorg.c, a29k/a29k.c, alpha/alpha.c, arc/arc.c, arm/arm.c,
avr/avr.c, clipper/clipper.c, convex/convex.c, d30v/d30v.c,
dsp16xx/dsp16xx.c, fr30/fr30.c, h8300/h8300.c, i370/i370.c,
i386/i386.c, i860/i860.c, ia64/ia64.c, m32r/m32r.c, m68hc11/m68hc11.c,
m68k/m68k.c, m88k/m88k.c, mcore/mcore.c, mn10200/mn10200.c,
mn10300/mn10300.c, ns32k/ns32k.c, pa/pa.c, pdp11/pdp11.c,
pj/pj.c, romp/romp.c, rs6000/rs6000.c, sh/sh.c, sparc/sparc.c,
v850/v850.c, vax/vax.c:
Don't include insn-flags.h.
* diagnostic.c, expr.h, reload.c, toplev.c:
Don't include insn-codes.h.
* builtins.c, combine.c, except.c, explow.c, expmed.c, expr.c,
final.c, function.c, optabs.c, recog.c, reload1.c, stmt.c,
c4x/c4x.c, i960/i960.c, mips/mips.c:
Don't include insn-codes.h or insn-flags.h.
* genemit.c, genopinit.c, genoutput.c: Don't include insn-codes.h
or insn-flags.h in the generated code.
* genflags.c (gen_proto): Use "struct rtx_def *" instead of "rtx".
(main): Forward declare struct rtx_def.
From-SVN: r40754
2001-03-22 19:48:52 +01:00
|
|
|
|
insn-config.h $(RECOG_H) $(EXPR_H) real.h except.h function.h \
|
2001-06-10 00:39:25 +02:00
|
|
|
|
toplev.h $(INSN_ATTR_H) $(TM_P_H) reload.h $(PREDICT_H)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
simplify-rtx.o : simplify-rtx.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(REGS_H) \
|
2001-02-13 00:15:38 +01:00
|
|
|
|
hard-reg-set.h flags.h real.h insn-config.h $(RECOG_H) $(EXPR_H) toplev.h \
|
optabs.h (OTI_flodiv, [...]): Kill.
* optabs.h (OTI_flodiv, flodiv_optab): Kill.
* genopinit.c: Put floating point divide insns in sdiv_optab.
* expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
* config/gofast.h, config/c4x/c4x.h,
config/ia64/hpux_longdouble.h, config/mips/mips.h,
config/pa/long_double.h, config/rs6000/sysv4.h,
config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
* optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
(init_optabs): Use init_optabv for overflow-trapping optabs.
Don't init flodiv_optab. Give mov_optab, movstrict_optab, and
cmp_optab RTX codes so have_insn_for can find them.
* optabs.c (expand_simple_binop, expand_simple_unop,
have_insn_for, gen_sub3_insn): New interfaces.
* expr.h: Prototype new functions.
(enum optab_methods): Move here from optabs.h.
* builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
Use new functions instead of working directly with optabs.
* doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
unroll.c: Don't include optabs.h.
* caller-save.c, combine.c, function.c, stmt.c: Just include
insn-codes.h, not optabs.h.
* Makefile.in: Update dependencies.
* combine.c (make_compound_operation, simplify_comparison):
Fix typos testing for this or that instruction.
From-SVN: r45008
2001-08-18 21:59:46 +02:00
|
|
|
|
output.h function.h $(GGC_H) $(OBSTACK_H) $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
cselib.o : cselib.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(REGS_H) \
|
1999-11-01 01:18:23 +01:00
|
|
|
|
hard-reg-set.h flags.h real.h insn-config.h $(RECOG_H) $(EXPR_H) toplev.h \
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
output.h function.h cselib.h $(GGC_H) $(OBSTACK_H) $(TM_P_H)
|
2001-03-28 00:57:35 +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 \
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
$(BASIC_BLOCK_H) $(GGC_H) $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
gcse.o : gcse.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(REGS_H) hard-reg-set.h \
|
2001-02-19 00:56:34 +01:00
|
|
|
|
flags.h real.h insn-config.h ggc.h $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H) \
|
2001-08-04 00:02:55 +02:00
|
|
|
|
function.h output.h toplev.h $(TM_P_H) $(PARAMS_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
sibcall.o : sibcall.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(REGS_H) function.h \
|
2000-03-17 23:40:45 +01:00
|
|
|
|
hard-reg-set.h flags.h insn-config.h $(RECOG_H) $(BASIC_BLOCK_H)
|
2001-03-28 00:57:35 +02: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 \
|
2001-06-26 21:24:09 +02:00
|
|
|
|
$(INSN_ATTR_H) except.h $(PARAMS_H) $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
lcm.o : lcm.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(REGS_H) hard-reg-set.h flags.h \
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
real.h insn-config.h $(INSN_ATTR_H) $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H) \
|
|
|
|
|
$(TM_P_H)
|
2001-04-13 18:34:41 +02:00
|
|
|
|
ssa.o : ssa.c $(CONFIG_H) $(SYSTEM_H) $(REGS_H) varray.h $(EXPR_H) \
|
2000-08-02 06:21:27 +02:00
|
|
|
|
hard-reg-set.h flags.h function.h real.h insn-config.h $(RECOG_H) \
|
|
|
|
|
$(BASIC_BLOCK_H) output.h ssa.h
|
2001-07-09 21:42:28 +02:00
|
|
|
|
ssa-dce.o : ssa-dce.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) hard-reg-set.h \
|
|
|
|
|
$(BASIC_BLOCK_H) ssa.h insn-config.h $(RECOG_H) output.h
|
|
|
|
|
ssa-ccp.o : ssa-ccp.c $(CONFIG_H) system.h $(RTL_H) hard-reg-set.h \
|
|
|
|
|
$(BASIC_BLOCK_H) ssa.h insn-config.h $(RECOG_H) output.h \
|
|
|
|
|
errors.h $(GGC_H) df.h function.h
|
2001-06-29 00:11:19 +02:00
|
|
|
|
df.o : df.c $(CONFIG_H) system.h $(RTL_H) insn-config.h $(RECOG_H) \
|
2001-11-07 17:34:37 +01:00
|
|
|
|
function.h $(REGS_H) $(OBSTACK_H) hard-reg-set.h $(BASIC_BLOCK_H) df.h \
|
|
|
|
|
$(FIBHEAP_H)
|
2001-03-28 00:57:35 +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)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
profile.o : profile.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \
|
optabs.h (OTI_flodiv, [...]): Kill.
* optabs.h (OTI_flodiv, flodiv_optab): Kill.
* genopinit.c: Put floating point divide insns in sdiv_optab.
* expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
* config/gofast.h, config/c4x/c4x.h,
config/ia64/hpux_longdouble.h, config/mips/mips.h,
config/pa/long_double.h, config/rs6000/sysv4.h,
config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
* optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
(init_optabs): Use init_optabv for overflow-trapping optabs.
Don't init flodiv_optab. Give mov_optab, movstrict_optab, and
cmp_optab RTX codes so have_insn_for can find them.
* optabs.c (expand_simple_binop, expand_simple_unop,
have_insn_for, gen_sub3_insn): New interfaces.
* expr.h: Prototype new functions.
(enum optab_methods): Move here from optabs.h.
* builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
Use new functions instead of working directly with optabs.
* doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
unroll.c: Don't include optabs.h.
* caller-save.c, combine.c, function.c, stmt.c: Just include
insn-codes.h, not optabs.h.
* Makefile.in: Update dependencies.
* combine.c (make_compound_operation, simplify_comparison):
Fix typos testing for this or that instruction.
From-SVN: r45008
2001-08-18 21:59:46 +02:00
|
|
|
|
insn-config.h output.h $(REGS_H) $(EXPR_H) function.h \
|
2001-08-10 00:33:35 +02:00
|
|
|
|
gcov-io.h toplev.h $(GGC_H) hard-reg-set.h $(BASIC_BLOCK_H) $(TARGET_H)
|
expr.h: Split out optab- and libfunc-related code to...
* expr.h: Split out optab- and libfunc-related code to...
* optabs.h, libfuncs.h: ... these new headers.
* Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
(OPTABS_H): New.
(various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
dependencies.
* mkconfig.sh: Don't include insn-codes.h from config.h.
* reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
enum insn_code is available. Move reload_in_optab and
reload_out_optab array declarations to optabs.h.
* regmove.c (gen_add3_insn): Move to optabs.c, export from
there, prototype in expr.h.
* gencodes.c: Cleanup: zap global variables, don't use
printf where puts will do, don't bother defining MAX_INSN_CODE
which nothing uses, let CODE_FOR_nothing get its value implicitly.
* genemit.c, genopinit.c: Include optabs.h in generated file.
* genoutput.c: Include insn-codes.h in generated file.
* builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
Include optabs.h.
* builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/m88k/m88k.c, config/sparc/sparc.c:
Include libfuncs.h.
* reload.c: Include expr.h and optabs.h before reload.h.
* config/alpha/alpha.c: Include tree.h before reload.h.
* config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
and reload.h in that order.
* config/sparc/sparc.c: Include debug.h.
* recog.c: Include insn-codes.h.
cp:
* Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
* except.c: Include libfuncs.h.
java:
* Make-lang.in (java/decl.o): Update dependencies.
* decl.c: Include libfuncs.h, don't include toplev.h.
From-SVN: r44858
2001-08-13 17:56:51 +02:00
|
|
|
|
loop.o : loop.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h $(LOOP_H) \
|
|
|
|
|
insn-config.h $(REGS_H) hard-reg-set.h $(RECOG_H) $(EXPR_H) \
|
optabs.h (OTI_flodiv, [...]): Kill.
* optabs.h (OTI_flodiv, flodiv_optab): Kill.
* genopinit.c: Put floating point divide insns in sdiv_optab.
* expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
* config/gofast.h, config/c4x/c4x.h,
config/ia64/hpux_longdouble.h, config/mips/mips.h,
config/pa/long_double.h, config/rs6000/sysv4.h,
config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
* optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
(init_optabs): Use init_optabv for overflow-trapping optabs.
Don't init flodiv_optab. Give mov_optab, movstrict_optab, and
cmp_optab RTX codes so have_insn_for can find them.
* optabs.c (expand_simple_binop, expand_simple_unop,
have_insn_for, gen_sub3_insn): New interfaces.
* expr.h: Prototype new functions.
(enum optab_methods): Move here from optabs.h.
* builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
Use new functions instead of working directly with optabs.
* doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
unroll.c: Don't include optabs.h.
* caller-save.c, combine.c, function.c, stmt.c: Just include
insn-codes.h, not optabs.h.
* Makefile.in: Update dependencies.
* combine.c (make_compound_operation, simplify_comparison):
Fix typos testing for this or that instruction.
From-SVN: r45008
2001-08-18 21:59:46 +02:00
|
|
|
|
real.h $(PREDICT_H) $(BASIC_BLOCK_H) function.h \
|
expr.h: Split out optab- and libfunc-related code to...
* expr.h: Split out optab- and libfunc-related code to...
* optabs.h, libfuncs.h: ... these new headers.
* Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
(OPTABS_H): New.
(various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
dependencies.
* mkconfig.sh: Don't include insn-codes.h from config.h.
* reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
enum insn_code is available. Move reload_in_optab and
reload_out_optab array declarations to optabs.h.
* regmove.c (gen_add3_insn): Move to optabs.c, export from
there, prototype in expr.h.
* gencodes.c: Cleanup: zap global variables, don't use
printf where puts will do, don't bother defining MAX_INSN_CODE
which nothing uses, let CODE_FOR_nothing get its value implicitly.
* genemit.c, genopinit.c: Include optabs.h in generated file.
* genoutput.c: Include insn-codes.h in generated file.
* builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
Include optabs.h.
* builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/m88k/m88k.c, config/sparc/sparc.c:
Include libfuncs.h.
* reload.c: Include expr.h and optabs.h before reload.h.
* config/alpha/alpha.c: Include tree.h before reload.h.
* config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
and reload.h in that order.
* config/sparc/sparc.c: Include debug.h.
* recog.c: Include insn-codes.h.
cp:
* Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
* except.c: Include libfuncs.h.
java:
* Make-lang.in (java/decl.o): Update dependencies.
* decl.c: Include libfuncs.h, don't include toplev.h.
From-SVN: r44858
2001-08-13 17:56:51 +02:00
|
|
|
|
toplev.h varray.h except.h cselib.h $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
doloop.o : doloop.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h $(LOOP_H) \
|
optabs.h (OTI_flodiv, [...]): Kill.
* optabs.h (OTI_flodiv, flodiv_optab): Kill.
* genopinit.c: Put floating point divide insns in sdiv_optab.
* expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
* config/gofast.h, config/c4x/c4x.h,
config/ia64/hpux_longdouble.h, config/mips/mips.h,
config/pa/long_double.h, config/rs6000/sysv4.h,
config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
* optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
(init_optabs): Use init_optabv for overflow-trapping optabs.
Don't init flodiv_optab. Give mov_optab, movstrict_optab, and
cmp_optab RTX codes so have_insn_for can find them.
* optabs.c (expand_simple_binop, expand_simple_unop,
have_insn_for, gen_sub3_insn): New interfaces.
* expr.h: Prototype new functions.
(enum optab_methods): Move here from optabs.h.
* builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
Use new functions instead of working directly with optabs.
* doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
unroll.c: Don't include optabs.h.
* caller-save.c, combine.c, function.c, stmt.c: Just include
insn-codes.h, not optabs.h.
* Makefile.in: Update dependencies.
* combine.c (make_compound_operation, simplify_comparison):
Fix typos testing for this or that instruction.
From-SVN: r45008
2001-08-18 21:59:46 +02:00
|
|
|
|
$(EXPR_H) hard-reg-set.h $(BASIC_BLOCK_H) $(TM_P_H) toplev.h
|
2001-03-28 00:57:35 +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 \
|
optabs.h (OTI_flodiv, [...]): Kill.
* optabs.h (OTI_flodiv, flodiv_optab): Kill.
* genopinit.c: Put floating point divide insns in sdiv_optab.
* expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
* config/gofast.h, config/c4x/c4x.h,
config/ia64/hpux_longdouble.h, config/mips/mips.h,
config/pa/long_double.h, config/rs6000/sysv4.h,
config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
* optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
(init_optabs): Use init_optabv for overflow-trapping optabs.
Don't init flodiv_optab. Give mov_optab, movstrict_optab, and
cmp_optab RTX codes so have_insn_for can find them.
* optabs.c (expand_simple_binop, expand_simple_unop,
have_insn_for, gen_sub3_insn): New interfaces.
* expr.h: Prototype new functions.
(enum optab_methods): Move here from optabs.h.
* builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
Use new functions instead of working directly with optabs.
* doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
unroll.c: Don't include optabs.h.
* caller-save.c, combine.c, function.c, stmt.c: Just include
insn-codes.h, not optabs.h.
* Makefile.in: Update dependencies.
* combine.c (make_compound_operation, simplify_comparison):
Fix typos testing for this or that instruction.
From-SVN: r45008
2001-08-18 21:59:46 +02:00
|
|
|
|
hard-reg-set.h varray.h $(BASIC_BLOCK_H) $(TM_P_H) $(PREDICT_H)
|
2001-03-28 00:57:35 +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) \
|
mkconfig.sh: Include insn-flags.h.
* mkconfig.sh: Include insn-flags.h.
* Makefile.in (CONFIG_H): Include insn-flags.h.
(lots of objects): Remove insn-codes.h and insn-flags.h.
* alias.c, bb-reorder.c, calls.c, do-loop.c, flow.c, haifa-sched.c,
integrate.c, jump.c, loop.c, predict.c, profile.c, reg-stack.c,
regmove.c, reorg.c, a29k/a29k.c, alpha/alpha.c, arc/arc.c, arm/arm.c,
avr/avr.c, clipper/clipper.c, convex/convex.c, d30v/d30v.c,
dsp16xx/dsp16xx.c, fr30/fr30.c, h8300/h8300.c, i370/i370.c,
i386/i386.c, i860/i860.c, ia64/ia64.c, m32r/m32r.c, m68hc11/m68hc11.c,
m68k/m68k.c, m88k/m88k.c, mcore/mcore.c, mn10200/mn10200.c,
mn10300/mn10300.c, ns32k/ns32k.c, pa/pa.c, pdp11/pdp11.c,
pj/pj.c, romp/romp.c, rs6000/rs6000.c, sh/sh.c, sparc/sparc.c,
v850/v850.c, vax/vax.c:
Don't include insn-flags.h.
* diagnostic.c, expr.h, reload.c, toplev.c:
Don't include insn-codes.h.
* builtins.c, combine.c, except.c, explow.c, expmed.c, expr.c,
final.c, function.c, optabs.c, recog.c, reload1.c, stmt.c,
c4x/c4x.c, i960/i960.c, mips/mips.c:
Don't include insn-codes.h or insn-flags.h.
* genemit.c, genopinit.c, genoutput.c: Don't include insn-codes.h
or insn-flags.h in the generated code.
* genflags.c (gen_proto): Use "struct rtx_def *" instead of "rtx".
(main): Forward declare struct rtx_def.
From-SVN: r40754
2001-03-22 19:48:52 +01:00
|
|
|
|
function.h except.h $(EXPR_H) ssa.h $(GGC_H) $(TM_P_H)
|
Makefile.in (cfg.o, [...]): New.
* Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
New.
* basic-block.h (flow_obstack, label_value_list,
tail_recursion_label_list): Declare
(tidy_fallthru_edges): Declare.
(expunge_block, last_loop_beg_note): Delete.
(can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
* cfg.c: New file
(basic_block_for_insn, label_value_list): Move from flow.c; make global.
(n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
flow_delete_insn, flow_delete_insn_chain, create_basic_block,
expunge_block, flow_delete_block, compute_bb_for_insn,
update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
try_redirect_by_replacing_jump, last_loop_beg_note,
redirect_edge_and_branch, redirect_edge_and_branch_force,
tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
split_edge, insert_insn_on_edge, commit_one_edge_insertion,
commit_edge_insertions, dump_flow_info, debug_flow_info,
dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
verify_flow_info, purge_dead_edges, purge_all_dead_edges):
Move here from flow.c
* cfganal.c: New file.
(forwarder_block_p, can_fallthru, mark_critical_edges,
mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
find_unreachable_blocks, create_edge_list, free_edge_list,
print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
flow_edge_list_print, remove_fake_successors, remove_fake_edges,
add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
Move here from flow.c
* cfgbuild.c: New file
(count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
make_edges, find_basic_blocks_1, find_basic_blocks,
find_sub_basic_blocks): Move here from flow.c
* cfgcleanup.c: New file.
(try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
merge_blocks_move_predecessor_nojumps,
merge_blocks_move_successor_nojumps, merge_blocks,
flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
try_crossjump_bb, try_optimize_cfg): Move here from flow.c
(delete_unreachable_blocks, cleanup_cfg): Likewise; return true
if succeeded.
* cfgloop.c: New file
(flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
flow_loop_exit_edges_find, flow_loop_nodes_find,
flow_loop_pre_header_scan, flow_loop_pre_header_find,
flow_loop_tree_node_add, flow_loops_tree_build,
flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
Move here from flow.c
* flow.c: Remove everything moved elsewhere
* output.h (cleanup_cfg): Return bool.
* bb-reorder.c (reorder_block_def): Remove 'index'.
(insert_intra_1): Add argument BB, set block for new note.
(make_reorder_chain): Do not depdent on BB indexes.
(make_reorder_chain_1): Do not use BB indexes.
(label_for_bb): Likewise; set BB for new insn.
(emit_jump_to_block_after): Likewise.
(fixup_reoder_chain): Sanity check that all basic blocks
are chained; verify newly created insn chain; remove
undocnitional jump simplifying; Do not use BB indexes;
properly initialize count and frequency information;
dump reordered sequence.
(insert_intra_bb_scope_notes): update call of insert_intra_1.
(insert_inter_bb_scope_notes): Set block for new insn.
(reorder_basic_blocks): Dump flow info before reoredering.
From-SVN: r45504
2001-09-10 14:23:08 +02:00
|
|
|
|
cfg.o : cfg.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h insn-config.h \
|
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h toplev.h $(RECOG_H) \
|
2001-09-19 21:29:10 +02:00
|
|
|
|
function.h except.h $(GGC_H) $(TM_P_H)
|
Makefile.in (cfgrtl.o): Add.
* Makefile.in (cfgrtl.o): Add.
* basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
free_aux_for_edge): Declare.
* cfg.c
(HAVE_return): Undefine.
* basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
free_aux_for_edge): New global functions.
(first_delete_block): New static variable.
(init_flow): Clear first_delete_block.
(basic_block_for_insn, label_value_list, tail_recursion_label_list,
can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
try_redirect_by_replacing_jump, last_loop_beg_note,
back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
delete_insn, delete_insn_chain, create_basic_block_structure,
create_basic_block, flow_delete_block, compute_bb_for_insn,
free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
set_block_for_new_insns, split_block, merge_blocks_nomove,
block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
redirect_edge_and_branch, force_nonfallthru_and_redirect,
force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
tidy_fallthru_edges, split_edge, insert_insn_on_edge,
commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
purge_all_dead_edges): Move to ....
* cfgrtl.c: New file; .... Here.
* bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
(reroder_basic_block): Use alloc_aux_for_blocks.
* predict.c (estimate_bb_frequencies): Likewise; use
alloc_aux_for_edges.
* profile.c (compute_branch_probabilities): Likewise.
(branch_prob): Likewise.
* reg-stack.c (reg_to_stack): Likewise.
* emit-rtl.c (emit_insns_after): Never return NULL.
* basic-block.h (set_block_for_new_insns): Delete.
* cfgrtl.c (set_block_for_new_insns): Delete.
* cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
calls when crossjumping.
* cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
* unroll.c (copy_loop_body): Use delete_insn.
* final.c (final, final_scan_insn): Use delete_insn/delete_note.
* function.c (fixup_var_refs_insn, fixup_var_refs_1,
keep_stack_depressed): Likewise.
* gcse.c (cprop_cc0_jump): Likewise.
* local-alloc.c (update_equiv_regs): Likewise.
* loop.c (scan_loop, loop_delete_insns): Likewise.
* regmove.c (try_auto_increment, fixup_match_1): Likewise.
* reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
delete_output_reload, delete_address_reloads_1,
reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
Likewise.
* sibcall.c (replace_call_placeholder): Likewise.
* cse.c (cse_insn): Likewise.
From-SVN: r45807
2001-09-25 17:26:55 +02:00
|
|
|
|
cfgrtl.o : cfgrtl.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h insn-config.h \
|
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h toplev.h $(RECOG_H) \
|
|
|
|
|
function.h except.h $(GGC_H) $(TM_P_H)
|
Makefile.in (cfg.o, [...]): New.
* Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
New.
* basic-block.h (flow_obstack, label_value_list,
tail_recursion_label_list): Declare
(tidy_fallthru_edges): Declare.
(expunge_block, last_loop_beg_note): Delete.
(can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
* cfg.c: New file
(basic_block_for_insn, label_value_list): Move from flow.c; make global.
(n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
flow_delete_insn, flow_delete_insn_chain, create_basic_block,
expunge_block, flow_delete_block, compute_bb_for_insn,
update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
try_redirect_by_replacing_jump, last_loop_beg_note,
redirect_edge_and_branch, redirect_edge_and_branch_force,
tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
split_edge, insert_insn_on_edge, commit_one_edge_insertion,
commit_edge_insertions, dump_flow_info, debug_flow_info,
dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
verify_flow_info, purge_dead_edges, purge_all_dead_edges):
Move here from flow.c
* cfganal.c: New file.
(forwarder_block_p, can_fallthru, mark_critical_edges,
mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
find_unreachable_blocks, create_edge_list, free_edge_list,
print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
flow_edge_list_print, remove_fake_successors, remove_fake_edges,
add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
Move here from flow.c
* cfgbuild.c: New file
(count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
make_edges, find_basic_blocks_1, find_basic_blocks,
find_sub_basic_blocks): Move here from flow.c
* cfgcleanup.c: New file.
(try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
merge_blocks_move_predecessor_nojumps,
merge_blocks_move_successor_nojumps, merge_blocks,
flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
try_crossjump_bb, try_optimize_cfg): Move here from flow.c
(delete_unreachable_blocks, cleanup_cfg): Likewise; return true
if succeeded.
* cfgloop.c: New file
(flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
flow_loop_exit_edges_find, flow_loop_nodes_find,
flow_loop_pre_header_scan, flow_loop_pre_header_find,
flow_loop_tree_node_add, flow_loops_tree_build,
flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
Move here from flow.c
* flow.c: Remove everything moved elsewhere
* output.h (cleanup_cfg): Return bool.
* bb-reorder.c (reorder_block_def): Remove 'index'.
(insert_intra_1): Add argument BB, set block for new note.
(make_reorder_chain): Do not depdent on BB indexes.
(make_reorder_chain_1): Do not use BB indexes.
(label_for_bb): Likewise; set BB for new insn.
(emit_jump_to_block_after): Likewise.
(fixup_reoder_chain): Sanity check that all basic blocks
are chained; verify newly created insn chain; remove
undocnitional jump simplifying; Do not use BB indexes;
properly initialize count and frequency information;
dump reordered sequence.
(insert_intra_bb_scope_notes): update call of insert_intra_1.
(insert_inter_bb_scope_notes): Set block for new insn.
(reorder_basic_blocks): Dump flow info before reoredering.
From-SVN: r45504
2001-09-10 14:23:08 +02:00
|
|
|
|
cfganal.o : cfganal.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) \
|
|
|
|
|
$(BASIC_BLOCK_H) hard-reg-set.h $(GGC_H)
|
|
|
|
|
cfgbuild.o : cfgbuild.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h insn-config.h \
|
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h toplev.h $(RECOG_H) \
|
|
|
|
|
function.h except.h $(GGC_H)
|
2001-10-20 12:04:00 +02:00
|
|
|
|
cfgcleanup.o : cfgcleanup.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TIMEVAR_H)\
|
Makefile.in (cfg.o, [...]): New.
* Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
New.
* basic-block.h (flow_obstack, label_value_list,
tail_recursion_label_list): Declare
(tidy_fallthru_edges): Declare.
(expunge_block, last_loop_beg_note): Delete.
(can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
* cfg.c: New file
(basic_block_for_insn, label_value_list): Move from flow.c; make global.
(n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
flow_delete_insn, flow_delete_insn_chain, create_basic_block,
expunge_block, flow_delete_block, compute_bb_for_insn,
update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
try_redirect_by_replacing_jump, last_loop_beg_note,
redirect_edge_and_branch, redirect_edge_and_branch_force,
tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
split_edge, insert_insn_on_edge, commit_one_edge_insertion,
commit_edge_insertions, dump_flow_info, debug_flow_info,
dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
verify_flow_info, purge_dead_edges, purge_all_dead_edges):
Move here from flow.c
* cfganal.c: New file.
(forwarder_block_p, can_fallthru, mark_critical_edges,
mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
find_unreachable_blocks, create_edge_list, free_edge_list,
print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
flow_edge_list_print, remove_fake_successors, remove_fake_edges,
add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
Move here from flow.c
* cfgbuild.c: New file
(count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
make_edges, find_basic_blocks_1, find_basic_blocks,
find_sub_basic_blocks): Move here from flow.c
* cfgcleanup.c: New file.
(try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
merge_blocks_move_predecessor_nojumps,
merge_blocks_move_successor_nojumps, merge_blocks,
flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
try_crossjump_bb, try_optimize_cfg): Move here from flow.c
(delete_unreachable_blocks, cleanup_cfg): Likewise; return true
if succeeded.
* cfgloop.c: New file
(flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
flow_loop_exit_edges_find, flow_loop_nodes_find,
flow_loop_pre_header_scan, flow_loop_pre_header_find,
flow_loop_tree_node_add, flow_loops_tree_build,
flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
Move here from flow.c
* flow.c: Remove everything moved elsewhere
* output.h (cleanup_cfg): Return bool.
* bb-reorder.c (reorder_block_def): Remove 'index'.
(insert_intra_1): Add argument BB, set block for new note.
(make_reorder_chain): Do not depdent on BB indexes.
(make_reorder_chain_1): Do not use BB indexes.
(label_for_bb): Likewise; set BB for new insn.
(emit_jump_to_block_after): Likewise.
(fixup_reoder_chain): Sanity check that all basic blocks
are chained; verify newly created insn chain; remove
undocnitional jump simplifying; Do not use BB indexes;
properly initialize count and frequency information;
dump reordered sequence.
(insert_intra_bb_scope_notes): update call of insert_intra_1.
(insert_inter_bb_scope_notes): Set block for new insn.
(reorder_basic_blocks): Dump flow info before reoredering.
From-SVN: r45504
2001-09-10 14:23:08 +02:00
|
|
|
|
$(BASIC_BLOCK_H) hard-reg-set.h output.h flags.h $(RECOG_H) toplev.h $(GGC_H)
|
|
|
|
|
cfgloop.o : cfgloop.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) \
|
|
|
|
|
$(BASIC_BLOCK_H) hard-reg-set.h
|
2001-03-28 00:57:35 +02:00
|
|
|
|
dominance.o : dominance.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) hard-reg-set.h \
|
2000-11-14 10:58:40 +01:00
|
|
|
|
$(BASIC_BLOCK_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
combine.o : combine.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h function.h \
|
2001-08-22 02:33:33 +02:00
|
|
|
|
insn-config.h $(INSN_ATTR_H) $(REGS_H) $(EXPR_H) \
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
$(BASIC_BLOCK_H) $(RECOG_H) real.h hard-reg-set.h toplev.h $(TM_P_H)
|
2001-03-28 00:57:35 +02: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 \
|
2001-04-13 18:34:41 +02:00
|
|
|
|
toplev.h function.h output.h $(GGC_H) $(TM_P_H) $(EXPR_H)
|
2001-03-28 00:57:35 +02: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) \
|
2001-08-06 18:57:53 +02:00
|
|
|
|
output.h function.h $(INSN_ATTR_H) toplev.h except.h $(TM_P_H)
|
2001-03-28 00:57:35 +02: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)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
global.o : global.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h reload.h function.h \
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h insn-config.h output.h toplev.h \
|
|
|
|
|
$(TM_P_H)
|
2001-07-09 22:30:41 +02:00
|
|
|
|
varray.o : varray.c $(CONFIG_H) $(SYSTEM_H) varray.h $(RTL_H) $(TREE_H) bitmap.h \
|
|
|
|
|
errors.h
|
expr.h: Split out optab- and libfunc-related code to...
* expr.h: Split out optab- and libfunc-related code to...
* optabs.h, libfuncs.h: ... these new headers.
* Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
(OPTABS_H): New.
(various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
dependencies.
* mkconfig.sh: Don't include insn-codes.h from config.h.
* reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
enum insn_code is available. Move reload_in_optab and
reload_out_optab array declarations to optabs.h.
* regmove.c (gen_add3_insn): Move to optabs.c, export from
there, prototype in expr.h.
* gencodes.c: Cleanup: zap global variables, don't use
printf where puts will do, don't bother defining MAX_INSN_CODE
which nothing uses, let CODE_FOR_nothing get its value implicitly.
* genemit.c, genopinit.c: Include optabs.h in generated file.
* genoutput.c: Include insn-codes.h in generated file.
* builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
Include optabs.h.
* builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/m88k/m88k.c, config/sparc/sparc.c:
Include libfuncs.h.
* reload.c: Include expr.h and optabs.h before reload.h.
* config/alpha/alpha.c: Include tree.h before reload.h.
* config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
and reload.h in that order.
* config/sparc/sparc.c: Include debug.h.
* recog.c: Include insn-codes.h.
cp:
* Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
* except.c: Include libfuncs.h.
java:
* Make-lang.in (java/decl.o): Update dependencies.
* decl.c: Include libfuncs.h, don't include toplev.h.
From-SVN: r44858
2001-08-13 17:56:51 +02:00
|
|
|
|
reload.o : reload.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h output.h \
|
|
|
|
|
$(EXPR_H) $(OPTABS_H) reload.h $(RECOG_H) hard-reg-set.h insn-config.h \
|
|
|
|
|
$(REGS_H) function.h real.h toplev.h $(TM_P_H)
|
|
|
|
|
reload1.o : reload1.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) real.h flags.h \
|
|
|
|
|
$(EXPR_H) $(OPTABS_H) reload.h $(REGS_H) hard-reg-set.h insn-config.h \
|
2001-08-06 08:39:21 +02:00
|
|
|
|
$(BASIC_BLOCK_H) $(RECOG_H) output.h function.h toplev.h cselib.h $(TM_P_H) \
|
|
|
|
|
except.h
|
2001-03-28 00:57:35 +02: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 \
|
2001-08-22 02:39:24 +02:00
|
|
|
|
$(RECOG_H) reload.h $(EXPR_H) toplev.h $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
reorg.o : reorg.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) conditions.h hard-reg-set.h \
|
2001-08-31 21:27:12 +02:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) insn-config.h $(INSN_ATTR_H) except.h \
|
2001-06-26 21:24:09 +02:00
|
|
|
|
$(RECOG_H) function.h flags.h output.h $(EXPR_H) toplev.h $(PARAMS_H) $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
alias.o : alias.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h hard-reg-set.h \
|
mkconfig.sh: Include insn-flags.h.
* mkconfig.sh: Include insn-flags.h.
* Makefile.in (CONFIG_H): Include insn-flags.h.
(lots of objects): Remove insn-codes.h and insn-flags.h.
* alias.c, bb-reorder.c, calls.c, do-loop.c, flow.c, haifa-sched.c,
integrate.c, jump.c, loop.c, predict.c, profile.c, reg-stack.c,
regmove.c, reorg.c, a29k/a29k.c, alpha/alpha.c, arc/arc.c, arm/arm.c,
avr/avr.c, clipper/clipper.c, convex/convex.c, d30v/d30v.c,
dsp16xx/dsp16xx.c, fr30/fr30.c, h8300/h8300.c, i370/i370.c,
i386/i386.c, i860/i860.c, ia64/ia64.c, m32r/m32r.c, m68hc11/m68hc11.c,
m68k/m68k.c, m88k/m88k.c, mcore/mcore.c, mn10200/mn10200.c,
mn10300/mn10300.c, ns32k/ns32k.c, pa/pa.c, pdp11/pdp11.c,
pj/pj.c, romp/romp.c, rs6000/rs6000.c, sh/sh.c, sparc/sparc.c,
v850/v850.c, vax/vax.c:
Don't include insn-flags.h.
* diagnostic.c, expr.h, reload.c, toplev.c:
Don't include insn-codes.h.
* builtins.c, combine.c, except.c, explow.c, expmed.c, expr.c,
final.c, function.c, optabs.c, recog.c, reload1.c, stmt.c,
c4x/c4x.c, i960/i960.c, mips/mips.c:
Don't include insn-codes.h or insn-flags.h.
* genemit.c, genopinit.c, genoutput.c: Don't include insn-codes.h
or insn-flags.h in the generated code.
* genflags.c (gen_proto): Use "struct rtx_def *" instead of "rtx".
(main): Forward declare struct rtx_def.
From-SVN: r40754
2001-03-22 19:48:52 +01:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) toplev.h output.h $(EXPR_H) \
|
2001-11-06 22:12:14 +01:00
|
|
|
|
$(GGC_H) function.h cselib.h $(TREE_H) $(TM_P_H) langhooks.h
|
2001-03-28 00:57:35 +02: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 \
|
Makefile.in (toplev.o, [...]): Depend on reload.h
* Makefile.in (toplev.o, jump.o, regmove.o): Depend on reload.h
* jump.c, regmove.c, toplev.c: Include reload.h.
* reload.h (reload_cse_regs): Declare.
* rtl.h (find_equiv_reg, operands_match_p, safe_from_earlyclobber,
reload_cse_regs, init_reload, mark_home_live, reload,
init_caller_save): Delete redundant prototypes.
From-SVN: r41338
2001-04-13 18:41:16 +02:00
|
|
|
|
$(EXPR_H) $(BASIC_BLOCK_H) toplev.h $(TM_P_H) except.h reload.h
|
2001-03-28 00:57:35 +02: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 \
|
haifa-sched.c: Convert to target hooks.
* haifa-sched.c: Convert to target hooks. Macros replaced
are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
MD_SCHED_FINISH, and HAVE_cycle_display.
* target-def.h (TARGET_SCHED_ADJUST_COST,
TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
New hook #defines to be overridden.
(TARGET_SCHED): Bring them all together.
(TARGET_INITIALIZER): Update.
* target.h: Don't forward declare struct rtx_def. Use 'rtx'
instead of 'struct rtx_def *' throughout.
(struct sched): New set of hooks for the scheduler.
* Makefile.in (haifa-sched.o): Depend on target.h.
* doc/tm.texi: Document the new scheduler hooks, together in
their own section, instead of scattered around.
Fix a bunch of underfull/overfull hboxes.
* a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
sparc.h: Don't define any of the old scheduler macros.
* a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
sparc.c: Create hook functions from code extracted from
corresponding target header, or make existing hooks static, as
appropriate. Set the appropriate entries in targetm.
* alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
rs6000-protos.h, s390-protos.h, sparc-protos.h:
Remove prototypes for functions which are now static.
* d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
related gunk; the Haifa scheduler is now the only choice.
From-SVN: r45009
2001-08-18 22:25:54 +02:00
|
|
|
|
$(INSN_ATTR_H) toplev.h $(RECOG_H) except.h $(TM_P_H) $(TARGET_H)
|
2001-03-28 00:57:35 +02: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 \
|
2001-08-08 12:36:07 +02:00
|
|
|
|
$(INSN_ATTR_H) toplev.h $(RECOG_H) except.h cselib.h $(PARAMS_H) $(TM_P_H)
|
2001-03-28 00:57:35 +02: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 \
|
2001-08-30 22:44:51 +02:00
|
|
|
|
$(INSN_ATTR_H) toplev.h $(RECOG_H) except.h $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
sched-ebb.o : sched-ebb.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) sched-int.h \
|
2000-12-20 18:19:39 +01:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h flags.h insn-config.h function.h \
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
$(INSN_ATTR_H) toplev.h $(RECOG_H) except.h $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
sched-vis.o : sched-vis.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) sched-int.h \
|
2001-08-30 22:44:51 +02:00
|
|
|
|
hard-reg-set.h $(BASIC_BLOCK_H) $(INSN_ATTR_H) $(REGS_H) $(TM_P_H)
|
2001-03-28 00:57:35 +02: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 \
|
2001-07-26 08:56:13 +02:00
|
|
|
|
real.h output.h hard-reg-set.h except.h debug.h xcoffout.h \
|
Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
* Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
(final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
(toplev.o): Don't depend on xcoffout.h.
* c-decl.c: Include debug.h
(duplicate_decls): Use debug hook.
* dbxout.c (dbxout_source_file, dbxout_args): Make static.
(dbx_debug_hooks, xcoff_debug_hooks): Update.
(dbxout_types): Remove.
* dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
* debug.c (do_nothing_debug_hooks): Update.
(debug_true_tree, debug_nothing_rtx): New.
* debug.h (struct rtx_def): New.
(struct gcc_debug_hooks): New hooks ignore_block,
outlining_inline_function and label.
(debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
dwarf2out_frame_finish): New.
* dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
Make static, update prototype.
(dwarf2_debug_hooks): Update.
* dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
* dwarfout.c (dwarf_debug_hooks): Update.
* emit-rtl.c: Include debug.h.
(remove_unnecessary_notes): Use debug hook.
* final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
(final_scan_insn): Use debug hook.
* integrate.c (output_inline_function): Use debug hook.
* sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
(sdb_debug_hooks): Update.
* sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
* toplev.c: Don't include xcoffout.h.
(note_outlining_of_inline_function, debug_ignore_block): Remove.
* toplev.h (note_outlining_of_inline_function, debug_ignore_block):
Remove.
* tree.h (dwarf2out_do_frame): Remove.
From-SVN: r44163
2001-07-19 23:17:09 +02:00
|
|
|
|
toplev.h reload.h dwarf2out.h $(BASIC_BLOCK_H) $(TM_P_H) $(TARGET_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
recog.o : recog.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) function.h $(BASIC_BLOCK_H) \
|
[multiple changes]
Mon Jul 9 06:41:07 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
(operand_subword): Use them.
(change_address_1): Renamed from change_address; new arg VALIDATE.
* expr.h: Reflect above changes; change_address now macro.
* alias.c (canon_rtx): Use replace_equiv_address_nv instead of
making MEM.
* cselib.c (add_mem_for_addr): Likewise.
* expr.c (protect_from_queue, emit_move_insn_1): Likewise.
* regmove.c (try_apply_stack_adjustment): Likewise.
* reload.c (push_reload, make_memloc): Likewise.
* reload1.c (eliminate_regs): Likewise.
* simplify-rtx.c (simplify_replace_rtx): Likewise.
* caller-save.c (setup_save_areas): Use adjust_address_nv instead of
adjust_addess.
* combine.c (make_extraction, simplify_shift_const): Likewise.
(gen_lowpart_for_combine): Likewise.
* cse.c (gen_lowpart_if_possible): Likewise.
* function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
* expr.c (expand_expr, case COMPONENT_REF): Likewise.
* optabs.c (gen_move_insn): Likewise.
* reload1.c (alter_reg): Likewise.
* simplify-rtx.c (simplify_subreg): Likewise.
* stmt.c (expand_anon_union_decl): Likewise.
* recog.c (validate_replace_rtx_1): Likewise.
(expr.h): Include.
* Makefile.in (recog.o): Add $(EXPR_H).
* explow.c (stabilize): Call replace_equiv_address.
* expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
* final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
2001-07-09 Bo Thorsen <bo@suse.co.uk>
* config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
2001-07-09 Neil Booth <neil@daikokuya.demon.co.uk>
* final.c (output_addr_const): Use target opening and
closing parentheses.
* target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
defaults, add to TARGET_ASM_OUT.
* target.h (struct gcc_target): Add open_paren and close_paren.
* doc/md.texi: Update.
* doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
TARGET_ASM_CLOSE_PAREN.
* config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
Override.
* config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
Override.
* config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
* config/a29k/a29k.h: Similarly.
* config/alpha/alpha.h: Similarly.
* config/arc/arc.h: Similarly.
* config/arm/aof.h: Similarly.
* config/arm/aout.h: Similarly.
* config/avr/avr.h: Similarly.
* config/c4x/c4x.h: Similarly.
* config/clipper/clipper.h: Similarly.
* config/convex/convex.h: Similarly.
* config/d30v/d30v.h: Similarly.
* config/dsp16xx/dsp16xx.h: Similarly.
* config/elxsi/elxsi.h: Similarly.
* config/fr30/fr30.h: Similarly.
* config/h8300/h8300.h: Similarly.
* config/i370/i370.h: Similarly.
* config/i386/i386.h: Similarly.
* config/i860/i860.h: Similarly.
* config/i960/i960.h: Similarly.
* config/ia64/ia64.h: Similarly.
* config/m32r/m32r.h: Similarly.
* config/m68hc11/m68hc11.h: Similarly.
* config/m68k/m68k.h: Similarly.
* config/m88k/m88k.h: Similarly.
* config/mcore/mcore.h: Similarly.
* config/mips/mips.h: Similarly.
* config/mn10200/mn10200.h: Similarly.
* config/mn10300/mn10300.h: Similarly.
* config/ns32k/ns32k.h: Similarly.
* config/pa/pa.h: Similarly.
* config/pdp11/pdp11.h: Similarly.
* config/pj/pj.h: Similarly.
* config/romp/romp.h: Similarly.
* config/rs6000/rs6000.h: Similarly.
* config/sh/sh.h: Similarly.
* config/sparc/sparc.h: Similarly.
* config/v850/v850.h: Similarly.
* config/vax/vax.h: Similarly.
* config/we32k/we32k.h: Similarly.
2001-07-09 Joseph S. Myers <jsm28@cam.ac.uk>
* doc/c-tree.texi: Document representation of attributes.
2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
* doc/tm.texi: Update some places for the rename of target to
targetm. Fix typo.
2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
* target.h (struct gcc_target): Add insert_attributes.
* target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
(TARGET_INITIALIZER): Update.
* tree.c, tree.h (default_insert_attributes): New function.
Update comments on other default functions to refer to targetm,
not target.
* doc/tm.texi (INSERT_ATTRIBUTES): Update to document
TARGET_INSERT_ATTRIBUTES.
(SET_DEFAULT_DECL_ATTRIBUTES): Remove.
* c-common.c (decl_attributes): Use targetm.insert_attributes.
Don't use PRAGMA_INSERT_ATTRIBUTES.
* Makefile.in (c-common.o): Depend on $(TARGET_H).
* c-decl.c (start_decl, start_function): Don't call
SET_DEFAULT_DECL_ATTRIBUTES.
* config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
* config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
declare.
* config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
(c4x_check_attribute): Avoid modifying attribute list itself.
(c4x_set_default_attributes): Rename to c4x_insert_attributes.
Make static.
* config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
* config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
declare.
* config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
(sh_pragma_insert_attributes): Rename to sh_insert_attributes.
Make static.
* config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
* config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
declare.
* config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
(v850_set_default_decl_attr): Rename to v850_insert_attributes.
Adjust parameters. Make static.
2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
* c-common.c (decl_attributes): Only take a single attributes
parameter.
* c-common.h (decl_attributes): Update prototype.
* c-decl.c (start_decl, start_function): Only take a single
attributes parameter. Update calls to decl_attributes.
(finish_struct, finish_enum): Update calls to decl_attributes.
(push_parm_decl): Expect unified list of attributes. Update call
to decl_attributes.
* c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
notype_nested_function, component_declarator,
component_notype_declarator, label): Update calls to
decl_attributes.
(absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
lists that are passed to push_parm_decl.
* c-tree.h (start_function, start_decl): Update prototypes.
* config/sh/sh-protos.h, config/sh/sh.c
(sh_pragma_insert_attributes): Only take a single attributes
parameter.
* config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
* doc/tm.texi (INSERT_ATTRIBUTES): Update.
* objc/objc-act.c (define_decl, generate_objc_symtab_decl,
build_module_descriptor, generate_static_references,
generate_strings, build_selector_translation_table,
generate_descriptor_table, generate_protocols,
generate_ivars_list, generate_dispatch_table,
generate_protocol_list, generate_category,
generate_shared_structures, really_start_method, add_objc_decls,
generate_classref_translation_entry): Update calls to start_decl
and start_function.
(build_tmp_function_decl, start_method_def): Unify attribute lists
that are passed to push_parm_decl.
2001-07-08 Neil Booth <neil@daikokuya.demon.co.uk>
* final.c (no_asm_to_stream): New.
(final_scan_insn): Use target structures for prologue ends
and epilogue starts.
* output.h (no_asm_to_stream): New.
* target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
(TARGET_ASM_OUT): Update.
* target.h (struct gcc_target): New members function_end_prologue
and function_begin_epilogue.
* config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
* config/alpha/alpha-protos.h (output_end_prologue): Delete.
* config/alpha/alpha.c (output_end_prologue): Rename to
alpha_output_function_end_prologue. Use in target struct
and make static.
* config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
* config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
* config/ia64/ia64.c (ia64_output_end_prologue): Rename to
ia64_output_function_end_prologue. Use in target struct
and make static.
(ia64_function_prologue, ia64_funciton_epilogue): Rename
mistyped prototypes.
* config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
* config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
Delete.
* config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
an use in target struct, make static.
* config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
Delete.
2001-07-08 Richard Henderson <rth@redhat.com>
* stmt.c (emit_case_nodes): Convert modes properly in low+high test.
2001-07-08 Richard Henderson <rth@redhat.com>
* config/i386/i386.md: Remove constraints strings from define_split
and define_peephole2 patterns.
(eh_return_si, eh_return_di): Split eh_return_1 for modes.
(eh_return): Use them.
2001-07-08 Richard Henderson <rth@redhat.com>
* doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
Document MD_FALLBACK_FRAME_STATE_FOR.
2001-07-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
elimination.
* config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
2001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
* config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
of the label inside NAME as opposed to just the end of NAME.
2001-07-07 Neil Booth <neil@daikokuya.demon.co.uk>
* config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
* config/alpha/alpha.c (alpha_init_machine_status,
alpha_mark_machine_status, alpha_free_machine_status): Delete.
(TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
(vms_valid_decl_attribute_p): Make static, conditionally compile.
* config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
2001-07-06 Stan Shebs <shebs@apple.com>
* target.h (targetm): Rename global from "target", so as not to
conflict with local variables.
* c-decl.c: Ditto.
* c-typeck.c: Ditto.
* final.c: Ditto.
* tree.c: Ditto.
* cp/decl.c: Ditto.
* cp/decl2.c: Ditto.
* cp/typeck.c: Ditto.
* 1750a/1750a.c: Ditto.
* a29k/a29k.c: Ditto.
* arc/arc.c: Ditto.
* arm/arm.c: Ditto.
* avr/avr.c: Ditto.
* clipper/clipper.c: Ditto.
* convex/convex.c: Ditto.
* d30v/d30v.c: Ditto.
* dsp16xx/dsp16xx.c: Ditto.
* elxsi/elxsi.c: Ditto.
* fr30/fr30.c: Ditto.
* h8300/h8300.c: Ditto.
* i370/i370.c: Ditto.
* i386/i386.c: Ditto.
* i860/i860.c: Ditto.
* i960/i960.c: Ditto.
* ia64/ia64.c: Ditto.
* m32r/m32r.c: Ditto.
* m68hc11/m68hc11.c: Ditto.
* m68k/m68k.c: Ditto.
* m88k/m88k.c: Ditto.
* mips/mips.c: Ditto.
* ns32k/ns32k.c: Ditto.
* pa/pa.c: Ditto.
* pdp11/pdp11.c: Ditto.
* romp/romp.c: Ditto.
* rs6000/rs6000.c: Ditto.
* sh/sh.c: Ditto.
* sparc/sparc.c: Ditto.
* vax/vax.c: Ditto.
* we32k/we32k.c: Ditto.
* doc/tm.texi: Update the manual to match.
2001-07-06 Richard Henderson <rth@redhat.com>
* except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
DWARF2_UNWIND_INFO not just whether it is defined.
2001-07-06 Diego Novillo <dnovillo@redhat.com>
* combine.c (combine_simplify_rtx): Also recompute 'mode' if the
call to simplify_binary_operation returns a new pattern.
2001-07-06 Roman Lechtchinsky <rl@cs.tu-berlin.de>
* glimits.h (__SHRT_MAX__): New.
(SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
(SHRT_MAX): Define in terms of __SHRT_MAX__.
2001-07-06 Jan van Male <jan.vanmale@fenk.wau.nl>
* alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
avoid warnings.
2001-07-06 Richard Henderson <rth@redhat.com>
* bitmap.c (bitmap_release_memory): Move adjacent to the
allocation functions.
(bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
the implementation. Binary search for the set bit.
(bitmap_union_of_diff): Allocate the temporary on the stack
instead of using xmalloc.
2001-07-06 Richard Henderson <rth@redhat.com>
* genrecog.c (validate_pattern): Warn for constraints in
define_{expand,split,peephole2}. Remove strict_low_part
before looking up match_dup.
2001-07-06 DJ Delorie <dj@redhat.com>
* doc/gcc.texi (Makefile): Rename to be a more general purpose
chapter about various build hints and history. Add section
talking about the various types of native and cross builds.
2001-07-06 Neil Booth <neil@daikokuya.demon.co.uk>
* Makefile.in (final.o): Depend on target.h.
* final.c: Include target.h.
(default_function_pro_epilogue): New.
(final_start_function): Use target structure for function prologues.
(final_end_function): Use target structure for function epilogues.
* fold-const.c (real_hex_to_f): Constify s and p.
* output.h (default_function_pro_epilogue): New.
* real.h (real_hex_to_f): Update prototype.
* target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
(TARGET_INITIALIZER): Update.
* target.h (gcc_target): Add struct asm_out.
* doc/tm.texi: Update.
config:
Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
TARGET_ASM_FUNCTION_EPILOGUE. Move macro code to functions
in cpu/cpu.c, or rename old functions consistently. Take
a HOST_WIDE INT not an int as the SIZE parameter. Remove now
redundant macros and prototypes. Make new functions static.
* 1750a/1750a.c: Similarly.
* 1750a/1750a.h: Similarly.
* a29k/a29k-protos.h: Similarly.
* a29k/a29k.c: Similarly.
* a29k/a29k.h: Similarly.
* arc/arc-protos.h: Similarly.
* arc/arc.c: Similarly.
* arc/arc.h: Similarly.
* arm/arm-protos.h: Similarly.
* arm/arm.c: Similarly.
* arm/arm.h: Similarly.
* avr/avr-protos.h: Similarly.
* avr/avr.c: Similarly.
* avr/avr.h: Similarly.
* clipper/clipper-protos.h: Similarly.
* clipper/clipper.c: Similarly.
* clipper/clipper.h: Similarly.
* convex/convex.c: Similarly.
* convex/convex.h: Similarly.
* d30v/d30v-protos.h: Similarly.
* d30v/d30v.c: Similarly.
* d30v/d30v.h: Similarly.
* d30v/d30v.md: Similarly.
* dsp16xx/dsp16xx-protos.h: Similarly.
* dsp16xx/dsp16xx.c: Similarly.
* dsp16xx/dsp16xx.h: Similarly.
* elxsi/elxsi.c: Similarly.
* elxsi/elxsi.h: Similarly.
* fr30/fr30.c: Similarly.
* fr30/fr30.md: Similarly.
* h8300/h8300-protos.h: Similarly.
* h8300/h8300.c: Similarly.
* h8300/h8300.h: Similarly.
* i370/i370-protos.h: Similarly.
* i370/i370.c: Similarly.
* i370/i370.h: Similarly.
* i386/i386.c: Similarly.
* i386/osf1elf.h: Similarly.
* i386/osfrose.h: Similarly.
* i860/i860-protos.h: Similarly.
* i860/i860.c: Similarly.
* i860/i860.h: Similarly.
* i960/i960-protos.h: Similarly.
* i960/i960.c: Similarly.
* i960/i960.h: Similarly.
* ia64/ia64-protos.h: Similarly.
* ia64/ia64.c: Similarly.
* ia64/ia64.h: Similarly.
* m32r/m32r-protos.h: Similarly.
* m32r/m32r.c: Similarly.
* m32r/m32r.h: Similarly.
* m68hc11/m68hc11-protos.h: Similarly.
* m68hc11/m68hc11.c: Similarly.
* m68hc11/m68hc11.h: Similarly.
* m68k/crds.h: Similarly.
* m68k/dpx2.h: Similarly.
* m68k/m68k-protos.h: Similarly.
* m68k/m68k.c: Similarly.
* m68k/m68k.h: Similarly.
* m68k/news.h: Similarly.
* m88k/m88k-protos.h: Similarly.
* m88k/m88k.c: Similarly.
* m88k/m88k.h: Similarly.
* mips/mips-protos.h: Similarly.
* mips/mips.c: Similarly.
* mips/mips.h: Similarly.
* ns32k/merlin.h: Similarly.
* ns32k/ns32k.c: Similarly.
* ns32k/ns32k.h: Similarly.
* ns32k/tek6000.h: Similarly.
* pa/pa-protos.h: Similarly.
* pa/pa.c: Similarly.
* pa/pa.h: Similarly.
* pdp11/2bsd.h: Similarly.
* pdp11/pdp11-protos.h: Similarly.
* pdp11/pdp11.c: Similarly.
* pdp11/pdp11.h: Similarly.
* romp/romp-protos.h: Similarly.
* romp/romp.c: Similarly.
* romp/romp.h: Similarly.
* rs6000/rs6000-protos.h: Similarly.
* rs6000/rs6000.c: Similarly.
* rs6000/rs6000.h: Similarly.
* rs6000/sysv4.h: Similarly.
* sh/sh-protos.h: Similarly.
* sh/sh.c: Similarly.
* sh/sh.h: Similarly.
* sparc/sparc-protos.h: Similarly.
* sparc/sparc.c: Similarly.
* sparc/sparc.h: Similarly.
* vax/vax.c: Similarly.
* vax/vax.h: Similarly.
* vax/vms.h: Similarly.
* we32k/we32k.c: Similarly.
* we32k/we32k.h: Similarly.
Fri Jul 6 11:47:59 2001 Jeffrey A Law (law@cygnus.com)
* basic-block.h (first_insn_after_basic_block_note): Declare.
* flow.c (first_insn_after_basic_block_note): Define. Moved
from...
* ssa.c (first_insn_after_basic_block_note): Remove.
* ssa-dce.c (find_inherently_necessary): Consider BARRIERs
necessary.
(ssa_eliminate_dead_code): Properly update the CFG and PHI
nodes when we find a dead conditional branch. Insert BARRIERs
after any blocks with no successors, but which do not have
any BARRIERs.
2001-07-06 Zack Weinberg <zackw@stanford.edu>
* varray.c (varray_check_failed): Use internal_error.
2001-07-05 Andrew Haley <aph@redhat.com>
* Makefile.in (LIB2_DIVMOD_FUNCS): New.
(LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
* mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
2001-07-02 Jason Merrill <jason_merrill@redhat.com>
* dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
reference if the target constant is also a SYMBOL_REF.
2001-07-05 Eric Christopher <echristo@redhat.com>
* config/mips/mips.h (MASK_MIPS3900): Remove.
(MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
(TARGET_MIPS3900): Change to use mips_arch.
(TARGET_MIPS4000): New.
(TARGET_MIPS4100): New.
(TARGET_MIPS4300): New.
(TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
(SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
for -mipsX.
(GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
(ISA_HAS_BRANCHLIKELY): To here.
(CC1_CPU_SPEC): New.
(CC1_SPEC): Use here. Remove 4650 and 3900 options.
(mips_arch_string): Declare.
(mips_arch): Declare.
(TARGET_OPTIONS): Add -march and -mtune.
* config/mips/mips.c (mips_arch_string): New.
(mips_arch): New.
(override_options): Handle -march for codegen and -mtune
for scheduling. Use mips_arch. Move tx39 target default here.
(mips_parse_cpu): Move error message to override_options.
* config/mips/r3900.h (TARGET_DEFAULT): Remove.
* config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
* doc/invoke.texi (Option Summary): Add -march and -mtune entries.
(MIPS Options): Ditto. Change mcpu entry to historical text.
2001-07-05 H.J. Lu (hjl@gnu.org)
* config/mips/mips.c (mips_parse_cpu): New function to parse
-march=*/-mcpu=*.
2001-07-05 Jim Wilson <wilson@redhat.com>
* config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
* config/ia64/t-ia64: Likewise.
(LIB1ASMFUNCS): Update comment.
2001-07-05 David Edelsohn <edelsohn@gnu.org>
* doc/install.texi (Install GCC: Binaries): Fix typo.
2001-07-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
reference using the stack pointer, adjust it since we push Y
temporarily.
("*ashrsi3"): Likewise.
("*lshrsi3"): Likewise.
2001-07-05 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
when -fomit-frame-pointer is used.
2001-07-05 Jeffrey Oldham <oldham@codesourcery.com>
* flow.c: Reverse Jan Hubicka's patch of 02July2001.
(try_redirect_by_replacing_jump): Reverse updating properly the
count and frequency information. Reverse removing cc0 setter.
(forwarder_block_p): Reverse fixing for fallthru blocks.
2001-07-05 DJ Delorie <dj@redhat.com>
* gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
(translate_options): If the above is defined, use it to map
given options to new options.
* doc/tm.texi: Document it.
2001-07-05 Brad Lucier <lucier@math.purdue.edu>
Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* doc/invoke.texi (Optimize Options): Document that -fgcse may
cause programs using computed gotos to run more slowly.
2001-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* doc/install.texi (Specific): Markup, spelling and typo fixes.
Fixed sorting.
Consistently require binutils 2.11.2, not prereleases.
(Specific, decstation-*): Canonicalize as mips-dec-*.
(Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
always necessary.
(Specific, m68k-altos): Removed reference to README.altos, deleted.
(Specific, mips-*): Reword MIPS C compiler requirements.
(Specific, powerpc*-*-*): New, mention --with-cpu once.
(Specific, sunv5): Removed, obsolete.
2001-07-05 Nathan Sidwell <nathan@codesourcery.com>
* dwarf2out.c (output_loc_list): Use an all ones mask for
.text asm output and don't rely on long long
literals. Reformat some long lines.
2001-07-05 Andreas Jaeger <aj@suse.de>
* doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
section.
2001-07-04 Daniel Berlin <dan@cgsoftware.com>
* dwarf2out.c (dwarf2out_define): Update comment.
(dwarf2out_undef): Ditto.
(dwarf2out_start_source_file): Ditto.
(dwarf2out_end_source_file): Ditto.
(dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
since we never call the start/end debug hook for the primary file.
2001-07-04 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.c (get_shift_alg): Remove an extra operand
from shll.
2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
* cppinit.c (remove_dup_dirs): Inform if a system include
directory is being reordered.
* doc/invoke.texi (Directory Options): GCC warns if you hide a
system include.
* doc/cpp.texi (Search Paths): Likewise.
* doc/gcc.texi (Interoperation): Remove information about
-I/usr/include.
2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
* varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
(VARRAY_TOP_CHAR_PTR): Likewise.
2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.c (process_command): Don't assign elements of a const char*.
Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* emit-rtl.c (change_address): Don't abort if invalid address while
reload is in progress.
2001-07-04 Daniel Berlin <dan@cgsoftware.com>
* c-lex.c (cb_file_change): Pass line number to
debug_start_source_file.
(cb_undefine): Pass correct line number to debug_undef.
* toplev.c (debug_start_source_file): Add line number to
parameters. Pass it along to dwarf2out_start_source_file.
(decode_g_option): Stop resetting debug level back to normal when
we change debug formats, unless the current level is
none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
3).
* toplev.h (debug_start_source_file): Add line number to
parameters.
* dwarf2out.h (dwarf2out_start_source_file): Add line number to
parameters.
* dwarf2out.c (dwarf2out_start_source_file): Add line number to
parameters.
Output debug_macinfo data for starting file if requested.
(dwarf2out_end_source_file): Output debug_macinfo data for ending
file if requested.
(dwarf2out_define): Output debug_macinfo data for defining a macro
if requested.
(dwarf2out_undef): Output debug_macinfo data for undefining a
macro if requested.
(DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
(DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
(macinfo_section_label): New. DWARF2 macro info section label.
(dwarf2out_init): If we want macro info, output the start label
for the section.
(dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
attribute to the compilation unit die pointing to the macro info.
2001-07-04 Daniel Berlin <dan@cgsoftware.com>
* dwarf2out.c (new_loc_list): Move to inside #ifdef
DWARF2_DEBUGGING_INFO.
(add_loc_descr_to_loc_list): Ditto.
(output_loc_list): Ditto.
Also, fix thinko in curr not being initialized.
(gen_internal_sym): Ditto.
Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* emit-rtl.c (replace_equiv_address): New function.
* expr.h (replace_equiv_address): New declaration.
* explow.c (validize_mem): Call it instead of change_address and
also call if -fforce-addr and address is constant.
* expr.c: Replace more calls to change_address with adjust_address
and/or replace_equiv_address or to validize_mem.
* function.c, regmove.c, config/alpha/alpha.c: Likewise.
* config/arm/arm.md, config/clipper/clipper.md: Likewise.
* config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
* config/i370/i370.md, config/i860/i860.md: Likewise.
* config/i960/i960.md, config/mips/mips.c: Likewise.
* config/mips/mips.md, config/pa/pa.md: Likewise.
* config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
* config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
* bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
function.
2001-07-04 Joseph S. Myers <jsm28@cam.ac.uk>
* doc/include: New directory.
* doc/fdl.texi: Move to doc/include/fdl.texi.
* doc/texinfo.tex: Move to doc/include/texinfo.tex.
* doc/include/funding.texi, doc/include/gpl.texi: New files.
* doc/gcc.texi: Use funding.texi and gpl.texi.
* Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
$(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
Update dependencies and use -I $(docdir)/include.
2001-07-04 Anthony Green <green@redhat.com>
* config/v850/t-v850 (v850-c.o): Add missing dependencies.
2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* doc/install.texi (sparc64-*-*): Remove garbage.
Wed Jul 4 09:07:44 2001 Jan van Male <jan.vanmale@fenk.wau.nl>
* i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
Fix typo in last change to use adjust_address.
2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* doc/install.texi (Specific): Update information for *-*-solaris*.
Tue Jul 3 22:33:15 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* explow.c (plus_constant_wide): Reinitialize Y for restart.
2001-07-03 Stan Shebs <shebs@apple.com>
* config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
case for flag_no_mach_text_sections.
(EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
* config/darwin.c (flag_no_mach_text_sections): Remove.
* config/darwin-protos.h (darwin_init_pragma): Remove decl.
Tue Jul 3 15:35:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* explow.c (plus_constant_wide, case PLUS): Call find_constant_term
and avoid checking for constant as first operand.
* recog.c (find_constant_term_loc): No longer static.
(adj_offettable_operand): Delete.
* rtl.h (adj_offsettable_operand): Delete declaration.
(find_constant_term): Add declaration.
* caller-save.c: Replace calls to adj_offsettable_operand with calls
to adjust_address.
* config/arm/arm.c, config/c4x/c4x.c: Likewise.
* config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
* config/i386/i386.c, config/i386/i386.md: Likewise.
* config/i860/i860.c, config/i960/i960.c: Likewise.
* config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
* config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
* config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
* config/mips/mips.c, config/mips/mips.md: Likewise.
* config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
* config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
* config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
* config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
* config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
* config/ns32k/ns32k.md: Likewise.
2001-07-03 Zack Weinberg <zackw@stanford.edu>
* rtl.c (copy_rtx): Handle 'T' format letter.
* gensupport.c (collect_insn_data): Likewise.
* print-rtl.c (print_rtx): Print 'T' slots like 's'.
2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
* doc/invoke.texi (Directory Options): Specifiy range for <N> in
-B option. Use 'dir' not 'foo' as example directory name.
2001-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
* doc/cppinternals.texi: Improve formatting and logical markup.
2001-07-03 Andreas Jaeger <aj@suse.de>
* Makefile.in (insn-recog.o): Add dependency on reload.h.
* genrecog.c (write_header): Include reload.h for prototypes in
insn-recog.c.
2001-07-03 Neil Booth <neil@daikokuya.demon.co.uk>
config:
* i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
* i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
i386_pe_valid_type_attribute_p): Add.
* i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
* i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
Mon Jul 2 21:52:19 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* explow.c (plus_constant_wide, case LO_SUM): New case.
(plus_constant_for_output_wide): Delete.
* rtl.h (plus_constant_for_output): Delete.
* alias.c (canon_rtx, init_alias_analysis): Call plus_constant
instead of plus_constant_for_output.
* recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
* config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
* config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
* config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
* config/sparc/sparc.md: Likewise.
Convert some change_address calls to adjust_address.
2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
* doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
doc/rtl.texi, doc/tm.texi: Improve formatting. Improve
documentation of -std and -Wwrite-strings.
2001-07-02 Geoffrey Keating <geoffk@redhat.com>
* cse.c (canon_hash): Don't register registers in very small
register classes, as extending their lifetime might cause
reload to fail.
Mon Jul 2 23:14:00 CEST 2001 Jan Hubicka <jh@suse.cz>
* flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
* flow.c (forwarder_block_p): Fix for fallthru blocks.
(try_redirect_by_replacing_jump): Update properly the count
and frequency information.
Mon Jul 2 14:20:13 2001 Jeffrey A Law (law@cygnus.com)
* toplev.c (dump_file_index): Move SSA dumps just after first
jump dump.
(dump_file): Corresponding changes.
(rest_of_compilation): Move SSA path to just after the first
jump pass.
* doc/gcc.texi (Passes): Update due to movement of SSA path.
* doc/invoke.texi: Update dump file #s as they were completely
out of date with reality.
2001-07-02 Geoffrey Keating <geoffk@redhat.com>
* doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
* expr.c (emit_move_insn_1): Deal with non-default
STACK_PUSH_CODE.
* expr.c (emit_single_push_insn): Fix warning.
2001-07-02 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
* expr.c (emit_move_insn_1): Avoid modifying
cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
Mon Jul 2 15:33:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* emit-rtl.c (adjust_address): New function.
* expr.h (adjust_address): Add declaration.
* builtins.c: Replace some calls to change_address with calls to it
or to validize_mem.
* caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
* function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
* config/arm/arm.c, config/convex/convex.c: Likewise.
* config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
* config/i386/i386.c, config/i386/i386.md: Likewise.
* config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
* config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
* config/m88k/m88k.c, config/mips/mips.md: Likewise.
* config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
* config/sh/sh.c, config/sparc/sparc.md: Likewise.
2001-07-02 Jim Wilson <wilson@redhat.com>
* config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
2001-07-02 Steve Ellcey <sje@cup.hp.com>
* config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
* config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
2001-07-02 Zack Weinberg <zackw@stanford.edu>
* cppinit.c (lang_defaults): New table.
(set_lang): Just read from lang_defaults into the live options
structure.
2001-07-02 Zack Weinberg <zackw@stanford.edu>
* Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
* doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
* doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* doc/install.texi: Various spelling and markup fixes.
(Installing GCC): Component specific installation instructions are
gone.
Fix reference.
Warn about removing old install dir in the presence of shared libs.
(Configuration): Invoke with options target to match configure
--help.
Consistently refer to gas, gld pathnames.
Invert --enable-multilib documentation.
Remove references to old compiler versions.
Mon Jul 2 12:50:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
section.
(Specific, mips*-sgi-irix5): Note IDO download.
Reworded MIPS C hints.
Use GNU as instead of GAS.
Markup fixes.
Removed SGI Freeware reference, IRIX 6 only.
(Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
Note N64 library requirement/workaround.
Update O32 hints.
Complete list of structure passing bug victims.
2001-07-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* doc/install.texi: Remove CVS Id.
2001-07-02 Andreas Jaeger <aj@suse.de>
* ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
(find_inherently_necessary): Remove unused variable.
2001-07-02 Nathan Sidwell <nathan@codesourcery.com>
* c-common.h (TDI_inlined): New ast dump phase.
(dump_flag_name): New function.
* c-dump.c (dump_files): Add inlined phase.
(dump_flag_name): Define.
* doc/invoke.texi (-fdump-ast-inlined): Document.
Mon Jul 2 06:29:36 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* stor-layout.c (layout_decl): Revert change to handling of alignment
in packed types.
Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
for FIELD_DECL.
2001-07-01 Geoffrey Keating <geoffk@redhat.com>
* doc/tm.texi (FUNCTION_ARG): Document that the last call
is special.
2001-07-01 Nathan Sidwell <nathan@codesourcery.com>
* tlink.c (recompile_files): Remove COMPILER_PATH and
LIBRARY_PATH from the environment.
2001-07-01 Zack Weinberg <zackw@stanford.edu>
* c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
RID_LAST_PQ. Move RID_FIRST_PQ down with the other FIRST/LAST
enumerators.
(OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
* c-parse.in (OBJC_STRING): Kill.
(objc_string): Decompose to [objc_string] '@' STRING.
(reswords): Take the leading '@' off all the Objective C keywords.
(objc_rid_sans_at): Kill.
(init_reswords): Don't initialize it.
(yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
(_yylex): Kill reconsider label. Look ahead one token after
an '@'; if we get an identifier, check whether it's an
Objective C @-keyword. If so, return the keyword. Otherwise,
put back the token and return the '@' as a terminal.
* cpplib.c (lex_macro_node): Remove unnecessary check for
leading '@' on identifier. Clarify control flow and commentary.
Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* cse.c (new_label_ref): Variable deleted.
(insert): Remove set of new_label_ref.
(check_for_label_ref): New function.
(cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
See ChangeLog.5 for earlier changes.
From-SVN: r43861
2001-07-09 13:20:51 +02:00
|
|
|
|
$(REGS_H) $(RECOG_H) $(EXPR_H) hard-reg-set.h flags.h insn-config.h \
|
2001-08-22 02:33:33 +02:00
|
|
|
|
$(INSN_ATTR_H) real.h toplev.h output.h reload.h $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
reg-stack.o : reg-stack.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) $(RECOG_H) \
|
2001-04-13 23:10:16 +02:00
|
|
|
|
$(REGS_H) hard-reg-set.h flags.h insn-config.h toplev.h reload.h \
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
varray.h function.h $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
predict.o: predict.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \
|
2000-01-14 03:01:21 +01:00
|
|
|
|
insn-config.h $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h toplev.h \
|
2001-06-10 00:39:25 +02:00
|
|
|
|
$(RECOG_H) function.h except.h $(EXPR_H) $(TM_P_H) $(PREDICT_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
lists.o: lists.c $(CONFIG_H) $(SYSTEM_H) toplev.h $(RTL_H) $(GGC_H)
|
|
|
|
|
bb-reorder.o : bb-reorder.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \
|
2001-11-05 16:38:01 +01:00
|
|
|
|
$(BASIC_BLOCK_H) hard-reg-set.h output.h cfglayout.h
|
|
|
|
|
cfglayout.o : cfglayout.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) \
|
|
|
|
|
insn-config.h $(BASIC_BLOCK_H) hard-reg-set.h output.h function.h \
|
|
|
|
|
cfglayout.h
|
2001-03-28 00:57:35 +02:00
|
|
|
|
timevar.o : timevar.c $(CONFIG_H) $(SYSTEM_H) $(TIMEVAR_H) flags.h intl.h
|
|
|
|
|
regrename.o : regrename.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) insn-config.h \
|
2000-10-27 22:58:57 +02:00
|
|
|
|
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h $(RECOG_H) function.h \
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
resource.h $(OBSTACK_H) flags.h $(TM_P_H)
|
Makefile.in (ifcvt.o): Depend on toplev.h.
* Makefile.in (ifcvt.o): Depend on toplev.h.
* c-semantics.c: Include expr.h.
* ifcvt.c: Include toplev.h.
* expr.h (rtx_equal_p): Delete prototype.
* rtl.h (exact_log2_wide, floor_log2_wide, permalloc,
protect_from_queue, gen_jump, gen_beq, gen_bge, gen_ble,
eliminate_constant_term, expand_complex_abs, find_single_use,
make_tree, init_expr_once, init_optabs, supports_one_only):
Likewise.
* tree.h (exact_log2_wide, floor_log2_wide, expand_null_return,
rest_of_type_compilation, emit_queue, do_pending_stack_adjust,
expand_assignment, store_expr, emit_line_note_after,
emit_line_note_force, split_specs_attrs, label_rtx): Likewise.
* toplev.h (exact_log2_wide, floor_log2_wide): Add prototype.
cp:
* Make-lang.in (cp/semantics.o): Depend on $(EXPR_H).
* semantics.c: Include expr.h.
java:
* Make-lang.in (java/boehm.o): Depend on toplev.h.
* boehm.c: Include toplev.h.
From-SVN: r41256
2001-04-11 17:51:55 +02:00
|
|
|
|
ifcvt.o : ifcvt.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(REGS_H) toplev.h \
|
2000-04-30 13:01:53 +02:00
|
|
|
|
flags.h insn-config.h function.h $(RECOG_H) $(BASIC_BLOCK_H) $(EXPR_H) \
|
optabs.h (OTI_flodiv, [...]): Kill.
* optabs.h (OTI_flodiv, flodiv_optab): Kill.
* genopinit.c: Put floating point divide insns in sdiv_optab.
* expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
* config/gofast.h, config/c4x/c4x.h,
config/ia64/hpux_longdouble.h, config/mips/mips.h,
config/pa/long_double.h, config/rs6000/sysv4.h,
config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
* optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
(init_optabs): Use init_optabv for overflow-trapping optabs.
Don't init flodiv_optab. Give mov_optab, movstrict_optab, and
cmp_optab RTX codes so have_insn_for can find them.
* optabs.c (expand_simple_binop, expand_simple_unop,
have_insn_for, gen_sub3_insn): New interfaces.
* expr.h: Prototype new functions.
(enum optab_methods): Move here from optabs.h.
* builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
Use new functions instead of working directly with optabs.
* doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
unroll.c: Don't include optabs.h.
* caller-save.c, combine.c, function.c, stmt.c: Just include
insn-codes.h, not optabs.h.
* Makefile.in: Update dependencies.
* combine.c (make_compound_operation, simplify_comparison):
Fix typos testing for this or that instruction.
From-SVN: r45008
2001-08-18 21:59:46 +02:00
|
|
|
|
output.h $(TM_P_H)
|
2001-03-28 00:57:35 +02:00
|
|
|
|
dependence.o : dependence.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) \
|
2000-09-17 09:38:23 +02:00
|
|
|
|
$(C_COMMON_H) flags.h varray.h $(EXPR_H)
|
2001-06-26 21:24:09 +02:00
|
|
|
|
params.o : params.c $(CONFIG_H) $(SYSTEM_H) $(PARAMS_H) toplev.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 \
|
expr.h: Split out optab- and libfunc-related code to...
* expr.h: Split out optab- and libfunc-related code to...
* optabs.h, libfuncs.h: ... these new headers.
* Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
(OPTABS_H): New.
(various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
dependencies.
* mkconfig.sh: Don't include insn-codes.h from config.h.
* reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
enum insn_code is available. Move reload_in_optab and
reload_out_optab array declarations to optabs.h.
* regmove.c (gen_add3_insn): Move to optabs.c, export from
there, prototype in expr.h.
* gencodes.c: Cleanup: zap global variables, don't use
printf where puts will do, don't bother defining MAX_INSN_CODE
which nothing uses, let CODE_FOR_nothing get its value implicitly.
* genemit.c, genopinit.c: Include optabs.h in generated file.
* genoutput.c: Include insn-codes.h in generated file.
* builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
Include optabs.h.
* builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/m88k/m88k.c, config/sparc/sparc.c:
Include libfuncs.h.
* reload.c: Include expr.h and optabs.h before reload.h.
* config/alpha/alpha.c: Include tree.h before reload.h.
* config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
and reload.h in that order.
* config/sparc/sparc.c: Include debug.h.
* recog.c: Include insn-codes.h.
cp:
* Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
* except.c: Include libfuncs.h.
java:
* Make-lang.in (java/decl.o): Update dependencies.
* decl.c: Include libfuncs.h, don't include toplev.h.
From-SVN: r44858
2001-08-13 17:56:51 +02:00
|
|
|
|
output.h $(INSN_ATTR_H) $(SYSTEM_H) toplev.h $(TARGET_H) libfuncs.h \
|
2001-11-09 08:14:20 +01:00
|
|
|
|
$(TARGET_DEF_H) function.h sched-int.h $(TM_P_H) $(EXPR_H) $(OPTABS_H) \
|
|
|
|
|
langhooks.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
|
|
|
|
|
2001-03-28 00:57:35 +02: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
|
|
|
|
|
2001-03-28 00:57:35 +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.
|
Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
* Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
* i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
(FUNCTION_PROFILER): Const-ify.
* halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
(eliminate_constant_term, assemble_name, output_addr_const):
Remove declarations.
(ptr_half_pic_address_p, half_pic_hash): Prototype.
(all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
* halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
(half_pic_declare, half_pic_external): Const-ify.
* toplev.c: Include "halfpic.h".
From-SVN: r46583
2001-10-28 15:01:20 +01:00
|
|
|
|
halfpic.o: halfpic.c $(CONFIG_H) $(RTL_H) $(TREE_H) $(SYSTEM_H) halfpic.h
|
1993-12-12 13:48:37 +01:00
|
|
|
|
|
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.
|
|
|
|
|
|
Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
* Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
(CONFIG_H, TCONFIG_H, TM_P_H): Update.
(GEN, STAGESTUFF): Add new files.
(insn-constants.h, s-constants, tm-preds.h, s-preds,
genconstants, genpreds, genconstants.o, genpreds.o): New rules.
(hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
* mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
as well as insn-codes.h and insn-flags.h in config.h; and no
extra headers in tconfig.h and hconfig.h.
* gencodes.c: Eliminate code to generate predicate declarations
or #defines for md-file constants.
* genconstants.c, genpreds.c: New files.
* i386.md: Re-order guard expressions such that TARGET_64BIT
comes first, when this permits better optimization. Add
TARGET_64BIT to more x86-64 patterns. Add comment explaining
why this is desirable.
From-SVN: r44743
2001-08-09 19:11:00 +02:00
|
|
|
|
.PRECIOUS: insn-config.h insn-flags.h insn-codes.h insn-constants.h \
|
1992-02-03 23:08:59 +01:00
|
|
|
|
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
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) 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
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) 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
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) s-codes
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
* Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
(CONFIG_H, TCONFIG_H, TM_P_H): Update.
(GEN, STAGESTUFF): Add new files.
(insn-constants.h, s-constants, tm-preds.h, s-preds,
genconstants, genpreds, genconstants.o, genpreds.o): New rules.
(hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
* mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
as well as insn-codes.h and insn-flags.h in config.h; and no
extra headers in tconfig.h and hconfig.h.
* gencodes.c: Eliminate code to generate predicate declarations
or #defines for md-file constants.
* genconstants.c, genpreds.c: New files.
* i386.md: Re-order guard expressions such that TARGET_64BIT
comes first, when this permits better optimization. Add
TARGET_64BIT to more x86-64 patterns. Add comment explaining
why this is desirable.
From-SVN: r44743
2001-08-09 19:11:00 +02:00
|
|
|
|
insn-constants.h: s-constants ; @true
|
|
|
|
|
s-constants : $(md_file) genconstants$(build_exeext) $(srcdir)/move-if-change
|
|
|
|
|
./genconstants$(build_exeext) $(md_file) > tmp-constants.h
|
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-constants.h insn-constants.h
|
|
|
|
|
$(STAMP) s-constants
|
|
|
|
|
|
1998-06-27 06:42:25 +02:00
|
|
|
|
insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) $(EXPR_H) real.h output.h \
|
expr.h: Split out optab- and libfunc-related code to...
* expr.h: Split out optab- and libfunc-related code to...
* optabs.h, libfuncs.h: ... these new headers.
* Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
(OPTABS_H): New.
(various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
dependencies.
* mkconfig.sh: Don't include insn-codes.h from config.h.
* reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
enum insn_code is available. Move reload_in_optab and
reload_out_optab array declarations to optabs.h.
* regmove.c (gen_add3_insn): Move to optabs.c, export from
there, prototype in expr.h.
* gencodes.c: Cleanup: zap global variables, don't use
printf where puts will do, don't bother defining MAX_INSN_CODE
which nothing uses, let CODE_FOR_nothing get its value implicitly.
* genemit.c, genopinit.c: Include optabs.h in generated file.
* genoutput.c: Include insn-codes.h in generated file.
* builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
Include optabs.h.
* builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/m88k/m88k.c, config/sparc/sparc.c:
Include libfuncs.h.
* reload.c: Include expr.h and optabs.h before reload.h.
* config/alpha/alpha.c: Include tree.h before reload.h.
* config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
and reload.h in that order.
* config/sparc/sparc.c: Include debug.h.
* recog.c: Include insn-codes.h.
cp:
* Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
* except.c: Include libfuncs.h.
java:
* Make-lang.in (java/decl.o): Update dependencies.
* decl.c: Include libfuncs.h, don't include toplev.h.
From-SVN: r44858
2001-08-13 17:56:51 +02:00
|
|
|
|
insn-config.h $(OPTABS_H) $(SYSTEM_H) reload.h $(RECOG_H) toplev.h \
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
function.h flags.h hard-reg-set.h resource.h $(TM_P_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
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) 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) \
|
2001-03-28 00:57:35 +02:00
|
|
|
|
real.h output.h flags.h $(SYSTEM_H) function.h hard-reg-set.h resource.h \
|
2001-07-03 08:22:01 +02:00
|
|
|
|
$(TM_P_H) toplev.h reload.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
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) s-recog
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
mkconfig.sh: Include insn-flags.h.
* mkconfig.sh: Include insn-flags.h.
* Makefile.in (CONFIG_H): Include insn-flags.h.
(lots of objects): Remove insn-codes.h and insn-flags.h.
* alias.c, bb-reorder.c, calls.c, do-loop.c, flow.c, haifa-sched.c,
integrate.c, jump.c, loop.c, predict.c, profile.c, reg-stack.c,
regmove.c, reorg.c, a29k/a29k.c, alpha/alpha.c, arc/arc.c, arm/arm.c,
avr/avr.c, clipper/clipper.c, convex/convex.c, d30v/d30v.c,
dsp16xx/dsp16xx.c, fr30/fr30.c, h8300/h8300.c, i370/i370.c,
i386/i386.c, i860/i860.c, ia64/ia64.c, m32r/m32r.c, m68hc11/m68hc11.c,
m68k/m68k.c, m88k/m88k.c, mcore/mcore.c, mn10200/mn10200.c,
mn10300/mn10300.c, ns32k/ns32k.c, pa/pa.c, pdp11/pdp11.c,
pj/pj.c, romp/romp.c, rs6000/rs6000.c, sh/sh.c, sparc/sparc.c,
v850/v850.c, vax/vax.c:
Don't include insn-flags.h.
* diagnostic.c, expr.h, reload.c, toplev.c:
Don't include insn-codes.h.
* builtins.c, combine.c, except.c, explow.c, expmed.c, expr.c,
final.c, function.c, optabs.c, recog.c, reload1.c, stmt.c,
c4x/c4x.c, i960/i960.c, mips/mips.c:
Don't include insn-codes.h or insn-flags.h.
* genemit.c, genopinit.c, genoutput.c: Don't include insn-codes.h
or insn-flags.h in the generated code.
* genflags.c (gen_proto): Use "struct rtx_def *" instead of "rtx".
(main): Forward declare struct rtx_def.
From-SVN: r40754
2001-03-22 19:48:52 +01:00
|
|
|
|
insn-opinit.o : insn-opinit.c $(CONFIG_H) $(RTL_H) \
|
expr.h: Split out optab- and libfunc-related code to...
* expr.h: Split out optab- and libfunc-related code to...
* optabs.h, libfuncs.h: ... these new headers.
* Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
(OPTABS_H): New.
(various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
dependencies.
* mkconfig.sh: Don't include insn-codes.h from config.h.
* reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
enum insn_code is available. Move reload_in_optab and
reload_out_optab array declarations to optabs.h.
* regmove.c (gen_add3_insn): Move to optabs.c, export from
there, prototype in expr.h.
* gencodes.c: Cleanup: zap global variables, don't use
printf where puts will do, don't bother defining MAX_INSN_CODE
which nothing uses, let CODE_FOR_nothing get its value implicitly.
* genemit.c, genopinit.c: Include optabs.h in generated file.
* genoutput.c: Include insn-codes.h in generated file.
* builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
Include optabs.h.
* builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
config/m88k/m88k.c, config/sparc/sparc.c:
Include libfuncs.h.
* reload.c: Include expr.h and optabs.h before reload.h.
* config/alpha/alpha.c: Include tree.h before reload.h.
* config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
and reload.h in that order.
* config/sparc/sparc.c: Include debug.h.
* recog.c: Include insn-codes.h.
cp:
* Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
* except.c: Include libfuncs.h.
java:
* Make-lang.in (java/decl.o): Update dependencies.
* decl.c: Include libfuncs.h, don't include toplev.h.
From-SVN: r44858
2001-08-13 17:56:51 +02:00
|
|
|
|
insn-config.h flags.h $(RECOG_H) $(EXPR_H) $(OPTABS_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
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) s-opinit
|
1993-03-30 22:31:01 +02:00
|
|
|
|
|
2001-03-28 00:57:35 +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
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) 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 \
|
2001-03-28 00:57:35 +02:00
|
|
|
|
$(SYSTEM_H) insn-config.h $(RECOG_H) except.h function.h $(TM_P_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
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) 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 \
|
2001-04-13 23:10:16 +02:00
|
|
|
|
output.h $(INSN_ATTR_H) insn-config.h $(SYSTEM_H) toplev.h $(RECOG_H) \
|
|
|
|
|
$(TM_P_H) flags.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
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) 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
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) 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 \
|
2001-04-11 17:57:31 +02:00
|
|
|
|
conditions.h hard-reg-set.h insn-config.h $(INSN_ATTR_H) $(EXPR_H) \
|
2001-03-28 00:57:35 +02:00
|
|
|
|
output.h $(RECOG_H) function.h $(SYSTEM_H) toplev.h flags.h \
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
$(TM_P_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
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) s-output
|
1998-01-08 22:17:05 +01:00
|
|
|
|
|
2001-03-28 00:57:35 +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)
|
Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
* Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
(CONFIG_H, TCONFIG_H, TM_P_H): Update.
(GEN, STAGESTUFF): Add new files.
(insn-constants.h, s-constants, tm-preds.h, s-preds,
genconstants, genpreds, genconstants.o, genpreds.o): New rules.
(hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
* mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
as well as insn-codes.h and insn-flags.h in config.h; and no
extra headers in tconfig.h and hconfig.h.
* gencodes.c: Eliminate code to generate predicate declarations
or #defines for md-file constants.
* genconstants.c, genpreds.c: New files.
* i386.md: Re-order guard expressions such that TARGET_64BIT
comes first, when this permits better optimization. Add
TARGET_64BIT to more x86-64 patterns. Add comment explaining
why this is desirable.
From-SVN: r44743
2001-08-09 19:11:00 +02:00
|
|
|
|
./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
|
Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
* Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
(CONFIG_H, TCONFIG_H, TM_P_H): Update.
(GEN, STAGESTUFF): Add new files.
(insn-constants.h, s-constants, tm-preds.h, s-preds,
genconstants, genpreds, genconstants.o, genpreds.o): New rules.
(hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
* mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
as well as insn-codes.h and insn-flags.h in config.h; and no
extra headers in tconfig.h and hconfig.h.
* gencodes.c: Eliminate code to generate predicate declarations
or #defines for md-file constants.
* genconstants.c, genpreds.c: New files.
* i386.md: Re-order guard expressions such that TARGET_64BIT
comes first, when this permits better optimization. Add
TARGET_64BIT to more x86-64 patterns. Add comment explaining
why this is desirable.
From-SVN: r44743
2001-08-09 19:11:00 +02: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
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) s-genrtl
|
Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
* Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
(CONFIG_H, TCONFIG_H, TM_P_H): Update.
(GEN, STAGESTUFF): Add new files.
(insn-constants.h, s-constants, tm-preds.h, s-preds,
genconstants, genpreds, genconstants.o, genpreds.o): New rules.
(hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
* mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
as well as insn-codes.h and insn-flags.h in config.h; and no
extra headers in tconfig.h and hconfig.h.
* gencodes.c: Eliminate code to generate predicate declarations
or #defines for md-file constants.
* genconstants.c, genpreds.c: New files.
* i386.md: Re-order guard expressions such that TARGET_64BIT
comes first, when this permits better optimization. Add
TARGET_64BIT to more x86-64 patterns. Add comment explaining
why this is desirable.
From-SVN: r44743
2001-08-09 19:11:00 +02:00
|
|
|
|
|
|
|
|
|
tm-preds.h: s-preds; @true
|
|
|
|
|
|
|
|
|
|
s-preds: genpreds$(build_exeext) $(srcdir)/move-if-change
|
|
|
|
|
./genpreds$(build_exeext) > tmp-preds.h
|
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-preds.h tm-preds.h
|
|
|
|
|
$(STAMP) s-preds
|
|
|
|
|
|
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.
|
|
|
|
|
|
i386.md: Global update to use new string syntax where it will improve readability.
* config/i386/i386.md: Global update to use new string syntax
where it will improve readability. Warning fixes:
(*truncdfsf2_2): Abort if which_alternative is not 0 or 1.
(*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64,
*adddi_4_rex64, *adddi_5_rex64): Cast 1 to unsigned int.
* read-rtl.c: Syntactic sugar for C embedded in strings in
machine descriptions.
(read_string): Break inner loop into separate function. Takes
an int. Dispatch to read_quoted_string or read_braced_string
as appropriate. Automatically insert a leading star on braced
strings if STAR_IF_BRACED is true.
(read_quoted_string, read_braced_string): New functions.
* doc/rtl.texi, doc/md.texi: Document new syntax. Update
examples to match.
* rtl.c: Split RTL reader (read_rtx, read_skip_spaces,
traverse_md_constants, fatal_with_file_and_line,
fatal_expected_char, read_name, read_string, def_hash,
def_name_eq_p, read_constants, and related data) to its own
file. Weed out now-unnecessary #includes.
* read-rtl.c: New file.
* Makefile.in (HOST_RTL): Add read-rtl.o.
(read-rtl.o): New rule.
(rtl.o, $(HOST_PREFIX_1)rtl.o): Update dependencies.
* doc/gcc.texi (Passes): Talk briefly about the support
library used by genfoo.
* doc/rtl.texi (Reading RTL): read_rtx is not available in the
compiler itself.
From-SVN: r43646
2001-06-28 23:50:09 +02:00
|
|
|
|
read-rtl.o: read-rtl.c $(HCONFIG_H) $(SYSTEM_H) $(RTL_H) \
|
|
|
|
|
$(OBSTACK_H) $(HASHTAB_H)
|
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/read-rtl.c
|
|
|
|
|
|
2001-03-28 00:57:35 +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
|
2001-08-10 01:12:38 +02:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) hashtab.c
|
2000-11-22 02:22:02 +01:00
|
|
|
|
|
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
|
2001-08-10 01:12:38 +02:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) safe-ctype.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
|
|
|
|
|
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
|
|
|
|
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
genconfig.o : genconfig.c $(RTL_H) $(HCONFIG_H) \
|
2001-03-28 00:57:35 +02:00
|
|
|
|
$(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
|
|
|
|
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
genflags.o : genflags.c $(RTL_H) $(OBSTACK_H) $(HCONFIG_H) \
|
2001-03-28 00:57:35 +02:00
|
|
|
|
$(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
|
|
|
|
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
gencodes.o : gencodes.c $(RTL_H) $(HCONFIG_H) \
|
2001-03-28 00:57:35 +02:00
|
|
|
|
$(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
|
|
|
|
|
|
Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
* Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
(CONFIG_H, TCONFIG_H, TM_P_H): Update.
(GEN, STAGESTUFF): Add new files.
(insn-constants.h, s-constants, tm-preds.h, s-preds,
genconstants, genpreds, genconstants.o, genpreds.o): New rules.
(hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
* mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
as well as insn-codes.h and insn-flags.h in config.h; and no
extra headers in tconfig.h and hconfig.h.
* gencodes.c: Eliminate code to generate predicate declarations
or #defines for md-file constants.
* genconstants.c, genpreds.c: New files.
* i386.md: Re-order guard expressions such that TARGET_64BIT
comes first, when this permits better optimization. Add
TARGET_64BIT to more x86-64 patterns. Add comment explaining
why this is desirable.
From-SVN: r44743
2001-08-09 19:11:00 +02:00
|
|
|
|
genconstants$(build_exeext) : genconstants.o $(HOST_RTL) $(HOST_ERRORS) $(HOST_LIBDEPS)
|
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
|
|
|
|
genconstants.o $(HOST_RTL) $(HOST_ERRORS) $(HOST_LIBS)
|
|
|
|
|
|
|
|
|
|
genconstants.o : genconstants.c $(RTL_H) $(HCONFIG_H) $(SYSTEM_H) errors.h
|
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genconstants.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
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
genemit.o : genemit.c $(RTL_H) $(HCONFIG_H) $(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
|
|
|
|
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
genopinit.o : genopinit.c $(RTL_H) $(HCONFIG_H) \
|
2001-03-28 00:57:35 +02:00
|
|
|
|
$(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
|
|
|
|
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
genrecog.o : genrecog.c $(RTL_H) $(HCONFIG_H) \
|
2001-03-28 00:57:35 +02:00
|
|
|
|
$(SYSTEM_H) errors.h gensupport.h
|
2001-05-16 21:05:50 +02:00
|
|
|
|
$(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
|
|
|
|
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
genextract.o : genextract.c $(RTL_H) $(HCONFIG_H) \
|
2001-03-28 00:57:35 +02:00
|
|
|
|
$(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
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
genpeep.o : genpeep.c $(RTL_H) $(HCONFIG_H) $(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
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
genattr.o : genattr.c $(RTL_H) $(HCONFIG_H) $(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
|
|
|
|
|
|
2001-08-30 22:44:51 +02: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 $@ \
|
2001-08-30 22:44:51 +02:00
|
|
|
|
genattrtab.o $(HOST_RTL) $(HOST_PRINT) $(HOST_ERRORS) $(HOST_LIBS)
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
genattrtab.o : genattrtab.c $(RTL_H) $(OBSTACK_H) $(HCONFIG_H) \
|
2001-08-30 22:44:51 +02:00
|
|
|
|
$(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
|
|
|
|
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
genoutput.o : genoutput.c $(RTL_H) $(HCONFIG_H) \
|
2001-03-28 00:57:35 +02:00
|
|
|
|
$(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)
|
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
gengenrtl.o : gengenrtl.c $(RTL_BASE_H) $(HCONFIG_H) $(SYSTEM_H) real.h
|
1998-01-08 22:17:05 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gengenrtl.c
|
Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
* Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
(CONFIG_H, TCONFIG_H, TM_P_H): Update.
(GEN, STAGESTUFF): Add new files.
(insn-constants.h, s-constants, tm-preds.h, s-preds,
genconstants, genpreds, genconstants.o, genpreds.o): New rules.
(hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
* mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
as well as insn-codes.h and insn-flags.h in config.h; and no
extra headers in tconfig.h and hconfig.h.
* gencodes.c: Eliminate code to generate predicate declarations
or #defines for md-file constants.
* genconstants.c, genpreds.c: New files.
* i386.md: Re-order guard expressions such that TARGET_64BIT
comes first, when this permits better optimization. Add
TARGET_64BIT to more x86-64 patterns. Add comment explaining
why this is desirable.
From-SVN: r44743
2001-08-09 19:11:00 +02:00
|
|
|
|
|
|
|
|
|
genpreds$(build_exeext) : genpreds.o $(HOST_LIBDEPS)
|
|
|
|
|
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
|
|
|
|
|
genpreds.o $(HOST_LIBS)
|
|
|
|
|
|
|
|
|
|
genpreds.o : genpreds.c $(RTL_BASE_H) $(HCONFIG_H) $(SYSTEM_H)
|
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genpreds.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
|
aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
libiberty:
* aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
* configure.in: Replace all alloca logic with a simple use of
the above new macro.
* config.table: Kill *-*-beos* entry.
* config/mh-beos: Delete.
* configure, config.in: Regenerate.
* Makefile.in (ALLOCA, HFILES): Kill.
(REQUIRED_OFILES): Add alloca.o.
(alloca.o): Depend on libiberty.h.
(argv.o): Don't depend on alloca-conf.h.
* alloca-conf.h: Delete.
* alloca.c: Include libiberty.h. Kill all #ifdef emacs
blocks. Provide the C alloca unconditionally. Use PTR where
appropriate. Make i00afunc static.
* argv.c: Don't include alloca-conf.h.
include:
* libiberty.h: Prototype C_alloca; define alloca to either
__builtin_alloca or C_alloca as appropriate.
gcc:
* aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE
AC_FUNC_ALLOCA.
* configure, config.in: Regenerate.
* config.gcc: Remove references to deleted files.
* genattr.c, genattrtab.c, genextract.c, genoutput.c,
genrecog.c, rtl.c: Do not use alloca anywhere.
* Makefile.in, build-make, system.h, config/x-interix,
config/x-svr4, config/xm-interix.h, config/xm-openbsd.h,
config/alpha/xm-alpha.h, config/alpha/xm-vms.h,
config/arc/xm-arc.h, config/arm/xm-arm.h,
config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
config/h8300/xm-h8300.h, config/i370/x-oe,
config/i370/xm-linux.h, config/i386/x-aix, config/i386/x-beos,
config/i386/x-ncr3000, config/i386/x-sco5,
config/i386/xm-dgux.h, config/i860/x-sysv4,
config/i960/xm-i960.h, config/m32r/xm-m32r.h,
config/m68k/x-crds, config/m68k/x-dpx2, config/m68k/x-hp320,
config/m68k/x-hp320g, config/m69k/x-mot3300,
config/m68k/x-mot3300-gas, config/m68k/xm-amix.h,
config/m68k/xm-hp320.h, config/m68k/xm-m68kv.h,
config/m68k/xm-mot3300.h, config/m88k/x-dolph,
config/m88k/x-sysv4, config/m88k/x-tekXD88,
config/m88k/xm-m88k.h, config/mcore/xm-mcore.h,
config/mips/x-iris, config/mips/x-iris3,
config/mips/x-sni-svr4, config/mips/x-sysv,
config/mips/xm-iris6.h, config/mips/xm-mips.h,
config/mips/xm-nws3250v4.h, config/pa/x-hpux,
config/pa/x-pa-mpeix, config/pa/xm-pa.h,
config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h,
config/pa/xm-papro.h, config/romp/xm-romp.h,
config/rs6000/x-aix31, config/rs6000/x-aix41,
config/rs6000/x-beos, config/rs6000/x-lynx,
config/rs6000/x-mach, config/rs6000/x-rs6000,
config/rs6000/x-sysv4, config/rs6000/xm-rs6000.h,
config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
config/sparc/x-sysv4, config/sparc/xm-linux.h,
config/sparc/xm-pbd.h, config/sparc/xm-sparc.h,
config/vax/xm-vms.h: Eradicate all references to alloca and
related stuff.
* config/xm-alloca.h, config/clipper/x-clix,
config/i386/xm-sysv4.h, config/i860/x-fx2800,
config/i860/x-sysv3, config/m88k/x-sysv3,
config/sparc/xm-sol2.h, config/we32k/x-we32k: Delete
(contained only alloca related hacks).
* config/i386/xm-beos.h, config/rs6000/xm-beos.h: Just define
USE_C_ALLOCA.
From-SVN: r40259
2001-03-06 10:52:35 +01:00
|
|
|
|
# with the rules for rtl.o, etc.
|
2001-03-28 00:57:35 +02:00
|
|
|
|
$(HOST_PREFIX_1)rtl.o: $(srcdir)/rtl.c $(HCONFIG_H) $(SYSTEM_H) $(RTL_H) \
|
Makefile.in ($(HOST_PREFIX_1)rtl.o, $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o, $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o, $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o, $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
* Makefile.in ($(HOST_PREFIX_1)rtl.o,
$(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
$(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
$(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
$(HOST_PREFIX_1)ggc-none.o): Update dependencies.
From-SVN: r46878
2001-11-09 10:55:23 +01:00
|
|
|
|
real.h $(GGC_H) errors.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
|
|
|
|
|
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
$(HOST_PREFIX_1)print-rtl.o: $(srcdir)/print-rtl.c $(HCONFIG_H) \
|
Makefile.in ($(HOST_PREFIX_1)rtl.o, $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o, $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o, $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o, $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
* Makefile.in ($(HOST_PREFIX_1)rtl.o,
$(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
$(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
$(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
$(HOST_PREFIX_1)ggc-none.o): Update dependencies.
From-SVN: r46878
2001-11-09 10:55:23 +01:00
|
|
|
|
$(RTL_H) $(TREE_H) hard-reg-set.h $(BASIC_BLOCK_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
|
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
$(HOST_PREFIX_1)bitmap.o: $(srcdir)/bitmap.c $(HCONFIG_H) $(SYSTEM_H) $(RTL_H) \
|
Makefile.in ($(HOST_PREFIX_1)rtl.o, $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o, $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o, $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o, $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
* Makefile.in ($(HOST_PREFIX_1)rtl.o,
$(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
$(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
$(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
$(HOST_PREFIX_1)ggc-none.o): Update dependencies.
From-SVN: r46878
2001-11-09 10:55:23 +01:00
|
|
|
|
flags.h $(BASIC_BLOCK_H) $(REGS_H)
|
Makefile.in (HOST_RTL): Add $(HOST_PREFIX)bitmap.o.
* Makefile.in (HOST_RTL): Add $(HOST_PREFIX)bitmap.o.
(rtl.o, emit-rtl.o): Add dependency on bitmap.h.
($(HOST_PREFIX_1)rtl.o): Likewise.
($(HOST_PREFIX_1)bitmap.o): New host object.
* emit-rtl.c (toplevel): Include bitmap.h.
(gen_rtx): Handle 't' and 'b' nodes.
* print-rtl.c (print_rtx): Handle printing NOTE_INSN_LIVE notes.
Print block number for block begin/end notes. Print 't' type
nodes as a pointer. Know that the 3rd argument of live range
start/stop notes is really a range_info rtx. If type is 'b', print
out argument as a bitmap.
* rtl.c: Include bitmap.c.
(copy_rtx): Copy tree nodes as is. Copy bitmaps if type is 'b'.
(note_insn_name): Add NOTE_INSN_RANGE_{START,END}, NOTE_INSN_LIVE.
* rtl.def (RANGE_LIVE): New node to hold live information while we
recalculate the basic blocks.
(RANGE_REG, RANGE_INFO): New rtl types for live range splitting.
(RANGE_VAR): New node, to hold information saved in symbol node for New
communicating live range information to the debug output functions.
* rtl.h (rtunion_def): Add rttree and rtbit fields.
(XBITMAP, XTREE): New accessor macros.
(NOTE_LIVE_INFO): Overload NOTE_SOURCE_FILE for NOTE_INSN_LIVE notes.
(NOTE_RANGE_INFO): Similarly for NOTE_INSN_RANGE_{START,END} notes.
(NOTE_BLOCK_LIVE_RANGE_BLOCK): Define.
(NOTE_INSN_RANGE_START, NOTE_INSN_RANGE_END, NOTE_INSN_LIVE): New notes.
(RANGE_LIVE_{BITMAP,ORIG_BLOCK}): New accessor macros.
(RANGE_REG_{SYMBOL,BLOCK}_NODE, RANGE_VAR_*): New accessor macros.
(RANGE_INFO_*): Likewise.
* sched.c (sched_analyze): Keep live range start/stop notes.
(unlink_other_notes): Likewise.
* haifa-sched.c (sched_analyze): Keep live range start/stop notes.
(unlink_other_notes): Likewise.
* tree.h (BLOCK_LIVE_RANGE_{START,END,VAR_FLAG}): New accessor macros.
(BLOCK_LIVE_RANGE_FLAG): Likewise.
(DECL_LIVE_RANGE_RTL): Likewise.
(struct tree_block): Add live_range_flag, live_range_var_flag,
live_range_start and live_range_end.
(struct tree_decl): Add live_range_rtl field.
* gengenrtl.c (type_from_format): Handle 'b' and 't'.
(accessor_from_format): Likewise.
Co-Authored-By: Jeffrey A Law <law@cygnus.com>
From-SVN: r19727
1998-05-13 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
|
|
|
|
|
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
$(HOST_PREFIX_1)obstack.o: $(srcdir)/../libiberty/obstack.c $(HCONFIG_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
|
|
|
|
|
|
Makefile.in ($(HOST_PREFIX_1)rtl.o, $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o, $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o, $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o, $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
* Makefile.in ($(HOST_PREFIX_1)rtl.o,
$(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
$(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
$(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
$(HOST_PREFIX_1)ggc-none.o): Update dependencies.
From-SVN: r46878
2001-11-09 10:55:23 +01:00
|
|
|
|
$(HOST_PREFIX_1)vfprintf.o: $(srcdir)/../libiberty/vfprintf.c $(HCONFIG_H) \
|
|
|
|
|
$(SYSTEM_H)
|
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
|
|
|
|
|
|
Makefile.in ($(HOST_PREFIX_1)rtl.o, $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o, $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o, $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o, $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
* Makefile.in ($(HOST_PREFIX_1)rtl.o,
$(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
$(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
$(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
$(HOST_PREFIX_1)ggc-none.o): Update dependencies.
From-SVN: r46878
2001-11-09 10:55:23 +01:00
|
|
|
|
$(HOST_PREFIX_1)doprint.o: doprint.c $(HCONFIG_H) $(SYSTEM_H)
|
1998-05-07 13:44:09 +02:00
|
|
|
|
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
|
|
|
|
|
|
Makefile.in ($(HOST_PREFIX_1)rtl.o, $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o, $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o, $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o, $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
* Makefile.in ($(HOST_PREFIX_1)rtl.o,
$(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
$(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
$(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
$(HOST_PREFIX_1)ggc-none.o): Update dependencies.
From-SVN: r46878
2001-11-09 10:55:23 +01:00
|
|
|
|
$(HOST_PREFIX_1)strstr.o: $(srcdir)/../libiberty/strstr.c $(HCONFIG_H) \
|
|
|
|
|
$(SYSTEM_H)
|
2001-01-21 02:51:42 +01:00
|
|
|
|
rm -f $(HOST_PREFIX)strstr.c
|
|
|
|
|
sed -e 's/config[.]h/hconfig.h/' $(srcdir)/../libiberty/strstr.c > $(HOST_PREFIX)strstr.c
|
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(HOST_PREFIX)strstr.c
|
|
|
|
|
|
Makefile.in ($(HOST_PREFIX_1)rtl.o, $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o, $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o, $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o, $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
* Makefile.in ($(HOST_PREFIX_1)rtl.o,
$(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
$(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
$(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
$(HOST_PREFIX_1)ggc-none.o): Update dependencies.
From-SVN: r46878
2001-11-09 10:55:23 +01:00
|
|
|
|
$(HOST_PREFIX_1)errors.o: errors.c $(HCONFIG_H) $(SYSTEM_H) errors.h
|
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
|
|
|
|
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
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
# that does not need to compile doprint or whatever.
|
1999-09-18 20:05:59 +02:00
|
|
|
|
$(HOST_PREFIX_1):
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) $(HOST_PREFIX_1)
|
1993-09-21 23:25:24 +02:00
|
|
|
|
|
Makefile.in ($(HOST_PREFIX_1)rtl.o, $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o, $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o, $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o, $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
* Makefile.in ($(HOST_PREFIX_1)rtl.o,
$(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
$(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
$(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
$(HOST_PREFIX_1)ggc-none.o): Update dependencies.
From-SVN: r46878
2001-11-09 10:55:23 +01:00
|
|
|
|
$(HOST_PREFIX_1)ggc-none.o: ggc-none.c $(HCONFIG_H) $(SYSTEM_H) $(GCC_H)
|
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.
|
2001-10-19 17:17:39 +02:00
|
|
|
|
intl.o: intl.c $(CONFIG_H) system.h intl.h Makefile
|
1999-01-27 02:43:17 +01:00
|
|
|
|
$(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
|
|
|
|
|
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
|
|
|
|
|
|
Makefile.in (INTL_TARGETS, POSUB): Delete all references.
* Makefile.in (INTL_TARGETS, POSUB): Delete all references.
(INTL_SUBDIRS): Just intl.
(.SUFFIXES): Add .gmo .po .pox.
(native): Also depend on build-@POSUB@.
(intl.all, intl.install): Depend on config.h and things it includes.
(po-generated): New target; depend on c-parse.c and tradcif.c.
(install-normal): Also depend on install-@POSUB@.
(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
(build-, install-, build-po, update-po, install-po,
.po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
* aclocal.m4: Prefix each entry in CATALOGS with "po/"
* configure.in: Don't munge XGETTEXT. Don't generate
po/Makefile.in.
* configure: Regenerate.
* exgettext: Delete.
* config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
* cp/Make-lang.in, java/Make-lang.in, objc/Make-lang.in: Replace
$(INTL_TARGETS) with po-generated.
po:
* EXCLUDES: New file.
* exgettext: New helper script; completely rewritten.
* Makefile.in.in, POTFILES.in: Delete.
From-SVN: r46680
2001-10-31 18:40:07 +01:00
|
|
|
|
# intl.all and intl.install need config.h to exist, and the files it includes.
|
|
|
|
|
# (FIXME: intl/*.c shouldn't need to see insn-foo.h!)
|
|
|
|
|
intl.all intl.install: config.h insn-flags.h insn-constants.h
|
|
|
|
|
|
|
|
|
|
# Make-lang.in should add dependencies of po-generated on any generated
|
|
|
|
|
# files which need to be scanned by gettext (usually Yacc-generated parsers).
|
|
|
|
|
po-generated: c-parse.c tradcif.c
|
|
|
|
|
|
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)\" \
|
2001-02-06 07:36:08 +01:00
|
|
|
|
-DGPLUSPLUS_TOOL_INCLUDE_DIR=\"$(gcc_gxx_include_dir)/$(target_alias)\" \
|
2001-04-06 08:13:27 +02:00
|
|
|
|
-DGPLUSPLUS_BACKWARD_INCLUDE_DIR=\"$(gcc_gxx_include_dir)/backward\" \
|
2001-09-29 20:22:05 +02:00
|
|
|
|
-DLOCAL_INCLUDE_DIR=\"$(local_includedir)\" \
|
1999-08-25 04:49:56 +02:00
|
|
|
|
-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 \
|
2001-08-03 01:03:31 +02:00
|
|
|
|
hashtable.o line-map.o mkdeps.o prefix.o version.o mbchar.o
|
1998-10-28 23:31:06 +01:00
|
|
|
|
|
2001-08-04 14:01:59 +02:00
|
|
|
|
LIBCPP_DEPS = $(CPPLIB_H) cpphash.h line-map.h hashtable.h intl.h \
|
2001-08-03 01:03:31 +02:00
|
|
|
|
$(OBSTACK_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)
|
2001-03-07 20:05:25 +01:00
|
|
|
|
-$(RANLIB) libcpp.a
|
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
|
|
|
|
|
2001-08-04 14:01:59 +02: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)
|
2001-01-28 02:50:22 +01:00
|
|
|
|
cppexp.o: cppexp.c $(CONFIG_H) $(LIBCPP_DEPS)
|
c-lex.c (lex_charconst): Convert into a simple wrapper around cpp_interpret_charconst...
* c-lex.c (lex_charconst): Convert into a simple wrapper
around cpp_interpret_charconst, to which most of the code
body is moved.
* cppexp.c (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE,
MAX_LONG_TYPE_SIZE, MAX_INT_TYPE_SIZE, MAX_CHAR_TYPE_MASK,
MAX_WCHAR_TYPE_MASK, parse_escape, parse_charconst): Remove.
(lex): Use cpp_interpret_charconst.
* cpplex.c (parse_escape, read_ucs, cpp_interpret_charconst,
hex_digit_value): New functions.
(MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): New macros.
* cpplib.h (cpp_interpret_charconst): New prototype.
* Makefile.in: Update.
From-SVN: r41978
2001-05-12 01:48:21 +02:00
|
|
|
|
cpplex.o: cpplex.c $(CONFIG_H) $(LIBCPP_DEPS) mbchar.h
|
2000-07-18 02:59:49 +02:00
|
|
|
|
cppmacro.o: cppmacro.c $(CONFIG_H) $(LIBCPP_DEPS)
|
Makefile.in (OBJS, [...]): Update.
* Makefile.in (OBJS, LIBCPP_OBJS, LIBCPP_DEPS,
cpplib.o, cpphash.o, fix-header): Update.
(hashtable.o): New target.
* c-common.h: Include cpplib.h. Define C_RID_CODE and
struct c_common_identifier here.
* c-lang.c (c_init_options): Update. Call set_identifier_size.
* c-lex.c (c_lex): Update.
* c-pragma.h: Update.
* c-tree.h (struct lang_identifier): Contain c_common_identifier.
Delete rid_code.
(C_RID_CODE): Delete.
* cpphash.c: Rewrite to use hashtable.c.
* cpphash.h: Update include guards.
(struct cpp_reader): Remove hashtab.
hash_ob and buffer_ob are no longer pointers. Add hash_table
and our_hashtable.
(HASHSTEP, _cpp_init_hashtable, _cpp_lookup_with_hash): Delete.
(_cpp_cleanup_hashtable): Rename _cpp_destroy_hashtable.
(_cpp_cleanup_stacks): Rename _cpp_init_directives.
* cppinit.c (cpp_create_reader): Update.
* cpplex.c (cpp_ideq, parse_identifier, cpp_output_token): Update.
(cpp_interpret_charconst): Eliminate warning.
* cpplib.c (do_pragma, do_endif, push_conditional,
cpp_push_buffer, cpp_pop_buffer): Update.
(_cpp_init_stacks): Rename cpp_init_directives.
(_cpp_cleanup_stacks): Remove.
* cpplib.h: Update include guards. Include tree-core.h and c-rid.h.
(cpp_hashnode, cpp_token, NODE_LEN, NODE_NAME,
cpp_forall_identifiers, cpp_create_reader): Update.
(C_RID_CODE, cpp_make_node): New.
(c_common_identifier): New identifier node for C front ends.
* cppmain.c (main): Update.
* fix-header.c (read_scan_file): Update.
* flags.h (id_clash_len): Make unsigned.
* ggc.h (ggc_mark_nonnull_tree): New.
* hashtable.c: New.
* hashtable.h: New.
* stringpool.c: Update comments and copyright. Update to use
hashtable.c.
* toplev.c (approx_sqrt): Move to hashtable.c.
(id_clash_len): Make unsigned.
* toplev.h (ident_hash): New.
* tree.c (gcc_obstack_init): Move to hashtable.c.
* tree.h: Include hashtable.h.
(IDENTIFIER_POINTER, IDENTIFIER_LENGTH): Update.
(GCC_IDENT_TO_HT_IDENT, HT_IDENT_TO_GCC_IDENT): New.
(struct tree_identifier): Update.
(make_identifier): New.
cp:
* cp-tree.h (struct lang_identifier, C_RID_YYCODE): Update.
(C_RID_CODE): Remove.
* lex.c (cxx_init_options): Call set_identifier_size. Update.
(init_parse): Don't do it here.
objc:
* objc-act.c (objc_init_options): Call set_identifier_size. Update.
From-SVN: r42334
2001-05-20 08:26:45 +02:00
|
|
|
|
cpplib.o: cpplib.c $(CONFIG_H) $(LIBCPP_DEPS)
|
|
|
|
|
cpphash.o: cpphash.c $(CONFIG_H) $(LIBCPP_DEPS)
|
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
|
|
|
|
|
2001-03-28 00:57:35 +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
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
mkdeps.o: mkdeps.c $(CONFIG_H) $(SYSTEM_H) mkdeps.h
|
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
|
|
|
|
|
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 \
|
2001-05-07 06:30:01 +02:00
|
|
|
|
mkdeps.o $(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
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
tradcpp.o: tradcpp.c $(CONFIG_H) $(SYSTEM_H) version.h cppdefault.h tradcpp.h
|
|
|
|
|
tradcif.o: $(srcdir)/tradcif.c $(CONFIG_H) $(SYSTEM_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
|
|
|
|
|
2001-03-28 00:57:35 +02: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
|
2001-02-11 22:23:42 +01:00
|
|
|
|
(SHLIB_LINK='$(SHLIB_LINK)' \
|
|
|
|
|
SHLIB_MULTILIB='$(SHLIB_MULTILIB)'; \
|
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) \
|
2001-02-11 22:23:42 +01: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 \
|
2001-03-28 00:57:35 +02:00
|
|
|
|
$(CONFIG_H) $(SYSTEM_H) Makefile version.h
|
2001-02-11 22:23:42 +01:00
|
|
|
|
(SHLIB_LINK='$(SHLIB_LINK)' \
|
|
|
|
|
SHLIB_MULTILIB='$(SHLIB_MULTILIB)'; \
|
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) \
|
2001-02-11 22:23:42 +01: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
|
|
|
|
|
2001-03-28 00:57:35 +02: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.
|
2001-11-01 22:48:49 +01:00
|
|
|
|
GCOV_OBJS = gcov.o intl.o version.o
|
1999-01-27 02:43:17 +01:00
|
|
|
|
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|'`; \
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) 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
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) $@
|
1998-05-24 02:44:00 +02:00
|
|
|
|
|
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 \
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) specs.ready; \
|
2000-02-01 23:30:35 +01:00
|
|
|
|
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` ; \
|
2001-10-02 04:09:40 +02:00
|
|
|
|
CC="$(HOST_CC)"; CFLAGS="$(HOST_CFLAGS)"; LDFLAGS="$(HOST_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
|
2001-04-29 23:24:16 +02:00
|
|
|
|
(TARGET_MACHINE='$(target)'; srcdir=`cd $(srcdir); pwd`; \
|
Makefile.in: Exterminate all references to assert.h.
* Makefile.in: Exterminate all references to assert.h.
* cross-make: Likewise.
* assert.h: Delete.
* configure.in: Correct commentary.
* configure: Regenerate.
* po/POTFILES.in: Remove assert.h.
* libgcc-std.ver, libgcc2.c, libgcc2.h, sys-protos.h:
Remove __eprintf.
* config/t-freebsd, config/t-linux, config/t-linux-aout,
config/t-netbsd, config/t-rtems, config/x-linux,
config/i386/t-beos, config/mcore/t-mcore, config/mcore/t-mcore-pe:
No need to override INSTALL_ASSERT_H.
* fixinc/fixinc.dgux, fixinc/fixinc.interix, fixinc/fixinc.ptx,
fixinc/fixinc.svr4, fixinc/fixinc.winnt, fixinc/fixinc.wrap,
fixinc/fixincl.sh: Don't install assert.h into objdir/include.
From-SVN: r41972
2001-05-11 19:03:02 +02:00
|
|
|
|
SHELL='$(SHELL)' ;\
|
|
|
|
|
export TARGET_MACHINE srcdir 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)
|
2001-11-08 23:48:13 +01:00
|
|
|
|
# If $(SYSTEM_HEADER_DIR) is $(build_tooldir)/sys-include, and
|
1998-10-02 03:05:51 +02:00
|
|
|
|
# that directory exists, then make sure that $(libsubdir) exists.
|
2001-11-08 23:48:13 +01:00
|
|
|
|
# This is because cpp is compiled to find $(gcc_tooldir)/include via
|
1998-10-02 03:05:51 +02:00
|
|
|
|
# $(libsubdir)/$(unlibsubdir), which will only work if $(libsubdir)
|
|
|
|
|
# exists.
|
2001-11-08 23:48:13 +01:00
|
|
|
|
# ??? Better would be to use -isystem $(build_tooldir)/sys-include,
|
|
|
|
|
# but fixincludes does not take such arguments.
|
|
|
|
|
if [ "$(SYSTEM_HEADER_DIR)" = "$(build_tooldir)/sys-include" ] \
|
|
|
|
|
&& [ -d $(build_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
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) 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 \
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) deduced.h; \
|
1998-05-19 23:41:03 +02:00
|
|
|
|
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
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
gen-protos.o: gen-protos.c scan.h $(HCONFIG_H) $(SYSTEM_H)
|
1993-10-29 12:52:14 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gen-protos.c
|
|
|
|
|
|
2001-03-28 00:57:35 +02:00
|
|
|
|
scan.o: scan.c scan.h $(HCONFIG_H) $(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).
|
2001-03-16 20:38:32 +01:00
|
|
|
|
fix-header$(build_exeext): fix-header.o scan-decls.o scan.o xsys-protos.h \
|
|
|
|
|
$(LIBDEPS) 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 \
|
2001-08-04 14:01:59 +02:00
|
|
|
|
xsys-protos.h $(HCONFIG_H) $(SYSTEM_H) $(CPPLIB_H)
|
1993-10-29 12:52:14 +01:00
|
|
|
|
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/fix-header.c
|
|
|
|
|
|
2001-08-04 14:01:59 +02:00
|
|
|
|
scan-decls.o: scan-decls.c scan.h $(CPPLIB_H) $(HCONFIG_H) $(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.
|
2001-03-16 20:38:32 +01:00
|
|
|
|
fixhdr.ready: fix-header$(build_exeext)
|
1993-10-25 22:45:29 +01:00
|
|
|
|
-if [ -f fixhdr.ready ] ; then \
|
|
|
|
|
true; \
|
|
|
|
|
else \
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) fixhdr.ready; \
|
1993-10-25 22:45:29 +01:00
|
|
|
|
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; \
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) include/fixed; \
|
1993-11-21 07:01:04 +01:00
|
|
|
|
fi
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) stmp-fixproto
|
1997-06-09 21:19:18 +02:00
|
|
|
|
#
|
1992-02-03 23:08:59 +01:00
|
|
|
|
# Remake the info files.
|
|
|
|
|
|
c-tree.texi, [...]: Move to doc subdirectory.
* c-tree.texi, contrib.texi, cpp.texi, cppinternals.texi,
extend.texi, fdl.texi, gcov.texi, invoke.texi, md.texi, objc.texi,
rtl.texi, tm.texi, texinfo.tex: Move to doc subdirectory.
* install.texi: Move to doc/install-old.texi.
* gcc.texi: Move to doc, refer to install-old.texi.
* Makefile.in: Reflect move of docs to doc/.
* f/Make-lang.in: Ditto.
* java/Make-lang.in: Ditto.
* doc/.cvsignore: New.
From-SVN: r42779
2001-06-01 18:51:18 +02:00
|
|
|
|
docdir = $(srcdir)/doc
|
|
|
|
|
|
2001-07-02 20:35:32 +02:00
|
|
|
|
doc: $(BUILD_INFO) $(GENERATED_MANPAGES) gccbug
|
c-tree.texi, [...]: Move to doc subdirectory.
* c-tree.texi, contrib.texi, cpp.texi, cppinternals.texi,
extend.texi, fdl.texi, gcov.texi, invoke.texi, md.texi, objc.texi,
rtl.texi, tm.texi, texinfo.tex: Move to doc subdirectory.
* install.texi: Move to doc/install-old.texi.
* gcc.texi: Move to doc, refer to install-old.texi.
* Makefile.in: Reflect move of docs to doc/.
* f/Make-lang.in: Ditto.
* java/Make-lang.in: Ditto.
* doc/.cvsignore: New.
From-SVN: r42779
2001-06-01 18:51:18 +02:00
|
|
|
|
info: $(docdir)/cpp.info $(docdir)/gcc.info lang.info $(docdir)/cppinternals.info
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
c-tree.texi, [...]: Move to doc subdirectory.
* c-tree.texi, contrib.texi, cpp.texi, cppinternals.texi,
extend.texi, fdl.texi, gcov.texi, invoke.texi, md.texi, objc.texi,
rtl.texi, tm.texi, texinfo.tex: Move to doc subdirectory.
* install.texi: Move to doc/install-old.texi.
* gcc.texi: Move to doc, refer to install-old.texi.
* Makefile.in: Reflect move of docs to doc/.
* f/Make-lang.in: Ditto.
* java/Make-lang.in: Ditto.
* doc/.cvsignore: New.
From-SVN: r42779
2001-06-01 18:51:18 +02:00
|
|
|
|
$(docdir)/cpp.info: $(docdir)/cpp.texi
|
2001-07-04 18:16:43 +02:00
|
|
|
|
cd $(srcdir) && $(MAKEINFO) $(MAKEINFOFLAGS) -I doc -I doc/include -o doc/cpp.info doc/cpp.texi
|
1992-02-03 23:08:59 +01:00
|
|
|
|
|
2001-07-04 18:16:43 +02:00
|
|
|
|
$(docdir)/gcc.info: $(docdir)/gcc.texi $(docdir)/extend.texi \
|
|
|
|
|
$(docdir)/install-old.texi $(docdir)/invoke.texi $(docdir)/md.texi \
|
|
|
|
|
$(docdir)/c-tree.texi $(docdir)/rtl.texi $(docdir)/tm.texi \
|
|
|
|
|
$(docdir)/gcov.texi $(docdir)/contrib.texi $(docdir)/objc.texi \
|
|
|
|
|
$(docdir)/include/fdl.texi $(docdir)/include/gpl.texi \
|
2001-11-11 12:31:24 +01:00
|
|
|
|
$(docdir)/include/funding.texi $(docdir)/bugreport.texi \
|
|
|
|
|
$(docdir)/contribute.texi $(docdir)/frontends.texi \
|
|
|
|
|
$(docdir)/service.texi $(docdir)/standards.texi \
|
|
|
|
|
$(docdir)/trouble.texi $(docdir)/vms.texi
|
2001-07-04 18:16:43 +02:00
|
|
|
|
cd $(srcdir) && $(MAKEINFO) $(MAKEINFOFLAGS) -I doc -I doc/include -o doc/gcc.info doc/gcc.texi
|
1992-05-24 21:40:47 +02:00
|
|
|
|
|
c-tree.texi, [...]: Move to doc subdirectory.
* c-tree.texi, contrib.texi, cpp.texi, cppinternals.texi,
extend.texi, fdl.texi, gcov.texi, invoke.texi, md.texi, objc.texi,
rtl.texi, tm.texi, texinfo.tex: Move to doc subdirectory.
* install.texi: Move to doc/install-old.texi.
* gcc.texi: Move to doc, refer to install-old.texi.
* Makefile.in: Reflect move of docs to doc/.
* f/Make-lang.in: Ditto.
* java/Make-lang.in: Ditto.
* doc/.cvsignore: New.
From-SVN: r42779
2001-06-01 18:51:18 +02:00
|
|
|
|
$(docdir)/cppinternals.info: $(docdir)/cppinternals.texi
|
2001-07-04 18:16:43 +02:00
|
|
|
|
cd $(srcdir) && $(MAKEINFO) $(MAKEINFOFLAGS) -I doc -I doc/include -o doc/cppinternals.info \
|
c-tree.texi, [...]: Move to doc subdirectory.
* c-tree.texi, contrib.texi, cpp.texi, cppinternals.texi,
extend.texi, fdl.texi, gcov.texi, invoke.texi, md.texi, objc.texi,
rtl.texi, tm.texi, texinfo.tex: Move to doc subdirectory.
* install.texi: Move to doc/install-old.texi.
* gcc.texi: Move to doc, refer to install-old.texi.
* Makefile.in: Reflect move of docs to doc/.
* f/Make-lang.in: Ditto.
* java/Make-lang.in: Ditto.
* doc/.cvsignore: New.
From-SVN: r42779
2001-06-01 18:51:18 +02:00
|
|
|
|
doc/cppinternals.texi
|
2001-01-13 01:24:39 +01:00
|
|
|
|
|
2001-05-27 19:09:47 +02:00
|
|
|
|
dvi: gcc.dvi cpp.dvi lang.dvi cppinternals.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.
|
c-tree.texi, [...]: Move to doc subdirectory.
* c-tree.texi, contrib.texi, cpp.texi, cppinternals.texi,
extend.texi, fdl.texi, gcov.texi, invoke.texi, md.texi, objc.texi,
rtl.texi, tm.texi, texinfo.tex: Move to doc subdirectory.
* install.texi: Move to doc/install-old.texi.
* gcc.texi: Move to doc, refer to install-old.texi.
* Makefile.in: Reflect move of docs to doc/.
* f/Make-lang.in: Ditto.
* java/Make-lang.in: Ditto.
* doc/.cvsignore: New.
From-SVN: r42779
2001-06-01 18:51:18 +02:00
|
|
|
|
cpp.dvi: $(docdir)/cpp.texi
|
2001-07-04 18:16:43 +02:00
|
|
|
|
$(TEXI2DVI) -I $(docdir) -I $(docdir)/include $(docdir)/cpp.texi
|
c-tree.texi, [...]: Move to doc subdirectory.
* c-tree.texi, contrib.texi, cpp.texi, cppinternals.texi,
extend.texi, fdl.texi, gcov.texi, invoke.texi, md.texi, objc.texi,
rtl.texi, tm.texi, texinfo.tex: Move to doc subdirectory.
* install.texi: Move to doc/install-old.texi.
* gcc.texi: Move to doc, refer to install-old.texi.
* Makefile.in: Reflect move of docs to doc/.
* f/Make-lang.in: Ditto.
* java/Make-lang.in: Ditto.
* doc/.cvsignore: New.
From-SVN: r42779
2001-06-01 18:51:18 +02:00
|
|
|
|
|
2001-07-04 18:16:43 +02:00
|
|
|
|
gcc.dvi: $(docdir)/gcc.texi $(docdir)/extend.texi $(docdir)/install-old.texi \
|
c-tree.texi, [...]: Move to doc subdirectory.
* c-tree.texi, contrib.texi, cpp.texi, cppinternals.texi,
extend.texi, fdl.texi, gcov.texi, invoke.texi, md.texi, objc.texi,
rtl.texi, tm.texi, texinfo.tex: Move to doc subdirectory.
* install.texi: Move to doc/install-old.texi.
* gcc.texi: Move to doc, refer to install-old.texi.
* Makefile.in: Reflect move of docs to doc/.
* f/Make-lang.in: Ditto.
* java/Make-lang.in: Ditto.
* doc/.cvsignore: New.
From-SVN: r42779
2001-06-01 18:51:18 +02:00
|
|
|
|
$(docdir)/invoke.texi $(docdir)/md.texi $(docdir)/c-tree.texi \
|
|
|
|
|
$(docdir)/rtl.texi $(docdir)/tm.texi $(docdir)/gcov.texi \
|
2001-07-04 18:16:43 +02:00
|
|
|
|
$(docdir)/contrib.texi $(docdir)/objc.texi \
|
|
|
|
|
$(docdir)/include/fdl.texi $(docdir)/include/gpl.texi \
|
2001-11-11 12:31:24 +01:00
|
|
|
|
$(docdir)/include/funding.texi $(docdir)/bugreport.texi \
|
|
|
|
|
$(docdir)/contribute.texi $(docdir)/frontends.texi \
|
|
|
|
|
$(docdir)/service.texi $(docdir)/standards.texi \
|
|
|
|
|
$(docdir)/trouble.texi $(docdir)/vms.texi
|
2001-07-04 18:16:43 +02:00
|
|
|
|
$(TEXI2DVI) -I $(docdir) -I $(docdir)/include $(docdir)/gcc.texi
|
c-tree.texi, [...]: Move to doc subdirectory.
* c-tree.texi, contrib.texi, cpp.texi, cppinternals.texi,
extend.texi, fdl.texi, gcov.texi, invoke.texi, md.texi, objc.texi,
rtl.texi, tm.texi, texinfo.tex: Move to doc subdirectory.
* install.texi: Move to doc/install-old.texi.
* gcc.texi: Move to doc, refer to install-old.texi.
* Makefile.in: Reflect move of docs to doc/.
* f/Make-lang.in: Ditto.
* java/Make-lang.in: Ditto.
* doc/.cvsignore: New.
From-SVN: r42779
2001-06-01 18:51:18 +02:00
|
|
|
|
|
|
|
|
|
cppinternals.dvi: $(docdir)/cppinternals.texi
|
2001-07-04 18:16:43 +02:00
|
|
|
|
$(TEXI2DVI) -I $(docdir) -I $(docdir)/include $(docdir)/cppinternals.texi
|
c-tree.texi, [...]: Move to doc subdirectory.
* c-tree.texi, contrib.texi, cpp.texi, cppinternals.texi,
extend.texi, fdl.texi, gcov.texi, invoke.texi, md.texi, objc.texi,
rtl.texi, tm.texi, texinfo.tex: Move to doc subdirectory.
* install.texi: Move to doc/install-old.texi.
* gcc.texi: Move to doc, refer to install-old.texi.
* Makefile.in: Reflect move of docs to doc/.
* f/Make-lang.in: Ditto.
* java/Make-lang.in: Ditto.
* doc/.cvsignore: New.
From-SVN: r42779
2001-06-01 18:51:18 +02:00
|
|
|
|
|
|
|
|
|
generated-manpages: $(docdir)/gcov.1 $(docdir)/cpp.1 $(docdir)/gcc.1
|
|
|
|
|
|
|
|
|
|
$(docdir)/gcov.1: $(docdir)/gcov.texi
|
|
|
|
|
$(STAMP) $(docdir)/gcov.1
|
|
|
|
|
-$(TEXI2POD) < $(docdir)/gcov.texi > gcov.pod
|
|
|
|
|
-($(POD2MAN) gcov.pod > $(docdir)/gcov.1.T$$$$ && \
|
|
|
|
|
mv -f $(docdir)/gcov.1.T$$$$ $(docdir)/gcov.1) || \
|
|
|
|
|
(rm -f $(docdir)/gcov.1.T$$$$ && exit 1)
|
2001-01-17 02:54:15 +01:00
|
|
|
|
-rm -f gcov.pod
|
2000-11-22 09:29:32 +01:00
|
|
|
|
|
c-tree.texi, [...]: Move to doc subdirectory.
* c-tree.texi, contrib.texi, cpp.texi, cppinternals.texi,
extend.texi, fdl.texi, gcov.texi, invoke.texi, md.texi, objc.texi,
rtl.texi, tm.texi, texinfo.tex: Move to doc subdirectory.
* install.texi: Move to doc/install-old.texi.
* gcc.texi: Move to doc, refer to install-old.texi.
* Makefile.in: Reflect move of docs to doc/.
* f/Make-lang.in: Ditto.
* java/Make-lang.in: Ditto.
* doc/.cvsignore: New.
From-SVN: r42779
2001-06-01 18:51:18 +02:00
|
|
|
|
$(docdir)/cpp.1: $(docdir)/cpp.texi
|
|
|
|
|
$(STAMP) $(docdir)/cpp.1
|
|
|
|
|
-$(TEXI2POD) < $(docdir)/cpp.texi > cpp.pod
|
|
|
|
|
-($(POD2MAN) cpp.pod > $(docdir)/cpp.1.T$$$$ && \
|
|
|
|
|
mv -f $(docdir)/cpp.1.T$$$$ $(docdir)/cpp.1) || \
|
|
|
|
|
(rm -f $(docdir)/cpp.1.T$$$$ && exit 1)
|
2001-01-17 02:54:15 +01:00
|
|
|
|
-rm -f cpp.pod
|
2001-01-03 21:15:01 +01:00
|
|
|
|
|
c-tree.texi, [...]: Move to doc subdirectory.
* c-tree.texi, contrib.texi, cpp.texi, cppinternals.texi,
extend.texi, fdl.texi, gcov.texi, invoke.texi, md.texi, objc.texi,
rtl.texi, tm.texi, texinfo.tex: Move to doc subdirectory.
* install.texi: Move to doc/install-old.texi.
* gcc.texi: Move to doc, refer to install-old.texi.
* Makefile.in: Reflect move of docs to doc/.
* f/Make-lang.in: Ditto.
* java/Make-lang.in: Ditto.
* doc/.cvsignore: New.
From-SVN: r42779
2001-06-01 18:51:18 +02:00
|
|
|
|
$(docdir)/gcc.1: $(docdir)/invoke.texi
|
|
|
|
|
$(STAMP) $(docdir)/gcc.1
|
|
|
|
|
-$(TEXI2POD) < $(docdir)/invoke.texi > gcc.pod
|
|
|
|
|
-($(POD2MAN) gcc.pod > $(docdir)/gcc.1.T$$$$ && \
|
|
|
|
|
mv -f $(docdir)/gcc.1.T$$$$ $(docdir)/gcc.1) || \
|
|
|
|
|
(rm -f $(docdir)/gcc.1.T$$$$ && exit 1)
|
2001-01-17 02:54:15 +01:00
|
|
|
|
-rm -f gcc.pod
|
2001-01-13 22:17:13 +01:00
|
|
|
|
|
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.
|
2001-02-19 01:05:49 +01:00
|
|
|
|
-rm -f $(HOST_PREFIX_1)rtl.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.
|
i * libgcc1-test.c, libgcc1.c, config/i386/perform.h: Delete file.
* testsuite/gcc.dg/complete-port.c: New (revised version of
libgcc1-test.c)
* po/POTFILES.in: Remove libgcc1-test.c and libgcc1.c.
* Makefile.in: Delete variables: OLDCC, CCLIBFLAGS, OLDAR,
OLDAR_FLAGS, LIBGCC1, LIBGCC1_TEST, CROSS_LIBGCC1,
LIB1FUNCS, and LIB1FUNCS_EXTRA. Delete rules: libgcc1-test,
libgcc1-test.o. Clarify commentary now that libgcc1 no longer exists.
* cross-make: Don't set LIBGCC1.
* mklibgcc.in: Delete all code for building from libgcc1.c.
Always honor LIB1ASMFUNCS if set.
* crtstuff.c, floatlib.c, longlong.h, config/fp-bit.c,
config/arc/lib1funcs.asm, config/arm/lib1funcs.asm,
config/d30v/libgcc1.asm, config/fr30/lib1funcs.asm,
config/h8300/lib1funcs.asm, config/i386/cygwin.asm,
config/i386/uwin.asm, config/m68hc11/larith.asm,
config/m68k/lb1sf68.asm, config/mcore/lib1.asm,
config/mn10200/lib1funcs.asm, config/sh/lib1funcs.asm,
config/sparc/lb1spc.asm, config/sparc/lb1spl.asm,
config/v850/lib1funcs.asm, config/c4x/libgcc.S:
Delete or update references to libgcc1 in commentary.
* config/t-libc-ok, config/t-linux, config/t-linux-aout,
config/t-netbsd, config/a29k/t-a29kbare, config/a29k/t-vx29k,
config/alpha/t-interix, config/alpha/t-osf, config/alpha/t-vms,
config/arc/t-arc, config/arm/t-arm-aout, config/arm/t-arm-coff,
config/arm/t-arm-elf, config/arm/t-linux, config/arm/t-pe,
config/arm/t-semi, config/arm/t-strongarm-coff,
config/arm/t-strongarm-elf, config/arm/t-strongarm-pe,
config/arm/t-xscale-coff, config/arm/t-xscale-elf, config/avr/t-avr,
config/c4x/t-c4x, config/d30v/t-d30v, config/fr30/t-fr30,
config/h8300/t-h8300, config/i386/t-beos, config/i386/t-cygwin,
config/i386/t-i386elf, config/i386/t-interix, config/i386/t-netware,
config/i386/t-next, config/i386/t-rtems-i386, config/i386/t-sol2,
config/i960/t-960bare, config/i960/t-vxworks960, config/ia64/t-ia64,
config/m32r/t-m32r, config/m68hc11/t-m68hc11-gas, config/m68k/t-lynx,
config/m68k/t-m68kbare, config/m68k/t-m68kelf,
config/m68k/t-mot3300-gald, config/m68k/t-mot3300-gas,
config/m68k/t-next, config/m68k/t-vxworks68, config/m88k/t-bug,
config/m88k/t-dgux, config/m88k/t-dgux-gas, config/m88k/t-dguxbcs,
config/m88k/t-luna, config/m88k/t-luna-gas, config/m88k/t-m88k,
config/m88k/t-m88k-gas, config/m88k/t-sysv4, config/mcore/t-mcore,
config/mcore/t-mcore-pe, config/mips/t-bsd, config/mips/t-bsd-gas,
config/mips/t-cross64, config/mips/t-ecoff, config/mips/t-elf,
config/mips/t-iris6, config/mips/t-r3900, config/mips/t-svr3,
config/mips/t-svr3-gas, config/mips/t-svr4, config/mips/t-svr4-gas,
config/mips/t-ultrix, config/mn10200/t-mn10200,
config/mn10300/t-mn10300, config/pa/t-linux, config/pa/t-linux64,
config/pa/t-pa, config/pa/t-pa64, config/pa/t-pro,
config/pdp11/t-pdp11, config/pj/t-pj, config/rs6000/t-aix43,
config/rs6000/t-beos, config/rs6000/t-darwin, config/rs6000/t-newas,
config/rs6000/t-ppccomm, config/rs6000/t-rs6000, config/sh/t-linux,
config/sh/t-sh, config/sparc/t-chorus-elf, config/sparc/t-elf,
config/sparc/t-sol2, config/sparc/t-sp86x, config/sparc/t-sparcbare,
config/sparc/t-sparclite, config/sparc/t-splet,
config/sparc/t-sunos41, config/sparc/t-vxsparc,
config/sparc/t-vxsparc64, config/v850/t-v850:
Don't set any of LIBGCC1, CROSS_LIBGCC1, or LIBGCC1_TEST.
* config/alpha/alpha.h, config/i386/i386.h, config/i860/i860.h:
Don't set FLOAT_VALUE_TYPE, FLOAT_ARG_TYPE, INTIFY, or FLOATIFY.
* config/d30v/d30v.h: Don't mention LIBGCC_NEEDS_DOUBLE,
FLOAT_VALUE_TYPE, FLOAT_ARG_TYPE, FLOATIFY, INTIFY,
nongcc_SI_type, nongcc_word_type, or perform_*
* config/i860/fx2800: Don't define perform_umodsi3 or perform_modsi3.
* config/i386/386bsd.h, config/i386/beos-elf.h,
config/i386/linux-aout.h, config/i386/linux-oldld.h,
config/i386/linux.h, config/i386/mach.h, config/i386/netbsd.h,
config/i386/openbsd.h, config/i386/osfrose.h, config/i386/rtemself.h:
Don't include i386/perform.h.
* config/a29k/t-a29k, config/arm/t-semiaof, config/i370/t-i370,
config/i370/t-linux, config/i370/t-mvs, config/i370/t-oe,
config/i386/t-djgpp, config/i386/t-i386bare, config/i386/t-vsta,
config/ia64/t-hpux, config/mips/t-mips, config/mips/t-mips-gas,
config/mips/t-osfrose, config/sparc/t-sp64, config/sparc/t-sunos40,
config/vax/t-openbsd, config/vax/t-vax: Delete.
* config.gcc: Remove references to deleted files.
(arm-semi-aof): Use arm/t-semi for tmake_file.
* gcc.texi, install.texi, invoke.texi, tm.texi:
Delete or rewrite text which is no longer relevant now that
libgcc1 no longer exists.
* config/t-openbsd, config/alpha/t-interix, config/i386/t-interix:
No need to set INSTALL_ASSERT_H. (Missed in previous sweep.)
From-SVN: r42188
2001-05-17 05:16:18 +02:00
|
|
|
|
-rm -f xlimits.h
|
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
|
aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
libiberty:
* aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
* configure.in: Replace all alloca logic with a simple use of
the above new macro.
* config.table: Kill *-*-beos* entry.
* config/mh-beos: Delete.
* configure, config.in: Regenerate.
* Makefile.in (ALLOCA, HFILES): Kill.
(REQUIRED_OFILES): Add alloca.o.
(alloca.o): Depend on libiberty.h.
(argv.o): Don't depend on alloca-conf.h.
* alloca-conf.h: Delete.
* alloca.c: Include libiberty.h. Kill all #ifdef emacs
blocks. Provide the C alloca unconditionally. Use PTR where
appropriate. Make i00afunc static.
* argv.c: Don't include alloca-conf.h.
include:
* libiberty.h: Prototype C_alloca; define alloca to either
__builtin_alloca or C_alloca as appropriate.
gcc:
* aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE
AC_FUNC_ALLOCA.
* configure, config.in: Regenerate.
* config.gcc: Remove references to deleted files.
* genattr.c, genattrtab.c, genextract.c, genoutput.c,
genrecog.c, rtl.c: Do not use alloca anywhere.
* Makefile.in, build-make, system.h, config/x-interix,
config/x-svr4, config/xm-interix.h, config/xm-openbsd.h,
config/alpha/xm-alpha.h, config/alpha/xm-vms.h,
config/arc/xm-arc.h, config/arm/xm-arm.h,
config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
config/h8300/xm-h8300.h, config/i370/x-oe,
config/i370/xm-linux.h, config/i386/x-aix, config/i386/x-beos,
config/i386/x-ncr3000, config/i386/x-sco5,
config/i386/xm-dgux.h, config/i860/x-sysv4,
config/i960/xm-i960.h, config/m32r/xm-m32r.h,
config/m68k/x-crds, config/m68k/x-dpx2, config/m68k/x-hp320,
config/m68k/x-hp320g, config/m69k/x-mot3300,
config/m68k/x-mot3300-gas, config/m68k/xm-amix.h,
config/m68k/xm-hp320.h, config/m68k/xm-m68kv.h,
config/m68k/xm-mot3300.h, config/m88k/x-dolph,
config/m88k/x-sysv4, config/m88k/x-tekXD88,
config/m88k/xm-m88k.h, config/mcore/xm-mcore.h,
config/mips/x-iris, config/mips/x-iris3,
config/mips/x-sni-svr4, config/mips/x-sysv,
config/mips/xm-iris6.h, config/mips/xm-mips.h,
config/mips/xm-nws3250v4.h, config/pa/x-hpux,
config/pa/x-pa-mpeix, config/pa/xm-pa.h,
config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h,
config/pa/xm-papro.h, config/romp/xm-romp.h,
config/rs6000/x-aix31, config/rs6000/x-aix41,
config/rs6000/x-beos, config/rs6000/x-lynx,
config/rs6000/x-mach, config/rs6000/x-rs6000,
config/rs6000/x-sysv4, config/rs6000/xm-rs6000.h,
config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
config/sparc/x-sysv4, config/sparc/xm-linux.h,
config/sparc/xm-pbd.h, config/sparc/xm-sparc.h,
config/vax/xm-vms.h: Eradicate all references to alloca and
related stuff.
* config/xm-alloca.h, config/clipper/x-clix,
config/i386/xm-sysv4.h, config/i860/x-fx2800,
config/i860/x-sysv3, config/m88k/x-sysv3,
config/sparc/xm-sol2.h, config/we32k/x-we32k: Delete
(contained only alloca related hacks).
* config/i386/xm-beos.h, config/rs6000/xm-beos.h: Just define
USE_C_ALLOCA.
From-SVN: r40259
2001-03-06 10:52:35 +01:00
|
|
|
|
-rm -f collect collect2 mips-tfile mips-tdump
|
1993-07-26 10:49:02 +02:00
|
|
|
|
# Delete files generated for fixproto
|
2001-03-16 20:38:32 +01:00
|
|
|
|
-rm -rf fix-header$(build_exeext) 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
|
2001-08-22 02:39:24 +02:00
|
|
|
|
-rm -f libgcc.a libgcc_s$(SHLIB_EXT) libgcc_s$(SHLIB_EXT).1
|
2001-05-16 21:05:50 +02:00
|
|
|
|
-rm -f config.h tconfig.h hconfig.h tm_p.h
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
-rm -f cs-*
|
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
|
configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists.
* configure.in: Prune nonexistent files from build_xm_file,
xm_file, and host_xm_file lists. Warn unless they're
$cpu/xm-$cpu.h.
Don't generate *config.h here.
AC_SUBST all variables needed to generate *config.h.
* configure: Regenerate.
* mkconfig.sh: New helper script, from code removed from
configure.in.
* Makefile.in: Zap all MALLOC variables - no longer used
anywhere, and malloc.c doesn't exist.
Substitute in variables needed to generate *config.h.
Stop lying about the dependencies contained in CONFIG_H and
GCONFIG_H.
(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
$(TM_P_H), etc. as appropriate.
* config.gcc: Zap references to deleted files.
* ggc-none.c: Don't include rtl.h or tm_p.h.
* config/i386/xm-beos.h, config/i386/xm-dgux.h,
config/i386/xm-djgpp.h, config/i386/xm-dos.h,
config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
config/i386/xm-linux.h, config/i386/xm-linux.h,
config/i386/xm-next.h, config/i386/xm-openbsd.h,
config/i386/xm-sun.h, config/i386/xm-sysv3.h:
Don't include i386/xm-i386.h.
* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
config/i386/xm-i386.h, config/i860/xm-i860.h,
config/i960/xm-i960.h, config/mcore/xm-mcore.h,
config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
Delete (empty except comments, #includes of other deleted
files, and macros used nowhere).
cp:
* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
From-SVN: r40350
2001-03-09 21:53:56 +01:00
|
|
|
|
-rm -f auto-host.h auto-build.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
|
aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
libiberty:
* aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
* configure.in: Replace all alloca logic with a simple use of
the above new macro.
* config.table: Kill *-*-beos* entry.
* config/mh-beos: Delete.
* configure, config.in: Regenerate.
* Makefile.in (ALLOCA, HFILES): Kill.
(REQUIRED_OFILES): Add alloca.o.
(alloca.o): Depend on libiberty.h.
(argv.o): Don't depend on alloca-conf.h.
* alloca-conf.h: Delete.
* alloca.c: Include libiberty.h. Kill all #ifdef emacs
blocks. Provide the C alloca unconditionally. Use PTR where
appropriate. Make i00afunc static.
* argv.c: Don't include alloca-conf.h.
include:
* libiberty.h: Prototype C_alloca; define alloca to either
__builtin_alloca or C_alloca as appropriate.
gcc:
* aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE
AC_FUNC_ALLOCA.
* configure, config.in: Regenerate.
* config.gcc: Remove references to deleted files.
* genattr.c, genattrtab.c, genextract.c, genoutput.c,
genrecog.c, rtl.c: Do not use alloca anywhere.
* Makefile.in, build-make, system.h, config/x-interix,
config/x-svr4, config/xm-interix.h, config/xm-openbsd.h,
config/alpha/xm-alpha.h, config/alpha/xm-vms.h,
config/arc/xm-arc.h, config/arm/xm-arm.h,
config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
config/h8300/xm-h8300.h, config/i370/x-oe,
config/i370/xm-linux.h, config/i386/x-aix, config/i386/x-beos,
config/i386/x-ncr3000, config/i386/x-sco5,
config/i386/xm-dgux.h, config/i860/x-sysv4,
config/i960/xm-i960.h, config/m32r/xm-m32r.h,
config/m68k/x-crds, config/m68k/x-dpx2, config/m68k/x-hp320,
config/m68k/x-hp320g, config/m69k/x-mot3300,
config/m68k/x-mot3300-gas, config/m68k/xm-amix.h,
config/m68k/xm-hp320.h, config/m68k/xm-m68kv.h,
config/m68k/xm-mot3300.h, config/m88k/x-dolph,
config/m88k/x-sysv4, config/m88k/x-tekXD88,
config/m88k/xm-m88k.h, config/mcore/xm-mcore.h,
config/mips/x-iris, config/mips/x-iris3,
config/mips/x-sni-svr4, config/mips/x-sysv,
config/mips/xm-iris6.h, config/mips/xm-mips.h,
config/mips/xm-nws3250v4.h, config/pa/x-hpux,
config/pa/x-pa-mpeix, config/pa/xm-pa.h,
config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h,
config/pa/xm-papro.h, config/romp/xm-romp.h,
config/rs6000/x-aix31, config/rs6000/x-aix41,
config/rs6000/x-beos, config/rs6000/x-lynx,
config/rs6000/x-mach, config/rs6000/x-rs6000,
config/rs6000/x-sysv4, config/rs6000/xm-rs6000.h,
config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
config/sparc/x-sysv4, config/sparc/xm-linux.h,
config/sparc/xm-pbd.h, config/sparc/xm-sparc.h,
config/vax/xm-vms.h: Eradicate all references to alloca and
related stuff.
* config/xm-alloca.h, config/clipper/x-clix,
config/i386/xm-sysv4.h, config/i860/x-fx2800,
config/i860/x-sysv3, config/m88k/x-sysv3,
config/sparc/xm-sol2.h, config/we32k/x-we32k: Delete
(contained only alloca related hacks).
* config/i386/xm-beos.h, config/rs6000/xm-beos.h: Just define
USE_C_ALLOCA.
From-SVN: r40259
2001-03-06 10:52:35 +01:00
|
|
|
|
-rm -f cxxmain.c splay-tree.c obstack.c hashtab.c safe-ctype.c
|
2001-02-16 12:12:46 +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
|
2001-11-06 03:39:47 +01:00
|
|
|
|
-rmdir ada 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
|
c-tree.texi, [...]: Move to doc subdirectory.
* c-tree.texi, contrib.texi, cpp.texi, cppinternals.texi,
extend.texi, fdl.texi, gcov.texi, invoke.texi, md.texi, objc.texi,
rtl.texi, tm.texi, texinfo.tex: Move to doc subdirectory.
* install.texi: Move to doc/install-old.texi.
* gcc.texi: Move to doc, refer to install-old.texi.
* Makefile.in: Reflect move of docs to doc/.
* f/Make-lang.in: Ditto.
* java/Make-lang.in: Ditto.
* doc/.cvsignore: New.
From-SVN: r42779
2001-06-01 18:51:18 +02:00
|
|
|
|
-rm -f $(docdir)/cpp.info* $(docdir)/gcc.info*
|
|
|
|
|
-rm -f $(docdir)/cppinternals.info*
|
|
|
|
|
-rm -f $(docdir)/gcov.1 $(docdir)/cpp.1 $(docdir)/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) \
|
Makefile.in (INTL_TARGETS, POSUB): Delete all references.
* Makefile.in (INTL_TARGETS, POSUB): Delete all references.
(INTL_SUBDIRS): Just intl.
(.SUFFIXES): Add .gmo .po .pox.
(native): Also depend on build-@POSUB@.
(intl.all, intl.install): Depend on config.h and things it includes.
(po-generated): New target; depend on c-parse.c and tradcif.c.
(install-normal): Also depend on install-@POSUB@.
(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
(build-, install-, build-po, update-po, install-po,
.po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
* aclocal.m4: Prefix each entry in CATALOGS with "po/"
* configure.in: Don't munge XGETTEXT. Don't generate
po/Makefile.in.
* configure: Regenerate.
* exgettext: Delete.
* config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
* cp/Make-lang.in, java/Make-lang.in, objc/Make-lang.in: Replace
$(INTL_TARGETS) with po-generated.
po:
* EXCLUDES: New file.
* exgettext: New helper script; completely rewritten.
* Makefile.in.in, POTFILES.in: Delete.
From-SVN: r46680
2001-10-31 18:40:07 +01:00
|
|
|
|
$(INSTALL_CPP) install-man install-info intl.install install-@POSUB@ \
|
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
|
|
|
|
|
-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.
|
2001-02-16 04:54:02 +01:00
|
|
|
|
install-common: native $(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.
|
2001-02-16 04:54:02 +01:00
|
|
|
|
install-driver: installdirs 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); \
|
configure.in: Add AC_ARG_PROGRAM to support program name transformation with --program-prefix...
* configure.in: Add AC_ARG_PROGRAM to support program name
transformation with --program-prefix, --program-suffix and
--program-transform-name.
* Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
program_transform_name the way suggested by autoconf.
(GCC_TARGET_INSTALL_NAME): Define.
(install-driver): Use the transformed target alias name.
* Make-lang.in (CXX_INSTALL_NAME, GXX_CROSS_NAME,
DEMANGLER_CROSS_NAME): Handle program_transform_name the way
suggested by autoconf.
(GXX_TARGET_INSTALL_NAME, CXX_TARGET_INSTALL_NAME): Define.
(c++.install-common): Use the transformed target alias names.
* Make-lang.in (G77_INSTALL_NAME, G77_CROSS_NAME): Handle
program_transform_name the way suggested by autoconf.
* Make-lang.in (JAVA_INSTALL_NAME, JAVA_CROSS_NAME): Handle
program_transform_name the way suggested by autoconf.
(java.install-common): Also transform auxiliary program names with
program_transform_name.
From-SVN: r46856
2001-11-08 21:18:18 +01:00
|
|
|
|
mv $(bindir)/$(target_alias)-gcc-1$(exeext) $(bindir)/$(GCC_TARGET_INSTALL_NAME)$(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-05-27 19:09:47 +02:00
|
|
|
|
-rm -f $(infodir)/cppinternals.info*
|
c-tree.texi, [...]: Move to doc subdirectory.
* c-tree.texi, contrib.texi, cpp.texi, cppinternals.texi,
extend.texi, fdl.texi, gcov.texi, invoke.texi, md.texi, objc.texi,
rtl.texi, tm.texi, texinfo.tex: Move to doc subdirectory.
* install.texi: Move to doc/install-old.texi.
* gcc.texi: Move to doc, refer to install-old.texi.
* Makefile.in: Reflect move of docs to doc/.
* f/Make-lang.in: Ditto.
* java/Make-lang.in: Ditto.
* doc/.cvsignore: New.
From-SVN: r42779
2001-06-01 18:51:18 +02:00
|
|
|
|
if [ -f $(docdir)/gcc.info ]; then \
|
|
|
|
|
for f in $(docdir)/cpp.info* $(docdir)/gcc.info* \
|
|
|
|
|
$(docdir)/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-05-27 19:09:47 +02:00
|
|
|
|
for f in cpp.info gcc.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-05-27 19:09:47 +02:00
|
|
|
|
-chmod a-x $(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-16 00:34:43 +01:00
|
|
|
|
install-man: installdirs $(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); \
|
c-tree.texi, [...]: Move to doc subdirectory.
* c-tree.texi, contrib.texi, cpp.texi, cppinternals.texi,
extend.texi, fdl.texi, gcov.texi, invoke.texi, md.texi, objc.texi,
rtl.texi, tm.texi, texinfo.tex: Move to doc subdirectory.
* install.texi: Move to doc/install-old.texi.
* gcc.texi: Move to doc, refer to install-old.texi.
* Makefile.in: Reflect move of docs to doc/.
* f/Make-lang.in: Ditto.
* java/Make-lang.in: Ditto.
* doc/.cvsignore: New.
From-SVN: r42779
2001-06-01 18:51:18 +02:00
|
|
|
|
$(INSTALL_DATA) $(docdir)/gcc.1 $(man1dir)/$(GCC_CROSS_NAME)$(manext); \
|
1998-11-19 07:49:46 +01:00
|
|
|
|
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); \
|
c-tree.texi, [...]: Move to doc subdirectory.
* c-tree.texi, contrib.texi, cpp.texi, cppinternals.texi,
extend.texi, fdl.texi, gcov.texi, invoke.texi, md.texi, objc.texi,
rtl.texi, tm.texi, texinfo.tex: Move to doc subdirectory.
* install.texi: Move to doc/install-old.texi.
* gcc.texi: Move to doc, refer to install-old.texi.
* Makefile.in: Reflect move of docs to doc/.
* f/Make-lang.in: Ditto.
* java/Make-lang.in: Ditto.
* doc/.cvsignore: New.
From-SVN: r42779
2001-06-01 18:51:18 +02:00
|
|
|
|
$(INSTALL_DATA) $(docdir)/gcc.1 $(man1dir)/$(GCC_INSTALL_NAME)$(manext); \
|
1998-11-19 07:49:46 +01:00
|
|
|
|
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)
|
c-tree.texi, [...]: Move to doc subdirectory.
* c-tree.texi, contrib.texi, cpp.texi, cppinternals.texi,
extend.texi, fdl.texi, gcov.texi, invoke.texi, md.texi, objc.texi,
rtl.texi, tm.texi, texinfo.tex: Move to doc subdirectory.
* install.texi: Move to doc/install-old.texi.
* gcc.texi: Move to doc, refer to install-old.texi.
* Makefile.in: Reflect move of docs to doc/.
* f/Make-lang.in: Ditto.
* java/Make-lang.in: Ditto.
* doc/.cvsignore: New.
From-SVN: r42779
2001-06-01 18:51:18 +02:00
|
|
|
|
-$(INSTALL_DATA) $(docdir)/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)
|
c-tree.texi, [...]: Move to doc subdirectory.
* c-tree.texi, contrib.texi, cpp.texi, cppinternals.texi,
extend.texi, fdl.texi, gcov.texi, invoke.texi, md.texi, objc.texi,
rtl.texi, tm.texi, texinfo.tex: Move to doc subdirectory.
* install.texi: Move to doc/install-old.texi.
* gcc.texi: Move to doc, refer to install-old.texi.
* Makefile.in: Reflect move of docs to doc/.
* f/Make-lang.in: Ditto.
* java/Make-lang.in: Ditto.
* doc/.cvsignore: New.
From-SVN: r42779
2001-06-01 18:51:18 +02:00
|
|
|
|
-$(INSTALL_DATA) $(docdir)/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; \
|
2001-03-20 19:22:38 +01: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)" \
|
|
|
|
|
CFLAGS="$(CFLAGS) $(WARN_CFLAGS)" \
|
|
|
|
|
RANLIB_TEST_FOR_TARGET="$(RANLIB_TEST_FOR_TARGET)" \
|
|
|
|
|
NM_FOR_TARGET="$(NM_FOR_TARGET)" AWK="$(AWK)" \
|
|
|
|
|
LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" \
|
2001-08-10 00:33:35 +02:00
|
|
|
|
INCLUDES="$(INCLUDES)" \
|
2001-03-20 19:22:38 +01:00
|
|
|
|
CONFIG_H="$(TCONFIG_H)" MACHMODE_H="$(MACHMODE_H)" \
|
|
|
|
|
LIB1ASMSRC='$(LIB1ASMSRC)' \
|
|
|
|
|
MAKEOVERRIDES= \
|
|
|
|
|
INSTALL_DATA="$(INSTALL_DATA)" \
|
2001-01-07 10:27:25 +01:00
|
|
|
|
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; \
|
2001-03-20 19:22:38 +01: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)" \
|
|
|
|
|
CFLAGS="$(CFLAGS) $(WARN_CFLAGS)" \
|
|
|
|
|
RANLIB_TEST_FOR_TARGET="$(RANLIB_TEST_FOR_TARGET)" \
|
|
|
|
|
NM_FOR_TARGET="$(NM_FOR_TARGET)" AWK="$(AWK)" \
|
|
|
|
|
LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" \
|
2001-08-10 00:33:35 +02:00
|
|
|
|
INCLUDES="$(INCLUDES)" \
|
2001-03-20 19:22:38 +01:00
|
|
|
|
CONFIG_H="$(CONFIG_H)" MACHMODE_H="$(MACHMODE_H)" \
|
|
|
|
|
LIB1ASMSRC='$(LIB1ASMSRC)' \
|
|
|
|
|
MAKEOVERRIDES= \
|
|
|
|
|
INSTALL_DATA="$(INSTALL_DATA)" \
|
2001-01-07 10:27:25 +01:00
|
|
|
|
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.
|
Makefile.in: Exterminate all references to assert.h.
* Makefile.in: Exterminate all references to assert.h.
* cross-make: Likewise.
* assert.h: Delete.
* configure.in: Correct commentary.
* configure: Regenerate.
* po/POTFILES.in: Remove assert.h.
* libgcc-std.ver, libgcc2.c, libgcc2.h, sys-protos.h:
Remove __eprintf.
* config/t-freebsd, config/t-linux, config/t-linux-aout,
config/t-netbsd, config/t-rtems, config/x-linux,
config/i386/t-beos, config/mcore/t-mcore, config/mcore/t-mcore-pe:
No need to override INSTALL_ASSERT_H.
* fixinc/fixinc.dgux, fixinc/fixinc.interix, fixinc/fixinc.ptx,
fixinc/fixinc.svr4, fixinc/fixinc.winnt, fixinc/fixinc.wrap,
fixinc/fixincl.sh: Don't install assert.h into objdir/include.
From-SVN: r41972
2001-05-11 19:03:02 +02:00
|
|
|
|
install-headers: $(INSTALL_HEADERS_DIR)
|
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
|
|
|
|
|
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-05-27 19:09:47 +02:00
|
|
|
|
-rm -f $(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?
|
2001-05-13 21:37:13 +02:00
|
|
|
|
@$(STAMP) site.exp
|
1997-08-19 17:36:20 +02:00
|
|
|
|
-@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
|
2001-05-04 04:58:46 +02:00
|
|
|
|
@echo "set TESTING_IN_BUILD_TREE 1" >> ./tmp0
|
2001-02-05 02:38:47 +01:00
|
|
|
|
@echo "set HAVE_LIBSTDCXX_V3 1" >> ./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?
|
|
|
|
|
|
ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
top:
* ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
* configure.in, Makefile.in: Take out obsolete check-po logic.
* configure, config.in: Regenerate.
intl:
* Update entire directory from gettext 0.10.40.
* cat-compat.c, linux-msg.sed, po2tbl.sed.in, xopen-msg.sed:
Removed.
* config.charset, dcigettext.c, dcngettext.c, libgnuintl.h,
localcharset.c, locale.alias, ngettext.c, plural.c, plural.y,
ref-add.sin, ref-del.sin: New.
po:
* Makefile.in.in: Upgrade to gettext-0.10.40.
* cat-id-tbl.c: Remove file.
* stamp-cat-id: Remove file.
From-SVN: r46233
2001-10-12 19:24:30 +02:00
|
|
|
|
CHECK_TARGETS = check-gcc @check_languages@
|
2001-02-14 02:13:42 +01:00
|
|
|
|
|
|
|
|
|
check-c++ : check-g++
|
|
|
|
|
check-f77 : check-g77
|
2001-05-16 21:05:50 +02:00
|
|
|
|
check-java :
|
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
|
|
|
|
|
2001-02-12 20:40:17 +01:00
|
|
|
|
check-consistency: testsuite/site.exp
|
|
|
|
|
-rootme=`pwd`; export rootme; \
|
|
|
|
|
srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
|
|
|
|
|
cd testsuite; \
|
|
|
|
|
EXPECT=${EXPECT} ; export EXPECT ; \
|
|
|
|
|
if [ -f $${rootme}/../expect/expect ] ; then \
|
|
|
|
|
TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; pwd` ; \
|
|
|
|
|
export TCL_LIBRARY ; fi ; \
|
|
|
|
|
$(RUNTEST) --tool consistency $(RUNTESTFLAGS)
|
|
|
|
|
|
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)" \
|
2001-01-20 00:37:07 +01:00
|
|
|
|
MAKEOVERRIDES= \
|
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
|
|
|
|
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
|
2001-04-13 12:14:47 +02:00
|
|
|
|
# only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
|
|
|
|
|
# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
|
|
|
|
|
# overrideable (for a bootstrap build stage1 also builds gcc.info).
|
2001-01-12 20:52:29 +01:00
|
|
|
|
stage1_build:
|
2001-04-13 12:14:47 +02:00
|
|
|
|
$(MAKE) CC="$(CC)" libdir=$(libdir) LANGUAGES="$(BOOT_LANGUAGES)" \
|
|
|
|
|
CFLAGS="$(STAGE1_CFLAGS)" MAKEINFO="$(MAKEINFO)" \
|
|
|
|
|
MAKEINFOFLAGS="$(MAKEINFOFLAGS)"
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) stage1_build
|
2001-01-12 20:52:29 +01:00
|
|
|
|
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-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) stage1_copy
|
2001-01-12 20:52:29 +01:00
|
|
|
|
echo stage2_build > stage_last
|
2000-09-06 02:45:47 +02:00
|
|
|
|
|
2001-01-12 20:52:29 +01:00
|
|
|
|
stage2_build: stage1_copy
|
2001-01-27 19:47:16 +01:00
|
|
|
|
$(MAKE) CC="stage1/xgcc$(exeext) -Bstage1/ -B$(build_tooldir)/bin/" \
|
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
|
|
|
|
STAGE_PREFIX=stage1/ \
|
|
|
|
|
$(STAGE2_FLAGS_TO_PASS)
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) stage2_build
|
2001-01-12 20:52:29 +01:00
|
|
|
|
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
|
2001-01-27 19:47:16 +01:00
|
|
|
|
$(MAKE) stage2
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) stage2_copy
|
2001-01-12 20:52:29 +01:00
|
|
|
|
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
|
2001-01-27 19:47:16 +01:00
|
|
|
|
$(MAKE) CC="stage2/xgcc$(exeext) -Bstage2/ -B$(build_tooldir)/bin/" \
|
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
|
|
|
|
STAGE_PREFIX=stage2/ \
|
|
|
|
|
$(STAGE2_FLAGS_TO_PASS)
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) stage3_build
|
2001-01-12 20:52:29 +01:00
|
|
|
|
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
|
2001-01-27 19:47:16 +01:00
|
|
|
|
$(MAKE) stage3
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) stage3_copy
|
2001-01-12 20:52:29 +01:00
|
|
|
|
echo stage4_build > stage_last
|
|
|
|
|
|
|
|
|
|
stage4_build: stage3_copy
|
2001-04-13 12:14:47 +02:00
|
|
|
|
$(MAKE) CC="stage3/xgcc$(exeext) -Bstage3/ -B$(build_tooldir)/bin/" \
|
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
|
|
|
|
STAGE_PREFIX=stage3/ \
|
|
|
|
|
$(STAGE2_FLAGS_TO_PASS)
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) stage4_build
|
2001-01-12 20:52:29 +01:00
|
|
|
|
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))
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) clean_s1
|
2000-09-06 02:45:47 +02:00
|
|
|
|
|
2001-01-12 20:52:29 +01:00
|
|
|
|
clean_s2: stage2_copy
|
2000-09-06 02:45:47 +02:00
|
|
|
|
-rm -rf stage1
|
2001-05-13 21:37:13 +02:00
|
|
|
|
$(STAMP) clean_s2
|
2000-09-06 02:45:47 +02:00
|
|
|
|
|
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
|
|
|
|
|
|
2001-01-29 02:48:06 +01:00
|
|
|
|
bootstrap2-lean : bootstrap-lean
|
2001-01-12 20:52:29 +01:00
|
|
|
|
|
|
|
|
|
bootstrap3 bootstrap3-lean: bootstrap
|
2001-01-29 02:48:06 +01: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//'`; \
|
2001-10-26 09:24:34 +02:00
|
|
|
|
rm -f $$stage/as$(exeext); \
|
|
|
|
|
rm -f $$stage/ld$(exeext); \
|
|
|
|
|
rm -f $$stage/collect-ld$(exeext); \
|
2001-01-12 20:52:29 +01:00
|
|
|
|
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
|
Makefile.in (INTL_TARGETS, POSUB): Delete all references.
* Makefile.in (INTL_TARGETS, POSUB): Delete all references.
(INTL_SUBDIRS): Just intl.
(.SUFFIXES): Add .gmo .po .pox.
(native): Also depend on build-@POSUB@.
(intl.all, intl.install): Depend on config.h and things it includes.
(po-generated): New target; depend on c-parse.c and tradcif.c.
(install-normal): Also depend on install-@POSUB@.
(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
(build-, install-, build-po, update-po, install-po,
.po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
* aclocal.m4: Prefix each entry in CATALOGS with "po/"
* configure.in: Don't munge XGETTEXT. Don't generate
po/Makefile.in.
* configure: Regenerate.
* exgettext: Delete.
* config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
* cp/Make-lang.in, java/Make-lang.in, objc/Make-lang.in: Replace
$(INTL_TARGETS) with po-generated.
po:
* EXCLUDES: New file.
* exgettext: New helper script; completely rewritten.
* Makefile.in.in, POTFILES.in: Delete.
From-SVN: r46680
2001-10-31 18:40:07 +01:00
|
|
|
|
|
|
|
|
|
# Rules for generating translated message descriptions.
|
|
|
|
|
# Disabled by autoconf if the tools are not available.
|
|
|
|
|
|
|
|
|
|
XGETTEXT = @XGETTEXT@
|
|
|
|
|
GMSGFMT = @GMSGFMT@
|
|
|
|
|
MSGMERGE = msgmerge
|
|
|
|
|
|
|
|
|
|
PACKAGE = @PACKAGE@
|
|
|
|
|
CATALOGS = @CATALOGS@
|
|
|
|
|
|
|
|
|
|
.PHONY: build- install- build-po install-po update-po
|
|
|
|
|
|
|
|
|
|
# Dummy rules to deal with dependencies produced by use of
|
|
|
|
|
# "build-@POSUB@" and "install-@POSUB@" above, when NLS is disabled.
|
|
|
|
|
build-: ; @true
|
|
|
|
|
install-: ; @true
|
|
|
|
|
|
|
|
|
|
build-po: $(CATALOGS)
|
|
|
|
|
|
|
|
|
|
# This notation should be acceptable to all Make implementations used
|
|
|
|
|
# by people who are interested in updating .po files.
|
|
|
|
|
update-po: $(CATALOGS:.gmo=.pox)
|
|
|
|
|
|
2001-11-06 03:39:47 +01:00
|
|
|
|
# N.B. We do not attempt to copy these into $(srcdir). The snapshot
|
|
|
|
|
# script does that.
|
Makefile.in (INTL_TARGETS, POSUB): Delete all references.
* Makefile.in (INTL_TARGETS, POSUB): Delete all references.
(INTL_SUBDIRS): Just intl.
(.SUFFIXES): Add .gmo .po .pox.
(native): Also depend on build-@POSUB@.
(intl.all, intl.install): Depend on config.h and things it includes.
(po-generated): New target; depend on c-parse.c and tradcif.c.
(install-normal): Also depend on install-@POSUB@.
(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
(build-, install-, build-po, update-po, install-po,
.po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
* aclocal.m4: Prefix each entry in CATALOGS with "po/"
* configure.in: Don't munge XGETTEXT. Don't generate
po/Makefile.in.
* configure: Regenerate.
* exgettext: Delete.
* config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
* cp/Make-lang.in, java/Make-lang.in, objc/Make-lang.in: Replace
$(INTL_TARGETS) with po-generated.
po:
* EXCLUDES: New file.
* exgettext: New helper script; completely rewritten.
* Makefile.in.in, POTFILES.in: Delete.
From-SVN: r46680
2001-10-31 18:40:07 +01:00
|
|
|
|
.po.gmo:
|
|
|
|
|
test -d po || mkdir po
|
|
|
|
|
$(GMSGFMT) --statistics $< -o $@
|
|
|
|
|
|
2001-11-06 03:39:47 +01:00
|
|
|
|
# The new .po has to be gone over by hand, so we deposit it into
|
|
|
|
|
# build/po with a different extension.
|
2001-11-09 18:51:56 +01:00
|
|
|
|
# If build/po/$(PACKAGE).pot exists, use it (it was just created),
|
|
|
|
|
# else use the one in srcdir.
|
Makefile.in (INTL_TARGETS, POSUB): Delete all references.
* Makefile.in (INTL_TARGETS, POSUB): Delete all references.
(INTL_SUBDIRS): Just intl.
(.SUFFIXES): Add .gmo .po .pox.
(native): Also depend on build-@POSUB@.
(intl.all, intl.install): Depend on config.h and things it includes.
(po-generated): New target; depend on c-parse.c and tradcif.c.
(install-normal): Also depend on install-@POSUB@.
(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
(build-, install-, build-po, update-po, install-po,
.po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
* aclocal.m4: Prefix each entry in CATALOGS with "po/"
* configure.in: Don't munge XGETTEXT. Don't generate
po/Makefile.in.
* configure: Regenerate.
* exgettext: Delete.
* config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
* cp/Make-lang.in, java/Make-lang.in, objc/Make-lang.in: Replace
$(INTL_TARGETS) with po-generated.
po:
* EXCLUDES: New file.
* exgettext: New helper script; completely rewritten.
* Makefile.in.in, POTFILES.in: Delete.
From-SVN: r46680
2001-10-31 18:40:07 +01:00
|
|
|
|
.po.pox:
|
|
|
|
|
test -d po || mkdir po
|
2001-11-09 18:51:56 +01:00
|
|
|
|
$(MSGMERGE) $< `if test -f po/$(PACKAGE).pot; \
|
|
|
|
|
then echo po/$(PACKAGE).pot; \
|
|
|
|
|
else echo $(srcdir)/po/$(PACKAGE).pot; fi` -o $@
|
Makefile.in (INTL_TARGETS, POSUB): Delete all references.
* Makefile.in (INTL_TARGETS, POSUB): Delete all references.
(INTL_SUBDIRS): Just intl.
(.SUFFIXES): Add .gmo .po .pox.
(native): Also depend on build-@POSUB@.
(intl.all, intl.install): Depend on config.h and things it includes.
(po-generated): New target; depend on c-parse.c and tradcif.c.
(install-normal): Also depend on install-@POSUB@.
(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
(build-, install-, build-po, update-po, install-po,
.po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
* aclocal.m4: Prefix each entry in CATALOGS with "po/"
* configure.in: Don't munge XGETTEXT. Don't generate
po/Makefile.in.
* configure: Regenerate.
* exgettext: Delete.
* config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
* cp/Make-lang.in, java/Make-lang.in, objc/Make-lang.in: Replace
$(INTL_TARGETS) with po-generated.
po:
* EXCLUDES: New file.
* exgettext: New helper script; completely rewritten.
* Makefile.in.in, POTFILES.in: Delete.
From-SVN: r46680
2001-10-31 18:40:07 +01:00
|
|
|
|
|
2001-11-06 03:39:47 +01:00
|
|
|
|
# This rule has to look for .gmo modules in both srcdir and
|
|
|
|
|
# the cwd, and has to check that we actually have a catalog
|
|
|
|
|
# for each language, in case they weren't built or included
|
|
|
|
|
# with the distribution.
|
Makefile.in (INTL_TARGETS, POSUB): Delete all references.
* Makefile.in (INTL_TARGETS, POSUB): Delete all references.
(INTL_SUBDIRS): Just intl.
(.SUFFIXES): Add .gmo .po .pox.
(native): Also depend on build-@POSUB@.
(intl.all, intl.install): Depend on config.h and things it includes.
(po-generated): New target; depend on c-parse.c and tradcif.c.
(install-normal): Also depend on install-@POSUB@.
(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
(build-, install-, build-po, update-po, install-po,
.po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
* aclocal.m4: Prefix each entry in CATALOGS with "po/"
* configure.in: Don't munge XGETTEXT. Don't generate
po/Makefile.in.
* configure: Regenerate.
* exgettext: Delete.
* config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
* cp/Make-lang.in, java/Make-lang.in, objc/Make-lang.in: Replace
$(INTL_TARGETS) with po-generated.
po:
* EXCLUDES: New file.
* exgettext: New helper script; completely rewritten.
* Makefile.in.in, POTFILES.in: Delete.
From-SVN: r46680
2001-10-31 18:40:07 +01:00
|
|
|
|
install-po:
|
|
|
|
|
$(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)
|
|
|
|
|
for cat in $(CATALOGS); do \
|
2001-11-06 03:39:47 +01:00
|
|
|
|
lang=`basename $$cat | sed 's/\.gmo$$//'`; \
|
|
|
|
|
if [ -f $$cat ]; then :; \
|
|
|
|
|
elif [ -f $(srcdir)/$$cat ]; then cat=$(srcdir)/$$cat; \
|
|
|
|
|
else continue; \
|
|
|
|
|
fi; \
|
Makefile.in (INTL_TARGETS, POSUB): Delete all references.
* Makefile.in (INTL_TARGETS, POSUB): Delete all references.
(INTL_SUBDIRS): Just intl.
(.SUFFIXES): Add .gmo .po .pox.
(native): Also depend on build-@POSUB@.
(intl.all, intl.install): Depend on config.h and things it includes.
(po-generated): New target; depend on c-parse.c and tradcif.c.
(install-normal): Also depend on install-@POSUB@.
(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
(build-, install-, build-po, update-po, install-po,
.po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
* aclocal.m4: Prefix each entry in CATALOGS with "po/"
* configure.in: Don't munge XGETTEXT. Don't generate
po/Makefile.in.
* configure: Regenerate.
* exgettext: Delete.
* config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
* cp/Make-lang.in, java/Make-lang.in, objc/Make-lang.in: Replace
$(INTL_TARGETS) with po-generated.
po:
* EXCLUDES: New file.
* exgettext: New helper script; completely rewritten.
* Makefile.in.in, POTFILES.in: Delete.
From-SVN: r46680
2001-10-31 18:40:07 +01:00
|
|
|
|
dir=$(localedir)/$$lang/LC_MESSAGES; \
|
|
|
|
|
echo $(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$$dir; \
|
|
|
|
|
$(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$$dir || exit 1; \
|
2001-11-06 03:39:47 +01:00
|
|
|
|
echo $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
|
|
|
|
|
$(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
|
Makefile.in (INTL_TARGETS, POSUB): Delete all references.
* Makefile.in (INTL_TARGETS, POSUB): Delete all references.
(INTL_SUBDIRS): Just intl.
(.SUFFIXES): Add .gmo .po .pox.
(native): Also depend on build-@POSUB@.
(intl.all, intl.install): Depend on config.h and things it includes.
(po-generated): New target; depend on c-parse.c and tradcif.c.
(install-normal): Also depend on install-@POSUB@.
(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
(build-, install-, build-po, update-po, install-po,
.po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
* aclocal.m4: Prefix each entry in CATALOGS with "po/"
* configure.in: Don't munge XGETTEXT. Don't generate
po/Makefile.in.
* configure: Regenerate.
* exgettext: Delete.
* config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
* cp/Make-lang.in, java/Make-lang.in, objc/Make-lang.in: Replace
$(INTL_TARGETS) with po-generated.
po:
* EXCLUDES: New file.
* exgettext: New helper script; completely rewritten.
* Makefile.in.in, POTFILES.in: Delete.
From-SVN: r46680
2001-10-31 18:40:07 +01:00
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Rule for regenerating the message template (gcc.pot).
|
|
|
|
|
# Instead of forcing everyone to edit POTFILES.in, which proved impractical,
|
|
|
|
|
# this rule has no dependencies and always regenerates gcc.pot. This is
|
|
|
|
|
# relatively harmless since the .po files do not directly depend on it.
|
|
|
|
|
# Note that exgettext has an awk script embedded in it which requires a
|
|
|
|
|
# fairly modern (POSIX-compliant) awk.
|
2001-11-09 18:51:56 +01:00
|
|
|
|
# The .pot file is left in the build directory.
|
Makefile.in (INTL_TARGETS, POSUB): Delete all references.
* Makefile.in (INTL_TARGETS, POSUB): Delete all references.
(INTL_SUBDIRS): Just intl.
(.SUFFIXES): Add .gmo .po .pox.
(native): Also depend on build-@POSUB@.
(intl.all, intl.install): Depend on config.h and things it includes.
(po-generated): New target; depend on c-parse.c and tradcif.c.
(install-normal): Also depend on install-@POSUB@.
(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
(build-, install-, build-po, update-po, install-po,
.po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
* aclocal.m4: Prefix each entry in CATALOGS with "po/"
* configure.in: Don't munge XGETTEXT. Don't generate
po/Makefile.in.
* configure: Regenerate.
* exgettext: Delete.
* config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
* cp/Make-lang.in, java/Make-lang.in, objc/Make-lang.in: Replace
$(INTL_TARGETS) with po-generated.
po:
* EXCLUDES: New file.
* exgettext: New helper script; completely rewritten.
* Makefile.in.in, POTFILES.in: Delete.
From-SVN: r46680
2001-10-31 18:40:07 +01:00
|
|
|
|
$(PACKAGE).pot: po/$(PACKAGE).pot
|
|
|
|
|
po/$(PACKAGE).pot: force
|
|
|
|
|
test -d po || mkdir po
|
|
|
|
|
$(MAKE) po-generated
|
|
|
|
|
AWK=$(AWK) $(SHELL) $(srcdir)/po/exgettext \
|
|
|
|
|
$(XGETTEXT) $(PACKAGE) $(srcdir)
|