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 use -O3 for c-common.c on mipse[lb...
details: https://anonhg.NetBSD.org/src/rev/af77f8ec4bcf
branches: trunk
changeset: 931639:af77f8ec4bcf
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Apr 28 07:47:54 2020 +0000
description:
use -O3 for c-common.c on mipse[lb]. -O2 (but not -O1, -Os, or -O3) fails:
/tmp/ccyXqMRz.s: Assembler messages:
/tmp/ccyXqMRz.s:35813: Error: branch out of range
/tmp/ccyXqMRz.s:85083: Error: branch out of range
diffstat:
external/gpl3/gcc/usr.bin/cc1obj/Makefile | 6 +++++-
external/gpl3/gcc/usr.bin/cc1plus/Makefile | 5 ++++-
2 files changed, 9 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r b83926bb5388 -r af77f8ec4bcf external/gpl3/gcc/usr.bin/cc1obj/Makefile
--- a/external/gpl3/gcc/usr.bin/cc1obj/Makefile Tue Apr 28 05:45:15 2020 +0000
+++ b/external/gpl3/gcc/usr.bin/cc1obj/Makefile Tue Apr 28 07:47:54 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2020/02/12 00:36:37 fox Exp $
+# $NetBSD: Makefile,v 1.15 2020/04/28 07:47:54 mrg Exp $
MYOBJS= ${G_OBJC_OBJS} ${G_C_AND_OBJC_OBJS}
PROG= cc1obj
@@ -60,6 +60,10 @@
COPTS.cc1obj-checksum.c+=-O0
.endif
+.if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
+COPTS.c-common.c+=-O3
+.endif
+
LDADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
DPADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM}
diff -r b83926bb5388 -r af77f8ec4bcf external/gpl3/gcc/usr.bin/cc1plus/Makefile
--- a/external/gpl3/gcc/usr.bin/cc1plus/Makefile Tue Apr 28 05:45:15 2020 +0000
+++ b/external/gpl3/gcc/usr.bin/cc1plus/Makefile Tue Apr 28 07:47:54 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2019/02/01 10:34:18 mrg Exp $
+# $NetBSD: Makefile,v 1.12 2020/04/28 07:47:54 mrg Exp $
PROG= cc1plus
SRCS= ${G_CXX_OBJS:S,c-family/,,:S,cp/,,:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
@@ -52,6 +52,9 @@
COPTS.cc1plus-checksum.c+=-O0
.endif
+.if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
+COPTS.c-common.c+=-O3
+.endif
LDADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
DPADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM}
Home |
Main Index |
Thread Index |
Old Index