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/cc1objplus - Disable stack-protect...



details:   https://anonhg.NetBSD.org/src/rev/887692ccc2c8
branches:  trunk
changeset: 378822:887692ccc2c8
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Apr 25 22:25:00 2021 +0000

description:
- Disable stack-protector errors like we did for cc1plus
- use ${MACHINE_MIPS64}

diffstat:

 external/gpl3/gcc/usr.bin/cc1objplus/Makefile |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r bfc96e7a981b -r 887692ccc2c8 external/gpl3/gcc/usr.bin/cc1objplus/Makefile
--- a/external/gpl3/gcc/usr.bin/cc1objplus/Makefile     Sun Apr 25 21:59:38 2021 +0000
+++ b/external/gpl3/gcc/usr.bin/cc1objplus/Makefile     Sun Apr 25 22:25:00 2021 +0000
@@ -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
 



Home | Main Index | Thread Index | Old Index