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/cc1 use -O3 for c-common.c on mips...



details:   https://anonhg.NetBSD.org/src/rev/19d007331694
branches:  trunk
changeset: 1009601:19d007331694
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Apr 28 05:45:15 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/cc1/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 1686ff1851f4 -r 19d007331694 external/gpl3/gcc/usr.bin/cc1/Makefile
--- a/external/gpl3/gcc/usr.bin/cc1/Makefile    Tue Apr 28 03:00:23 2020 +0000
+++ b/external/gpl3/gcc/usr.bin/cc1/Makefile    Tue Apr 28 05:45:15 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.16 2020/02/12 00:36:37 fox Exp $
+#      $NetBSD: Makefile,v 1.17 2020/04/28 05:45:15 mrg Exp $
 
 PROG=          cc1
 SRCS=          ${G_C_OBJS:S,c-family/,,:S,c/,,:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
@@ -62,6 +62,10 @@
 COPTS.cc1-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