Module Name: src Committed By: rin Date: Thu Jul 15 07:58:05 UTC 2021
Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: PR port-sh3/56311 As a workaround for GCC bug, compile initdecl() with -O0 for sh3. To generate a diff of this commit: cvs rdiff -u -r1.199 -r1.200 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/usr.bin/xlint/lint1/decl.c diff -u src/usr.bin/xlint/lint1/decl.c:1.199 src/usr.bin/xlint/lint1/decl.c:1.200 --- src/usr.bin/xlint/lint1/decl.c:1.199 Tue Jul 13 22:01:34 2021 +++ src/usr.bin/xlint/lint1/decl.c Thu Jul 15 07:58:05 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: decl.c,v 1.199 2021/07/13 22:01:34 rillig Exp $ */ +/* $NetBSD: decl.c,v 1.200 2021/07/15 07:58:05 rin Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -38,7 +38,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: decl.c,v 1.199 2021/07/13 22:01:34 rillig Exp $"); +__RCSID("$NetBSD: decl.c,v 1.200 2021/07/15 07:58:05 rin Exp $"); #endif #include <sys/param.h> @@ -86,6 +86,10 @@ 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) { int i;