Module Name: src
Committed By: christos
Date: Sun Apr 25 22:25:00 UTC 2021
Modified Files:
src/external/gpl3/gcc/usr.bin/cc1objplus: Makefile
Log Message:
- Disable stack-protector errors like we did for cc1plus
- use ${MACHINE_MIPS64}
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gcc/usr.bin/cc1objplus/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/cc1objplus/Makefile
diff -u src/external/gpl3/gcc/usr.bin/cc1objplus/Makefile:1.1 src/external/gpl3/gcc/usr.bin/cc1objplus/Makefile:1.2
--- src/external/gpl3/gcc/usr.bin/cc1objplus/Makefile:1.1 Fri Apr 23 18:50:06 2021
+++ src/external/gpl3/gcc/usr.bin/cc1objplus/Makefile Sun Apr 25 18:25:00 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2021/04/23 22:50:06 mrg Exp $
+# $NetBSD: Makefile,v 1.2 2021/04/25 22:25:00 christos Exp $
# XXX: Pull this (G_OBJCXX_OBJS) out with mknative-gcc. Needs some
# minor re-org of cc1plus and perhaps cc1obj. G_CXX_AND_OBJCXX_OBJS
@@ -51,6 +51,9 @@ CHECKSUM_OBJS= ${BACKENDOBJ}/libbackend.
.include "../Makefile.checksum"
+# XXX: like cc1plus
+CFLAGS+=-Wno-error=stack-protector
+
COPTS.c-ada-spec.c+= -Wno-stack-protector
COPTS.c-attribs.c+= -Wno-stack-protector
COPTS.c-aux-info.c+= -Wno-stack-protector
@@ -78,7 +81,7 @@ COPTS.cc1obj-checksum.c+=-O0
COPTS.decl.c+=-O0
.endif
-.if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
+.if ${MACHINE_MIPS64}
COPTS.c-common.c+=-O3
.endif