remove workarounds for gcc2.95/sparc64 compiler bugs

This commit is contained in:
naddy 2004-02-25 01:35:49 +00:00
parent 921b54826f
commit f92ad14ba5
12 changed files with 8 additions and 161 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.13 2003/04/22 00:36:35 wcobb Exp $
# $OpenBSD: Makefile,v 1.14 2004/02/25 01:35:49 naddy Exp $
#
COMMENT= "C-style arbitrary precision calculator"
@ -31,11 +31,6 @@ MAKE_FLAGS=\
FAKE_FLAGS=${MAKE_FLAGS}
# XXX workaround sparc64 gcc optimization bug
.if ${MACHINE_ARCH:Msparc64}
PATCH_LIST= gcc-* patch-*
.endif
REGRESS_TARGET= check
.include <bsd.port.mk>

View File

@ -1,30 +0,0 @@
$OpenBSD: gcc-Makefile,v 1.1 2002/01/30 10:14:54 pvalchev Exp $
--- Makefile.orig Sat Dec 18 20:20:02 1999
+++ Makefile Sun Jan 27 23:45:37 2002
@@ -3868,6 +3868,8 @@ quickhash.o: value.h
quickhash.o: zmath.h
quickhash.o: zrand.h
quickhash.o: zrandom.h
+quickhash.o:
+ ${LCC} ${CFLAGS} ${ILDFLAGS} -O0 -c quickhash.c
seed.o: alloc.h
seed.o: byteswap.h
seed.o: endian_calc.h
@@ -3911,6 +3913,8 @@ shs.o: shs1.h
shs.o: string.h
shs.o: value.h
shs.o: zmath.h
+shs.o:
+ ${LCC} ${CFLAGS} ${ILDFLAGS} -O0 -c shs.c
shs1.o: align32.h
shs1.o: alloc.h
shs1.o: block.h
@@ -3935,6 +3939,8 @@ shs1.o: shs1.h
shs1.o: string.h
shs1.o: value.h
shs1.o: zmath.h
+shs1.o:
+ ${LCC} ${CFLAGS} ${ILDFLAGS} -O0 -c shs1.c
size.o: alloc.h
size.o: block.h
size.o: byteswap.h

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.2 2003/07/16 09:40:29 sturm Exp $
# $OpenBSD: Makefile,v 1.3 2004/02/25 01:35:50 naddy Exp $
COMMENT= "log colorizer"
@ -18,10 +18,6 @@ PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
.if ${MACHINE_ARCH} == "sparc64"
PATCH_LIST= patch-* gcc-*
.endif
LIB_DEPENDS= pcreposix,pcre::devel/pcre
USE_GMAKE= Yes

View File

@ -1,37 +0,0 @@
$OpenBSD: gcc-configure,v 1.1 2003/07/16 09:40:29 sturm Exp $
--- configure.orig Tue May 13 20:09:47 2003
+++ configure Wed Jul 16 10:40:30 2003
@@ -3794,6 +3794,8 @@ fi
done
+_SAVE_CFLAGS=$CFLAGS
+CFLAGS=-O0
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
@@ -3866,6 +3868,7 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
fi
+CFLAGS=$_SAVE_CFLAGS
@@ -4011,6 +4014,8 @@ fi
done
+_SAVE_CFLAGS=$CFLAGS
+CFLAGS=-O0
echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
@@ -4083,6 +4088,7 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
fi
+CFLAGS=$_SAVE_CFLAGS

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.13 2003/02/25 14:35:43 brad Exp $
# $OpenBSD: Makefile,v 1.14 2004/02/25 01:35:50 naddy Exp $
COMMENT= "GNU versions of common file management utilities"
COMMENT-ls= "colorized GNU 'ls'"
@ -21,11 +21,6 @@ MASTER_SITES= ${MASTER_SITE_GNU:=fileutils/}
MODULES= gettext
# XXX workaround gcc bugs on sparc64
.if ${MACHINE_ARCH:Msparc64}
PATCH_LIST= gcc-* patch-*
.endif
SEPARATE_BUILD= concurrent
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu

View File

@ -1,16 +0,0 @@
$OpenBSD: gcc-lib_Makefile_in,v 1.1 2002/03/23 19:52:08 lebel Exp $
--- lib/Makefile.in.orig Sun Apr 29 04:25:37 2001
+++ lib/Makefile.in Sat Mar 23 14:39:34 2002
@@ -742,6 +742,12 @@ distclean-depend:
@AMDEP@CCDEPMODE = @CCDEPMODE@
+sha.o: sha.c
+@AMDEP@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+@AMDEP@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ $(COMPILE) -c -O0 -o $@ `test -f $< || echo '$(srcdir)/'`$<
+
.c.o:
@AMDEP@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.4 2003/08/01 03:03:16 jolan Exp $
# $OpenBSD: Makefile,v 1.5 2004/02/25 01:35:50 naddy Exp $
COMMENT= "simple network library"
DISTNAME= gnet-2.0.4
@ -19,11 +19,6 @@ BUILD_DEPENDS= :pkgconfig->=0.9.0:devel/pkgconfig
LIB_DEPENDS= glib-2.0.0.0,gthread-2.0.0.0::devel/glib2
# XXX workaround gcc bugs on sparc64
.if ${MACHINE_ARCH:Msparc64}
PATCH_LIST= gcc-* patch-*
.endif
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS+=${CONFIGURE_SHARED} \
--enable-threadsafe-getaddrinfo --enable-threadsafe-gethostbyname

View File

@ -1,13 +0,0 @@
$OpenBSD: gcc-patch-src_Makefile_in,v 1.2 2003/07/25 06:42:05 jolan Exp $
--- src/Makefile.in.orig Tue May 13 20:23:08 2003
+++ src/Makefile.in Wed May 21 18:47:31 2003
@@ -184,6 +184,9 @@ uninstall-libLTLIBRARIES:
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
done
+sha.lo:
+ $(LIBTOOL) --mode=compile $(COMPILE) -c -O0 $<
+
.c.o:
$(COMPILE) -c $<

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.7 2004/01/25 22:04:40 jakob Exp $
# $OpenBSD: Makefile,v 1.8 2004/02/25 01:35:50 naddy Exp $
COMMENT= "zone transfer program from BIND v8"
@ -36,10 +36,6 @@ PATCH_LIST= patch-bin_named-xfer_Makefile
do-configure:
cd ${WRKSRC}; ${MAKE_PROGRAM} DST=${WRKBUILD}/obj SRC=${WRKSRC} links
cd ${WRKBUILD}/obj; ${PATCH} < ${PATCHDIR}/patch-Makefile
# XXX workaround gcc bugs on sparc64
.if ${MACHINE_ARCH:Msparc64}
cd ${WRKBUILD}/obj; ${PATCH} < ${PATCHDIR}/gcc-lib_cylink_Makefile
.endif
do-build:
cd ${WRKBUILD}/obj; ${MAKE_PROGRAM}
@ -51,4 +47,6 @@ do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/obj/bin/named-xfer/named-xfer ${PREFIX}/libexec
${INSTALL_MAN} ${WRKDIR}/doc/man/named-xfer.lst8 ${PREFIX}/man/cat8/named-xfer.0
NO_REGRESS= Yes
.include <bsd.port.mk>

View File

@ -1,20 +0,0 @@
$OpenBSD: gcc-lib_cylink_Makefile,v 1.1 2002/12/19 15:43:25 lebel Exp $
--- lib/cylink/Makefile.orig Tue Aug 14 01:58:00 2001
+++ lib/cylink/Makefile Thu Dec 19 10:04:56 2002
@@ -60,6 +60,16 @@ ${LIBBIND}: ${OBJS}
${AR} ${LIBBIND} ${ARPREF} ${OBJS} ${ARSUFF}
${RANLIB} ${LIBBIND}
+sha.${O}:
+ mkdir ${THREADED} 2> /dev/null || test -d ${THREADED} -a -w ${THREADED}
+ ${CC} ${CPPFLAGS} ${CFLAGS} -O0 ${BOUNDS} ${REENTRANT} -c $*.c \
+ -o ${THREADED}/$*.${O}
+ -${LDS} ${LD} ${LD_LIBFLAGS} ${THREADED}/$*.${O} -o ${THREADED}/$*.out && \
+ ${LDS} mv ${THREADED}/$*.out ${THREADED}/$*.${O}
+ ${CC} ${CPPFLAGS} ${CFLAGS} -O0 ${BOUNDS} -c $*.c
+ -${LDS} ${LD} ${LD_LIBFLAGS} $*.${O} -o $*.out && \
+ ${LDS} mv $*.out $*.${O}
+
.c.${O}:
mkdir ${THREADED} 2> /dev/null || test -d ${THREADED} -a -w ${THREADED}
${CC} ${CPPFLAGS} ${CFLAGS} ${BOUNDS} ${REENTRANT} -c $*.c \

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.3 2002/11/22 02:37:37 margarida Exp $
# $OpenBSD: Makefile,v 1.4 2004/02/25 01:35:50 naddy Exp $
COMMENT= "snmp command line utility"
@ -18,11 +18,6 @@ PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
# optimizer bug in gcc 2.95
.if ${MACHINE_ARCH} == "sparc64"
PATCH_LIST= patch-* gcc-patch-*
.endif
MODULES= iconv
LIB_DEPENDS= glib.1.2,gmodule.1.2::devel/glib \
xml2::textproc/libxml

View File

@ -1,11 +0,0 @@
$OpenBSD: gcc-patch-snmp_Makefile_in,v 1.1 2002/10/08 13:02:28 naddy Exp $
--- snmp/Makefile.in.orig Tue Oct 8 14:39:57 2002
+++ snmp/Makefile.in Tue Oct 8 14:41:06 2002
@@ -216,6 +216,7 @@ g_session.o: g_session.c g_snmp.h ../con
g_security.h g_sha.h g_md5.h g_transport.h g_session.h \
g_dispatch.h g_utils.h g_snmp_table.h g_snmp_walk.h
g_sha.o: g_sha.c g_sha.h
+ $(COMPILE) -O0 -c g_sha.c
g_snmp.o: g_snmp.c g_snmp.h ../config.h g_asn1.h g_message.h \
g_security.h g_sha.h g_md5.h g_transport.h g_session.h \
g_dispatch.h g_utils.h g_snmp_table.h g_snmp_walk.h