Module Name:    src
Committed By:   rin
Date:           Thu Jul 15 08:02:47 UTC 2021

Modified Files:
        src/doc: HACKS

Log Message:
PR port-sh3/56311

Document -O0 workaround for initdecl() in doc/HACKS.


To generate a diff of this commit:
cvs rdiff -u -r1.222 -r1.223 src/doc/HACKS

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.222 src/doc/HACKS:1.223
--- src/doc/HACKS:1.222	Tue Jul  6 12:42:12 2021
+++ src/doc/HACKS	Thu Jul 15 08:02:47 2021
@@ -1,4 +1,4 @@
-# $NetBSD: HACKS,v 1.222 2021/07/06 12:42:12 thorpej Exp $
+# $NetBSD: HACKS,v 1.223 2021/07/15 08:02:47 rin Exp $
 #
 # This file is intended to document workarounds for currently unsolved
 # (mostly) compiler bugs.
@@ -997,3 +997,13 @@ port	sh3
 
 		https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101177
 kcah
+
+port	sh3
+hack	compile lint1/initdecl() with -O0 for sh3 (port-sh3/56311)
+cdate	Thu Jul 15 07:58:05 UTC 2021
+who	rin
+file	src/usr.bin/xlint/lint1/decl.c: 1.200
+descr	GCC 9 and 10 miscompile initdecl() due to improper use of scratch
+	register, as described in the PR. Compiling this function with -O0
+	works around the problem.
+kcah

Reply via email to