Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Remove ifconfig hack on m68000. I've confirmed that the prob...



details:   https://anonhg.NetBSD.org/src/rev/2f8b2273f1be
branches:  trunk
changeset: 821535:2f8b2273f1be
user:      rin <rin%NetBSD.org@localhost>
date:      Wed Feb 08 23:13:59 2017 +0000

description:
Remove ifconfig hack on m68000. I've confirmed that the problem has already
gone with TME.

diffstat:

 doc/HACKS              |  15 +--------------
 sbin/ifconfig/Makefile |   7 +------
 2 files changed, 2 insertions(+), 20 deletions(-)

diffs (48 lines):

diff -r 2658718e340a -r 2f8b2273f1be doc/HACKS
--- a/doc/HACKS Wed Feb 08 23:08:27 2017 +0000
+++ b/doc/HACKS Wed Feb 08 23:13:59 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: HACKS,v 1.175 2016/10/20 07:33:28 he Exp $
+# $NetBSD: HACKS,v 1.176 2017/02/08 23:13:59 rin Exp $
 #
 # This file is intended to document workarounds for currently unsolved
 # (mostly) compiler bugs.
@@ -332,19 +332,6 @@
        Generate .hx files and copy it in the Makefiles if they changed.
 kcah
 
-hack   avoid gcc4 -O1 bug in loop optimize
-cdate  29 November 2008
-who    tsutsui
-file   src/sbin/ifconfig/Makefile      : 1.39
-pr     40036 40066
-descr
-       gcc -O1 seems to generate wrong code in loop optimize so that
-       ifconfig lo0 inet6 doesn't return error even if a kernel
-       doesn't have IPv6 support. (see the above PRs for details)
-       For workaround, specify -fno-loop-optimize on m68000,
-       which uses -O1 by default.
-kcah
-
 hack   MKPIE ldscript for /usr.sbin/crash
 cdate  22 April 2010
 who    christos
diff -r 2658718e340a -r 2f8b2273f1be sbin/ifconfig/Makefile
--- a/sbin/ifconfig/Makefile    Wed Feb 08 23:08:27 2017 +0000
+++ b/sbin/ifconfig/Makefile    Wed Feb 08 23:13:59 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.56 2015/05/19 08:14:38 ozaki-r Exp $
+#      $NetBSD: Makefile,v 1.57 2017/02/08 23:14:00 rin Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/5/93
 
 # when making a change to this file, please check if the change is
@@ -32,9 +32,4 @@
 CPPFLAGS+=-I${NETBSDSRCDIR}/sys/dist/pf/
 SRCS+= pfsync.c
 
-.if ${MACHINE_ARCH} == "m68000"
-# XXX workaround for gcc -O1 bug (PR bin/40036 and toolchain/40066)
-COPTS.ifconfig.c+= -fno-loop-optimize
-.endif
-
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index