Module Name: src
Committed By: rillig
Date: Wed Jun 23 07:11:41 UTC 2021
Modified Files:
src/doc: HACKS
src/usr.bin/xlint/lint1: Makefile
Log Message:
lint1: add bug report for internal GCC compiler error
To generate a diff of this commit:
cvs rdiff -u -r1.219 -r1.220 src/doc/HACKS
cvs rdiff -u -r1.71 -r1.72 src/usr.bin/xlint/lint1/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/doc/HACKS
diff -u src/doc/HACKS:1.219 src/doc/HACKS:1.220
--- src/doc/HACKS:1.219 Tue Jun 22 13:02:52 2021
+++ src/doc/HACKS Wed Jun 23 07:11:41 2021
@@ -1,4 +1,4 @@
-# $NetBSD: HACKS,v 1.219 2021/06/22 13:02:52 martin Exp $
+# $NetBSD: HACKS,v 1.220 2021/06/23 07:11:41 rillig Exp $
#
# This file is intended to document workarounds for currently unsolved
# (mostly) compiler bugs.
@@ -1010,4 +1010,5 @@ port sh3
The in-tree gcc 9 crashes with an internal invalid
opcode exception when using any kind of optimization
on the lex.c file. Force -O0 for this file.
+ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101177
kcah
Index: src/usr.bin/xlint/lint1/Makefile
diff -u src/usr.bin/xlint/lint1/Makefile:1.71 src/usr.bin/xlint/lint1/Makefile:1.72
--- src/usr.bin/xlint/lint1/Makefile:1.71 Tue Jun 22 12:58:28 2021
+++ src/usr.bin/xlint/lint1/Makefile Wed Jun 23 07:11:41 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.71 2021/06/22 12:58:28 martin Exp $
+# $NetBSD: Makefile,v 1.72 2021/06/23 07:11:41 rillig Exp $
.include <bsd.own.mk>
@@ -27,6 +27,7 @@ CPPFLAGS+= ${DEBUG:D-DDEBUG}
COPTS.err.c+= ${${ACTIVE_CC} == "clang":? -Wno-format-nonliteral :}
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101177
.if ${HAVE_GCC} == 9 && \
(${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb")
COPTS.lex.c+= -O0