Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 Hack to avoid gcc 9 internal compiler er...



details:   https://anonhg.NetBSD.org/src/rev/919df1caf4d6
branches:  trunk
changeset: 379856:919df1caf4d6
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jun 22 12:58:28 2021 +0000

description:
Hack to avoid gcc 9 internal compiler error for sh3.

diffstat:

 usr.bin/xlint/lint1/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r b1bca8ea841d -r 919df1caf4d6 usr.bin/xlint/lint1/Makefile
--- a/usr.bin/xlint/lint1/Makefile      Tue Jun 22 10:19:35 2021 +0000
+++ b/usr.bin/xlint/lint1/Makefile      Tue Jun 22 12:58:28 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.70 2021/04/18 22:51:24 rillig Exp $
+#      $NetBSD: Makefile,v 1.71 2021/06/22 12:58:28 martin Exp $
 
 .include <bsd.own.mk>
 
@@ -27,6 +27,11 @@ CPPFLAGS+=   ${DEBUG:D-DDEBUG}
 
 COPTS.err.c+=  ${${ACTIVE_CC} == "clang":? -Wno-format-nonliteral :}
 
+.if ${HAVE_GCC} == 9 &&        \
+       (${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb")
+COPTS.lex.c+=  -O0
+.endif
+
 BINDIR=                /usr/libexec
 
 CLEANFILES+=   ${MAN}



Home | Main Index | Thread Index | Old Index