Module Name:    src
Committed By:   mrg
Date:           Fri Jun 13 01:17:46 UTC 2014

Modified Files:
        src: Makefile
        src/bin/csh: Makefile
        src/doc: HACKS
        src/external/gpl3/gdb/lib/libgdb: Makefile
        src/gnu/usr.bin: Makefile
        src/lib: Makefile
        src/lib/libcurses: Makefile
        src/lib/libm/compiler_rt: Makefile.inc
        src/share/mk: bsd.lib.mk bsd.sys.mk
        src/sys/lib/libunwind: Makefile.inc

Log Message:
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


To generate a diff of this commit:
cvs rdiff -u -r1.305 -r1.306 src/Makefile
cvs rdiff -u -r1.39 -r1.40 src/bin/csh/Makefile
cvs rdiff -u -r1.151 -r1.152 src/doc/HACKS
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gdb/lib/libgdb/Makefile
cvs rdiff -u -r1.137 -r1.138 src/gnu/usr.bin/Makefile
cvs rdiff -u -r1.214 -r1.215 src/lib/Makefile
cvs rdiff -u -r1.69 -r1.70 src/lib/libcurses/Makefile
cvs rdiff -u -r1.5 -r1.6 src/lib/libm/compiler_rt/Makefile.inc
cvs rdiff -u -r1.354 -r1.355 src/share/mk/bsd.lib.mk
cvs rdiff -u -r1.239 -r1.240 src/share/mk/bsd.sys.mk
cvs rdiff -u -r1.5 -r1.6 src/sys/lib/libunwind/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/Makefile
diff -u src/Makefile:1.305 src/Makefile:1.306
--- src/Makefile:1.305	Wed Feb 26 09:54:32 2014
+++ src/Makefile	Fri Jun 13 01:17:45 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.305 2014/02/26 09:54:32 mrg Exp $
+#	$NetBSD: Makefile,v 1.306 2014/06/13 01:17:45 mrg Exp $
 
 #
 # This is the top-level makefile for building NetBSD. For an outline of
@@ -199,16 +199,9 @@ postinstall-fix-obsolete: .NOTMAIN .PHON
 # Targets (in order!) called by "make build".
 #
 .if defined(HAVE_GCC)
-.if ${HAVE_GCC} == "4"
-LIBGCC_EXT=4
-BUILD_CC_LIB_BASEDIR= gnu/lib
-BUILD_CC_LIB_BASETARGET= gnu-lib
-.else
-LIBGCC_EXT=
 BUILD_CC_LIB_BASEDIR= external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib
 BUILD_CC_LIB_BASETARGET= external-gpl3-gcc-lib
 .endif
-.endif
 
 BUILDTARGETS+=	check-tools
 .if ${MKUPDATE} == "no" && !defined(NOCLEANDIR)

Index: src/bin/csh/Makefile
diff -u src/bin/csh/Makefile:1.39 src/bin/csh/Makefile:1.40
--- src/bin/csh/Makefile:1.39	Tue Jul 16 17:47:43 2013
+++ src/bin/csh/Makefile	Fri Jun 13 01:17:45 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.39 2013/07/16 17:47:43 christos Exp $
+#	$NetBSD: Makefile,v 1.40 2014/06/13 01:17:45 mrg Exp $
 #	@(#)Makefile	8.1 (Berkeley) 5/31/93
 #
 # C Shell with process control; VM/UNIX VAX Makefile
@@ -56,10 +56,6 @@ const.h: const.c
 SUBDIR+=USD.doc
 .endif
 
-# XXX Only GCC 4.1 problem
-.if defined(HAVE_GCC) && ${HAVE_GCC} == 4 && ${MACHINE_ARCH} == "vax"
-COPTS.parse.c+=	-O0
-.endif
 COPTS.err.c = -Wno-format-nonliteral
 COPTS.printf.c = -Wno-format-nonliteral
 COPTS.proc.c = -Wno-format-nonliteral

Index: src/doc/HACKS
diff -u src/doc/HACKS:1.151 src/doc/HACKS:1.152
--- src/doc/HACKS:1.151	Wed May 28 21:51:18 2014
+++ src/doc/HACKS	Fri Jun 13 01:17:46 2014
@@ -1,4 +1,4 @@
-# $NetBSD: HACKS,v 1.151 2014/05/28 21:51:18 abs Exp $
+# $NetBSD: HACKS,v 1.152 2014/06/13 01:17:46 mrg Exp $
 #
 # This file is intended to document workarounds for currently unsolved
 # (mostly) compiler bugs.
@@ -604,16 +604,6 @@ port	vax
 		internal compiler error: in change_address_1, at emit-rtl.c:2019
 	kcah
 
-	hack	gcc -fno-guess-branch-probability
-	cdate	28 May 2014
-	mdate	28 May 2014
-	who	abs
-	file	lib/libcurses/Makefile : 1.69
-	descr	sysinst crashes under vax gcc 4.1 after selecting
-                partition sizes due to curses bug
-        pr	lib/48827
-	kcah
-
 port	arm
 
 	hack	gcc-unsigned-compare

Index: src/external/gpl3/gdb/lib/libgdb/Makefile
diff -u src/external/gpl3/gdb/lib/libgdb/Makefile:1.5 src/external/gpl3/gdb/lib/libgdb/Makefile:1.6
--- src/external/gpl3/gdb/lib/libgdb/Makefile:1.5	Fri Oct  4 13:04:00 2013
+++ src/external/gpl3/gdb/lib/libgdb/Makefile	Fri Jun 13 01:17:45 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.5 2013/10/04 13:04:00 christos Exp $
+#	$NetBSD: Makefile,v 1.6 2014/06/13 01:17:45 mrg Exp $
 
 .include <bsd.own.mk>
 
@@ -52,7 +52,3 @@ ada-exp.c: ada-lex.c
 .if ${MACHINE} == "amiga"
 COPTS.dwarf2-frame.c+=-O1
 .endif
-
-.if defined(HAVE_GCC) && HAVE_GCC == 4 && ${MACHINE} == "sun2"
-COPTS.dwarf2-frame.c+=-O0
-.endif

Index: src/gnu/usr.bin/Makefile
diff -u src/gnu/usr.bin/Makefile:1.137 src/gnu/usr.bin/Makefile:1.138
--- src/gnu/usr.bin/Makefile:1.137	Tue Nov  6 12:25:56 2012
+++ src/gnu/usr.bin/Makefile	Fri Jun 13 01:17:45 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.137 2012/11/06 12:25:56 skrll Exp $
+#	$NetBSD: Makefile,v 1.138 2014/06/13 01:17:45 mrg Exp $
 
 .include <bsd.own.mk>
 
@@ -17,12 +17,4 @@ SUBDIR+=	groff
 
 SUBDIR+=	gettext
 
-.if ${MKGCC} != "no"
-.if ${HAVE_GCC} == 4
-.if ${MKGCCCMDS} != "no"
-SUBDIR+=	gcc4
-.endif
-.endif
-.endif
-
 .include <bsd.subdir.mk>

Index: src/lib/Makefile
diff -u src/lib/Makefile:1.214 src/lib/Makefile:1.215
--- src/lib/Makefile:1.214	Fri May  9 08:36:09 2014
+++ src/lib/Makefile	Fri Jun 13 01:17:45 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.214 2014/05/09 08:36:09 plunky Exp $
+#	$NetBSD: Makefile,v 1.215 2014/06/13 01:17:45 mrg Exp $
 #	from: @(#)Makefile	5.25.1.1 (Berkeley) 5/7/91
 
 .include <bsd.own.mk>
@@ -6,11 +6,7 @@
 SUBDIR=		csu .WAIT
 
 .if (${MKGCC} != "no")
-. if ${HAVE_GCC} == 4
-SUBDIR+=	../gnu/lib/libgcc4 .WAIT
-. else
 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgcc .WAIT
-. endif
 .endif
 
 SUBDIR+=	libc
@@ -75,15 +71,12 @@ SUBDIR+=	../external/public-domain/xz/li
 SUBDIR+=	../gnu/lib/libmalloc
 
 .if (${MKGCC} != "no")
-. if ${HAVE_GCC} == 4
-SUBDIR+=	../gnu/lib/libobjc4
-. else
 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libobjc
 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgomp
-. endif
-. if ${HAVE_GCC} >= 45 && !defined(MLIBDIR)
 # Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
 # specific build area, but we get better parallelism this way.
+# We don't build compat versions of these.
+. if !defined(MLIBDIR)
 SUBDIR+=	../external/lgpl3/gmp/lib/libgmp
 SUBDIR+=	../external/lgpl3/mpfr/lib/libmpfr
 SUBDIR+=	../external/lgpl3/mpc/lib/libmpc
@@ -147,13 +140,8 @@ SUBDIR+=	../external/bsd/libc++
 .endif
 
 .if (${MKGCC} != "no" && ${MKCXX} != "no" && ${MKLIBSTDCXX} != "no")
-. if ${HAVE_GCC} == 4
-SUBDIR+=	../gnu/lib/libstdc++-v3_4	# depends on libm
-SUBDIR+=	../gnu/lib/libsupc++4
-. else
 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libstdc++-v3
 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libsupc++
-. endif
 .endif
 
 #==================== 2nd library dependency barrier ====================

Index: src/lib/libcurses/Makefile
diff -u src/lib/libcurses/Makefile:1.69 src/lib/libcurses/Makefile:1.70
--- src/lib/libcurses/Makefile:1.69	Wed May 21 14:01:30 2014
+++ src/lib/libcurses/Makefile	Fri Jun 13 01:17:45 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.69 2014/05/21 14:01:30 abs Exp $
+#	$NetBSD: Makefile,v 1.70 2014/06/13 01:17:45 mrg Exp $
 #	@(#)Makefile	8.2 (Berkeley) 1/2/94
 
 .include <bsd.own.mk>
@@ -176,11 +176,6 @@ MLINKS+= curses_addch.3 addch.3 curses_a
 	 curses_touch.3 wtouchln.3 curses_underscore.3 wunderend.3 \
 	 curses_underscore.3 wunderscore.3 curses_line.3 wvline.3
 
-# sysinst crashes under gcc 4.1 after selecting partition sizes - PR lib/48827
-.if ${HAVE_GCC:U} == "4" && ${ACTIVE_CC} == "gcc" && ${MACHINE_ARCH} == "vax"
-COPTS.refresh.c+=	-fno-guess-branch-probability
-.endif
-
 .if make(install)
 SUBDIR+= PSD.doc
 .endif

Index: src/lib/libm/compiler_rt/Makefile.inc
diff -u src/lib/libm/compiler_rt/Makefile.inc:1.5 src/lib/libm/compiler_rt/Makefile.inc:1.6
--- src/lib/libm/compiler_rt/Makefile.inc:1.5	Wed Feb 26 22:37:56 2014
+++ src/lib/libm/compiler_rt/Makefile.inc	Fri Jun 13 01:17:45 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.5 2014/02/26 22:37:56 joerg Exp $
+# $NetBSD: Makefile.inc,v 1.6 2014/06/13 01:17:45 mrg Exp $
 
 COMPILER_RT_SRCDIR=	${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist
 
@@ -28,10 +28,6 @@ GENERIC_SRCS+= \
 SRCS+=	${src:R}.S
 .  else
 SRCS+=	${src}
-.    if ${HAVE_GCC:U} != "4"
 COPTS.${src}+=	-Wno-error=missing-prototypes
-.    else
-COPTS.${src}+=	-Wno-missing-prototypes
-.    endif
 .  endif
 .endfor

Index: src/share/mk/bsd.lib.mk
diff -u src/share/mk/bsd.lib.mk:1.354 src/share/mk/bsd.lib.mk:1.355
--- src/share/mk/bsd.lib.mk:1.354	Thu Apr 24 00:14:59 2014
+++ src/share/mk/bsd.lib.mk	Fri Jun 13 01:17:45 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.lib.mk,v 1.354 2014/04/24 00:14:59 pooka Exp $
+#	$NetBSD: bsd.lib.mk,v 1.355 2014/06/13 01:17:45 mrg Exp $
 #	@(#)bsd.lib.mk	8.3 (Berkeley) 4/22/94
 
 .include <bsd.init.mk>
@@ -604,8 +604,6 @@ LDADD+= -lgcc
 LIBCC:=	${CXX}
 . if ${MKLIBCXX} == "yes"
 LIBDPLIBS+=     c++	${.CURDIR}/../../../../../external/bsd/libc++/lib
-. elif defined(HAVE_GCC) && ${HAVE_GCC} == 4
-LIBDPLIBS+=     stdc++	${.CURDIR}/../../../../../gnu/lib/libstdc++-v3_4
 . else
 LIBDPLIBS+=     stdc++	${.CURDIR}/../../../../../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libstdc++-v3
 . endif

Index: src/share/mk/bsd.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.239 src/share/mk/bsd.sys.mk:1.240
--- src/share/mk/bsd.sys.mk:1.239	Tue May 27 16:16:01 2014
+++ src/share/mk/bsd.sys.mk	Fri Jun 13 01:17:45 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.sys.mk,v 1.239 2014/05/27 16:16:01 plunky Exp $
+#	$NetBSD: bsd.sys.mk,v 1.240 2014/06/13 01:17:45 mrg Exp $
 #
 # Build definitions used for NetBSD source tree builds.
 
@@ -80,7 +80,7 @@ CFLAGS+=	${${ACTIVE_CC} == "gcc":? -Wno-
 .if ${WARNS} > 3 && defined(HAVE_LLVM)
 CFLAGS+=	${${ACTIVE_CC} == "clang":? -Wpointer-sign -Wmissing-noreturn :}
 .endif
-.if (defined(HAVE_GCC) && ${HAVE_GCC} >= 45 \
+.if (defined(HAVE_GCC) \
      && (${MACHINE_ARCH} == "coldfire" || \
 	 ${MACHINE_ARCH} == "sh3eb" || \
 	 ${MACHINE_ARCH} == "sh3el" || \

Index: src/sys/lib/libunwind/Makefile.inc
diff -u src/sys/lib/libunwind/Makefile.inc:1.5 src/sys/lib/libunwind/Makefile.inc:1.6
--- src/sys/lib/libunwind/Makefile.inc:1.5	Wed Mar 19 16:46:23 2014
+++ src/sys/lib/libunwind/Makefile.inc	Fri Jun 13 01:17:46 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.5 2014/03/19 16:46:23 joerg Exp $
+#	$NetBSD: Makefile.inc,v 1.6 2014/06/13 01:17:46 mrg Exp $
 
 .PATH:	${NETBSDSRCDIR}/sys/lib/libunwind
 
@@ -7,15 +7,5 @@ SRCS+=	libunwind.cxx \
 
 INCS+=	unwind.h
 
-.if ${HAVE_GCC:U48} == "4"
-CLEANFILES+=	cstdint
-DPSRCS+=	cstdint
-
-cstdint:
-	echo '#include <stdint.h>' > ${.TARGET}
-
-COPTS.libunwind.cxx+=	"-D__builtin_unreachable()=abort()"
-.else
 COPTS.libunwind.cxx+=	${${ACTIVE_CXX} == "gcc":? -std=c++0x : -std=c++11 }
-.endif
 COPTS.libunwind.cxx+=	-funwind-tables -fno-rtti -fno-exceptions -fvisibility=hidden -Wno-old-style-cast

Reply via email to