summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cc
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2003-07-11 05:37:23 +0000
committerkan <kan@FreeBSD.org>2003-07-11 05:37:23 +0000
commite16ef3051fc93762c9e35dc8623f838d928e1d07 (patch)
tree48011aa0b1d5a11422646a9a5233a8b3cebe128e /gnu/usr.bin/cc
parent365bf752c50b2bb6424794eabde19f31cc3e2861 (diff)
downloadFreeBSD-src-e16ef3051fc93762c9e35dc8623f838d928e1d07.zip
FreeBSD-src-e16ef3051fc93762c9e35dc8623f838d928e1d07.tar.gz
Update bmake bits to build GCC 3.3.1-prerelease.
Diffstat (limited to 'gnu/usr.bin/cc')
-rw-r--r--gnu/usr.bin/cc/Makefile2
-rw-r--r--gnu/usr.bin/cc/c++filt/Makefile2
-rw-r--r--gnu/usr.bin/cc/cc1/Makefile2
-rw-r--r--gnu/usr.bin/cc/cc1plus/Makefile2
-rw-r--r--gnu/usr.bin/cc/cc_int/Makefile30
-rw-r--r--gnu/usr.bin/cc/cc_tools/Makefile291
-rw-r--r--gnu/usr.bin/cc/doc/Makefile4
7 files changed, 254 insertions, 79 deletions
diff --git a/gnu/usr.bin/cc/Makefile b/gnu/usr.bin/cc/Makefile
index 23499e1..d8ea8c2 100644
--- a/gnu/usr.bin/cc/Makefile
+++ b/gnu/usr.bin/cc/Makefile
@@ -3,7 +3,7 @@
# The order of some of these are rather important. Some depend on previous
# subdirs.
-SUBDIR= cc_tools cc_int cc cc1 cpp0 include protoize tradcpp0 doc
+SUBDIR= cc_tools cc_int cc cc1 include protoize doc
.if !defined(NO_CPP)
SUBDIR+= cpp
diff --git a/gnu/usr.bin/cc/c++filt/Makefile b/gnu/usr.bin/cc/c++filt/Makefile
index 95c340d..f187a7b 100644
--- a/gnu/usr.bin/cc/c++filt/Makefile
+++ b/gnu/usr.bin/cc/c++filt/Makefile
@@ -8,7 +8,7 @@ PROG= c++filt
SRCS= cp-demangle.c cplus-dem+%DIKED.c
NOMAN= 1
-CFLAGS+= -DMAIN -DIN_GCC -DVERSION=\"$(version)\"
+CFLAGS+= -DSTANDALONE_DEMANGLER -DIN_GCC -DVERSION=\"$(version)\"
DPADD+= ${LIBCC_INT}
LDADD+= ${LIBCC_INT}
diff --git a/gnu/usr.bin/cc/cc1/Makefile b/gnu/usr.bin/cc/cc1/Makefile
index 09a89b5..98cdc81 100644
--- a/gnu/usr.bin/cc/cc1/Makefile
+++ b/gnu/usr.bin/cc/cc1/Makefile
@@ -5,7 +5,7 @@
.PATH: ${GCCDIR}
PROG= cc1
-SRCS= main.c c-parse+%DIKED.c c-lang.c c-decl.c
+SRCS= main.c c-parse+%DIKED.c c-lang.c c-decl.c c-opts.c
BINDIR= /usr/libexec
NOMAN= 1
NOSHARED?=yes
diff --git a/gnu/usr.bin/cc/cc1plus/Makefile b/gnu/usr.bin/cc/cc1plus/Makefile
index 97ccdcf..883bfdb 100644
--- a/gnu/usr.bin/cc/cc1plus/Makefile
+++ b/gnu/usr.bin/cc/cc1plus/Makefile
@@ -6,7 +6,7 @@
PROG= cc1plus
SRCS= parse+%DIKED.c parse.h cfns.h
-SRCS+= main.c cp-lang.c \
+SRCS+= main.c cp-lang.c c-opts.c \
call.c class.c cvt.c decl.c decl2.c error.c except.c expr.c friend.c \
init.c lex.c mangle.c method.c pt.c ptree.c repo.c rtti.c search.c \
semantics.c spew.c tree.c typeck.c typeck2.c dump.c optimize.c
diff --git a/gnu/usr.bin/cc/cc_int/Makefile b/gnu/usr.bin/cc/cc_int/Makefile
index bfc7b77..fe6d828 100644
--- a/gnu/usr.bin/cc/cc_int/Makefile
+++ b/gnu/usr.bin/cc/cc_int/Makefile
@@ -2,40 +2,31 @@
.include "../Makefile.inc"
-.PATH: ../cc_tools ${GCCDIR}/config/${GCC_CPU} ${GCCDIR} ${GCCDIR}/../libiberty
+.PATH: ../cc_tools ${GCCDIR}/config/${GCC_CPU} ${GCCDIR} ${GCCDIR}/../libiberty
LIB= cc_int
INTERNALLIB= YES
# dbxout.c dwarfout.c emit-rtl.c explow.c expmed.c expr.c \
# alias.c bitmap.c dwarf2out.c dyn-string.c \
-SRCS= c-common.c c-format.c \
+SRCS= c-common.c c-dump.c c-format.c c-opts.c \
c-pragma.c c-semantics.c \
- \
caller-save.c calls.c combine.c convert.c cse.c \
dbxout.c dwarfout.c dwarf2out.c dwarf2asm.c emit-rtl.c explow.c expmed.c expr.c \
final.c flow.c fold-const.c function.c getpwd.c global.c graph.c \
- hash.c haifa-sched.c \
+ gtype-desc.c hash.c haifa-sched.c \
integrate.c jump.c lcm.c local-alloc.c loop.c optabs.c \
- print-rtl.c print-tree.c real.c recog.c reg-stack.c regclass.c \
+ print-rtl.c print-tree.c \
+ ra.c ra-build.c ra-colorize.c ra-debug.c ra-rewrite.c \
+ real.c recog.c reg-stack.c regclass.c \
reload.c reload1.c reorg.c rtl.c rtlanal.c \
sbitmap.c sdbout.c stmt.c stor-layout.c \
- toplev.c tree.c unroll.c varasm.c version.c xcoffout.c \
+ toplev.c tracer.c tree.c unroll.c varasm.c version.c xcoffout.c \
alias.c bitmap.c dyn-string.c \
gcse.c genrtl.c profile.c regmove.c varray.c \
attribs.c cselib.c debug.c rtl-error.c tree-dump.c tree-inline.c
-.if ${TARGET_ARCH} != "amd64"
SRCS+= ${GCC_CPU}.c
-.else
-SRCS+= i386-hacked.c
-CLEANFILES+= i386-hacked.c
-
-i386-hacked.c: ${GCCDIR}/config/i386/i386.c amd64.patch
- rm -f i386-hacked.c # in case p4 readonly copied
- cp ${GCCDIR}/config/i386/i386.c i386-hacked.c
- patch -b .orig < ${.CURDIR}/amd64.patch
-.endif
SRCS+= bb-reorder.c conflict.c ggc-common.c \
ggc-page.c ifcvt.c lists.c predict.c regrename.c resource.c sibcall.c \
@@ -64,17 +55,18 @@ SRCS+= c-lex.c c-typeck.c \
c-errors.o c-pragma.o c-convert.o c-aux-info.o c-common.o c-format.o c-semantics.o c-objc-common.o
# libbackend
-SRCS+= builtins.c diagnostic.c doloop.c dominance.c except.c gcse.c params.c sched-deps.c sched-vis.c sched-rgn.c sched-ebb.c \
+SRCS+= builtins.c diagnostic.c doloop.c dominance.c et-forest.c \
+ except.c gcse.c params.c sched-deps.c sched-vis.c sched-rgn.c sched-ebb.c \
stringpool.c c-lex.c langhooks.c hashtable.c \
hooks.c \
cfg.c cfganal.c cfgbuild.c cfgcleanup.c cfglayout.c cfgloop.c cfgrtl.c
# libcpp
SRCS+= cppdefault.c cpperror.c cppexp.c cppfiles.c cppinit.c cpphash.c \
- cpplex.c cpplib.c cppmacro.c mkdeps.c line-map.c
+ cpplex.c cpplib.c cppmacro.c cppmain.c cpptrad.c mkdeps.c line-map.c
# stuff that makes libiberty now required (2.95) and shouldn't be...
-SRCS+= obstack.c splay-tree.c hashtab.c partition.c lbasename.c md5.c hex.c getopt.c getopt1.c
+SRCS+= obstack.c splay-tree.c hashtab.c partition.c lbasename.c md5.c hex.c getopt.c getopt1.c xmemdup.c physmem.c
CFLAGS+= -DHAVE_CONFIG_H
CFLAGS+= -DTARGET_NAME=\"${target}\" -DIN_GCC
diff --git a/gnu/usr.bin/cc/cc_tools/Makefile b/gnu/usr.bin/cc/cc_tools/Makefile
index 0e7f760..3fab4d1 100644
--- a/gnu/usr.bin/cc/cc_tools/Makefile
+++ b/gnu/usr.bin/cc/cc_tools/Makefile
@@ -11,49 +11,71 @@
# Prevent mkdep from using it, so that we don't have to give rules for
# aliases of generated headers.
-CFLAGS+= -I.
+CFLAGS+= -I. -static -DGENERATOR_FILE
.include "../Makefile.inc"
-.PATH: ${GCCDIR} ${GCCDIR}/cp ${GCCDIR}/../libiberty
-
-CFLAGS+= -static -DGENERATOR_FILE
+.PATH: ${GCCDIR}
#-----------------------------------------------------------------------
# insn-* gunk
-.for F in attr codes config flags
+.for F in attr codes config flags constants
insn-$F.h: gen$F ${MD_FILE}
./gen$F ${MD_FILE} > insn-$F.h
GENSRCS+= insn-$F.h
.endfor
+.for F in conditions
+insn-$F.c: gen$F ${MD_FILE}
+ ./gen$F ${MD_FILE} > insn-$F.c
+GENSRCS+= insn-$F.c
+.endfor
+
GENSRCS+= gen-time-stamp
-gen-time-stamp: genattrtab genemit genextract genopinit genoutput genpeep genrecog
+gen-time-stamp: genattr genattrtab genconditions genconstants genemit \
+ genextract gengtype genopinit genoutput genpeep genrecog
touch ${.TARGET}
.for F in attr codes config emit extract flags opinit output peep recog
build-tools: gen$F
-gen$F: gen$F.o rtl.o obstack.o print-rtl.o bitmap.o errors.o gensupport.o ggc-none.o hashtab.o read-rtl.o
+gen$F: gen$F.o rtl.o obstack.o print-rtl.o bitmap.o errors.o gensupport.o \
+ ggc-none.o hashtab.o read-rtl.o concat.o insn-conditions.o
${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
GENSRCS+= gen$F.c
CLEANFILES+= gen$F
.endfor
-.for F in attrtab
+#
+# genattrtab needs more complex build rule
+#
+build-tools: genattrtab
+
+genattrtab : genattrtab.o rtl.o obstack.o print-rtl.o bitmap.o errors.o \
+ gensupport.o ggc-none.o hashtab.o read-rtl.o concat.o \
+ insn-conditions.o genautomata.o varray.o getruntime.o
+ ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} -lm
+
+GENSRCS+= genattrtab.c
+CLEANFILES+= genattrtab
+
+#
+# genconstants and genconditions cannot depend on insn-conditions.o
+# they should be liked with dummy-conditions.o stubs instead
+#
+.for F in constants conditions
build-tools: gen$F
-gen$F: gen$F.o rtl.o print-rtl.o obstack.o bitmap.o errors.o gensupport.o ggc-none.o hashtab.o read-rtl.o
+gen$F: gen$F.o rtl.o obstack.o bitmap.o errors.o gensupport.o \
+ ggc-none.o hashtab.o read-rtl.o concat.o dummy-conditions.o
${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
GENSRCS+= gen$F.c
CLEANFILES+= gen$F
.endfor
-SRCS+= bitmap.c errors.c gensupport.c ggc-none.c hashtab.c obstack.c print-rtl.c regclass.c rtl.c rtlanal.c read-rtl.c
-
.for F in check genrtl preds
build-tools: gen$F
@@ -71,6 +93,10 @@ genrtl.c genrtl.h: gengenrtl
GENSRCS+= genrtl.c genrtl.h
+SRCS+= bitmap.c concat.c dummy-conditions.c errors.c genautomata.c \
+ gensupport.c getruntime.c ggc-none.c hashtab.c insn-conditions.c \
+ obstack.c physmem.c print-rtl.c read-rtl.c rtl.c varray.c xmemdup.c
+
#-----------------------------------------------------------------------
# Common parser stuff.
@@ -86,18 +112,171 @@ tm-preds.h: genpreds
GENSRCS+= tm-preds.h
#-----------------------------------------------------------------------
+# Gengtype
+
+gengtype-lex.c : gengtype-lex.l
+ ${LEX} -t ${.ALLSRC} | \
+ sed 's/^\(char msg\[\];\)/yyconst \1/' > ${.TARGET}
+
+.ORDER: gengtype-yacc.c gengtype-yacc.h
+gengtype-yacc.c gengtype-yacc.h: gengtype-yacc.y
+ ${YACC} -d -o gengtype-yacc.c ${.ALLSRC}
+
+GENSRCS+= gengtype-yacc+%DIKED.c gengtype-yacc.h gengtype-lex.c
+CLEANFILES+= gengtype-yacc.c
+
+gengtype-yacc+%DIKED.c: gengtype-yacc.c
+ cat ${.ALLSRC} > ${.TARGET}
+ sed -e "s/xmalloc/malloc/g" \
+ -e "s/xrealloc/realloc/g" \
+ -e "s/malloc/xmalloc/g" \
+ -e "s/realloc/xrealloc/g" \
+ ${.ALLSRC} > ${.TARGET}
+
+gengtype: gengtype.o gengtype-yacc+%DIKED.o gengtype-lex.o xmemdup.o
+ ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
+
+GENSRCS+= gengtype.c
+CLEANFILES+= gengtype
+
+gengtype-lex.o: gengtype-yacc.h
+
+.ORDER: gtype-desc.c gtype-desc.h
+gtype-desc.c gtype-desc.h: gtype-time-stamp
+ @true
+
+GENSRCS+= gtype-time-stamp
+gtype-time-stamp: gengtype ${GTFILES}
+ ./gengtype
+ touch ${.TARGET}
+
+GENSRCS+= gtype-desc.c gtype-desc.h
+CLEANFILES+= gt-*.h gtype-*.h
+
+#-----------------------------------------------------------------------
+# Determine content of variables used by the target/host config files
+
+#
+# The list of headers to go into tconfig.h
+#
+TARGET_INC= ansidecl.h
+TARGET_INC+= ${GCC_CPU}/${GCC_CPU}.h
+.if ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "amd64"
+TARGET_INC+= ${GCC_CPU}/unix.h
+TARGET_INC+= ${GCC_CPU}/att.h
+.endif
+.if ${TARGET_ARCH} != "alpha"
+TARGET_INC+= dbxelf.h
+TARGET_INC+= elfos.h
+.endif
+TARGET_INC+= freebsd-native.h
+TARGET_INC+= freebsd-spec.h
+TARGET_INC+= freebsd.h
+.if ${TARGET_ARCH} == "alpha"
+TARGET_INC+= ${GCC_CPU}/elf.h
+.endif
+.if ${TARGET_ARCH} != "i386" && ${TARGET_ARCH} != "amd64"
+.if exists(${GCCDIR}/config/${GCC_CPU}/sysv4.h)
+TARGET_INC+= ${GCC_CPU}/sysv4.h
+.endif
+.endif
+TARGET_INC+= ${GCC_CPU}/freebsd.h
+.if ${TARGET_ARCH} == "amd64"
+TARGET_INC+= ${GCC_CPU}/x86-64.h
+TARGET_INC+= ${GCC_CPU}/freebsd64.h
+.endif
+TARGET_INC+= defaults.h
+
+#
+# Use TARGET_INC as a template and build a list of target specific
+# include files for gengtype to scan
+#
+GCONFIG_H= ${.OBJDIR}/tconfig.h ${.CURDIR}/auto-host.h
+
+.for H in ${TARGET_INC}
+.for D in ${GCCDIR}/config ${GCCDIR} ${.CURDIR}
+.if exists($D/$H)
+GCONFIG_H+= $D/$H
+.endif
+.endfor
+.endfor
+
+#
+# Define some variables to make blocks copied from Makefile.in happy
+#
+srcdir= ${GCCDIR}
+HASHTAB_H= ${GCCDIR}/hashtab.h
+out_file= ${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}.c
+GTFILES_SRCDIR= ${GCCDIR}
+
+#
+# Copied unchanged from gcc/Makefile.in
+#
+GTFILES = $(GCONFIG_H) $(srcdir)/location.h \
+ $(HASHTAB_H) \
+ $(srcdir)/bitmap.h $(srcdir)/function.h $(srcdir)/rtl.h $(srcdir)/optabs.h \
+ $(srcdir)/tree.h $(srcdir)/libfuncs.h $(srcdir)/hashtable.h $(srcdir)/real.h \
+ $(srcdir)/varray.h $(srcdir)/ssa.h $(srcdir)/insn-addr.h $(srcdir)/cselib.h \
+ $(srcdir)/c-common.h $(srcdir)/c-tree.h \
+ $(srcdir)/basic-block.h \
+ $(srcdir)/alias.c $(srcdir)/bitmap.c $(srcdir)/cselib.c \
+ $(srcdir)/dwarf2out.c $(srcdir)/emit-rtl.c \
+ $(srcdir)/except.c $(srcdir)/explow.c $(srcdir)/expr.c \
+ $(srcdir)/fold-const.c $(srcdir)/function.c \
+ $(srcdir)/gcse.c $(srcdir)/integrate.c $(srcdir)/lists.c $(srcdir)/optabs.c \
+ $(srcdir)/profile.c $(srcdir)/ra-build.c $(srcdir)/regclass.c \
+ $(srcdir)/reg-stack.c \
+ $(srcdir)/sdbout.c $(srcdir)/stmt.c $(srcdir)/stor-layout.c \
+ $(srcdir)/tree.c $(srcdir)/varasm.c \
+ $(out_file)
+
+#
+# Build a list of frontend directories to look into
+#
+GTFILES_LANG_DIR_NAMES=
+
+.if !defined(NO_CXX)
+GTFILES_LANG_DIR_NAMES+= cp
+.endif
+
+.if !defined(NO_OBJC)
+GTFILES_LANG_DIR_NAMES+= objc
+.endif
+
+.if !defined(NO_FORTRAN)
+GTFILES_LANG_DIR_NAMES+= f
+.endif
+
+#
+# Build a list of language specific files for gengtype
+#
+.for L in ${GTFILES_LANG_DIR_NAMES} c
+.if exists(${GCCDIR}/$L-config-lang.in)
+# Source the language config file
+$L_GTFILES!= sh -c '. ${GCCDIR}/$L-config-lang.in; echo $$gtfiles'
+.else
+$L_GTFILES!= sh -c '. ${GCCDIR}/$L/config-lang.in; echo $$gtfiles'
+.endif
+GTFILES+= ${$L_GTFILES}
+.for F in ${$L_GTFILES}
+GTFILES_FILES+= $F
+GTFILES_LANGS+= $L
+.endfor
+.endfor
+
+#-----------------------------------------------------------------------
# the host/target compiler config.
COMMONHDRS= config.h hconfig.h multilib.h options.h specs.h tconfig.h \
tm_p.h configargs.h safe-ctype.h
-GENSRCS+= ${COMMONHDRS} gencheck.h
+GENSRCS+= ${COMMONHDRS} gencheck.h gtyp-gen.h
MFILE?= ${.CURDIR}/Makefile
${COMMONHDRS}: ${MFILE}
configargs.h:
echo 'static const char configuration_arguments[] =' > ${.TARGET}
- echo ' "FreeBSD/${TARGET_ARCH} system compiler";' >> ${.TARGET}
+ echo ' "FreeBSD/${TARGET_ARCH} system compiler";' >> ${.TARGET}
echo 'static const char thread_model[] = "posix";' >> ${.TARGET}
hconfig.h:
@@ -131,7 +310,7 @@ specs.h:
config.h:
echo '#include <hconfig.h>' > ${.TARGET}
echo '#ifndef GENERATOR_FILE' >> ${.TARGET}
- echo '#include "insn-codes.h"' >> ${.TARGET}
+ echo '#include "insn-constants.h"' >> ${.TARGET}
echo '#include "insn-flags.h"' >> ${.TARGET}
echo '#endif' >> ${.TARGET}
@@ -142,6 +321,9 @@ tconfig.h:
echo 'typedef struct rtvec_def *rtvec;' >> ${.TARGET}
echo 'union tree_node;' >> ${.TARGET}
echo 'typedef union tree_node *tree;' >> ${.TARGET}
+ echo '#ifndef GTY' >> ${.TARGET}
+ echo '# define GTY(x)' >> ${.TARGET}
+ echo '#endif' >> ${.TARGET}
echo '' >> ${.TARGET}
.if ${TARGET_ARCH} == "amd64"
echo '#include "i386/biarch64.h"' >> ${.TARGET}
@@ -149,37 +331,15 @@ tconfig.h:
.if ${TARGET_ARCH} == "ia64"
echo '#define TARGET_CPU_DEFAULT (MASK_GNU_AS|MASK_GNU_LD)' >>${.TARGET}
.endif
- echo '#include "ansidecl.h"' >> ${.TARGET}
- echo '#include "${GCC_CPU}/${GCC_CPU}.h"' >> ${.TARGET}
-.if ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "amd64"
- echo '#include "${GCC_CPU}/att.h"' >> ${.TARGET}
-.endif
-.if ${TARGET_ARCH} != "alpha"
- echo '#include "dbxelf.h"' >> ${.TARGET}
- echo '#include "elfos.h"' >> ${.TARGET}
-.endif
- echo '#include <freebsd-native.h>' >> ${.TARGET}
- echo '#include "freebsd-spec.h"' >> ${.TARGET}
- echo '#include "freebsd.h"' >> ${.TARGET}
-.if ${TARGET_ARCH} == "alpha"
- echo '#include "${GCC_CPU}/elf.h"' >> ${.TARGET}
-.endif
-.if ${TARGET_ARCH} != "i386" && ${TARGET_ARCH} != "amd64"
-.if exists(${GCCDIR}/config/${GCC_CPU}/sysv4.h)
- echo '#include "${GCC_CPU}/sysv4.h"' >> ${.TARGET}
-.endif
-.endif
- echo '#include "${GCC_CPU}/freebsd.h"' >> ${.TARGET}
-.if ${TARGET_ARCH} == "amd64"
- echo '#include "${GCC_CPU}/x86-64.h"' >> ${.TARGET}
- echo '#include "${GCC_CPU}/freebsd64.h"' >> ${.TARGET}
-.endif
- echo '#include "defaults.h"' >> ${.TARGET}
+.for H in ${TARGET_INC}
+ echo '#include "$H"' >> ${.TARGET}
+.endfor
echo '#ifndef POSIX' >> ${.TARGET}
echo '# define POSIX' >> ${.TARGET}
echo '#endif' >> ${.TARGET}
-.if ${TARGET_ARCH} != "ia64"
- echo '#define CONFIG_SJLJ_EXCEPTIONS 0' >> ${.TARGET}
+.if exists(${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}-modes.def)
+ echo '#define EXTRA_MODES_FILE "${GCC_CPU}/${GCC_CPU}-modes.def"' >> ${.TARGET}
+ echo '#define EXTRA_CC_MODES 1' >> ${.TARGET}
.endif
tm_p.h:
@@ -203,6 +363,33 @@ safe-ctype.h: Makefile
echo "#define IS_SPACE_OR_NUL(x) \
(isspace(x) || (x) == '\0')" >> ${.TARGET}
+gtyp-gen.h:
+ echo "/* This file is machine generated. Do not edit. */" > ${.TARGET}
+ echo "static const char *srcdir = " >> ${.TARGET}
+ echo "\"$(GTFILES_SRCDIR)\";" >> ${.TARGET}
+ echo "static const char *lang_files[] = {" >> ${.TARGET}
+.for F in ${GTFILES_FILES}
+ echo "\"$F\", " >> ${.TARGET}
+.endfor
+ echo "NULL};" >> ${.TARGET}
+ echo "static const char *langs_for_lang_files[] = {" >> ${.TARGET}
+.for F in ${GTFILES_LANGS}
+ echo "\"$F\", " >> ${.TARGET}
+.endfor
+ echo "NULL};" >> ${.TARGET}
+ echo "static const char *all_files[] = {" >> ${.TARGET}
+.for F in ${GTFILES}
+ echo "\"$F\", " >> ${.TARGET}
+.endfor
+ echo "NULL};" >> ${.TARGET}
+ echo "static const char *lang_dir_names[] = { \"c\", " >> ${.TARGET}
+.for F in ${GTFILES_LANG_DIR_NAMES}
+ echo "\"$F\", " >> ${.TARGET}
+.endfor
+ echo "NULL};" >> ${.TARGET}
+ echo "#define xexit exit" >> ${.TARGET}
+
+
#-----------------------------------------------------------------------
# General things.
@@ -228,18 +415,14 @@ OBJS+= ${SRCS:N*.h:R:S/$/.o/g}
# all headers. Filter out the objects that would cause problems (i.e.,
# objects that will be used to create programs that will generate headers).
#
-${OBJS:Nbitmap.o:Nerrors.o:Ngenattr.o:Ngencheck.o:Ngencodes.o:Ngenconfig.o:Ngenflags.o:Ngengenrtl.o:Ngenpreds.o:Ngensupport.o:Nggc-none.o:Nhashtab.o:Nobstack.o:Nprint-rtl.o:Nread-rtl.o:Nrtl.o}: ${SRCS:M*.h}
+${OBJS}: ${SRCS:M*.h:Ngtype-desc.h:Ngenrtl.h:Ntree-check.h:Ntm-preds.h:Ninsn-*.h}
-# Force these to be made absolustly first w/-j
-${OBJS}: ${COMMONHDRS}
+${OBJS:Ngencheck.o:Ngengenrtl.o:Ngenpreds.o}: tree-check.h tm-preds.h genrtl.h
+
+${OBJS:Ngengtype*.o:Nxmemdup.o:Ngengenrtl.o:Ngencheck.o:Ngenpreds.o}: gtype-desc.h
+
+genextract.o: insn-config.h
+
+insn-conditions.o: insn-constants.h
-# Next, make each of the problematic objects depend on only most headers.
-# Filter out the headers that would cause problems (and a few more when it
-# is inconvenient to filter precisely).
-#
-bitmap.o genattr.o gencodes.o genconfig.o genflags.o gensupport.o obstack.o print-rtl.o \
- read-rtl.o rtl.o: ${SRCS:M*.h:Ninsn-*.h}
-gencheck.o: gencheck.h ${SRCS:M*.h:Ngenrtl.h:Ntree-check.h:Ninsn-*.h}
-gengenrtl.o: ${SRCS:M*.h:Ngenrtl.h:Ninsn-*.h}
-genpreds.o: ${COMMONHDRS}
.endif
diff --git a/gnu/usr.bin/cc/doc/Makefile b/gnu/usr.bin/cc/doc/Makefile
index bc2cd1c..74cdf82 100644
--- a/gnu/usr.bin/cc/doc/Makefile
+++ b/gnu/usr.bin/cc/doc/Makefile
@@ -14,7 +14,7 @@ INFOENTRY_cppinternals= "* cppinternals: (cppinternals). The GNU compiler prepr
gcc.info: gcc.texi include/gcc-common.texi frontends.texi standards.texi \
invoke.texi extend.texi md.texi objc.texi gcov.texi trouble.texi \
- bugreport.texi service.texi contribute.texi vms.texi \
+ bugreport.texi service.texi contribute.texi compat.texi \
include/funding.texi gnu.texi include/gpl.texi include/fdl.texi \
contrib.texi cppenv.texi cppopts.texi
@@ -23,7 +23,7 @@ gccint.info: gccint.texi include/gcc-common.texi contribute.texi \
passes.texi c-tree.texi rtl.texi md.texi tm.texi hostconfig.texi \
fragments.texi configfiles.texi collect2.texi headerdirs.texi \
include/funding.texi gnu.texi include/gpl.texi include/fdl.texi \
- contrib.texi languages.texi sourcebuild.texi
+ contrib.texi languages.texi sourcebuild.texi gty.texi
cpp.info: cpp.texi include/fdl.texi cppenv.texi cppopts.texi
OpenPOWER on IntegriCloud