Module Name: src Committed By: mrg Date: Tue Apr 28 07:47:54 UTC 2020
Modified Files: src/external/gpl3/gcc/usr.bin/cc1obj: Makefile src/external/gpl3/gcc/usr.bin/cc1plus: 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.14 -r1.15 src/external/gpl3/gcc/usr.bin/cc1obj/Makefile cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gcc/usr.bin/cc1plus/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/cc1obj/Makefile diff -u src/external/gpl3/gcc/usr.bin/cc1obj/Makefile:1.14 src/external/gpl3/gcc/usr.bin/cc1obj/Makefile:1.15 --- src/external/gpl3/gcc/usr.bin/cc1obj/Makefile:1.14 Wed Feb 12 00:36:37 2020 +++ src/external/gpl3/gcc/usr.bin/cc1obj/Makefile Tue Apr 28 07:47:54 2020 @@ -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.c-ubsan.c+=-O0 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} Index: src/external/gpl3/gcc/usr.bin/cc1plus/Makefile diff -u src/external/gpl3/gcc/usr.bin/cc1plus/Makefile:1.11 src/external/gpl3/gcc/usr.bin/cc1plus/Makefile:1.12 --- src/external/gpl3/gcc/usr.bin/cc1plus/Makefile:1.11 Fri Feb 1 10:34:18 2019 +++ src/external/gpl3/gcc/usr.bin/cc1plus/Makefile Tue Apr 28 07:47:54 2020 @@ -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.c-ubsan.c+=-O0 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}