XXX: gcc -O0 for vax

This commit is contained in:
christos 2016-03-24 00:02:52 +00:00
parent 4e541d85ca
commit 3261c90968
5 changed files with 97 additions and 8 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.29 2016/03/22 05:08:38 mrg Exp $
# $NetBSD: Makefile,v 1.30 2016/03/24 00:02:52 christos Exp $
LIBISPRIVATE= yes
@ -454,8 +454,53 @@ i386.d i386.o: tm-constrs.h
.if ${GCC_MACHINE_ARCH} == "vax"
CPPFLAGS+=-I${.CURDIR}/../../lib/libgcc/libgcov/arch/${GCC_MACHINE_ARCH}
COPTS.expmed.c=-O0
COPTS.recog.c=-O0
COPTS.builtins.c+=-O0
COPTS.convert.c+=-O0
COPTS.dwarf2out.c+=-O0
COPTS.expmed.c+=-O0
COPTS.expr.c+=-O0
COPTS.fixed-value.c+=-O0
COPTS.fold-const.c+=-O0
COPTS.gimple-fold.c+=-O0
COPTS.gimple-ssa-strength-reduction.c+=-O0
COPTS.gimple.c+=-O0
COPTS.internal-fn.c+=-O0
COPTS.lto-streamer-out.c+=-O0
COPTS.omp-low.c+=-O0
COPTS.predict.c+=-O0
COPTS.recog.c+=-O0
COPTS.sanopt.c+=-O0
COPTS.stmt.c+=-O0
COPTS.stor-layout.c+=-O0
COPTS.targhooks.c+=-O0
COPTS.tree-affine.c+=-O0
COPTS.tree-cfg.c+=-O0
COPTS.tree-eh.c+=-O0
COPTS.tree-object-size.c+=-O0
COPTS.tree-predcom.c+=-O0
COPTS.tree-pretty-print.c+=-O0
COPTS.tree-ssa-alias.c+=-O0
COPTS.tree-ssa-ccp.c+=-O0
COPTS.tree-ssa-forwprop.c+=-O0
COPTS.tree-ssa-loop-ivopts.c+=-O0
COPTS.tree-ssa-loop-manip.c+=-O0
COPTS.tree-ssa-loop-niter.c+=-O0
COPTS.tree-ssa-math-opts.c+=-O0
COPTS.tree-ssa-pre.c+=-O0
COPTS.tree-ssa-reassoc.c+=-O0
COPTS.tree-ssa-uninit.c+=-O0
COPTS.tree-switch-conversion.c+=-O0
COPTS.tree-vect-data-refs.c+=-O0
COPTS.tree-vect-loop-manip.c+=-O0
COPTS.tree-vect-patterns.c+=-O0
COPTS.tree-vect-stmts.c+=-O0
COPTS.tree-vrp.c+=-O0
COPTS.tree.c+=-O0
COPTS.ubsan.c+=-O0
COPTS.varasm.c+=-O0
COPTS.wide-int.c+=-O0
.else
COPTS.tree.c= ${${ACTIVE_CC} == "clang" :? -O0 :}
.endif
CFLAGS+= -Wno-stack-protector
@ -465,7 +510,6 @@ CFLAGS+= -Wno-stack-protector
COPTS.tree-loop-distribution.c= -O2
.endif
COPTS.tree.c= ${${ACTIVE_CC} == "clang" :? -O0 :}
.PATH: ${DIST}/gcc ${DIST}/libiberty ${GCCARCH} ${G_out_file:H} ${DIST}/include
.PATH: ${DIST}/gcc/config

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2016/03/22 05:08:38 mrg Exp $
# $NetBSD: Makefile,v 1.12 2016/03/24 00:02:52 christos Exp $
PROG= cc1
SRCS= ${G_C_OBJS:S,c-family/,,:S,c/,,:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
@ -51,6 +51,17 @@ CPPFLAGS.default-c.c+= -I${BACKENDOBJ}
BUILDSYMLINKS+= ${GNUHOSTDIST}/gcc/config/sh/sh-c.cc sh-c.c
.endif
.if ${MACHINE_CPU} == "vax"
COPTS.c-decl.c+=-O0
COPTS.c-typeck.c+=-O0
COPTS.c-array-notation.c+=-O0
COPTS.c-common.c+=-O0
COPTS.c-ada-spec.c+=-O0
COPTS.cilk.c+=-O0
COPTS.c-ubsan.c+=-O0
COPTS.cc1-checksum.c+=-O0
.endif
LDADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
DPADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2016/03/18 17:52:30 christos Exp $
# $NetBSD: Makefile,v 1.10 2016/03/24 00:02:52 christos Exp $
MYOBJS= ${G_OBJC_OBJS} ${G_C_AND_OBJC_OBJS}
PROG= cc1obj
@ -49,6 +49,17 @@ COPTS.objc-act.c+= -Wno-stack-protector
COPTS.objc-gnu-runtime-abi-01.c+= -Wno-stack-protector
COPTS.objc-next-runtime-abi-01.c+= -Wno-stack-protector
.if ${MACHINE_ARCH} == "vax"
COPTS.c-decl.c+=-O0
COPTS.c-typeck.c+=-O0
COPTS.c-array-notation.c+=-O0
COPTS.c-common.c+=-O0
COPTS.c-ada-spec.c+=-O0
COPTS.cilk.c+=-O0
COPTS.c-ubsan.c+=-O0
COPTS.cc1obj-checksum.c+=-O0
.endif
LDADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
DPADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2014/05/31 22:55:17 mrg Exp $
# $NetBSD: Makefile,v 1.10 2016/03/24 00:02:52 christos Exp $
PROG= cc1plus
SRCS= ${G_CXX_OBJS:S,c-family/,,:S,cp/,,:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
@ -39,6 +39,24 @@ CHECKSUM_OBJS= ${LIBBACKTRACEOBJ}/libbacktrace.a \
CFLAGS+= -Wno-error # not good enough: -Wno-return-type
COPTS+= -Wno-stack-protector
.if ${MACHINE_ARCH} == "vax"
COPTS.call.c+=-O0
COPTS.decl.c+=-O0
COPTS.typeck2.c+=-O0
COPTS.class.c+=-O0
COPTS.typeck.c+=-O0
COPTS.init.c+=-O0
COPTS.semantics.c+=-O0
COPTS.mangle.c+=-O0
COPTS.constexpr.c+=-O0
COPTS.c-common.c+=-O0
COPTS.c-ada-spec.c+=-O0
COPTS.cilk.c+=-O0
COPTS.c-ubsan.c+=-O0
COPTS.cc1plus-checksum.c+=-O0
.endif
LDADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
DPADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2016/03/15 19:13:22 mrg Exp $
# $NetBSD: Makefile,v 1.4 2016/03/24 00:02:52 christos Exp $
PROG= lto1
SRCS= lto-partition.c \
@ -22,6 +22,11 @@ COPTS.lto-lang.c+= -Wno-stack-protector
.include "../Makefile.libdecnumber"
.include "../Makefile.libiberty"
.if ${MACHINE_ARCH} == "vax"
COPTS.lto-lang.c+=-O0
COPTS.lto-symtab.c+=-O0
.endif
LDADD+= ${LIBIBERTYOBJ}/libiberty.a
DPADD+= ${LIBIBERTYOBJ}/libiberty.a
LDADD+= ${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm