Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/usr.bin XXX: gcc -O0 for vax
details: https://anonhg.NetBSD.org/src/rev/aacac1a5f6e0
branches: trunk
changeset: 344358:aacac1a5f6e0
user: christos <christos%NetBSD.org@localhost>
date: Thu Mar 24 00:02:52 2016 +0000
description:
XXX: gcc -O0 for vax
diffstat:
external/gpl3/gcc/usr.bin/backend/Makefile | 52 +++++++++++++++++++++++++++--
external/gpl3/gcc/usr.bin/cc1/Makefile | 13 ++++++-
external/gpl3/gcc/usr.bin/cc1obj/Makefile | 13 ++++++-
external/gpl3/gcc/usr.bin/cc1plus/Makefile | 20 ++++++++++-
external/gpl3/gcc/usr.bin/lto1/Makefile | 7 +++-
5 files changed, 97 insertions(+), 8 deletions(-)
diffs (182 lines):
diff -r bc8f41779e1c -r aacac1a5f6e0 external/gpl3/gcc/usr.bin/backend/Makefile
--- a/external/gpl3/gcc/usr.bin/backend/Makefile Wed Mar 23 22:27:48 2016 +0000
+++ b/external/gpl3/gcc/usr.bin/backend/Makefile Thu Mar 24 00:02:52 2016 +0000
@@ -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 @@
.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 @@
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
diff -r bc8f41779e1c -r aacac1a5f6e0 external/gpl3/gcc/usr.bin/cc1/Makefile
--- a/external/gpl3/gcc/usr.bin/cc1/Makefile Wed Mar 23 22:27:48 2016 +0000
+++ b/external/gpl3/gcc/usr.bin/cc1/Makefile Thu Mar 24 00:02:52 2016 +0000
@@ -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 @@
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}
diff -r bc8f41779e1c -r aacac1a5f6e0 external/gpl3/gcc/usr.bin/cc1obj/Makefile
--- a/external/gpl3/gcc/usr.bin/cc1obj/Makefile Wed Mar 23 22:27:48 2016 +0000
+++ b/external/gpl3/gcc/usr.bin/cc1obj/Makefile Thu Mar 24 00:02:52 2016 +0000
@@ -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-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}
diff -r bc8f41779e1c -r aacac1a5f6e0 external/gpl3/gcc/usr.bin/cc1plus/Makefile
--- a/external/gpl3/gcc/usr.bin/cc1plus/Makefile Wed Mar 23 22:27:48 2016 +0000
+++ b/external/gpl3/gcc/usr.bin/cc1plus/Makefile Thu Mar 24 00:02:52 2016 +0000
@@ -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 @@
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}
diff -r bc8f41779e1c -r aacac1a5f6e0 external/gpl3/gcc/usr.bin/lto1/Makefile
--- a/external/gpl3/gcc/usr.bin/lto1/Makefile Wed Mar 23 22:27:48 2016 +0000
+++ b/external/gpl3/gcc/usr.bin/lto1/Makefile Thu Mar 24 00:02:52 2016 +0000
@@ -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 @@
.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
Home |
Main Index |
Thread Index |
Old Index