Module Name: src Committed By: martin Date: Wed Jul 19 14:15:29 UTC 2023
Modified Files: src/doc [netbsd-10]: HACKS src/usr.bin/xlint/lint1 [netbsd-10]: decl.c Log Message: Pull up following revision(s) (requested by rin in ticket #237): usr.bin/xlint/lint1/decl.c: revision 1.361 doc/HACKS: revision 1.239 lint1:initdecl(): Remove hack for now-fixed PR port-sh3/56311 doc/HACKS: PR port-sh3/56311 has been fixed. To generate a diff of this commit: cvs rdiff -u -r1.232 -r1.232.2.1 src/doc/HACKS cvs rdiff -u -r1.302 -r1.302.2.1 src/usr.bin/xlint/lint1/decl.c 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.232 src/doc/HACKS:1.232.2.1 --- src/doc/HACKS:1.232 Sun Dec 4 22:35:15 2022 +++ src/doc/HACKS Wed Jul 19 14:15:28 2023 @@ -1,4 +1,4 @@ -# $NetBSD: HACKS,v 1.232 2022/12/04 22:35:15 jakllsch Exp $ +# $NetBSD: HACKS,v 1.232.2.1 2023/07/19 14:15:28 martin Exp $ # # This file is intended to document workarounds for currently unsolved # (mostly) compiler bugs. @@ -1016,19 +1016,6 @@ 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 -mdate Fri Jul 16 10:00:00 UTC 2021 -who rin -file src/usr.bin/xlint/lint1/decl.c: 1.200 -descr GCC 9 and 10 miscompile initdecl() due to mischoice of register, - as described in the PR. Compiling this function with -O0 works - around the problem. - The problem has been reported to upstream as GCC Bug 101469: - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101469 -kcah - port vax hack compile blake2b.c with -O0 for vax cdate Wed Oct 13 14:28:32 UTC 2021 Index: src/usr.bin/xlint/lint1/decl.c diff -u src/usr.bin/xlint/lint1/decl.c:1.302 src/usr.bin/xlint/lint1/decl.c:1.302.2.1 --- src/usr.bin/xlint/lint1/decl.c:1.302 Sat Oct 1 10:04:06 2022 +++ src/usr.bin/xlint/lint1/decl.c Wed Jul 19 14:15:28 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: decl.c,v 1.302 2022/10/01 10:04:06 rillig Exp $ */ +/* $NetBSD: decl.c,v 1.302.2.1 2023/07/19 14:15:28 martin Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -38,7 +38,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) -__RCSID("$NetBSD: decl.c,v 1.302 2022/10/01 10:04:06 rillig Exp $"); +__RCSID("$NetBSD: decl.c,v 1.302.2.1 2023/07/19 14:15:28 martin Exp $"); #endif #include <sys/param.h> @@ -85,10 +85,6 @@ static void check_global_variable_size(c * initializes all global vars used in declarations */ void -#ifdef __sh3__ -/* XXX port-sh3/56311 */ -__attribute__((optimize("O0"))) -#endif initdecl(void) {