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 PR port-sh3/56311



details:   https://anonhg.NetBSD.org/src/rev/ab74fc94b5a6
branches:  trunk
changeset: 984653:ab74fc94b5a6
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Jul 15 07:58:05 2021 +0000

description:
PR port-sh3/56311

As a workaround for GCC bug, compile initdecl() with -O0 for sh3.

diffstat:

 usr.bin/xlint/lint1/decl.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r a91c0ccf5829 -r ab74fc94b5a6 usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c        Thu Jul 15 07:03:14 2021 +0000
+++ b/usr.bin/xlint/lint1/decl.c        Thu Jul 15 07:58:05 2021 +0000
@@ -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 @@
  * initializes all global vars used in declarations
  */
 void
+#ifdef __sh3__
+/* XXX port-sh3/56311 */
+__attribute__((optimize("O0")))
+#endif
 initdecl(void)
 {
        int i;



Home | Main Index | Thread Index | Old Index