Module Name:    src
Committed By:   rin
Date:           Wed Feb  8 23:14:00 UTC 2017

Modified Files:
        src/doc: HACKS
        src/sbin/ifconfig: Makefile

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


To generate a diff of this commit:
cvs rdiff -u -r1.175 -r1.176 src/doc/HACKS
cvs rdiff -u -r1.56 -r1.57 src/sbin/ifconfig/Makefile

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.175 src/doc/HACKS:1.176
--- src/doc/HACKS:1.175	Thu Oct 20 07:33:28 2016
+++ src/doc/HACKS	Wed Feb  8 23:13:59 2017
@@ -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 @@ descr
 	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

Index: src/sbin/ifconfig/Makefile
diff -u src/sbin/ifconfig/Makefile:1.56 src/sbin/ifconfig/Makefile:1.57
--- src/sbin/ifconfig/Makefile:1.56	Tue May 19 08:14:38 2015
+++ src/sbin/ifconfig/Makefile	Wed Feb  8 23:14:00 2017
@@ -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+=-DSMALL
 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>

Reply via email to