MFC: remove 2.6.3 cc_int shlib cruft and s/GNU_ARCH/TARGET_ARCH/g.

This commit is contained in:
David E. O'Brien 2002-04-04 18:30:57 +00:00
parent e4753251f7
commit fda035bb2c
3 changed files with 46 additions and 51 deletions

View File

@ -7,12 +7,9 @@
GCCDIR= ${.CURDIR}/../../../../contrib/gcc
TARGET_ARCH?= ${MACHINE_ARCH}
GCC_ARCH= ${TARGET_ARCH}
# Machine description.
MD_FILE= ${GCCDIR}/config/${GCC_ARCH}/${GCC_ARCH}.md
OUT_FILE= ${GCC_ARCH}.c
OUT_OBJ= ${GCC_ARCH}
MD_FILE= ${GCCDIR}/config/${TARGET_ARCH}/${TARGET_ARCH}.md
target= ${TARGET_ARCH}-unknown-freebsd
version!= sed -n /version_string/p ${GCCDIR}/version.c | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'

View File

@ -2,7 +2,7 @@
.include "../Makefile.inc"
.PATH: ../cc_tools ${GCCDIR}/config/${GCC_ARCH} ${GCCDIR}
.PATH: ../cc_tools ${GCCDIR}/config/${TARGET_ARCH} ${GCCDIR}
LIB= cc_int
NOPROFILE= YES
@ -24,7 +24,7 @@ SRCS= c-aux-info.c c-common.c c-convert.c c-format.c \
toplev.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 \
${OUT_FILE}
${TARGET_ARCH}.c
SRCS+= bb-reorder.c conflict.c ggc-common.c \
ggc-page.c ifcvt.c lists.c predict.c regrename.c resource.c sibcall.c \
@ -62,6 +62,4 @@ CFLAGS+= -DTARGET_NAME=\"${target}\" -DIN_GCC
install:
@true
${OUT_OBJ}.o ${OUT_OBJ}.So: ${OUT_FILE}
.include <bsd.lib.mk>

View File

@ -95,22 +95,22 @@ ${COMMONHDRS}: ${.CURDIR}/Makefile
configargs.h:
echo 'static const char configuration_arguments[] =' > ${.TARGET}
echo ' "FreeBSD/${GCC_ARCH} system compiler";' >> ${.TARGET}
echo ' "FreeBSD/${TARGET_ARCH} system compiler";' >> ${.TARGET}
echo 'static const char thread_model[] = "posix";' >> ${.TARGET}
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 "defaults.h"' >> ${.TARGET}
echo '#include "hwint.h"' >> ${.TARGET}
echo '#ifndef POSIX' >> ${.TARGET}
echo '# define POSIX' >> ${.TARGET}
echo '#endif' >> ${.TARGET}
echo '#ifndef GENERATOR_FILE' >> ${.TARGET}
echo '#include "insn-codes.h"' >> ${.TARGET}
echo '#include "insn-flags.h"' >> ${.TARGET}
echo '#endif' >> ${.TARGET}
echo '#include "auto-host.h"' > ${.TARGET}
echo '#include "gansidecl.h"' >> ${.TARGET}
echo '#include "${TARGET_ARCH}/xm-${TARGET_ARCH}.h"' >> ${.TARGET}
echo '#include "defaults.h"' >> ${.TARGET}
echo '#include "hwint.h"' >> ${.TARGET}
echo '#ifndef POSIX' >> ${.TARGET}
echo '# define POSIX' >> ${.TARGET}
echo '#endif' >> ${.TARGET}
echo '#ifndef GENERATOR_FILE' >> ${.TARGET}
echo '#include "insn-codes.h"' >> ${.TARGET}
echo '#include "insn-flags.h"' >> ${.TARGET}
echo '#endif' >> ${.TARGET}
gencheck.h:
echo '#include "cp/cp-tree.def"' > ${.TARGET}
@ -136,44 +136,44 @@ specs.h:
echo '#include "objc/lang-specs.h"' >> ${.TARGET}
tconfig.h:
echo '#include "gansidecl.h"' > ${.TARGET}
echo '#include "${GCC_ARCH}/xm-${GCC_ARCH}.h"' >> ${.TARGET}
echo '#include "defaults.h"' >> ${.TARGET}
echo '#ifndef GENERATOR_FILE' >> ${.TARGET}
echo '#include "insn-codes.h"' >> ${.TARGET}
echo '#include "insn-flags.h"' >> ${.TARGET}
echo '#endif' >> ${.TARGET}
echo '#define USING_SJLJ_EXCEPTIONS 0' >> ${.TARGET}
echo '#include "gansidecl.h"' > ${.TARGET}
echo '#include "${TARGET_ARCH}/xm-${TARGET_ARCH}.h"' >> ${.TARGET}
echo '#include "defaults.h"' >> ${.TARGET}
echo '#ifndef GENERATOR_FILE' >> ${.TARGET}
echo '#include "insn-codes.h"' >> ${.TARGET}
echo '#include "insn-flags.h"' >> ${.TARGET}
echo '#endif' >> ${.TARGET}
echo '#define USING_SJLJ_EXCEPTIONS 0' >> ${.TARGET}
# KEEP THIS IN SYNC with src/gcc/lib/libgcc/Makefile !!
tm.h:
echo '#include "gansidecl.h"' > ${.TARGET}
echo '#include "${GCC_ARCH}/${GCC_ARCH}.h"' >> ${.TARGET}
.if ${GCC_ARCH} == "i386"
echo '#include "${GCC_ARCH}/att.h"' >> ${.TARGET}
echo '#include "gansidecl.h"' > ${.TARGET}
echo '#include "${TARGET_ARCH}/${TARGET_ARCH}.h"' >> ${.TARGET}
.if ${TARGET_ARCH} == "i386"
echo '#include "${TARGET_ARCH}/att.h"' >> ${.TARGET}
.endif
echo '#include <freebsd-native.h>' >> ${.TARGET}
echo '#include <freebsd.h>' >> ${.TARGET}
.if exists(${GCCDIR}/config/${GCC_ARCH}/elf.h)
echo '#include "${GCC_ARCH}/elf.h"' >> ${.TARGET}
echo '#include <freebsd-native.h>' >> ${.TARGET}
echo '#include <freebsd.h>' >> ${.TARGET}
.if exists(${GCCDIR}/config/${TARGET_ARCH}/elf.h)
echo '#include "${TARGET_ARCH}/elf.h"' >> ${.TARGET}
.endif
echo '#include "${GCC_ARCH}/freebsd.h"' >> ${.TARGET}
.if ${GCC_ARCH} == "i386"
echo '#include "${GCC_ARCH}/perform.h"' >> ${.TARGET}
echo '#include "${TARGET_ARCH}/freebsd.h"' >> ${.TARGET}
.if ${TARGET_ARCH} == "i386"
echo '#include "${TARGET_ARCH}/perform.h"' >> ${.TARGET}
.endif
echo '#include "defaults.h"' >> ${.TARGET}
echo '#ifndef GENERATOR_FILE' >> ${.TARGET}
echo '#include "insn-codes.h"' >> ${.TARGET}
echo '#include "insn-flags.h"' >> ${.TARGET}
echo '#endif' >> ${.TARGET}
echo '#include "defaults.h"' >> ${.TARGET}
echo '#ifndef GENERATOR_FILE' >> ${.TARGET}
echo '#include "insn-codes.h"' >> ${.TARGET}
echo '#include "insn-flags.h"' >> ${.TARGET}
echo '#endif' >> ${.TARGET}
tm_p.h:
echo '#include "${GCC_ARCH}/${GCC_ARCH}-protos.h"' > ${.TARGET}
echo '#include <freebsd-native.h>' >> ${.TARGET}
echo '#ifndef GENERATOR_FILE' >> ${.TARGET}
echo '#include "insn-codes.h"' >> ${.TARGET}
echo '#include "insn-flags.h"' >> ${.TARGET}
echo '#endif' >> ${.TARGET}
echo '#include "${TARGET_ARCH}/${TARGET_ARCH}-protos.h"' > ${.TARGET}
echo '#include <freebsd-native.h>' >> ${.TARGET}
echo '#ifndef GENERATOR_FILE' >> ${.TARGET}
echo '#include "insn-codes.h"' >> ${.TARGET}
echo '#include "insn-flags.h"' >> ${.TARGET}
echo '#endif' >> ${.TARGET}
#-----------------------------------------------------------------------
# General things.