Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Reduce optimization level for sh5 for one file which causes ...
details: https://anonhg.NetBSD.org/src/rev/5973b83bb43c
branches: trunk
changeset: 581125:5973b83bb43c
user: he <he%NetBSD.org@localhost>
date: Thu May 26 18:33:36 2005 +0000
description:
Reduce optimization level for sh5 for one file which causes our gcc
3.3.3 to get an internal compiler error of type "can't split insn".
diffstat:
doc/HACKS | 10 +++++++++-
sys/lkm/net/bsdcomp/Makefile | 6 +++++-
2 files changed, 14 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r d0efc69b470f -r 5973b83bb43c doc/HACKS
--- a/doc/HACKS Thu May 26 14:38:28 2005 +0000
+++ b/doc/HACKS Thu May 26 18:33:36 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: HACKS,v 1.47 2005/05/18 13:58:10 chs Exp $
+# $NetBSD: HACKS,v 1.48 2005/05/26 18:33:36 he Exp $
#
# This file is intended to document workarounds for currently unsolved
# (mostly) compiler bugs.
@@ -386,6 +386,14 @@
Drop to -O1 for now when building for sh5.
kcah
+ hack gcc 3.3.3 nb3 on sh5 - ICE compiling bsd-comp.c
+ cdate Thu May 25 23:05:20 UTC 2005
+ who he
+ file sys/lkm/net/bsdcomp/Makefile : 1.3
+ descr
+ Gcc3 for sh5 gets an ICE compiling this at -O2,
+ "could not split insn". Drop to -O1 for sh5.
+ kcah
port sun2
diff -r d0efc69b470f -r 5973b83bb43c sys/lkm/net/bsdcomp/Makefile
--- a/sys/lkm/net/bsdcomp/Makefile Thu May 26 14:38:28 2005 +0000
+++ b/sys/lkm/net/bsdcomp/Makefile Thu May 26 18:33:36 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2004/06/30 02:58:24 jmc Exp $
+# $NetBSD: Makefile,v 1.3 2005/05/26 18:33:36 he Exp $
.include "../Makefile.inc"
@@ -9,4 +9,8 @@
KMOD= bsdcomp
SRCS= lkminit_bsdcomp.c bsd-comp.c
+.if ${MACHINE_CPU} == "sh5"
+COPTS.bsd-comp.c= -O1
+.endif
+
.include <bsd.kmod.mk>
Home |
Main Index |
Thread Index |
Old Index