Cut over the system compiler from from EGCS 1.1.2 to GCC 2.95.2.

This commit is contained in:
David E. O'Brien 1999-11-15 04:16:19 +00:00
parent bdaf2e812a
commit eb33411e9b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53173
10 changed files with 46 additions and 27 deletions

View file

@ -1,6 +1,6 @@
# $FreeBSD$
SRCDIR= ${.CURDIR}/../../../contrib/egcs/libf2c
SRCDIR= ${.CURDIR}/../../../contrib/libf2c
.PATH: ${SRCDIR} ${SRCDIR}/libU77 ${SRCDIR}/libF77 ${SRCDIR}/libI77

View file

@ -1,6 +1,6 @@
# $FreeBSD$
GCCDIR= ${.CURDIR}/../../../contrib/egcs/gcc
GCCDIR= ${.CURDIR}/../../../contrib/gcc
.PATH: ${GCCDIR}/cp ${GCCDIR}
@ -86,14 +86,22 @@ config.h:
echo '#include <xm-freebsd.h>' >> ${.TARGET}
tconfig.h:
echo '#include "${MACHINE_ARCH}/xm-${MACHINE_ARCH}.h"' > ${.TARGET}
echo '#include "gansidecl.h"' > ${.TARGET}
echo '#include "${MACHINE_ARCH}/xm-${MACHINE_ARCH}.h"' >> ${.TARGET}
# KEEP THIS IN SYNC with src/gcc/usr.bin/cc/cc_tools/Makefile !!
tm.h:
echo '#include "${MACHINE_ARCH}/${MACHINE_ARCH}.h"' > ${.TARGET}
.if ${MACHINE_ARCH} == "i386"
echo '#include "${MACHINE_ARCH}/att.h"' >> ${.TARGET}
echo '#include "svr4.h"' >> ${.TARGET}
.endif
echo '#include <freebsd.h>' >> ${.TARGET}
.if ${MACHINE_ARCH} == "alpha"
echo '#include "${MACHINE_ARCH}/freebsd4.h"' >> ${.TARGET}
.else
echo '#include "${MACHINE_ARCH}/freebsd.h"' >> ${.TARGET}
.endif
.if ${MACHINE_ARCH} == "i386"
echo '#include "${MACHINE_ARCH}/perform.h"' >> ${.TARGET}
.endif

View file

@ -1,6 +1,6 @@
# $FreeBSD$
GCCDIR= ${.CURDIR}/../../../contrib/egcs/gcc
GCCDIR= ${.CURDIR}/../../../contrib/gcc
.PATH: ${GCCDIR}/objc

View file

@ -1,6 +1,6 @@
# $FreeBSD$
SRCDIR= ${.CURDIR}/../../../contrib/egcs/libstdc++
SRCDIR= ${.CURDIR}/../../../contrib/libstdc++
.PATH: ${SRCDIR} ${SRCDIR}/stl ${SRCDIR}/../libio
@ -20,13 +20,15 @@ DPADD+= ${LIBM}
HDRS= cassert cctype cerrno cfloat ciso646 climits clocale cmath complex \
csetjmp csignal cstdarg cstddef cstdio cstdlib cstring ctime \
cwchar cwctype fstream iomanip iosfwd iostream stdexcept string \
strstream complex.h stl.h
strstream complex.h stl.h valarray
SHDRS= bastring.cc bastring.h complext.cc complext.h dcomplex.h fcomplex.h \
ldcomplex.h straits.h
STDHDRS=bastring.cc bastring.h complext.cc complext.h dcomplex.h fcomplex.h \
gslice.h gslice_array.h indirect_array.h ldcomplex.h mask_array.h \
slice.h slice_array.h std_valarray.h straits.h valarray_array.h \
valarray_array.tcc valarray_meta.h
STLHDRS=algo.h algobase.h algorithm alloc.h bvector.h defalloc.h deque deque.h \
function.h functional hash_map hash_map.h hash_set hash_set.h \
STLHDRS=algo.h algobase.h algorithm alloc.h bitset bvector.h defalloc.h deque \
deque.h function.h functional hash_map hash_map.h hash_set hash_set.h \
hashtable.h heap.h iterator iterator.h list list.h map map.h memory \
multimap.h multiset.h numeric pair.h pthread_alloc pthread_alloc.h \
queue rope rope.h ropeimpl.h set set.h slist slist.h stack stack.h \
@ -75,7 +77,7 @@ beforeinstall:
${STLHDRS:S;^;${SRCDIR}/stl/;} \
${DESTDIR}/usr/include/g++
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
${SHDRS:S;^;${SRCDIR}/std/;} \
${STDHDRS:S;^;${SRCDIR}/std/;} \
${DESTDIR}/usr/include/g++/std
CLEANFILES+= dummy.h dummy.c dummy.C

View file

@ -4,7 +4,7 @@
# Sometimes this is .include'd several times...
.if !defined(GCCDIR)
GCCDIR= ${.CURDIR}/../../../../contrib/egcs/gcc
GCCDIR= ${.CURDIR}/../../../../contrib/gcc
.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
GCC_ARCH=mips
@ -26,7 +26,7 @@ USE_EGCS_HAIFA=1
version!= sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${GCCDIR}/version.c
#version!= sed -e 's/.*\(egcs-[0-9\.]*\).*/\1/' < ${GCCDIR}/version.c
CFLAGS+= -DFREEBSD_NATIVE -DHAVE_CONFIG_H
CFLAGS+= -DFREEBSD_NATIVE -DIN_GCC -DHAVE_CONFIG_H
CFLAGS+= -DDEFAULT_TARGET_VERSION=\"$(version)\"
CFLAGS+= -DDEFAULT_TARGET_MACHINE=\"$(target)\"

View file

@ -10,8 +10,6 @@ LINKS= ${BINDIR}/c++ ${BINDIR}/g++
LINKS+= ${BINDIR}/c++ ${BINDIR}/CC
NOMAN= 1
CFLAGS+= -DLANG_SPECIFIC_DRIVER
DPADD+= ${LIBCC_DRV}
LDADD+= ${LIBCC_DRV}

View file

@ -6,7 +6,7 @@
PROG= cc
MAN1= gcc.1
SRCS= gcc.c
SRCS= gcc.c gccspec.c
LINKS= ${BINDIR}/cc ${BINDIR}/gcc
MLINKS= gcc.1 cc.1 gcc.1 c++.1 gcc.1 g++.1 gcc.1 CC.1

View file

@ -7,13 +7,13 @@
SRCS= c-common.c c-pragma.c \
caller-save.c calls.c combine.c convert.c cse.c \
dbxout.c dwarfout.c emit-rtl.c explow.c expmed.c expr.c \
final.c flow.c fold-const.c function.c getpwd.c global.c \
insn-attrtab.c insn-emit.c insn-extract.c insn-opinit.c \
final.c flow.c fold-const.c function.c getpwd.c global.c graph.c \
hash.c insn-attrtab.c insn-emit.c insn-extract.c insn-opinit.c \
insn-output.c insn-peep.c insn-recog.c \
integrate.c jump.c local-alloc.c loop.c obstack.c optabs.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 \
reload.c reload1.c reorg.c rtl.c rtlanal.c \
sdbout.c stmt.c stor-layout.c stupid.c \
sbitmap.c sdbout.c stmt.c stor-layout.c stupid.c \
toplev.c tree.c unroll.c varasm.c version.c xcoffout.c \
alias.c bitmap.c dwarf2out.c dyn-string.c except.c \
gcse.c genrtl.c profile.c regmove.c varray.c \
@ -24,6 +24,9 @@ SRCS+= haifa-sched.c
SRCS+= sched.c
.endif
# stuff that makes libiberty now required (2.95) and shouldn't be...
SRCS+= obstack.c splay-tree.c
CFLAGS+= -DTARGET_NAME=\"${target}\"
LIB= cc_int

View file

@ -37,7 +37,7 @@ GENSRCS+= insn-$i.c
.for i in attr codes config emit extract flags opinit output peep recog
build-tools: gen$i
gen$i: gen$i.o rtl.o obstack.o bitmap.o
gen$i: gen$i.o rtl.o obstack.o print-rtl.o bitmap.o
${CC} -static ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
GENSRCS+= gen$i.c
@ -132,11 +132,17 @@ CLEANFILES+= objc-parse.y objc-parse.y.out # insurance
# the host/target compiler config.
COMMONHDRS= config.h hconfig.h multilib.h options.h specs.h tconfig.h tm.h
GENSRCS+= ${COMMONHDRS}
GENSRCS+= ${COMMONHDRS} gencheck.h
config.h hconfig.h:
echo '#include "auto-host.h"' > ${.TARGET}
echo '#include "gansidecl.h"' >> ${.TARGET}
echo '#include "${GCC_ARCH}/xm-${GCC_ARCH}.h"' >> ${.TARGET}
echo '#include "hwint.h"' >> ${.TARGET}
gencheck.h:
echo '#include "cp/cp-tree.def"' > ${.TARGET}
echo '#include "objc/objc-tree.def"' >> ${.TARGET}
multilib.h:
echo 'static char *multilib_raw[] = { \
@ -152,16 +158,20 @@ options.h:
specs.h:
echo '#include "cp/lang-specs.h"' > ${.TARGET}
echo '#include "f/lang-specs.h"' >> ${.TARGET}
echo '#include "objc/lang-specs.h"' >> ${.TARGET}
tconfig.h:
echo '#include "${GCC_ARCH}/xm-${GCC_ARCH}.h"' > ${.TARGET}
echo '#include "gansidecl.h"' > ${.TARGET}
echo '#include "${GCC_ARCH}/xm-${GCC_ARCH}.h"' >> ${.TARGET}
# KEEP THIS IN SYNC with src/gcc/lib/libgcc/Makefile !!
tm.h:
echo '#include "${GCC_ARCH}/${GCC_ARCH}.h"' > ${.TARGET}
.if ${GCC_ARCH} == "i386"
echo '#include "${GCC_ARCH}/att.h"' >> ${.TARGET}
echo '#include "svr4.h"' >> ${.TARGET}
.endif
echo '#include <freebsd.h>' >> ${.TARGET}
echo '#include "${GCC_ARCH}/freebsd.h"' >> ${.TARGET}
.if ${GCC_ARCH} == "i386"
echo '#include "${GCC_ARCH}/perform.h"' >> ${.TARGET}
@ -193,7 +203,7 @@ 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:Ngenattr.o:Ngencheck.o:Ngencodes.o:Ngenconfig.o:Ngenflags.o:Ngengenrtl.o:Nobstack.o:Nrtl.o}: ${SRCS:M*.h}
${OBJS:Nbitmap.o:Ngenattr.o:Ngencheck.o:Ngencodes.o:Ngenconfig.o:Ngenflags.o:Ngengenrtl.o:Nobstack.o:Nprint-rtl.o:Nrtl.o}: ${SRCS:M*.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
@ -201,6 +211,6 @@ ${OBJS:Nbitmap.o:Ngenattr.o:Ngencheck.o:Ngencodes.o:Ngenconfig.o:Ngenflags.o:Nge
#
bitmap.o genattr.o gencodes.o genconfig.o genflags.o obstack.o rtl.o: \
${SRCS:M*.h:Ninsn-*.h}
gencheck.o: ${SRCS:M*.h:Ngenrtl.h:Ntree-check.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}
.endif

View file

@ -7,8 +7,6 @@
PROG= f77
SRCS= gcc.c g77spec.c version.c
CFLAGS+= -DLANG_SPECIFIC_DRIVER
DPADD= ${LIBCC_DRV}
LDADD= ${LIBCC_DRV}