remove workarounds for gcc2.95/sparc64 optimizer bugs

This commit is contained in:
naddy 2004-02-24 00:06:43 +00:00
parent 5fe6268292
commit 1bc6d8a294
9 changed files with 5 additions and 76 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.5 2004/01/14 19:50:15 sturm Exp $ # $OpenBSD: Makefile,v 1.6 2004/02/24 00:06:43 naddy Exp $
REVISION= 4 REVISION= 4
VERSION= ${REVISION}.2.52 VERSION= ${REVISION}.2.52
@ -10,8 +10,4 @@ CONFIGURE_STYLE=gnu
DEST_SUBDIR= ${REVISION} DEST_SUBDIR= ${REVISION}
.if ${MACHINE_ARCH} == "sparc64"
PATCH_LIST= patch-* gcc-*
.endif
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,11 +0,0 @@
--- dist/Makefile.in.orig Fri Aug 30 20:11:56 2002
+++ dist/Makefile.in Wed Dec 3 20:44:10 2003
@@ -1203,7 +1206,7 @@
rijndael-api-fst@o@: $(srcdir)/crypto/rijndael/rijndael-api-fst.c
$(CC) $(CFLAGS) $?
sha1@o@: $(srcdir)/hmac/sha1.c
- $(CC) $(CFLAGS) $?
+ $(CC) $(CFLAGS) -O0 $?
txn@o@: $(srcdir)/txn/txn.c
$(CC) $(CFLAGS) $?
txn_auto@o@: $(srcdir)/txn/txn_auto.c

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.37 2004/02/17 07:22:17 kevlo Exp $ # $OpenBSD: Makefile,v 1.38 2004/02/24 00:06:43 naddy Exp $
COMMENT= "Open source LDAP software (client)" COMMENT= "Open source LDAP software (client)"
COMMENT-server= "Open source LDAP software (server)" COMMENT-server= "Open source LDAP software (server)"
@ -58,11 +58,6 @@ CONFIGURE_ARGS+= \
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/build MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/build
# XXX workaround sparc64 gcc optimization bug
.if ${MACHINE_ARCH:Msparc64}
PATCH_LIST= gcc-* patch-*
.endif
REGRESS_TARGET= test REGRESS_TARGET= test
FLAVORS= sasl bdb FLAVORS= sasl bdb

View File

@ -1,13 +0,0 @@
$OpenBSD: gcc-libraries_liblutil_Makefile_in,v 1.1 2002/01/29 06:10:22 pvalchev Exp $
--- libraries/liblutil/Makefile.in.orig Fri Jan 4 13:38:24 2002
+++ libraries/liblutil/Makefile.in Fri Jan 25 23:03:43 2002
@@ -31,6 +31,9 @@ CPPFLAGS = $(@PLAT@_@LIB_LINKAGE@_LIB_DE
# It's ok for them to be here because the clean rule is harmless, and
# slapdmsg.res won't get built unless it's declared in OBJS.
+sha1.o: sha1.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -I$(LDAP_INCDIR) -O0 -c $<
+
slapdmsg.res: slapdmsg.rc slapdmsg.bin
windres $< -O coff -o $@

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.3 2004/01/30 01:01:11 naddy Exp $ # $OpenBSD: Makefile,v 1.4 2004/02/24 00:06:43 naddy Exp $
COMMENT= "GNU PIC assembler and utilities" COMMENT= "GNU PIC assembler and utilities"
@ -22,11 +22,6 @@ PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gputils/} MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gputils/}
MASTER_SITES0= http://www.ajd.net.au/ports/ MASTER_SITES0= http://www.ajd.net.au/ports/
# From Jolan:
.if ${MACHINE_ARCH:Msparc64}
CFLAGS+= -O0
.endif
CONFIGURE_STYLE= gnu autoconf CONFIGURE_STYLE= gnu autoconf
AUTOCONF_VERSION= 2.57 AUTOCONF_VERSION= 2.57
CONFIGURE_ENV= "CC=${CC}" "CPP=${CPP}" "CFLAGS=${CFLAGS}" "CPPFLAGS=${CPPFLAGS}" "LDFLAGS=${LDFLAGS}" CONFIGURE_ENV= "CC=${CC}" "CPP=${CPP}" "CFLAGS=${CFLAGS}" "CPPFLAGS=${CPPFLAGS}" "LDFLAGS=${LDFLAGS}"

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.37 2004/01/11 07:05:31 brad Exp $ # $OpenBSD: Makefile,v 1.38 2004/02/24 00:06:43 naddy Exp $
COMMENT= "stack-based interpreter for terminal applications" COMMENT= "stack-based interpreter for terminal applications"
@ -19,11 +19,6 @@ PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes PERMIT_DISTFILES_FTP= Yes
# work around an optimizer bug in gcc 2.95
.if ${MACHINE_ARCH} == "sparc64"
PATCH_LIST= gcc-patch-* patch-*
.endif
CONFIGURE_STYLE= autoconf CONFIGURE_STYLE= autoconf
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/autoconf MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/autoconf

View File

@ -1,11 +0,0 @@
$OpenBSD: gcc-patch-src_Makefile.in,v 1.1 2003/08/13 23:41:02 naddy Exp $
--- src/Makefile.in.orig 2003-08-14 00:25:45.000000000 +0200
+++ src/Makefile.in 2003-08-14 00:26:19.000000000 +0200
@@ -105,6 +105,7 @@ sltoken_O_DEP = keywhash.c
slarith_O_DEP = slarith.inc
slarrfun_O_DEP = slarrfun.inc
slmisc_O_DEP = slang.h
+slmisc_C_FLAGS = -O0
slstd_C_FLAGS = -DSLANG_DOC_DIR='"$(install_doc_dir)"'
slimport_C_FLAGS = -DMODULE_INSTALL_DIR='"$(MODULE_INSTALL_DIR)"'
sltermin_C_FLAGS = -DMISC_TERMINFO_DIRS='"$(MISC_TERMINFO_DIRS)"'

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.26 2003/12/23 23:45:41 brad Exp $ # $OpenBSD: Makefile,v 1.27 2004/02/24 00:06:43 naddy Exp $
COMMENT= "tools and library routines for working with TIFF images" COMMENT= "tools and library routines for working with TIFF images"
@ -30,11 +30,6 @@ CONFIGURE_ARGS= --prefix="${PREFIX}" --with-ZIP --with-JPEG \
--with-INSTALL="sh ${WRKSRC}/port/install.sh" \ --with-INSTALL="sh ${WRKSRC}/port/install.sh" \
--noninteractive --noninteractive
# Internal Compiler Error
.if ${MACHINE_ARCH} == "sparc64"
PATCH_LIST= patch-* sup-sparc64
.endif
DOCDIR= ${PREFIX}/share/doc/tiff DOCDIR= ${PREFIX}/share/doc/tiff
post-extract: post-extract:

View File

@ -1,12 +0,0 @@
$OpenBSD: sup-sparc64,v 1.2 2003/12/23 23:45:41 brad Exp $
--- libtiff/Makefile.in.orig 2003-08-20 06:42:17.000000000 -0400
+++ libtiff/Makefile.in 2003-12-13 02:36:14.000000000 -0500
@@ -290,7 +290,7 @@ tif_dir.o: ${SRCDIR}/tif_dir.c
tif_dirinfo.o: ${SRCDIR}/tif_dirinfo.c
${CC} -c ${CFLAGS} ${SRCDIR}/tif_dirinfo.c
tif_dirread.o: ${SRCDIR}/tif_dirread.c
- ${CC} -c ${CFLAGS} ${SRCDIR}/tif_dirread.c
+ ${CC} -c ${CFLAGS} -O0 ${SRCDIR}/tif_dirread.c
tif_dirwrite.o: ${SRCDIR}/tif_dirwrite.c
${CC} -c ${CFLAGS} ${SRCDIR}/tif_dirwrite.c
tif_dumpmode.o: ${SRCDIR}/tif_dumpmode.c