Module Name: src
Committed By: mrg
Date: Tue Apr 28 05:45:15 UTC 2020
Modified Files:
src/external/gpl3/gcc/usr.bin/cc1: Makefile
Log Message:
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
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/external/gpl3/gcc/usr.bin/cc1/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gcc/usr.bin/cc1/Makefile
diff -u src/external/gpl3/gcc/usr.bin/cc1/Makefile:1.16 src/external/gpl3/gcc/usr.bin/cc1/Makefile:1.17
--- src/external/gpl3/gcc/usr.bin/cc1/Makefile:1.16 Wed Feb 12 00:36:37 2020
+++ src/external/gpl3/gcc/usr.bin/cc1/Makefile Tue Apr 28 05:45:15 2020
@@ -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.c-ubsan.c+=-O0
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}