Get rid of GCC_ARCH, and just use plain TARGET_ARCH.

We got rid of the MIPS le/be stuff that needed this a long time ago.
This commit is contained in:
David E. O'Brien 2002-04-04 00:11:00 +00:00
parent 1f35193bdc
commit 5ccf2039e4
3 changed files with 22 additions and 22 deletions

View File

@ -7,14 +7,13 @@
GCCDIR= ${.CURDIR}/../../../../contrib/gcc.295
TARGET_ARCH?= ${MACHINE_ARCH}
GCC_ARCH= ${TARGET_ARCH}
# Machine description.
MD_FILE= ${GCCDIR}/config/${GCC_ARCH}/${GCC_ARCH}.md
MD_FILE= ${GCCDIR}/config/${TARGET_ARCH}/${TARGET_ARCH}.md
target= ${TARGET_ARCH}-unknown-freebsd
# These architectures are Cygnus's default for enabling Haifa.
.if ${GCC_ARCH} == "alpha" || ${GCC_ARCH} == "sparc" || ${GCC_ARCH} == "sparc64"
.if ${TARGET_ARCH} == "alpha"
USE_EGCS_HAIFA= 1
.endif

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
@ -21,7 +21,7 @@ SRCS= c-aux-info.c c-common.c c-convert.c c-iterate.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 \
${GCC_ARCH}.c
${TARGET_ARCH}.c
.if defined(USE_EGCS_HAIFA) && ${USE_EGCS_HAIFA} == 1
SRCS+= haifa-sched.c
.else

View File

@ -12,6 +12,7 @@
# aliases of generated headers.
CFLAGS+= -I.
WARNS= 0
.include "../Makefile.inc"
@ -101,10 +102,10 @@ COMMONHDRS= config.h hconfig.h multilib.h options.h specs.h tconfig.h tm.h
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}
echo '#include "auto-host.h"' > ${.TARGET}
echo '#include "gansidecl.h"' >> ${.TARGET}
echo '#include "${TARGET_ARCH}/xm-${TARGET_ARCH}.h"' >> ${.TARGET}
echo '#include "hwint.h"' >> ${.TARGET}
gencheck.h:
echo '#include "cp/cp-tree.def"' > ${.TARGET}
@ -127,25 +128,25 @@ 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 "gansidecl.h"' > ${.TARGET}
echo '#include "${TARGET_ARCH}/xm-${TARGET_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 "${TARGET_ARCH}/${TARGET_ARCH}.h"' > ${.TARGET}
.if ${TARGET_ARCH} == "i386"
echo '#include "${TARGET_ARCH}/att.h"' >> ${.TARGET}
.endif
echo '#include <freebsd.h>' >> ${.TARGET}
echo '#include "dbxelf.h"' >> ${.TARGET}
.if exists(${GCCDIR}/config/${GCC_ARCH}/elf.h)
echo '#include "${GCC_ARCH}/elf.h"' >> ${.TARGET}
echo '#include <freebsd.h>' >> ${.TARGET}
echo '#include "dbxelf.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 <freebsd-native.h>' >> ${.TARGET}
echo '#include <freebsd-native.h>' >> ${.TARGET}
#-----------------------------------------------------------------------
# General things.