summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lang/gcc-ooo/Makefile53
-rw-r--r--lang/gcc-ooo/distinfo12
-rw-r--r--lang/gcc-ooo/files/patch-regrename.c19
-rw-r--r--lang/gcc-ooo/pkg-plist8
-rw-r--r--lang/gcc/Makefile53
-rw-r--r--lang/gcc/distinfo12
-rw-r--r--lang/gcc/files/patch-regrename.c19
-rw-r--r--lang/gcc/pkg-plist8
-rw-r--r--lang/gcc34/Makefile53
-rw-r--r--lang/gcc34/distinfo12
-rw-r--r--lang/gcc34/files/patch-regrename.c19
-rw-r--r--lang/gcc34/pkg-plist8
-rw-r--r--lang/gcc35/Makefile53
-rw-r--r--lang/gcc35/distinfo12
-rw-r--r--lang/gcc35/files/patch-regrename.c19
-rw-r--r--lang/gcc35/pkg-plist8
-rw-r--r--lang/gcc40/Makefile53
-rw-r--r--lang/gcc40/distinfo12
-rw-r--r--lang/gcc40/files/patch-regrename.c19
-rw-r--r--lang/gcc40/pkg-plist8
-rw-r--r--lang/gcc41/Makefile53
-rw-r--r--lang/gcc41/distinfo12
-rw-r--r--lang/gcc41/files/patch-regrename.c19
-rw-r--r--lang/gcc41/pkg-plist8
-rw-r--r--lang/gcc42/Makefile53
-rw-r--r--lang/gcc42/distinfo12
-rw-r--r--lang/gcc42/files/patch-regrename.c19
-rw-r--r--lang/gcc42/pkg-plist8
-rw-r--r--lang/gcc43/Makefile53
-rw-r--r--lang/gcc43/distinfo12
-rw-r--r--lang/gcc43/files/patch-regrename.c19
-rw-r--r--lang/gcc43/pkg-plist8
-rw-r--r--lang/gcc44/Makefile53
-rw-r--r--lang/gcc44/distinfo12
-rw-r--r--lang/gcc44/files/patch-regrename.c19
-rw-r--r--lang/gcc44/pkg-plist8
-rw-r--r--lang/gcc45/Makefile53
-rw-r--r--lang/gcc45/distinfo12
-rw-r--r--lang/gcc45/files/patch-regrename.c19
-rw-r--r--lang/gcc45/pkg-plist8
-rw-r--r--lang/gcc46/Makefile53
-rw-r--r--lang/gcc46/distinfo12
-rw-r--r--lang/gcc46/files/patch-regrename.c19
-rw-r--r--lang/gcc46/pkg-plist8
-rw-r--r--lang/gcc47/Makefile53
-rw-r--r--lang/gcc47/distinfo12
-rw-r--r--lang/gcc47/files/patch-regrename.c19
-rw-r--r--lang/gcc47/pkg-plist8
-rw-r--r--lang/gcc48/Makefile53
-rw-r--r--lang/gcc48/distinfo12
-rw-r--r--lang/gcc48/files/patch-regrename.c19
-rw-r--r--lang/gcc48/pkg-plist8
52 files changed, 702 insertions, 494 deletions
diff --git a/lang/gcc-ooo/Makefile b/lang/gcc-ooo/Makefile
index 943b30d..959695d 100644
--- a/lang/gcc-ooo/Makefile
+++ b/lang/gcc-ooo/Makefile
@@ -5,9 +5,7 @@
#
# $FreeBSD$
#
-
-SNAPDATE= 2004-01-07
-#CVS_DATE= ${SNAPDATE} 18:53:04 EDT
+SNAPDATE= 2004-01-14
PORTNAME= gcc
PORTVERSION= 3.4.0
@@ -42,6 +40,10 @@ NOMANCOMPRESS= yes # too hard to deal with differences on 5-cur and releng4
.include <bsd.port.pre.mk>
+.if ${ARCH} == sparc64
+BROKEN= "libgcj is not supported/packaging is broken on this platform"
+.endif
+
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
SRCDIR= ${WRKDIR}/gcc-${VERSIONSTRING}
@@ -52,11 +54,10 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_BISON= yes
CONFIGURE_ARGS= --disable-nls \
+ --with-system-zlib \
--with-libiconv-prefix=${LOCALBASE} \
- --with-gxx-include-dir=${TARGLIB}/include/c++/${GCC_REV}
-#CONFIGURE_ARGS+= --program-suffix=34
-# Java
-CONFIGURE_ARGS+= --with-system-zlib
+ --program-suffix=34 \
+ --with-gxx-include-dir=${TARGLIB}/include/c++/
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+= --enable-shared
@@ -128,28 +129,22 @@ check: build
cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check
post-install:
- @${RM} -f ${PREFIX}/bin/c++ ${PREFIX}/bin/${CONFIGURE_TARGET}-c++
-.for f in gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
- ${STRIP_CMD} ${PREFIX}/bin/${f}
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
+.for f in c++ gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
+ if [ -e ${PREFIX}/bin/${f}34 ]; then \
+ ${STRIP_CMD} ${PREFIX}/bin/${f}34; \
+ ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
|| ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}34.1 )
-.endfor
-.for f in g77
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}-34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
- || ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}-34.1 )
+ ${PREFIX}/man/man1/${f}34.1 ); \
+ fi
.endfor
- ${MV} -f ${PREFIX}/bin/gccbug ${PREFIX}/bin/gccbug34
- # These 3 libraries are moved from PREFIX/lib to avoid conflicts
- # with the stock compiler.
+ ${MV} -f ${PREFIX}/bin/g7734 ${PREFIX}/bin/g77-34
+ ${MV} -f ${PREFIX}/man/man1/g7734.1 ${PREFIX}/man/man1/g77-34.1
+ # These libraries are moved from PREFIX/lib to avoid conflicts with
+ # the stock compiler.
.for f in libstdc++ libsupc++ libg2c libfrtbegin libobjc ${EXTRA_SHLIB}
${MV} -f ${PREFIX}/lib/${f}.* ${TARGLIB}
.endfor
-${MV} -f ${PREFIX}/lib/ieee ${TARGLIB}
- # Java
-${MV} -f ${PREFIX}/lib/libgcj.* ${TARGLIB}
${RM} -f ${PREFIX}/lib/libiberty.a
${RM} -f ${TARGLIB}/*.la
@@ -160,12 +155,12 @@ post-install:
.endfor
# Handle target libraries and GCJ include files.
${RM} -f ${WRKDIR}/PLIST.lib
-.for inc in ${TARGLIB} include/gcj include/gnu include/java include/javax
- cd ${PREFIX} ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type f -o -type l \
- >>${WRKDIR}/PLIST.lib ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type d \
- | ${SORT} -r | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib
+.for d in ${TARGLIB:S/^${PREFIX}\///} include/gcj include/gnu include/java include/javax
+ cd ${PREFIX} ; if [ -d $d ]; then \
+ ${FIND} $d -type f -o -type l >>${WRKDIR}/PLIST.lib ;\
+ ${FIND} $d -type d | ${SORT} -r \
+ | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib ;\
+ fi
.endfor
(${ECHO_CMD} "@unexec rmdir %D/lib/gcc/${CONFIGURE_TARGET} 2>&1 || true" ; ${ECHO_CMD} "@unexec rmdir %D/lib/gcc 2>&1 || true") >> ${WRKDIR}/PLIST.lib
${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
diff --git a/lang/gcc-ooo/distinfo b/lang/gcc-ooo/distinfo
index 35f2406..beb1d80 100644
--- a/lang/gcc-ooo/distinfo
+++ b/lang/gcc-ooo/distinfo
@@ -1,6 +1,6 @@
-MD5 (gcc-core-3.4-20040107.tar.bz2) = 2de4606dde0d9dfafb96ab271e028081
-MD5 (gcc-g++-3.4-20040107.tar.bz2) = 5210c6e084b0e1bd9f02d4b012d936f8
-MD5 (gcc-g77-3.4-20040107.tar.bz2) = c30706a558bc88ca16f2c45b1b3eb244
-MD5 (gcc-java-3.4-20040107.tar.bz2) = ece8ad9079c75347516cfb9159543833
-MD5 (gcc-objc-3.4-20040107.tar.bz2) = c9d9d241639a883cf214756f08198452
-MD5 (gcc-testsuite-3.4-20040107.tar.bz2) = cff08732e9a7833c4461990eb68034f7
+MD5 (gcc-core-3.4-20040114.tar.bz2) = 2742be0bc0d14d5eadee3a75664b37bc
+MD5 (gcc-g++-3.4-20040114.tar.bz2) = caa96c9ebfa7bdd120d7c03a9fb66bda
+MD5 (gcc-g77-3.4-20040114.tar.bz2) = 92a1a266ca11743daa5510cc561956e1
+MD5 (gcc-java-3.4-20040114.tar.bz2) = 1ebfd7502c9600d1838af5eff5766d86
+MD5 (gcc-objc-3.4-20040114.tar.bz2) = ae08a05a56a312776f959db343bc5319
+MD5 (gcc-testsuite-3.4-20040114.tar.bz2) = 7ce504cbee33ab818845fcd9e4949a71
diff --git a/lang/gcc-ooo/files/patch-regrename.c b/lang/gcc-ooo/files/patch-regrename.c
new file mode 100644
index 0000000..a687acd
--- /dev/null
+++ b/lang/gcc-ooo/files/patch-regrename.c
@@ -0,0 +1,19 @@
+Index: gcc/regrename.c
+===================================================================
+RCS file: /cvs/gcc/gcc/gcc/regrename.c,v
+retrieving revision 1.72
+retrieving revision 1.73
+diff -u -3 -p -r1.72 -r1.73
+--- gcc/regrename.c 14 Jan 2004 16:25:09 -0000 1.72
++++ gcc/regrename.c 14 Jan 2004 17:55:20 -0000 1.73
+@@ -1345,8 +1345,8 @@ find_oldest_value_reg (enum reg_class cl
+ if (!TEST_HARD_REG_BIT (reg_class_contents[class], last))
+ return NULL_RTX;
+
+- if (new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i,
+- regno))
++ new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i, regno);
++ if (new)
+ {
+ ORIGINAL_REGNO (new) = ORIGINAL_REGNO (reg);
+ REG_ATTRS (new) = REG_ATTRS (reg);
diff --git a/lang/gcc-ooo/pkg-plist b/lang/gcc-ooo/pkg-plist
index 0119d6a..a25a199 100644
--- a/lang/gcc-ooo/pkg-plist
+++ b/lang/gcc-ooo/pkg-plist
@@ -1,14 +1,16 @@
@comment $FreeBSD$
+bin/c++34
bin/cpp34
bin/g++34
bin/g77-34
bin/gcc34
bin/gcov34
+bin/%%GNU_HOST%%-c++34
bin/%%GNU_HOST%%-gcc-%%GCC_VER%%
bin/%%GNU_HOST%%-gcc34
bin/%%GNU_HOST%%-g++34
-bin/%%GNU_HOST%%-gcj
-bin/%%GNU_HOST%%-gcjh
+bin/%%GNU_HOST%%-gcj34
+bin/%%GNU_HOST%%-gcjh34
bin/gccbug34
bin/gcj34
bin/gcjh34
@@ -20,7 +22,7 @@ bin/jar34
bin/grepjar34
bin/rmic34
bin/rmiregistry34
-bin/addr2name.awk
+bin/addr2name.awk34
include/ffi.h
include/jni.h
include/jvmpi.h
diff --git a/lang/gcc/Makefile b/lang/gcc/Makefile
index 943b30d..959695d 100644
--- a/lang/gcc/Makefile
+++ b/lang/gcc/Makefile
@@ -5,9 +5,7 @@
#
# $FreeBSD$
#
-
-SNAPDATE= 2004-01-07
-#CVS_DATE= ${SNAPDATE} 18:53:04 EDT
+SNAPDATE= 2004-01-14
PORTNAME= gcc
PORTVERSION= 3.4.0
@@ -42,6 +40,10 @@ NOMANCOMPRESS= yes # too hard to deal with differences on 5-cur and releng4
.include <bsd.port.pre.mk>
+.if ${ARCH} == sparc64
+BROKEN= "libgcj is not supported/packaging is broken on this platform"
+.endif
+
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
SRCDIR= ${WRKDIR}/gcc-${VERSIONSTRING}
@@ -52,11 +54,10 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_BISON= yes
CONFIGURE_ARGS= --disable-nls \
+ --with-system-zlib \
--with-libiconv-prefix=${LOCALBASE} \
- --with-gxx-include-dir=${TARGLIB}/include/c++/${GCC_REV}
-#CONFIGURE_ARGS+= --program-suffix=34
-# Java
-CONFIGURE_ARGS+= --with-system-zlib
+ --program-suffix=34 \
+ --with-gxx-include-dir=${TARGLIB}/include/c++/
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+= --enable-shared
@@ -128,28 +129,22 @@ check: build
cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check
post-install:
- @${RM} -f ${PREFIX}/bin/c++ ${PREFIX}/bin/${CONFIGURE_TARGET}-c++
-.for f in gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
- ${STRIP_CMD} ${PREFIX}/bin/${f}
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
+.for f in c++ gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
+ if [ -e ${PREFIX}/bin/${f}34 ]; then \
+ ${STRIP_CMD} ${PREFIX}/bin/${f}34; \
+ ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
|| ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}34.1 )
-.endfor
-.for f in g77
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}-34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
- || ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}-34.1 )
+ ${PREFIX}/man/man1/${f}34.1 ); \
+ fi
.endfor
- ${MV} -f ${PREFIX}/bin/gccbug ${PREFIX}/bin/gccbug34
- # These 3 libraries are moved from PREFIX/lib to avoid conflicts
- # with the stock compiler.
+ ${MV} -f ${PREFIX}/bin/g7734 ${PREFIX}/bin/g77-34
+ ${MV} -f ${PREFIX}/man/man1/g7734.1 ${PREFIX}/man/man1/g77-34.1
+ # These libraries are moved from PREFIX/lib to avoid conflicts with
+ # the stock compiler.
.for f in libstdc++ libsupc++ libg2c libfrtbegin libobjc ${EXTRA_SHLIB}
${MV} -f ${PREFIX}/lib/${f}.* ${TARGLIB}
.endfor
-${MV} -f ${PREFIX}/lib/ieee ${TARGLIB}
- # Java
-${MV} -f ${PREFIX}/lib/libgcj.* ${TARGLIB}
${RM} -f ${PREFIX}/lib/libiberty.a
${RM} -f ${TARGLIB}/*.la
@@ -160,12 +155,12 @@ post-install:
.endfor
# Handle target libraries and GCJ include files.
${RM} -f ${WRKDIR}/PLIST.lib
-.for inc in ${TARGLIB} include/gcj include/gnu include/java include/javax
- cd ${PREFIX} ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type f -o -type l \
- >>${WRKDIR}/PLIST.lib ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type d \
- | ${SORT} -r | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib
+.for d in ${TARGLIB:S/^${PREFIX}\///} include/gcj include/gnu include/java include/javax
+ cd ${PREFIX} ; if [ -d $d ]; then \
+ ${FIND} $d -type f -o -type l >>${WRKDIR}/PLIST.lib ;\
+ ${FIND} $d -type d | ${SORT} -r \
+ | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib ;\
+ fi
.endfor
(${ECHO_CMD} "@unexec rmdir %D/lib/gcc/${CONFIGURE_TARGET} 2>&1 || true" ; ${ECHO_CMD} "@unexec rmdir %D/lib/gcc 2>&1 || true") >> ${WRKDIR}/PLIST.lib
${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
diff --git a/lang/gcc/distinfo b/lang/gcc/distinfo
index 35f2406..beb1d80 100644
--- a/lang/gcc/distinfo
+++ b/lang/gcc/distinfo
@@ -1,6 +1,6 @@
-MD5 (gcc-core-3.4-20040107.tar.bz2) = 2de4606dde0d9dfafb96ab271e028081
-MD5 (gcc-g++-3.4-20040107.tar.bz2) = 5210c6e084b0e1bd9f02d4b012d936f8
-MD5 (gcc-g77-3.4-20040107.tar.bz2) = c30706a558bc88ca16f2c45b1b3eb244
-MD5 (gcc-java-3.4-20040107.tar.bz2) = ece8ad9079c75347516cfb9159543833
-MD5 (gcc-objc-3.4-20040107.tar.bz2) = c9d9d241639a883cf214756f08198452
-MD5 (gcc-testsuite-3.4-20040107.tar.bz2) = cff08732e9a7833c4461990eb68034f7
+MD5 (gcc-core-3.4-20040114.tar.bz2) = 2742be0bc0d14d5eadee3a75664b37bc
+MD5 (gcc-g++-3.4-20040114.tar.bz2) = caa96c9ebfa7bdd120d7c03a9fb66bda
+MD5 (gcc-g77-3.4-20040114.tar.bz2) = 92a1a266ca11743daa5510cc561956e1
+MD5 (gcc-java-3.4-20040114.tar.bz2) = 1ebfd7502c9600d1838af5eff5766d86
+MD5 (gcc-objc-3.4-20040114.tar.bz2) = ae08a05a56a312776f959db343bc5319
+MD5 (gcc-testsuite-3.4-20040114.tar.bz2) = 7ce504cbee33ab818845fcd9e4949a71
diff --git a/lang/gcc/files/patch-regrename.c b/lang/gcc/files/patch-regrename.c
new file mode 100644
index 0000000..a687acd
--- /dev/null
+++ b/lang/gcc/files/patch-regrename.c
@@ -0,0 +1,19 @@
+Index: gcc/regrename.c
+===================================================================
+RCS file: /cvs/gcc/gcc/gcc/regrename.c,v
+retrieving revision 1.72
+retrieving revision 1.73
+diff -u -3 -p -r1.72 -r1.73
+--- gcc/regrename.c 14 Jan 2004 16:25:09 -0000 1.72
++++ gcc/regrename.c 14 Jan 2004 17:55:20 -0000 1.73
+@@ -1345,8 +1345,8 @@ find_oldest_value_reg (enum reg_class cl
+ if (!TEST_HARD_REG_BIT (reg_class_contents[class], last))
+ return NULL_RTX;
+
+- if (new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i,
+- regno))
++ new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i, regno);
++ if (new)
+ {
+ ORIGINAL_REGNO (new) = ORIGINAL_REGNO (reg);
+ REG_ATTRS (new) = REG_ATTRS (reg);
diff --git a/lang/gcc/pkg-plist b/lang/gcc/pkg-plist
index 0119d6a..a25a199 100644
--- a/lang/gcc/pkg-plist
+++ b/lang/gcc/pkg-plist
@@ -1,14 +1,16 @@
@comment $FreeBSD$
+bin/c++34
bin/cpp34
bin/g++34
bin/g77-34
bin/gcc34
bin/gcov34
+bin/%%GNU_HOST%%-c++34
bin/%%GNU_HOST%%-gcc-%%GCC_VER%%
bin/%%GNU_HOST%%-gcc34
bin/%%GNU_HOST%%-g++34
-bin/%%GNU_HOST%%-gcj
-bin/%%GNU_HOST%%-gcjh
+bin/%%GNU_HOST%%-gcj34
+bin/%%GNU_HOST%%-gcjh34
bin/gccbug34
bin/gcj34
bin/gcjh34
@@ -20,7 +22,7 @@ bin/jar34
bin/grepjar34
bin/rmic34
bin/rmiregistry34
-bin/addr2name.awk
+bin/addr2name.awk34
include/ffi.h
include/jni.h
include/jvmpi.h
diff --git a/lang/gcc34/Makefile b/lang/gcc34/Makefile
index 943b30d..959695d 100644
--- a/lang/gcc34/Makefile
+++ b/lang/gcc34/Makefile
@@ -5,9 +5,7 @@
#
# $FreeBSD$
#
-
-SNAPDATE= 2004-01-07
-#CVS_DATE= ${SNAPDATE} 18:53:04 EDT
+SNAPDATE= 2004-01-14
PORTNAME= gcc
PORTVERSION= 3.4.0
@@ -42,6 +40,10 @@ NOMANCOMPRESS= yes # too hard to deal with differences on 5-cur and releng4
.include <bsd.port.pre.mk>
+.if ${ARCH} == sparc64
+BROKEN= "libgcj is not supported/packaging is broken on this platform"
+.endif
+
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
SRCDIR= ${WRKDIR}/gcc-${VERSIONSTRING}
@@ -52,11 +54,10 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_BISON= yes
CONFIGURE_ARGS= --disable-nls \
+ --with-system-zlib \
--with-libiconv-prefix=${LOCALBASE} \
- --with-gxx-include-dir=${TARGLIB}/include/c++/${GCC_REV}
-#CONFIGURE_ARGS+= --program-suffix=34
-# Java
-CONFIGURE_ARGS+= --with-system-zlib
+ --program-suffix=34 \
+ --with-gxx-include-dir=${TARGLIB}/include/c++/
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+= --enable-shared
@@ -128,28 +129,22 @@ check: build
cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check
post-install:
- @${RM} -f ${PREFIX}/bin/c++ ${PREFIX}/bin/${CONFIGURE_TARGET}-c++
-.for f in gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
- ${STRIP_CMD} ${PREFIX}/bin/${f}
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
+.for f in c++ gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
+ if [ -e ${PREFIX}/bin/${f}34 ]; then \
+ ${STRIP_CMD} ${PREFIX}/bin/${f}34; \
+ ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
|| ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}34.1 )
-.endfor
-.for f in g77
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}-34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
- || ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}-34.1 )
+ ${PREFIX}/man/man1/${f}34.1 ); \
+ fi
.endfor
- ${MV} -f ${PREFIX}/bin/gccbug ${PREFIX}/bin/gccbug34
- # These 3 libraries are moved from PREFIX/lib to avoid conflicts
- # with the stock compiler.
+ ${MV} -f ${PREFIX}/bin/g7734 ${PREFIX}/bin/g77-34
+ ${MV} -f ${PREFIX}/man/man1/g7734.1 ${PREFIX}/man/man1/g77-34.1
+ # These libraries are moved from PREFIX/lib to avoid conflicts with
+ # the stock compiler.
.for f in libstdc++ libsupc++ libg2c libfrtbegin libobjc ${EXTRA_SHLIB}
${MV} -f ${PREFIX}/lib/${f}.* ${TARGLIB}
.endfor
-${MV} -f ${PREFIX}/lib/ieee ${TARGLIB}
- # Java
-${MV} -f ${PREFIX}/lib/libgcj.* ${TARGLIB}
${RM} -f ${PREFIX}/lib/libiberty.a
${RM} -f ${TARGLIB}/*.la
@@ -160,12 +155,12 @@ post-install:
.endfor
# Handle target libraries and GCJ include files.
${RM} -f ${WRKDIR}/PLIST.lib
-.for inc in ${TARGLIB} include/gcj include/gnu include/java include/javax
- cd ${PREFIX} ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type f -o -type l \
- >>${WRKDIR}/PLIST.lib ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type d \
- | ${SORT} -r | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib
+.for d in ${TARGLIB:S/^${PREFIX}\///} include/gcj include/gnu include/java include/javax
+ cd ${PREFIX} ; if [ -d $d ]; then \
+ ${FIND} $d -type f -o -type l >>${WRKDIR}/PLIST.lib ;\
+ ${FIND} $d -type d | ${SORT} -r \
+ | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib ;\
+ fi
.endfor
(${ECHO_CMD} "@unexec rmdir %D/lib/gcc/${CONFIGURE_TARGET} 2>&1 || true" ; ${ECHO_CMD} "@unexec rmdir %D/lib/gcc 2>&1 || true") >> ${WRKDIR}/PLIST.lib
${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
diff --git a/lang/gcc34/distinfo b/lang/gcc34/distinfo
index 35f2406..beb1d80 100644
--- a/lang/gcc34/distinfo
+++ b/lang/gcc34/distinfo
@@ -1,6 +1,6 @@
-MD5 (gcc-core-3.4-20040107.tar.bz2) = 2de4606dde0d9dfafb96ab271e028081
-MD5 (gcc-g++-3.4-20040107.tar.bz2) = 5210c6e084b0e1bd9f02d4b012d936f8
-MD5 (gcc-g77-3.4-20040107.tar.bz2) = c30706a558bc88ca16f2c45b1b3eb244
-MD5 (gcc-java-3.4-20040107.tar.bz2) = ece8ad9079c75347516cfb9159543833
-MD5 (gcc-objc-3.4-20040107.tar.bz2) = c9d9d241639a883cf214756f08198452
-MD5 (gcc-testsuite-3.4-20040107.tar.bz2) = cff08732e9a7833c4461990eb68034f7
+MD5 (gcc-core-3.4-20040114.tar.bz2) = 2742be0bc0d14d5eadee3a75664b37bc
+MD5 (gcc-g++-3.4-20040114.tar.bz2) = caa96c9ebfa7bdd120d7c03a9fb66bda
+MD5 (gcc-g77-3.4-20040114.tar.bz2) = 92a1a266ca11743daa5510cc561956e1
+MD5 (gcc-java-3.4-20040114.tar.bz2) = 1ebfd7502c9600d1838af5eff5766d86
+MD5 (gcc-objc-3.4-20040114.tar.bz2) = ae08a05a56a312776f959db343bc5319
+MD5 (gcc-testsuite-3.4-20040114.tar.bz2) = 7ce504cbee33ab818845fcd9e4949a71
diff --git a/lang/gcc34/files/patch-regrename.c b/lang/gcc34/files/patch-regrename.c
new file mode 100644
index 0000000..a687acd
--- /dev/null
+++ b/lang/gcc34/files/patch-regrename.c
@@ -0,0 +1,19 @@
+Index: gcc/regrename.c
+===================================================================
+RCS file: /cvs/gcc/gcc/gcc/regrename.c,v
+retrieving revision 1.72
+retrieving revision 1.73
+diff -u -3 -p -r1.72 -r1.73
+--- gcc/regrename.c 14 Jan 2004 16:25:09 -0000 1.72
++++ gcc/regrename.c 14 Jan 2004 17:55:20 -0000 1.73
+@@ -1345,8 +1345,8 @@ find_oldest_value_reg (enum reg_class cl
+ if (!TEST_HARD_REG_BIT (reg_class_contents[class], last))
+ return NULL_RTX;
+
+- if (new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i,
+- regno))
++ new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i, regno);
++ if (new)
+ {
+ ORIGINAL_REGNO (new) = ORIGINAL_REGNO (reg);
+ REG_ATTRS (new) = REG_ATTRS (reg);
diff --git a/lang/gcc34/pkg-plist b/lang/gcc34/pkg-plist
index 0119d6a..a25a199 100644
--- a/lang/gcc34/pkg-plist
+++ b/lang/gcc34/pkg-plist
@@ -1,14 +1,16 @@
@comment $FreeBSD$
+bin/c++34
bin/cpp34
bin/g++34
bin/g77-34
bin/gcc34
bin/gcov34
+bin/%%GNU_HOST%%-c++34
bin/%%GNU_HOST%%-gcc-%%GCC_VER%%
bin/%%GNU_HOST%%-gcc34
bin/%%GNU_HOST%%-g++34
-bin/%%GNU_HOST%%-gcj
-bin/%%GNU_HOST%%-gcjh
+bin/%%GNU_HOST%%-gcj34
+bin/%%GNU_HOST%%-gcjh34
bin/gccbug34
bin/gcj34
bin/gcjh34
@@ -20,7 +22,7 @@ bin/jar34
bin/grepjar34
bin/rmic34
bin/rmiregistry34
-bin/addr2name.awk
+bin/addr2name.awk34
include/ffi.h
include/jni.h
include/jvmpi.h
diff --git a/lang/gcc35/Makefile b/lang/gcc35/Makefile
index 943b30d..959695d 100644
--- a/lang/gcc35/Makefile
+++ b/lang/gcc35/Makefile
@@ -5,9 +5,7 @@
#
# $FreeBSD$
#
-
-SNAPDATE= 2004-01-07
-#CVS_DATE= ${SNAPDATE} 18:53:04 EDT
+SNAPDATE= 2004-01-14
PORTNAME= gcc
PORTVERSION= 3.4.0
@@ -42,6 +40,10 @@ NOMANCOMPRESS= yes # too hard to deal with differences on 5-cur and releng4
.include <bsd.port.pre.mk>
+.if ${ARCH} == sparc64
+BROKEN= "libgcj is not supported/packaging is broken on this platform"
+.endif
+
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
SRCDIR= ${WRKDIR}/gcc-${VERSIONSTRING}
@@ -52,11 +54,10 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_BISON= yes
CONFIGURE_ARGS= --disable-nls \
+ --with-system-zlib \
--with-libiconv-prefix=${LOCALBASE} \
- --with-gxx-include-dir=${TARGLIB}/include/c++/${GCC_REV}
-#CONFIGURE_ARGS+= --program-suffix=34
-# Java
-CONFIGURE_ARGS+= --with-system-zlib
+ --program-suffix=34 \
+ --with-gxx-include-dir=${TARGLIB}/include/c++/
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+= --enable-shared
@@ -128,28 +129,22 @@ check: build
cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check
post-install:
- @${RM} -f ${PREFIX}/bin/c++ ${PREFIX}/bin/${CONFIGURE_TARGET}-c++
-.for f in gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
- ${STRIP_CMD} ${PREFIX}/bin/${f}
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
+.for f in c++ gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
+ if [ -e ${PREFIX}/bin/${f}34 ]; then \
+ ${STRIP_CMD} ${PREFIX}/bin/${f}34; \
+ ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
|| ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}34.1 )
-.endfor
-.for f in g77
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}-34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
- || ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}-34.1 )
+ ${PREFIX}/man/man1/${f}34.1 ); \
+ fi
.endfor
- ${MV} -f ${PREFIX}/bin/gccbug ${PREFIX}/bin/gccbug34
- # These 3 libraries are moved from PREFIX/lib to avoid conflicts
- # with the stock compiler.
+ ${MV} -f ${PREFIX}/bin/g7734 ${PREFIX}/bin/g77-34
+ ${MV} -f ${PREFIX}/man/man1/g7734.1 ${PREFIX}/man/man1/g77-34.1
+ # These libraries are moved from PREFIX/lib to avoid conflicts with
+ # the stock compiler.
.for f in libstdc++ libsupc++ libg2c libfrtbegin libobjc ${EXTRA_SHLIB}
${MV} -f ${PREFIX}/lib/${f}.* ${TARGLIB}
.endfor
-${MV} -f ${PREFIX}/lib/ieee ${TARGLIB}
- # Java
-${MV} -f ${PREFIX}/lib/libgcj.* ${TARGLIB}
${RM} -f ${PREFIX}/lib/libiberty.a
${RM} -f ${TARGLIB}/*.la
@@ -160,12 +155,12 @@ post-install:
.endfor
# Handle target libraries and GCJ include files.
${RM} -f ${WRKDIR}/PLIST.lib
-.for inc in ${TARGLIB} include/gcj include/gnu include/java include/javax
- cd ${PREFIX} ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type f -o -type l \
- >>${WRKDIR}/PLIST.lib ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type d \
- | ${SORT} -r | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib
+.for d in ${TARGLIB:S/^${PREFIX}\///} include/gcj include/gnu include/java include/javax
+ cd ${PREFIX} ; if [ -d $d ]; then \
+ ${FIND} $d -type f -o -type l >>${WRKDIR}/PLIST.lib ;\
+ ${FIND} $d -type d | ${SORT} -r \
+ | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib ;\
+ fi
.endfor
(${ECHO_CMD} "@unexec rmdir %D/lib/gcc/${CONFIGURE_TARGET} 2>&1 || true" ; ${ECHO_CMD} "@unexec rmdir %D/lib/gcc 2>&1 || true") >> ${WRKDIR}/PLIST.lib
${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
diff --git a/lang/gcc35/distinfo b/lang/gcc35/distinfo
index 35f2406..beb1d80 100644
--- a/lang/gcc35/distinfo
+++ b/lang/gcc35/distinfo
@@ -1,6 +1,6 @@
-MD5 (gcc-core-3.4-20040107.tar.bz2) = 2de4606dde0d9dfafb96ab271e028081
-MD5 (gcc-g++-3.4-20040107.tar.bz2) = 5210c6e084b0e1bd9f02d4b012d936f8
-MD5 (gcc-g77-3.4-20040107.tar.bz2) = c30706a558bc88ca16f2c45b1b3eb244
-MD5 (gcc-java-3.4-20040107.tar.bz2) = ece8ad9079c75347516cfb9159543833
-MD5 (gcc-objc-3.4-20040107.tar.bz2) = c9d9d241639a883cf214756f08198452
-MD5 (gcc-testsuite-3.4-20040107.tar.bz2) = cff08732e9a7833c4461990eb68034f7
+MD5 (gcc-core-3.4-20040114.tar.bz2) = 2742be0bc0d14d5eadee3a75664b37bc
+MD5 (gcc-g++-3.4-20040114.tar.bz2) = caa96c9ebfa7bdd120d7c03a9fb66bda
+MD5 (gcc-g77-3.4-20040114.tar.bz2) = 92a1a266ca11743daa5510cc561956e1
+MD5 (gcc-java-3.4-20040114.tar.bz2) = 1ebfd7502c9600d1838af5eff5766d86
+MD5 (gcc-objc-3.4-20040114.tar.bz2) = ae08a05a56a312776f959db343bc5319
+MD5 (gcc-testsuite-3.4-20040114.tar.bz2) = 7ce504cbee33ab818845fcd9e4949a71
diff --git a/lang/gcc35/files/patch-regrename.c b/lang/gcc35/files/patch-regrename.c
new file mode 100644
index 0000000..a687acd
--- /dev/null
+++ b/lang/gcc35/files/patch-regrename.c
@@ -0,0 +1,19 @@
+Index: gcc/regrename.c
+===================================================================
+RCS file: /cvs/gcc/gcc/gcc/regrename.c,v
+retrieving revision 1.72
+retrieving revision 1.73
+diff -u -3 -p -r1.72 -r1.73
+--- gcc/regrename.c 14 Jan 2004 16:25:09 -0000 1.72
++++ gcc/regrename.c 14 Jan 2004 17:55:20 -0000 1.73
+@@ -1345,8 +1345,8 @@ find_oldest_value_reg (enum reg_class cl
+ if (!TEST_HARD_REG_BIT (reg_class_contents[class], last))
+ return NULL_RTX;
+
+- if (new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i,
+- regno))
++ new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i, regno);
++ if (new)
+ {
+ ORIGINAL_REGNO (new) = ORIGINAL_REGNO (reg);
+ REG_ATTRS (new) = REG_ATTRS (reg);
diff --git a/lang/gcc35/pkg-plist b/lang/gcc35/pkg-plist
index 0119d6a..a25a199 100644
--- a/lang/gcc35/pkg-plist
+++ b/lang/gcc35/pkg-plist
@@ -1,14 +1,16 @@
@comment $FreeBSD$
+bin/c++34
bin/cpp34
bin/g++34
bin/g77-34
bin/gcc34
bin/gcov34
+bin/%%GNU_HOST%%-c++34
bin/%%GNU_HOST%%-gcc-%%GCC_VER%%
bin/%%GNU_HOST%%-gcc34
bin/%%GNU_HOST%%-g++34
-bin/%%GNU_HOST%%-gcj
-bin/%%GNU_HOST%%-gcjh
+bin/%%GNU_HOST%%-gcj34
+bin/%%GNU_HOST%%-gcjh34
bin/gccbug34
bin/gcj34
bin/gcjh34
@@ -20,7 +22,7 @@ bin/jar34
bin/grepjar34
bin/rmic34
bin/rmiregistry34
-bin/addr2name.awk
+bin/addr2name.awk34
include/ffi.h
include/jni.h
include/jvmpi.h
diff --git a/lang/gcc40/Makefile b/lang/gcc40/Makefile
index 943b30d..959695d 100644
--- a/lang/gcc40/Makefile
+++ b/lang/gcc40/Makefile
@@ -5,9 +5,7 @@
#
# $FreeBSD$
#
-
-SNAPDATE= 2004-01-07
-#CVS_DATE= ${SNAPDATE} 18:53:04 EDT
+SNAPDATE= 2004-01-14
PORTNAME= gcc
PORTVERSION= 3.4.0
@@ -42,6 +40,10 @@ NOMANCOMPRESS= yes # too hard to deal with differences on 5-cur and releng4
.include <bsd.port.pre.mk>
+.if ${ARCH} == sparc64
+BROKEN= "libgcj is not supported/packaging is broken on this platform"
+.endif
+
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
SRCDIR= ${WRKDIR}/gcc-${VERSIONSTRING}
@@ -52,11 +54,10 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_BISON= yes
CONFIGURE_ARGS= --disable-nls \
+ --with-system-zlib \
--with-libiconv-prefix=${LOCALBASE} \
- --with-gxx-include-dir=${TARGLIB}/include/c++/${GCC_REV}
-#CONFIGURE_ARGS+= --program-suffix=34
-# Java
-CONFIGURE_ARGS+= --with-system-zlib
+ --program-suffix=34 \
+ --with-gxx-include-dir=${TARGLIB}/include/c++/
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+= --enable-shared
@@ -128,28 +129,22 @@ check: build
cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check
post-install:
- @${RM} -f ${PREFIX}/bin/c++ ${PREFIX}/bin/${CONFIGURE_TARGET}-c++
-.for f in gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
- ${STRIP_CMD} ${PREFIX}/bin/${f}
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
+.for f in c++ gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
+ if [ -e ${PREFIX}/bin/${f}34 ]; then \
+ ${STRIP_CMD} ${PREFIX}/bin/${f}34; \
+ ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
|| ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}34.1 )
-.endfor
-.for f in g77
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}-34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
- || ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}-34.1 )
+ ${PREFIX}/man/man1/${f}34.1 ); \
+ fi
.endfor
- ${MV} -f ${PREFIX}/bin/gccbug ${PREFIX}/bin/gccbug34
- # These 3 libraries are moved from PREFIX/lib to avoid conflicts
- # with the stock compiler.
+ ${MV} -f ${PREFIX}/bin/g7734 ${PREFIX}/bin/g77-34
+ ${MV} -f ${PREFIX}/man/man1/g7734.1 ${PREFIX}/man/man1/g77-34.1
+ # These libraries are moved from PREFIX/lib to avoid conflicts with
+ # the stock compiler.
.for f in libstdc++ libsupc++ libg2c libfrtbegin libobjc ${EXTRA_SHLIB}
${MV} -f ${PREFIX}/lib/${f}.* ${TARGLIB}
.endfor
-${MV} -f ${PREFIX}/lib/ieee ${TARGLIB}
- # Java
-${MV} -f ${PREFIX}/lib/libgcj.* ${TARGLIB}
${RM} -f ${PREFIX}/lib/libiberty.a
${RM} -f ${TARGLIB}/*.la
@@ -160,12 +155,12 @@ post-install:
.endfor
# Handle target libraries and GCJ include files.
${RM} -f ${WRKDIR}/PLIST.lib
-.for inc in ${TARGLIB} include/gcj include/gnu include/java include/javax
- cd ${PREFIX} ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type f -o -type l \
- >>${WRKDIR}/PLIST.lib ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type d \
- | ${SORT} -r | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib
+.for d in ${TARGLIB:S/^${PREFIX}\///} include/gcj include/gnu include/java include/javax
+ cd ${PREFIX} ; if [ -d $d ]; then \
+ ${FIND} $d -type f -o -type l >>${WRKDIR}/PLIST.lib ;\
+ ${FIND} $d -type d | ${SORT} -r \
+ | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib ;\
+ fi
.endfor
(${ECHO_CMD} "@unexec rmdir %D/lib/gcc/${CONFIGURE_TARGET} 2>&1 || true" ; ${ECHO_CMD} "@unexec rmdir %D/lib/gcc 2>&1 || true") >> ${WRKDIR}/PLIST.lib
${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
diff --git a/lang/gcc40/distinfo b/lang/gcc40/distinfo
index 35f2406..beb1d80 100644
--- a/lang/gcc40/distinfo
+++ b/lang/gcc40/distinfo
@@ -1,6 +1,6 @@
-MD5 (gcc-core-3.4-20040107.tar.bz2) = 2de4606dde0d9dfafb96ab271e028081
-MD5 (gcc-g++-3.4-20040107.tar.bz2) = 5210c6e084b0e1bd9f02d4b012d936f8
-MD5 (gcc-g77-3.4-20040107.tar.bz2) = c30706a558bc88ca16f2c45b1b3eb244
-MD5 (gcc-java-3.4-20040107.tar.bz2) = ece8ad9079c75347516cfb9159543833
-MD5 (gcc-objc-3.4-20040107.tar.bz2) = c9d9d241639a883cf214756f08198452
-MD5 (gcc-testsuite-3.4-20040107.tar.bz2) = cff08732e9a7833c4461990eb68034f7
+MD5 (gcc-core-3.4-20040114.tar.bz2) = 2742be0bc0d14d5eadee3a75664b37bc
+MD5 (gcc-g++-3.4-20040114.tar.bz2) = caa96c9ebfa7bdd120d7c03a9fb66bda
+MD5 (gcc-g77-3.4-20040114.tar.bz2) = 92a1a266ca11743daa5510cc561956e1
+MD5 (gcc-java-3.4-20040114.tar.bz2) = 1ebfd7502c9600d1838af5eff5766d86
+MD5 (gcc-objc-3.4-20040114.tar.bz2) = ae08a05a56a312776f959db343bc5319
+MD5 (gcc-testsuite-3.4-20040114.tar.bz2) = 7ce504cbee33ab818845fcd9e4949a71
diff --git a/lang/gcc40/files/patch-regrename.c b/lang/gcc40/files/patch-regrename.c
new file mode 100644
index 0000000..a687acd
--- /dev/null
+++ b/lang/gcc40/files/patch-regrename.c
@@ -0,0 +1,19 @@
+Index: gcc/regrename.c
+===================================================================
+RCS file: /cvs/gcc/gcc/gcc/regrename.c,v
+retrieving revision 1.72
+retrieving revision 1.73
+diff -u -3 -p -r1.72 -r1.73
+--- gcc/regrename.c 14 Jan 2004 16:25:09 -0000 1.72
++++ gcc/regrename.c 14 Jan 2004 17:55:20 -0000 1.73
+@@ -1345,8 +1345,8 @@ find_oldest_value_reg (enum reg_class cl
+ if (!TEST_HARD_REG_BIT (reg_class_contents[class], last))
+ return NULL_RTX;
+
+- if (new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i,
+- regno))
++ new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i, regno);
++ if (new)
+ {
+ ORIGINAL_REGNO (new) = ORIGINAL_REGNO (reg);
+ REG_ATTRS (new) = REG_ATTRS (reg);
diff --git a/lang/gcc40/pkg-plist b/lang/gcc40/pkg-plist
index 0119d6a..a25a199 100644
--- a/lang/gcc40/pkg-plist
+++ b/lang/gcc40/pkg-plist
@@ -1,14 +1,16 @@
@comment $FreeBSD$
+bin/c++34
bin/cpp34
bin/g++34
bin/g77-34
bin/gcc34
bin/gcov34
+bin/%%GNU_HOST%%-c++34
bin/%%GNU_HOST%%-gcc-%%GCC_VER%%
bin/%%GNU_HOST%%-gcc34
bin/%%GNU_HOST%%-g++34
-bin/%%GNU_HOST%%-gcj
-bin/%%GNU_HOST%%-gcjh
+bin/%%GNU_HOST%%-gcj34
+bin/%%GNU_HOST%%-gcjh34
bin/gccbug34
bin/gcj34
bin/gcjh34
@@ -20,7 +22,7 @@ bin/jar34
bin/grepjar34
bin/rmic34
bin/rmiregistry34
-bin/addr2name.awk
+bin/addr2name.awk34
include/ffi.h
include/jni.h
include/jvmpi.h
diff --git a/lang/gcc41/Makefile b/lang/gcc41/Makefile
index 943b30d..959695d 100644
--- a/lang/gcc41/Makefile
+++ b/lang/gcc41/Makefile
@@ -5,9 +5,7 @@
#
# $FreeBSD$
#
-
-SNAPDATE= 2004-01-07
-#CVS_DATE= ${SNAPDATE} 18:53:04 EDT
+SNAPDATE= 2004-01-14
PORTNAME= gcc
PORTVERSION= 3.4.0
@@ -42,6 +40,10 @@ NOMANCOMPRESS= yes # too hard to deal with differences on 5-cur and releng4
.include <bsd.port.pre.mk>
+.if ${ARCH} == sparc64
+BROKEN= "libgcj is not supported/packaging is broken on this platform"
+.endif
+
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
SRCDIR= ${WRKDIR}/gcc-${VERSIONSTRING}
@@ -52,11 +54,10 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_BISON= yes
CONFIGURE_ARGS= --disable-nls \
+ --with-system-zlib \
--with-libiconv-prefix=${LOCALBASE} \
- --with-gxx-include-dir=${TARGLIB}/include/c++/${GCC_REV}
-#CONFIGURE_ARGS+= --program-suffix=34
-# Java
-CONFIGURE_ARGS+= --with-system-zlib
+ --program-suffix=34 \
+ --with-gxx-include-dir=${TARGLIB}/include/c++/
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+= --enable-shared
@@ -128,28 +129,22 @@ check: build
cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check
post-install:
- @${RM} -f ${PREFIX}/bin/c++ ${PREFIX}/bin/${CONFIGURE_TARGET}-c++
-.for f in gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
- ${STRIP_CMD} ${PREFIX}/bin/${f}
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
+.for f in c++ gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
+ if [ -e ${PREFIX}/bin/${f}34 ]; then \
+ ${STRIP_CMD} ${PREFIX}/bin/${f}34; \
+ ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
|| ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}34.1 )
-.endfor
-.for f in g77
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}-34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
- || ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}-34.1 )
+ ${PREFIX}/man/man1/${f}34.1 ); \
+ fi
.endfor
- ${MV} -f ${PREFIX}/bin/gccbug ${PREFIX}/bin/gccbug34
- # These 3 libraries are moved from PREFIX/lib to avoid conflicts
- # with the stock compiler.
+ ${MV} -f ${PREFIX}/bin/g7734 ${PREFIX}/bin/g77-34
+ ${MV} -f ${PREFIX}/man/man1/g7734.1 ${PREFIX}/man/man1/g77-34.1
+ # These libraries are moved from PREFIX/lib to avoid conflicts with
+ # the stock compiler.
.for f in libstdc++ libsupc++ libg2c libfrtbegin libobjc ${EXTRA_SHLIB}
${MV} -f ${PREFIX}/lib/${f}.* ${TARGLIB}
.endfor
-${MV} -f ${PREFIX}/lib/ieee ${TARGLIB}
- # Java
-${MV} -f ${PREFIX}/lib/libgcj.* ${TARGLIB}
${RM} -f ${PREFIX}/lib/libiberty.a
${RM} -f ${TARGLIB}/*.la
@@ -160,12 +155,12 @@ post-install:
.endfor
# Handle target libraries and GCJ include files.
${RM} -f ${WRKDIR}/PLIST.lib
-.for inc in ${TARGLIB} include/gcj include/gnu include/java include/javax
- cd ${PREFIX} ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type f -o -type l \
- >>${WRKDIR}/PLIST.lib ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type d \
- | ${SORT} -r | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib
+.for d in ${TARGLIB:S/^${PREFIX}\///} include/gcj include/gnu include/java include/javax
+ cd ${PREFIX} ; if [ -d $d ]; then \
+ ${FIND} $d -type f -o -type l >>${WRKDIR}/PLIST.lib ;\
+ ${FIND} $d -type d | ${SORT} -r \
+ | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib ;\
+ fi
.endfor
(${ECHO_CMD} "@unexec rmdir %D/lib/gcc/${CONFIGURE_TARGET} 2>&1 || true" ; ${ECHO_CMD} "@unexec rmdir %D/lib/gcc 2>&1 || true") >> ${WRKDIR}/PLIST.lib
${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
diff --git a/lang/gcc41/distinfo b/lang/gcc41/distinfo
index 35f2406..beb1d80 100644
--- a/lang/gcc41/distinfo
+++ b/lang/gcc41/distinfo
@@ -1,6 +1,6 @@
-MD5 (gcc-core-3.4-20040107.tar.bz2) = 2de4606dde0d9dfafb96ab271e028081
-MD5 (gcc-g++-3.4-20040107.tar.bz2) = 5210c6e084b0e1bd9f02d4b012d936f8
-MD5 (gcc-g77-3.4-20040107.tar.bz2) = c30706a558bc88ca16f2c45b1b3eb244
-MD5 (gcc-java-3.4-20040107.tar.bz2) = ece8ad9079c75347516cfb9159543833
-MD5 (gcc-objc-3.4-20040107.tar.bz2) = c9d9d241639a883cf214756f08198452
-MD5 (gcc-testsuite-3.4-20040107.tar.bz2) = cff08732e9a7833c4461990eb68034f7
+MD5 (gcc-core-3.4-20040114.tar.bz2) = 2742be0bc0d14d5eadee3a75664b37bc
+MD5 (gcc-g++-3.4-20040114.tar.bz2) = caa96c9ebfa7bdd120d7c03a9fb66bda
+MD5 (gcc-g77-3.4-20040114.tar.bz2) = 92a1a266ca11743daa5510cc561956e1
+MD5 (gcc-java-3.4-20040114.tar.bz2) = 1ebfd7502c9600d1838af5eff5766d86
+MD5 (gcc-objc-3.4-20040114.tar.bz2) = ae08a05a56a312776f959db343bc5319
+MD5 (gcc-testsuite-3.4-20040114.tar.bz2) = 7ce504cbee33ab818845fcd9e4949a71
diff --git a/lang/gcc41/files/patch-regrename.c b/lang/gcc41/files/patch-regrename.c
new file mode 100644
index 0000000..a687acd
--- /dev/null
+++ b/lang/gcc41/files/patch-regrename.c
@@ -0,0 +1,19 @@
+Index: gcc/regrename.c
+===================================================================
+RCS file: /cvs/gcc/gcc/gcc/regrename.c,v
+retrieving revision 1.72
+retrieving revision 1.73
+diff -u -3 -p -r1.72 -r1.73
+--- gcc/regrename.c 14 Jan 2004 16:25:09 -0000 1.72
++++ gcc/regrename.c 14 Jan 2004 17:55:20 -0000 1.73
+@@ -1345,8 +1345,8 @@ find_oldest_value_reg (enum reg_class cl
+ if (!TEST_HARD_REG_BIT (reg_class_contents[class], last))
+ return NULL_RTX;
+
+- if (new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i,
+- regno))
++ new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i, regno);
++ if (new)
+ {
+ ORIGINAL_REGNO (new) = ORIGINAL_REGNO (reg);
+ REG_ATTRS (new) = REG_ATTRS (reg);
diff --git a/lang/gcc41/pkg-plist b/lang/gcc41/pkg-plist
index 0119d6a..a25a199 100644
--- a/lang/gcc41/pkg-plist
+++ b/lang/gcc41/pkg-plist
@@ -1,14 +1,16 @@
@comment $FreeBSD$
+bin/c++34
bin/cpp34
bin/g++34
bin/g77-34
bin/gcc34
bin/gcov34
+bin/%%GNU_HOST%%-c++34
bin/%%GNU_HOST%%-gcc-%%GCC_VER%%
bin/%%GNU_HOST%%-gcc34
bin/%%GNU_HOST%%-g++34
-bin/%%GNU_HOST%%-gcj
-bin/%%GNU_HOST%%-gcjh
+bin/%%GNU_HOST%%-gcj34
+bin/%%GNU_HOST%%-gcjh34
bin/gccbug34
bin/gcj34
bin/gcjh34
@@ -20,7 +22,7 @@ bin/jar34
bin/grepjar34
bin/rmic34
bin/rmiregistry34
-bin/addr2name.awk
+bin/addr2name.awk34
include/ffi.h
include/jni.h
include/jvmpi.h
diff --git a/lang/gcc42/Makefile b/lang/gcc42/Makefile
index 943b30d..959695d 100644
--- a/lang/gcc42/Makefile
+++ b/lang/gcc42/Makefile
@@ -5,9 +5,7 @@
#
# $FreeBSD$
#
-
-SNAPDATE= 2004-01-07
-#CVS_DATE= ${SNAPDATE} 18:53:04 EDT
+SNAPDATE= 2004-01-14
PORTNAME= gcc
PORTVERSION= 3.4.0
@@ -42,6 +40,10 @@ NOMANCOMPRESS= yes # too hard to deal with differences on 5-cur and releng4
.include <bsd.port.pre.mk>
+.if ${ARCH} == sparc64
+BROKEN= "libgcj is not supported/packaging is broken on this platform"
+.endif
+
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
SRCDIR= ${WRKDIR}/gcc-${VERSIONSTRING}
@@ -52,11 +54,10 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_BISON= yes
CONFIGURE_ARGS= --disable-nls \
+ --with-system-zlib \
--with-libiconv-prefix=${LOCALBASE} \
- --with-gxx-include-dir=${TARGLIB}/include/c++/${GCC_REV}
-#CONFIGURE_ARGS+= --program-suffix=34
-# Java
-CONFIGURE_ARGS+= --with-system-zlib
+ --program-suffix=34 \
+ --with-gxx-include-dir=${TARGLIB}/include/c++/
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+= --enable-shared
@@ -128,28 +129,22 @@ check: build
cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check
post-install:
- @${RM} -f ${PREFIX}/bin/c++ ${PREFIX}/bin/${CONFIGURE_TARGET}-c++
-.for f in gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
- ${STRIP_CMD} ${PREFIX}/bin/${f}
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
+.for f in c++ gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
+ if [ -e ${PREFIX}/bin/${f}34 ]; then \
+ ${STRIP_CMD} ${PREFIX}/bin/${f}34; \
+ ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
|| ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}34.1 )
-.endfor
-.for f in g77
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}-34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
- || ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}-34.1 )
+ ${PREFIX}/man/man1/${f}34.1 ); \
+ fi
.endfor
- ${MV} -f ${PREFIX}/bin/gccbug ${PREFIX}/bin/gccbug34
- # These 3 libraries are moved from PREFIX/lib to avoid conflicts
- # with the stock compiler.
+ ${MV} -f ${PREFIX}/bin/g7734 ${PREFIX}/bin/g77-34
+ ${MV} -f ${PREFIX}/man/man1/g7734.1 ${PREFIX}/man/man1/g77-34.1
+ # These libraries are moved from PREFIX/lib to avoid conflicts with
+ # the stock compiler.
.for f in libstdc++ libsupc++ libg2c libfrtbegin libobjc ${EXTRA_SHLIB}
${MV} -f ${PREFIX}/lib/${f}.* ${TARGLIB}
.endfor
-${MV} -f ${PREFIX}/lib/ieee ${TARGLIB}
- # Java
-${MV} -f ${PREFIX}/lib/libgcj.* ${TARGLIB}
${RM} -f ${PREFIX}/lib/libiberty.a
${RM} -f ${TARGLIB}/*.la
@@ -160,12 +155,12 @@ post-install:
.endfor
# Handle target libraries and GCJ include files.
${RM} -f ${WRKDIR}/PLIST.lib
-.for inc in ${TARGLIB} include/gcj include/gnu include/java include/javax
- cd ${PREFIX} ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type f -o -type l \
- >>${WRKDIR}/PLIST.lib ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type d \
- | ${SORT} -r | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib
+.for d in ${TARGLIB:S/^${PREFIX}\///} include/gcj include/gnu include/java include/javax
+ cd ${PREFIX} ; if [ -d $d ]; then \
+ ${FIND} $d -type f -o -type l >>${WRKDIR}/PLIST.lib ;\
+ ${FIND} $d -type d | ${SORT} -r \
+ | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib ;\
+ fi
.endfor
(${ECHO_CMD} "@unexec rmdir %D/lib/gcc/${CONFIGURE_TARGET} 2>&1 || true" ; ${ECHO_CMD} "@unexec rmdir %D/lib/gcc 2>&1 || true") >> ${WRKDIR}/PLIST.lib
${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
diff --git a/lang/gcc42/distinfo b/lang/gcc42/distinfo
index 35f2406..beb1d80 100644
--- a/lang/gcc42/distinfo
+++ b/lang/gcc42/distinfo
@@ -1,6 +1,6 @@
-MD5 (gcc-core-3.4-20040107.tar.bz2) = 2de4606dde0d9dfafb96ab271e028081
-MD5 (gcc-g++-3.4-20040107.tar.bz2) = 5210c6e084b0e1bd9f02d4b012d936f8
-MD5 (gcc-g77-3.4-20040107.tar.bz2) = c30706a558bc88ca16f2c45b1b3eb244
-MD5 (gcc-java-3.4-20040107.tar.bz2) = ece8ad9079c75347516cfb9159543833
-MD5 (gcc-objc-3.4-20040107.tar.bz2) = c9d9d241639a883cf214756f08198452
-MD5 (gcc-testsuite-3.4-20040107.tar.bz2) = cff08732e9a7833c4461990eb68034f7
+MD5 (gcc-core-3.4-20040114.tar.bz2) = 2742be0bc0d14d5eadee3a75664b37bc
+MD5 (gcc-g++-3.4-20040114.tar.bz2) = caa96c9ebfa7bdd120d7c03a9fb66bda
+MD5 (gcc-g77-3.4-20040114.tar.bz2) = 92a1a266ca11743daa5510cc561956e1
+MD5 (gcc-java-3.4-20040114.tar.bz2) = 1ebfd7502c9600d1838af5eff5766d86
+MD5 (gcc-objc-3.4-20040114.tar.bz2) = ae08a05a56a312776f959db343bc5319
+MD5 (gcc-testsuite-3.4-20040114.tar.bz2) = 7ce504cbee33ab818845fcd9e4949a71
diff --git a/lang/gcc42/files/patch-regrename.c b/lang/gcc42/files/patch-regrename.c
new file mode 100644
index 0000000..a687acd
--- /dev/null
+++ b/lang/gcc42/files/patch-regrename.c
@@ -0,0 +1,19 @@
+Index: gcc/regrename.c
+===================================================================
+RCS file: /cvs/gcc/gcc/gcc/regrename.c,v
+retrieving revision 1.72
+retrieving revision 1.73
+diff -u -3 -p -r1.72 -r1.73
+--- gcc/regrename.c 14 Jan 2004 16:25:09 -0000 1.72
++++ gcc/regrename.c 14 Jan 2004 17:55:20 -0000 1.73
+@@ -1345,8 +1345,8 @@ find_oldest_value_reg (enum reg_class cl
+ if (!TEST_HARD_REG_BIT (reg_class_contents[class], last))
+ return NULL_RTX;
+
+- if (new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i,
+- regno))
++ new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i, regno);
++ if (new)
+ {
+ ORIGINAL_REGNO (new) = ORIGINAL_REGNO (reg);
+ REG_ATTRS (new) = REG_ATTRS (reg);
diff --git a/lang/gcc42/pkg-plist b/lang/gcc42/pkg-plist
index 0119d6a..a25a199 100644
--- a/lang/gcc42/pkg-plist
+++ b/lang/gcc42/pkg-plist
@@ -1,14 +1,16 @@
@comment $FreeBSD$
+bin/c++34
bin/cpp34
bin/g++34
bin/g77-34
bin/gcc34
bin/gcov34
+bin/%%GNU_HOST%%-c++34
bin/%%GNU_HOST%%-gcc-%%GCC_VER%%
bin/%%GNU_HOST%%-gcc34
bin/%%GNU_HOST%%-g++34
-bin/%%GNU_HOST%%-gcj
-bin/%%GNU_HOST%%-gcjh
+bin/%%GNU_HOST%%-gcj34
+bin/%%GNU_HOST%%-gcjh34
bin/gccbug34
bin/gcj34
bin/gcjh34
@@ -20,7 +22,7 @@ bin/jar34
bin/grepjar34
bin/rmic34
bin/rmiregistry34
-bin/addr2name.awk
+bin/addr2name.awk34
include/ffi.h
include/jni.h
include/jvmpi.h
diff --git a/lang/gcc43/Makefile b/lang/gcc43/Makefile
index 943b30d..959695d 100644
--- a/lang/gcc43/Makefile
+++ b/lang/gcc43/Makefile
@@ -5,9 +5,7 @@
#
# $FreeBSD$
#
-
-SNAPDATE= 2004-01-07
-#CVS_DATE= ${SNAPDATE} 18:53:04 EDT
+SNAPDATE= 2004-01-14
PORTNAME= gcc
PORTVERSION= 3.4.0
@@ -42,6 +40,10 @@ NOMANCOMPRESS= yes # too hard to deal with differences on 5-cur and releng4
.include <bsd.port.pre.mk>
+.if ${ARCH} == sparc64
+BROKEN= "libgcj is not supported/packaging is broken on this platform"
+.endif
+
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
SRCDIR= ${WRKDIR}/gcc-${VERSIONSTRING}
@@ -52,11 +54,10 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_BISON= yes
CONFIGURE_ARGS= --disable-nls \
+ --with-system-zlib \
--with-libiconv-prefix=${LOCALBASE} \
- --with-gxx-include-dir=${TARGLIB}/include/c++/${GCC_REV}
-#CONFIGURE_ARGS+= --program-suffix=34
-# Java
-CONFIGURE_ARGS+= --with-system-zlib
+ --program-suffix=34 \
+ --with-gxx-include-dir=${TARGLIB}/include/c++/
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+= --enable-shared
@@ -128,28 +129,22 @@ check: build
cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check
post-install:
- @${RM} -f ${PREFIX}/bin/c++ ${PREFIX}/bin/${CONFIGURE_TARGET}-c++
-.for f in gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
- ${STRIP_CMD} ${PREFIX}/bin/${f}
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
+.for f in c++ gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
+ if [ -e ${PREFIX}/bin/${f}34 ]; then \
+ ${STRIP_CMD} ${PREFIX}/bin/${f}34; \
+ ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
|| ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}34.1 )
-.endfor
-.for f in g77
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}-34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
- || ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}-34.1 )
+ ${PREFIX}/man/man1/${f}34.1 ); \
+ fi
.endfor
- ${MV} -f ${PREFIX}/bin/gccbug ${PREFIX}/bin/gccbug34
- # These 3 libraries are moved from PREFIX/lib to avoid conflicts
- # with the stock compiler.
+ ${MV} -f ${PREFIX}/bin/g7734 ${PREFIX}/bin/g77-34
+ ${MV} -f ${PREFIX}/man/man1/g7734.1 ${PREFIX}/man/man1/g77-34.1
+ # These libraries are moved from PREFIX/lib to avoid conflicts with
+ # the stock compiler.
.for f in libstdc++ libsupc++ libg2c libfrtbegin libobjc ${EXTRA_SHLIB}
${MV} -f ${PREFIX}/lib/${f}.* ${TARGLIB}
.endfor
-${MV} -f ${PREFIX}/lib/ieee ${TARGLIB}
- # Java
-${MV} -f ${PREFIX}/lib/libgcj.* ${TARGLIB}
${RM} -f ${PREFIX}/lib/libiberty.a
${RM} -f ${TARGLIB}/*.la
@@ -160,12 +155,12 @@ post-install:
.endfor
# Handle target libraries and GCJ include files.
${RM} -f ${WRKDIR}/PLIST.lib
-.for inc in ${TARGLIB} include/gcj include/gnu include/java include/javax
- cd ${PREFIX} ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type f -o -type l \
- >>${WRKDIR}/PLIST.lib ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type d \
- | ${SORT} -r | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib
+.for d in ${TARGLIB:S/^${PREFIX}\///} include/gcj include/gnu include/java include/javax
+ cd ${PREFIX} ; if [ -d $d ]; then \
+ ${FIND} $d -type f -o -type l >>${WRKDIR}/PLIST.lib ;\
+ ${FIND} $d -type d | ${SORT} -r \
+ | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib ;\
+ fi
.endfor
(${ECHO_CMD} "@unexec rmdir %D/lib/gcc/${CONFIGURE_TARGET} 2>&1 || true" ; ${ECHO_CMD} "@unexec rmdir %D/lib/gcc 2>&1 || true") >> ${WRKDIR}/PLIST.lib
${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
diff --git a/lang/gcc43/distinfo b/lang/gcc43/distinfo
index 35f2406..beb1d80 100644
--- a/lang/gcc43/distinfo
+++ b/lang/gcc43/distinfo
@@ -1,6 +1,6 @@
-MD5 (gcc-core-3.4-20040107.tar.bz2) = 2de4606dde0d9dfafb96ab271e028081
-MD5 (gcc-g++-3.4-20040107.tar.bz2) = 5210c6e084b0e1bd9f02d4b012d936f8
-MD5 (gcc-g77-3.4-20040107.tar.bz2) = c30706a558bc88ca16f2c45b1b3eb244
-MD5 (gcc-java-3.4-20040107.tar.bz2) = ece8ad9079c75347516cfb9159543833
-MD5 (gcc-objc-3.4-20040107.tar.bz2) = c9d9d241639a883cf214756f08198452
-MD5 (gcc-testsuite-3.4-20040107.tar.bz2) = cff08732e9a7833c4461990eb68034f7
+MD5 (gcc-core-3.4-20040114.tar.bz2) = 2742be0bc0d14d5eadee3a75664b37bc
+MD5 (gcc-g++-3.4-20040114.tar.bz2) = caa96c9ebfa7bdd120d7c03a9fb66bda
+MD5 (gcc-g77-3.4-20040114.tar.bz2) = 92a1a266ca11743daa5510cc561956e1
+MD5 (gcc-java-3.4-20040114.tar.bz2) = 1ebfd7502c9600d1838af5eff5766d86
+MD5 (gcc-objc-3.4-20040114.tar.bz2) = ae08a05a56a312776f959db343bc5319
+MD5 (gcc-testsuite-3.4-20040114.tar.bz2) = 7ce504cbee33ab818845fcd9e4949a71
diff --git a/lang/gcc43/files/patch-regrename.c b/lang/gcc43/files/patch-regrename.c
new file mode 100644
index 0000000..a687acd
--- /dev/null
+++ b/lang/gcc43/files/patch-regrename.c
@@ -0,0 +1,19 @@
+Index: gcc/regrename.c
+===================================================================
+RCS file: /cvs/gcc/gcc/gcc/regrename.c,v
+retrieving revision 1.72
+retrieving revision 1.73
+diff -u -3 -p -r1.72 -r1.73
+--- gcc/regrename.c 14 Jan 2004 16:25:09 -0000 1.72
++++ gcc/regrename.c 14 Jan 2004 17:55:20 -0000 1.73
+@@ -1345,8 +1345,8 @@ find_oldest_value_reg (enum reg_class cl
+ if (!TEST_HARD_REG_BIT (reg_class_contents[class], last))
+ return NULL_RTX;
+
+- if (new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i,
+- regno))
++ new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i, regno);
++ if (new)
+ {
+ ORIGINAL_REGNO (new) = ORIGINAL_REGNO (reg);
+ REG_ATTRS (new) = REG_ATTRS (reg);
diff --git a/lang/gcc43/pkg-plist b/lang/gcc43/pkg-plist
index 0119d6a..a25a199 100644
--- a/lang/gcc43/pkg-plist
+++ b/lang/gcc43/pkg-plist
@@ -1,14 +1,16 @@
@comment $FreeBSD$
+bin/c++34
bin/cpp34
bin/g++34
bin/g77-34
bin/gcc34
bin/gcov34
+bin/%%GNU_HOST%%-c++34
bin/%%GNU_HOST%%-gcc-%%GCC_VER%%
bin/%%GNU_HOST%%-gcc34
bin/%%GNU_HOST%%-g++34
-bin/%%GNU_HOST%%-gcj
-bin/%%GNU_HOST%%-gcjh
+bin/%%GNU_HOST%%-gcj34
+bin/%%GNU_HOST%%-gcjh34
bin/gccbug34
bin/gcj34
bin/gcjh34
@@ -20,7 +22,7 @@ bin/jar34
bin/grepjar34
bin/rmic34
bin/rmiregistry34
-bin/addr2name.awk
+bin/addr2name.awk34
include/ffi.h
include/jni.h
include/jvmpi.h
diff --git a/lang/gcc44/Makefile b/lang/gcc44/Makefile
index 943b30d..959695d 100644
--- a/lang/gcc44/Makefile
+++ b/lang/gcc44/Makefile
@@ -5,9 +5,7 @@
#
# $FreeBSD$
#
-
-SNAPDATE= 2004-01-07
-#CVS_DATE= ${SNAPDATE} 18:53:04 EDT
+SNAPDATE= 2004-01-14
PORTNAME= gcc
PORTVERSION= 3.4.0
@@ -42,6 +40,10 @@ NOMANCOMPRESS= yes # too hard to deal with differences on 5-cur and releng4
.include <bsd.port.pre.mk>
+.if ${ARCH} == sparc64
+BROKEN= "libgcj is not supported/packaging is broken on this platform"
+.endif
+
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
SRCDIR= ${WRKDIR}/gcc-${VERSIONSTRING}
@@ -52,11 +54,10 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_BISON= yes
CONFIGURE_ARGS= --disable-nls \
+ --with-system-zlib \
--with-libiconv-prefix=${LOCALBASE} \
- --with-gxx-include-dir=${TARGLIB}/include/c++/${GCC_REV}
-#CONFIGURE_ARGS+= --program-suffix=34
-# Java
-CONFIGURE_ARGS+= --with-system-zlib
+ --program-suffix=34 \
+ --with-gxx-include-dir=${TARGLIB}/include/c++/
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+= --enable-shared
@@ -128,28 +129,22 @@ check: build
cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check
post-install:
- @${RM} -f ${PREFIX}/bin/c++ ${PREFIX}/bin/${CONFIGURE_TARGET}-c++
-.for f in gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
- ${STRIP_CMD} ${PREFIX}/bin/${f}
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
+.for f in c++ gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
+ if [ -e ${PREFIX}/bin/${f}34 ]; then \
+ ${STRIP_CMD} ${PREFIX}/bin/${f}34; \
+ ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
|| ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}34.1 )
-.endfor
-.for f in g77
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}-34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
- || ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}-34.1 )
+ ${PREFIX}/man/man1/${f}34.1 ); \
+ fi
.endfor
- ${MV} -f ${PREFIX}/bin/gccbug ${PREFIX}/bin/gccbug34
- # These 3 libraries are moved from PREFIX/lib to avoid conflicts
- # with the stock compiler.
+ ${MV} -f ${PREFIX}/bin/g7734 ${PREFIX}/bin/g77-34
+ ${MV} -f ${PREFIX}/man/man1/g7734.1 ${PREFIX}/man/man1/g77-34.1
+ # These libraries are moved from PREFIX/lib to avoid conflicts with
+ # the stock compiler.
.for f in libstdc++ libsupc++ libg2c libfrtbegin libobjc ${EXTRA_SHLIB}
${MV} -f ${PREFIX}/lib/${f}.* ${TARGLIB}
.endfor
-${MV} -f ${PREFIX}/lib/ieee ${TARGLIB}
- # Java
-${MV} -f ${PREFIX}/lib/libgcj.* ${TARGLIB}
${RM} -f ${PREFIX}/lib/libiberty.a
${RM} -f ${TARGLIB}/*.la
@@ -160,12 +155,12 @@ post-install:
.endfor
# Handle target libraries and GCJ include files.
${RM} -f ${WRKDIR}/PLIST.lib
-.for inc in ${TARGLIB} include/gcj include/gnu include/java include/javax
- cd ${PREFIX} ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type f -o -type l \
- >>${WRKDIR}/PLIST.lib ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type d \
- | ${SORT} -r | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib
+.for d in ${TARGLIB:S/^${PREFIX}\///} include/gcj include/gnu include/java include/javax
+ cd ${PREFIX} ; if [ -d $d ]; then \
+ ${FIND} $d -type f -o -type l >>${WRKDIR}/PLIST.lib ;\
+ ${FIND} $d -type d | ${SORT} -r \
+ | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib ;\
+ fi
.endfor
(${ECHO_CMD} "@unexec rmdir %D/lib/gcc/${CONFIGURE_TARGET} 2>&1 || true" ; ${ECHO_CMD} "@unexec rmdir %D/lib/gcc 2>&1 || true") >> ${WRKDIR}/PLIST.lib
${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
diff --git a/lang/gcc44/distinfo b/lang/gcc44/distinfo
index 35f2406..beb1d80 100644
--- a/lang/gcc44/distinfo
+++ b/lang/gcc44/distinfo
@@ -1,6 +1,6 @@
-MD5 (gcc-core-3.4-20040107.tar.bz2) = 2de4606dde0d9dfafb96ab271e028081
-MD5 (gcc-g++-3.4-20040107.tar.bz2) = 5210c6e084b0e1bd9f02d4b012d936f8
-MD5 (gcc-g77-3.4-20040107.tar.bz2) = c30706a558bc88ca16f2c45b1b3eb244
-MD5 (gcc-java-3.4-20040107.tar.bz2) = ece8ad9079c75347516cfb9159543833
-MD5 (gcc-objc-3.4-20040107.tar.bz2) = c9d9d241639a883cf214756f08198452
-MD5 (gcc-testsuite-3.4-20040107.tar.bz2) = cff08732e9a7833c4461990eb68034f7
+MD5 (gcc-core-3.4-20040114.tar.bz2) = 2742be0bc0d14d5eadee3a75664b37bc
+MD5 (gcc-g++-3.4-20040114.tar.bz2) = caa96c9ebfa7bdd120d7c03a9fb66bda
+MD5 (gcc-g77-3.4-20040114.tar.bz2) = 92a1a266ca11743daa5510cc561956e1
+MD5 (gcc-java-3.4-20040114.tar.bz2) = 1ebfd7502c9600d1838af5eff5766d86
+MD5 (gcc-objc-3.4-20040114.tar.bz2) = ae08a05a56a312776f959db343bc5319
+MD5 (gcc-testsuite-3.4-20040114.tar.bz2) = 7ce504cbee33ab818845fcd9e4949a71
diff --git a/lang/gcc44/files/patch-regrename.c b/lang/gcc44/files/patch-regrename.c
new file mode 100644
index 0000000..a687acd
--- /dev/null
+++ b/lang/gcc44/files/patch-regrename.c
@@ -0,0 +1,19 @@
+Index: gcc/regrename.c
+===================================================================
+RCS file: /cvs/gcc/gcc/gcc/regrename.c,v
+retrieving revision 1.72
+retrieving revision 1.73
+diff -u -3 -p -r1.72 -r1.73
+--- gcc/regrename.c 14 Jan 2004 16:25:09 -0000 1.72
++++ gcc/regrename.c 14 Jan 2004 17:55:20 -0000 1.73
+@@ -1345,8 +1345,8 @@ find_oldest_value_reg (enum reg_class cl
+ if (!TEST_HARD_REG_BIT (reg_class_contents[class], last))
+ return NULL_RTX;
+
+- if (new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i,
+- regno))
++ new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i, regno);
++ if (new)
+ {
+ ORIGINAL_REGNO (new) = ORIGINAL_REGNO (reg);
+ REG_ATTRS (new) = REG_ATTRS (reg);
diff --git a/lang/gcc44/pkg-plist b/lang/gcc44/pkg-plist
index 0119d6a..a25a199 100644
--- a/lang/gcc44/pkg-plist
+++ b/lang/gcc44/pkg-plist
@@ -1,14 +1,16 @@
@comment $FreeBSD$
+bin/c++34
bin/cpp34
bin/g++34
bin/g77-34
bin/gcc34
bin/gcov34
+bin/%%GNU_HOST%%-c++34
bin/%%GNU_HOST%%-gcc-%%GCC_VER%%
bin/%%GNU_HOST%%-gcc34
bin/%%GNU_HOST%%-g++34
-bin/%%GNU_HOST%%-gcj
-bin/%%GNU_HOST%%-gcjh
+bin/%%GNU_HOST%%-gcj34
+bin/%%GNU_HOST%%-gcjh34
bin/gccbug34
bin/gcj34
bin/gcjh34
@@ -20,7 +22,7 @@ bin/jar34
bin/grepjar34
bin/rmic34
bin/rmiregistry34
-bin/addr2name.awk
+bin/addr2name.awk34
include/ffi.h
include/jni.h
include/jvmpi.h
diff --git a/lang/gcc45/Makefile b/lang/gcc45/Makefile
index 943b30d..959695d 100644
--- a/lang/gcc45/Makefile
+++ b/lang/gcc45/Makefile
@@ -5,9 +5,7 @@
#
# $FreeBSD$
#
-
-SNAPDATE= 2004-01-07
-#CVS_DATE= ${SNAPDATE} 18:53:04 EDT
+SNAPDATE= 2004-01-14
PORTNAME= gcc
PORTVERSION= 3.4.0
@@ -42,6 +40,10 @@ NOMANCOMPRESS= yes # too hard to deal with differences on 5-cur and releng4
.include <bsd.port.pre.mk>
+.if ${ARCH} == sparc64
+BROKEN= "libgcj is not supported/packaging is broken on this platform"
+.endif
+
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
SRCDIR= ${WRKDIR}/gcc-${VERSIONSTRING}
@@ -52,11 +54,10 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_BISON= yes
CONFIGURE_ARGS= --disable-nls \
+ --with-system-zlib \
--with-libiconv-prefix=${LOCALBASE} \
- --with-gxx-include-dir=${TARGLIB}/include/c++/${GCC_REV}
-#CONFIGURE_ARGS+= --program-suffix=34
-# Java
-CONFIGURE_ARGS+= --with-system-zlib
+ --program-suffix=34 \
+ --with-gxx-include-dir=${TARGLIB}/include/c++/
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+= --enable-shared
@@ -128,28 +129,22 @@ check: build
cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check
post-install:
- @${RM} -f ${PREFIX}/bin/c++ ${PREFIX}/bin/${CONFIGURE_TARGET}-c++
-.for f in gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
- ${STRIP_CMD} ${PREFIX}/bin/${f}
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
+.for f in c++ gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
+ if [ -e ${PREFIX}/bin/${f}34 ]; then \
+ ${STRIP_CMD} ${PREFIX}/bin/${f}34; \
+ ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
|| ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}34.1 )
-.endfor
-.for f in g77
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}-34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
- || ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}-34.1 )
+ ${PREFIX}/man/man1/${f}34.1 ); \
+ fi
.endfor
- ${MV} -f ${PREFIX}/bin/gccbug ${PREFIX}/bin/gccbug34
- # These 3 libraries are moved from PREFIX/lib to avoid conflicts
- # with the stock compiler.
+ ${MV} -f ${PREFIX}/bin/g7734 ${PREFIX}/bin/g77-34
+ ${MV} -f ${PREFIX}/man/man1/g7734.1 ${PREFIX}/man/man1/g77-34.1
+ # These libraries are moved from PREFIX/lib to avoid conflicts with
+ # the stock compiler.
.for f in libstdc++ libsupc++ libg2c libfrtbegin libobjc ${EXTRA_SHLIB}
${MV} -f ${PREFIX}/lib/${f}.* ${TARGLIB}
.endfor
-${MV} -f ${PREFIX}/lib/ieee ${TARGLIB}
- # Java
-${MV} -f ${PREFIX}/lib/libgcj.* ${TARGLIB}
${RM} -f ${PREFIX}/lib/libiberty.a
${RM} -f ${TARGLIB}/*.la
@@ -160,12 +155,12 @@ post-install:
.endfor
# Handle target libraries and GCJ include files.
${RM} -f ${WRKDIR}/PLIST.lib
-.for inc in ${TARGLIB} include/gcj include/gnu include/java include/javax
- cd ${PREFIX} ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type f -o -type l \
- >>${WRKDIR}/PLIST.lib ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type d \
- | ${SORT} -r | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib
+.for d in ${TARGLIB:S/^${PREFIX}\///} include/gcj include/gnu include/java include/javax
+ cd ${PREFIX} ; if [ -d $d ]; then \
+ ${FIND} $d -type f -o -type l >>${WRKDIR}/PLIST.lib ;\
+ ${FIND} $d -type d | ${SORT} -r \
+ | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib ;\
+ fi
.endfor
(${ECHO_CMD} "@unexec rmdir %D/lib/gcc/${CONFIGURE_TARGET} 2>&1 || true" ; ${ECHO_CMD} "@unexec rmdir %D/lib/gcc 2>&1 || true") >> ${WRKDIR}/PLIST.lib
${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
diff --git a/lang/gcc45/distinfo b/lang/gcc45/distinfo
index 35f2406..beb1d80 100644
--- a/lang/gcc45/distinfo
+++ b/lang/gcc45/distinfo
@@ -1,6 +1,6 @@
-MD5 (gcc-core-3.4-20040107.tar.bz2) = 2de4606dde0d9dfafb96ab271e028081
-MD5 (gcc-g++-3.4-20040107.tar.bz2) = 5210c6e084b0e1bd9f02d4b012d936f8
-MD5 (gcc-g77-3.4-20040107.tar.bz2) = c30706a558bc88ca16f2c45b1b3eb244
-MD5 (gcc-java-3.4-20040107.tar.bz2) = ece8ad9079c75347516cfb9159543833
-MD5 (gcc-objc-3.4-20040107.tar.bz2) = c9d9d241639a883cf214756f08198452
-MD5 (gcc-testsuite-3.4-20040107.tar.bz2) = cff08732e9a7833c4461990eb68034f7
+MD5 (gcc-core-3.4-20040114.tar.bz2) = 2742be0bc0d14d5eadee3a75664b37bc
+MD5 (gcc-g++-3.4-20040114.tar.bz2) = caa96c9ebfa7bdd120d7c03a9fb66bda
+MD5 (gcc-g77-3.4-20040114.tar.bz2) = 92a1a266ca11743daa5510cc561956e1
+MD5 (gcc-java-3.4-20040114.tar.bz2) = 1ebfd7502c9600d1838af5eff5766d86
+MD5 (gcc-objc-3.4-20040114.tar.bz2) = ae08a05a56a312776f959db343bc5319
+MD5 (gcc-testsuite-3.4-20040114.tar.bz2) = 7ce504cbee33ab818845fcd9e4949a71
diff --git a/lang/gcc45/files/patch-regrename.c b/lang/gcc45/files/patch-regrename.c
new file mode 100644
index 0000000..a687acd
--- /dev/null
+++ b/lang/gcc45/files/patch-regrename.c
@@ -0,0 +1,19 @@
+Index: gcc/regrename.c
+===================================================================
+RCS file: /cvs/gcc/gcc/gcc/regrename.c,v
+retrieving revision 1.72
+retrieving revision 1.73
+diff -u -3 -p -r1.72 -r1.73
+--- gcc/regrename.c 14 Jan 2004 16:25:09 -0000 1.72
++++ gcc/regrename.c 14 Jan 2004 17:55:20 -0000 1.73
+@@ -1345,8 +1345,8 @@ find_oldest_value_reg (enum reg_class cl
+ if (!TEST_HARD_REG_BIT (reg_class_contents[class], last))
+ return NULL_RTX;
+
+- if (new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i,
+- regno))
++ new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i, regno);
++ if (new)
+ {
+ ORIGINAL_REGNO (new) = ORIGINAL_REGNO (reg);
+ REG_ATTRS (new) = REG_ATTRS (reg);
diff --git a/lang/gcc45/pkg-plist b/lang/gcc45/pkg-plist
index 0119d6a..a25a199 100644
--- a/lang/gcc45/pkg-plist
+++ b/lang/gcc45/pkg-plist
@@ -1,14 +1,16 @@
@comment $FreeBSD$
+bin/c++34
bin/cpp34
bin/g++34
bin/g77-34
bin/gcc34
bin/gcov34
+bin/%%GNU_HOST%%-c++34
bin/%%GNU_HOST%%-gcc-%%GCC_VER%%
bin/%%GNU_HOST%%-gcc34
bin/%%GNU_HOST%%-g++34
-bin/%%GNU_HOST%%-gcj
-bin/%%GNU_HOST%%-gcjh
+bin/%%GNU_HOST%%-gcj34
+bin/%%GNU_HOST%%-gcjh34
bin/gccbug34
bin/gcj34
bin/gcjh34
@@ -20,7 +22,7 @@ bin/jar34
bin/grepjar34
bin/rmic34
bin/rmiregistry34
-bin/addr2name.awk
+bin/addr2name.awk34
include/ffi.h
include/jni.h
include/jvmpi.h
diff --git a/lang/gcc46/Makefile b/lang/gcc46/Makefile
index 943b30d..959695d 100644
--- a/lang/gcc46/Makefile
+++ b/lang/gcc46/Makefile
@@ -5,9 +5,7 @@
#
# $FreeBSD$
#
-
-SNAPDATE= 2004-01-07
-#CVS_DATE= ${SNAPDATE} 18:53:04 EDT
+SNAPDATE= 2004-01-14
PORTNAME= gcc
PORTVERSION= 3.4.0
@@ -42,6 +40,10 @@ NOMANCOMPRESS= yes # too hard to deal with differences on 5-cur and releng4
.include <bsd.port.pre.mk>
+.if ${ARCH} == sparc64
+BROKEN= "libgcj is not supported/packaging is broken on this platform"
+.endif
+
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
SRCDIR= ${WRKDIR}/gcc-${VERSIONSTRING}
@@ -52,11 +54,10 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_BISON= yes
CONFIGURE_ARGS= --disable-nls \
+ --with-system-zlib \
--with-libiconv-prefix=${LOCALBASE} \
- --with-gxx-include-dir=${TARGLIB}/include/c++/${GCC_REV}
-#CONFIGURE_ARGS+= --program-suffix=34
-# Java
-CONFIGURE_ARGS+= --with-system-zlib
+ --program-suffix=34 \
+ --with-gxx-include-dir=${TARGLIB}/include/c++/
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+= --enable-shared
@@ -128,28 +129,22 @@ check: build
cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check
post-install:
- @${RM} -f ${PREFIX}/bin/c++ ${PREFIX}/bin/${CONFIGURE_TARGET}-c++
-.for f in gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
- ${STRIP_CMD} ${PREFIX}/bin/${f}
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
+.for f in c++ gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
+ if [ -e ${PREFIX}/bin/${f}34 ]; then \
+ ${STRIP_CMD} ${PREFIX}/bin/${f}34; \
+ ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
|| ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}34.1 )
-.endfor
-.for f in g77
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}-34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
- || ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}-34.1 )
+ ${PREFIX}/man/man1/${f}34.1 ); \
+ fi
.endfor
- ${MV} -f ${PREFIX}/bin/gccbug ${PREFIX}/bin/gccbug34
- # These 3 libraries are moved from PREFIX/lib to avoid conflicts
- # with the stock compiler.
+ ${MV} -f ${PREFIX}/bin/g7734 ${PREFIX}/bin/g77-34
+ ${MV} -f ${PREFIX}/man/man1/g7734.1 ${PREFIX}/man/man1/g77-34.1
+ # These libraries are moved from PREFIX/lib to avoid conflicts with
+ # the stock compiler.
.for f in libstdc++ libsupc++ libg2c libfrtbegin libobjc ${EXTRA_SHLIB}
${MV} -f ${PREFIX}/lib/${f}.* ${TARGLIB}
.endfor
-${MV} -f ${PREFIX}/lib/ieee ${TARGLIB}
- # Java
-${MV} -f ${PREFIX}/lib/libgcj.* ${TARGLIB}
${RM} -f ${PREFIX}/lib/libiberty.a
${RM} -f ${TARGLIB}/*.la
@@ -160,12 +155,12 @@ post-install:
.endfor
# Handle target libraries and GCJ include files.
${RM} -f ${WRKDIR}/PLIST.lib
-.for inc in ${TARGLIB} include/gcj include/gnu include/java include/javax
- cd ${PREFIX} ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type f -o -type l \
- >>${WRKDIR}/PLIST.lib ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type d \
- | ${SORT} -r | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib
+.for d in ${TARGLIB:S/^${PREFIX}\///} include/gcj include/gnu include/java include/javax
+ cd ${PREFIX} ; if [ -d $d ]; then \
+ ${FIND} $d -type f -o -type l >>${WRKDIR}/PLIST.lib ;\
+ ${FIND} $d -type d | ${SORT} -r \
+ | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib ;\
+ fi
.endfor
(${ECHO_CMD} "@unexec rmdir %D/lib/gcc/${CONFIGURE_TARGET} 2>&1 || true" ; ${ECHO_CMD} "@unexec rmdir %D/lib/gcc 2>&1 || true") >> ${WRKDIR}/PLIST.lib
${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
diff --git a/lang/gcc46/distinfo b/lang/gcc46/distinfo
index 35f2406..beb1d80 100644
--- a/lang/gcc46/distinfo
+++ b/lang/gcc46/distinfo
@@ -1,6 +1,6 @@
-MD5 (gcc-core-3.4-20040107.tar.bz2) = 2de4606dde0d9dfafb96ab271e028081
-MD5 (gcc-g++-3.4-20040107.tar.bz2) = 5210c6e084b0e1bd9f02d4b012d936f8
-MD5 (gcc-g77-3.4-20040107.tar.bz2) = c30706a558bc88ca16f2c45b1b3eb244
-MD5 (gcc-java-3.4-20040107.tar.bz2) = ece8ad9079c75347516cfb9159543833
-MD5 (gcc-objc-3.4-20040107.tar.bz2) = c9d9d241639a883cf214756f08198452
-MD5 (gcc-testsuite-3.4-20040107.tar.bz2) = cff08732e9a7833c4461990eb68034f7
+MD5 (gcc-core-3.4-20040114.tar.bz2) = 2742be0bc0d14d5eadee3a75664b37bc
+MD5 (gcc-g++-3.4-20040114.tar.bz2) = caa96c9ebfa7bdd120d7c03a9fb66bda
+MD5 (gcc-g77-3.4-20040114.tar.bz2) = 92a1a266ca11743daa5510cc561956e1
+MD5 (gcc-java-3.4-20040114.tar.bz2) = 1ebfd7502c9600d1838af5eff5766d86
+MD5 (gcc-objc-3.4-20040114.tar.bz2) = ae08a05a56a312776f959db343bc5319
+MD5 (gcc-testsuite-3.4-20040114.tar.bz2) = 7ce504cbee33ab818845fcd9e4949a71
diff --git a/lang/gcc46/files/patch-regrename.c b/lang/gcc46/files/patch-regrename.c
new file mode 100644
index 0000000..a687acd
--- /dev/null
+++ b/lang/gcc46/files/patch-regrename.c
@@ -0,0 +1,19 @@
+Index: gcc/regrename.c
+===================================================================
+RCS file: /cvs/gcc/gcc/gcc/regrename.c,v
+retrieving revision 1.72
+retrieving revision 1.73
+diff -u -3 -p -r1.72 -r1.73
+--- gcc/regrename.c 14 Jan 2004 16:25:09 -0000 1.72
++++ gcc/regrename.c 14 Jan 2004 17:55:20 -0000 1.73
+@@ -1345,8 +1345,8 @@ find_oldest_value_reg (enum reg_class cl
+ if (!TEST_HARD_REG_BIT (reg_class_contents[class], last))
+ return NULL_RTX;
+
+- if (new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i,
+- regno))
++ new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i, regno);
++ if (new)
+ {
+ ORIGINAL_REGNO (new) = ORIGINAL_REGNO (reg);
+ REG_ATTRS (new) = REG_ATTRS (reg);
diff --git a/lang/gcc46/pkg-plist b/lang/gcc46/pkg-plist
index 0119d6a..a25a199 100644
--- a/lang/gcc46/pkg-plist
+++ b/lang/gcc46/pkg-plist
@@ -1,14 +1,16 @@
@comment $FreeBSD$
+bin/c++34
bin/cpp34
bin/g++34
bin/g77-34
bin/gcc34
bin/gcov34
+bin/%%GNU_HOST%%-c++34
bin/%%GNU_HOST%%-gcc-%%GCC_VER%%
bin/%%GNU_HOST%%-gcc34
bin/%%GNU_HOST%%-g++34
-bin/%%GNU_HOST%%-gcj
-bin/%%GNU_HOST%%-gcjh
+bin/%%GNU_HOST%%-gcj34
+bin/%%GNU_HOST%%-gcjh34
bin/gccbug34
bin/gcj34
bin/gcjh34
@@ -20,7 +22,7 @@ bin/jar34
bin/grepjar34
bin/rmic34
bin/rmiregistry34
-bin/addr2name.awk
+bin/addr2name.awk34
include/ffi.h
include/jni.h
include/jvmpi.h
diff --git a/lang/gcc47/Makefile b/lang/gcc47/Makefile
index 943b30d..959695d 100644
--- a/lang/gcc47/Makefile
+++ b/lang/gcc47/Makefile
@@ -5,9 +5,7 @@
#
# $FreeBSD$
#
-
-SNAPDATE= 2004-01-07
-#CVS_DATE= ${SNAPDATE} 18:53:04 EDT
+SNAPDATE= 2004-01-14
PORTNAME= gcc
PORTVERSION= 3.4.0
@@ -42,6 +40,10 @@ NOMANCOMPRESS= yes # too hard to deal with differences on 5-cur and releng4
.include <bsd.port.pre.mk>
+.if ${ARCH} == sparc64
+BROKEN= "libgcj is not supported/packaging is broken on this platform"
+.endif
+
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
SRCDIR= ${WRKDIR}/gcc-${VERSIONSTRING}
@@ -52,11 +54,10 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_BISON= yes
CONFIGURE_ARGS= --disable-nls \
+ --with-system-zlib \
--with-libiconv-prefix=${LOCALBASE} \
- --with-gxx-include-dir=${TARGLIB}/include/c++/${GCC_REV}
-#CONFIGURE_ARGS+= --program-suffix=34
-# Java
-CONFIGURE_ARGS+= --with-system-zlib
+ --program-suffix=34 \
+ --with-gxx-include-dir=${TARGLIB}/include/c++/
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+= --enable-shared
@@ -128,28 +129,22 @@ check: build
cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check
post-install:
- @${RM} -f ${PREFIX}/bin/c++ ${PREFIX}/bin/${CONFIGURE_TARGET}-c++
-.for f in gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
- ${STRIP_CMD} ${PREFIX}/bin/${f}
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
+.for f in c++ gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
+ if [ -e ${PREFIX}/bin/${f}34 ]; then \
+ ${STRIP_CMD} ${PREFIX}/bin/${f}34; \
+ ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
|| ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}34.1 )
-.endfor
-.for f in g77
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}-34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
- || ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}-34.1 )
+ ${PREFIX}/man/man1/${f}34.1 ); \
+ fi
.endfor
- ${MV} -f ${PREFIX}/bin/gccbug ${PREFIX}/bin/gccbug34
- # These 3 libraries are moved from PREFIX/lib to avoid conflicts
- # with the stock compiler.
+ ${MV} -f ${PREFIX}/bin/g7734 ${PREFIX}/bin/g77-34
+ ${MV} -f ${PREFIX}/man/man1/g7734.1 ${PREFIX}/man/man1/g77-34.1
+ # These libraries are moved from PREFIX/lib to avoid conflicts with
+ # the stock compiler.
.for f in libstdc++ libsupc++ libg2c libfrtbegin libobjc ${EXTRA_SHLIB}
${MV} -f ${PREFIX}/lib/${f}.* ${TARGLIB}
.endfor
-${MV} -f ${PREFIX}/lib/ieee ${TARGLIB}
- # Java
-${MV} -f ${PREFIX}/lib/libgcj.* ${TARGLIB}
${RM} -f ${PREFIX}/lib/libiberty.a
${RM} -f ${TARGLIB}/*.la
@@ -160,12 +155,12 @@ post-install:
.endfor
# Handle target libraries and GCJ include files.
${RM} -f ${WRKDIR}/PLIST.lib
-.for inc in ${TARGLIB} include/gcj include/gnu include/java include/javax
- cd ${PREFIX} ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type f -o -type l \
- >>${WRKDIR}/PLIST.lib ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type d \
- | ${SORT} -r | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib
+.for d in ${TARGLIB:S/^${PREFIX}\///} include/gcj include/gnu include/java include/javax
+ cd ${PREFIX} ; if [ -d $d ]; then \
+ ${FIND} $d -type f -o -type l >>${WRKDIR}/PLIST.lib ;\
+ ${FIND} $d -type d | ${SORT} -r \
+ | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib ;\
+ fi
.endfor
(${ECHO_CMD} "@unexec rmdir %D/lib/gcc/${CONFIGURE_TARGET} 2>&1 || true" ; ${ECHO_CMD} "@unexec rmdir %D/lib/gcc 2>&1 || true") >> ${WRKDIR}/PLIST.lib
${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
diff --git a/lang/gcc47/distinfo b/lang/gcc47/distinfo
index 35f2406..beb1d80 100644
--- a/lang/gcc47/distinfo
+++ b/lang/gcc47/distinfo
@@ -1,6 +1,6 @@
-MD5 (gcc-core-3.4-20040107.tar.bz2) = 2de4606dde0d9dfafb96ab271e028081
-MD5 (gcc-g++-3.4-20040107.tar.bz2) = 5210c6e084b0e1bd9f02d4b012d936f8
-MD5 (gcc-g77-3.4-20040107.tar.bz2) = c30706a558bc88ca16f2c45b1b3eb244
-MD5 (gcc-java-3.4-20040107.tar.bz2) = ece8ad9079c75347516cfb9159543833
-MD5 (gcc-objc-3.4-20040107.tar.bz2) = c9d9d241639a883cf214756f08198452
-MD5 (gcc-testsuite-3.4-20040107.tar.bz2) = cff08732e9a7833c4461990eb68034f7
+MD5 (gcc-core-3.4-20040114.tar.bz2) = 2742be0bc0d14d5eadee3a75664b37bc
+MD5 (gcc-g++-3.4-20040114.tar.bz2) = caa96c9ebfa7bdd120d7c03a9fb66bda
+MD5 (gcc-g77-3.4-20040114.tar.bz2) = 92a1a266ca11743daa5510cc561956e1
+MD5 (gcc-java-3.4-20040114.tar.bz2) = 1ebfd7502c9600d1838af5eff5766d86
+MD5 (gcc-objc-3.4-20040114.tar.bz2) = ae08a05a56a312776f959db343bc5319
+MD5 (gcc-testsuite-3.4-20040114.tar.bz2) = 7ce504cbee33ab818845fcd9e4949a71
diff --git a/lang/gcc47/files/patch-regrename.c b/lang/gcc47/files/patch-regrename.c
new file mode 100644
index 0000000..a687acd
--- /dev/null
+++ b/lang/gcc47/files/patch-regrename.c
@@ -0,0 +1,19 @@
+Index: gcc/regrename.c
+===================================================================
+RCS file: /cvs/gcc/gcc/gcc/regrename.c,v
+retrieving revision 1.72
+retrieving revision 1.73
+diff -u -3 -p -r1.72 -r1.73
+--- gcc/regrename.c 14 Jan 2004 16:25:09 -0000 1.72
++++ gcc/regrename.c 14 Jan 2004 17:55:20 -0000 1.73
+@@ -1345,8 +1345,8 @@ find_oldest_value_reg (enum reg_class cl
+ if (!TEST_HARD_REG_BIT (reg_class_contents[class], last))
+ return NULL_RTX;
+
+- if (new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i,
+- regno))
++ new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i, regno);
++ if (new)
+ {
+ ORIGINAL_REGNO (new) = ORIGINAL_REGNO (reg);
+ REG_ATTRS (new) = REG_ATTRS (reg);
diff --git a/lang/gcc47/pkg-plist b/lang/gcc47/pkg-plist
index 0119d6a..a25a199 100644
--- a/lang/gcc47/pkg-plist
+++ b/lang/gcc47/pkg-plist
@@ -1,14 +1,16 @@
@comment $FreeBSD$
+bin/c++34
bin/cpp34
bin/g++34
bin/g77-34
bin/gcc34
bin/gcov34
+bin/%%GNU_HOST%%-c++34
bin/%%GNU_HOST%%-gcc-%%GCC_VER%%
bin/%%GNU_HOST%%-gcc34
bin/%%GNU_HOST%%-g++34
-bin/%%GNU_HOST%%-gcj
-bin/%%GNU_HOST%%-gcjh
+bin/%%GNU_HOST%%-gcj34
+bin/%%GNU_HOST%%-gcjh34
bin/gccbug34
bin/gcj34
bin/gcjh34
@@ -20,7 +22,7 @@ bin/jar34
bin/grepjar34
bin/rmic34
bin/rmiregistry34
-bin/addr2name.awk
+bin/addr2name.awk34
include/ffi.h
include/jni.h
include/jvmpi.h
diff --git a/lang/gcc48/Makefile b/lang/gcc48/Makefile
index 943b30d..959695d 100644
--- a/lang/gcc48/Makefile
+++ b/lang/gcc48/Makefile
@@ -5,9 +5,7 @@
#
# $FreeBSD$
#
-
-SNAPDATE= 2004-01-07
-#CVS_DATE= ${SNAPDATE} 18:53:04 EDT
+SNAPDATE= 2004-01-14
PORTNAME= gcc
PORTVERSION= 3.4.0
@@ -42,6 +40,10 @@ NOMANCOMPRESS= yes # too hard to deal with differences on 5-cur and releng4
.include <bsd.port.pre.mk>
+.if ${ARCH} == sparc64
+BROKEN= "libgcj is not supported/packaging is broken on this platform"
+.endif
+
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
SRCDIR= ${WRKDIR}/gcc-${VERSIONSTRING}
@@ -52,11 +54,10 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_BISON= yes
CONFIGURE_ARGS= --disable-nls \
+ --with-system-zlib \
--with-libiconv-prefix=${LOCALBASE} \
- --with-gxx-include-dir=${TARGLIB}/include/c++/${GCC_REV}
-#CONFIGURE_ARGS+= --program-suffix=34
-# Java
-CONFIGURE_ARGS+= --with-system-zlib
+ --program-suffix=34 \
+ --with-gxx-include-dir=${TARGLIB}/include/c++/
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+= --enable-shared
@@ -128,28 +129,22 @@ check: build
cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check
post-install:
- @${RM} -f ${PREFIX}/bin/c++ ${PREFIX}/bin/${CONFIGURE_TARGET}-c++
-.for f in gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
- ${STRIP_CMD} ${PREFIX}/bin/${f}
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
+.for f in c++ gcc g++ cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
+ if [ -e ${PREFIX}/bin/${f}34 ]; then \
+ ${STRIP_CMD} ${PREFIX}/bin/${f}34; \
+ ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
|| ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}34.1 )
-.endfor
-.for f in g77
- ${MV} -f ${PREFIX}/bin/${f} ${PREFIX}/bin/${f}-34
- ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
- || ${MV} -f ${PREFIX}/man/man1/${f}.1 \
- ${PREFIX}/man/man1/${f}-34.1 )
+ ${PREFIX}/man/man1/${f}34.1 ); \
+ fi
.endfor
- ${MV} -f ${PREFIX}/bin/gccbug ${PREFIX}/bin/gccbug34
- # These 3 libraries are moved from PREFIX/lib to avoid conflicts
- # with the stock compiler.
+ ${MV} -f ${PREFIX}/bin/g7734 ${PREFIX}/bin/g77-34
+ ${MV} -f ${PREFIX}/man/man1/g7734.1 ${PREFIX}/man/man1/g77-34.1
+ # These libraries are moved from PREFIX/lib to avoid conflicts with
+ # the stock compiler.
.for f in libstdc++ libsupc++ libg2c libfrtbegin libobjc ${EXTRA_SHLIB}
${MV} -f ${PREFIX}/lib/${f}.* ${TARGLIB}
.endfor
-${MV} -f ${PREFIX}/lib/ieee ${TARGLIB}
- # Java
-${MV} -f ${PREFIX}/lib/libgcj.* ${TARGLIB}
${RM} -f ${PREFIX}/lib/libiberty.a
${RM} -f ${TARGLIB}/*.la
@@ -160,12 +155,12 @@ post-install:
.endfor
# Handle target libraries and GCJ include files.
${RM} -f ${WRKDIR}/PLIST.lib
-.for inc in ${TARGLIB} include/gcj include/gnu include/java include/javax
- cd ${PREFIX} ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type f -o -type l \
- >>${WRKDIR}/PLIST.lib ;\
- ${FIND} ${inc:S/^${PREFIX}\///} -type d \
- | ${SORT} -r | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib
+.for d in ${TARGLIB:S/^${PREFIX}\///} include/gcj include/gnu include/java include/javax
+ cd ${PREFIX} ; if [ -d $d ]; then \
+ ${FIND} $d -type f -o -type l >>${WRKDIR}/PLIST.lib ;\
+ ${FIND} $d -type d | ${SORT} -r \
+ | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib ;\
+ fi
.endfor
(${ECHO_CMD} "@unexec rmdir %D/lib/gcc/${CONFIGURE_TARGET} 2>&1 || true" ; ${ECHO_CMD} "@unexec rmdir %D/lib/gcc 2>&1 || true") >> ${WRKDIR}/PLIST.lib
${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
diff --git a/lang/gcc48/distinfo b/lang/gcc48/distinfo
index 35f2406..beb1d80 100644
--- a/lang/gcc48/distinfo
+++ b/lang/gcc48/distinfo
@@ -1,6 +1,6 @@
-MD5 (gcc-core-3.4-20040107.tar.bz2) = 2de4606dde0d9dfafb96ab271e028081
-MD5 (gcc-g++-3.4-20040107.tar.bz2) = 5210c6e084b0e1bd9f02d4b012d936f8
-MD5 (gcc-g77-3.4-20040107.tar.bz2) = c30706a558bc88ca16f2c45b1b3eb244
-MD5 (gcc-java-3.4-20040107.tar.bz2) = ece8ad9079c75347516cfb9159543833
-MD5 (gcc-objc-3.4-20040107.tar.bz2) = c9d9d241639a883cf214756f08198452
-MD5 (gcc-testsuite-3.4-20040107.tar.bz2) = cff08732e9a7833c4461990eb68034f7
+MD5 (gcc-core-3.4-20040114.tar.bz2) = 2742be0bc0d14d5eadee3a75664b37bc
+MD5 (gcc-g++-3.4-20040114.tar.bz2) = caa96c9ebfa7bdd120d7c03a9fb66bda
+MD5 (gcc-g77-3.4-20040114.tar.bz2) = 92a1a266ca11743daa5510cc561956e1
+MD5 (gcc-java-3.4-20040114.tar.bz2) = 1ebfd7502c9600d1838af5eff5766d86
+MD5 (gcc-objc-3.4-20040114.tar.bz2) = ae08a05a56a312776f959db343bc5319
+MD5 (gcc-testsuite-3.4-20040114.tar.bz2) = 7ce504cbee33ab818845fcd9e4949a71
diff --git a/lang/gcc48/files/patch-regrename.c b/lang/gcc48/files/patch-regrename.c
new file mode 100644
index 0000000..a687acd
--- /dev/null
+++ b/lang/gcc48/files/patch-regrename.c
@@ -0,0 +1,19 @@
+Index: gcc/regrename.c
+===================================================================
+RCS file: /cvs/gcc/gcc/gcc/regrename.c,v
+retrieving revision 1.72
+retrieving revision 1.73
+diff -u -3 -p -r1.72 -r1.73
+--- gcc/regrename.c 14 Jan 2004 16:25:09 -0000 1.72
++++ gcc/regrename.c 14 Jan 2004 17:55:20 -0000 1.73
+@@ -1345,8 +1345,8 @@ find_oldest_value_reg (enum reg_class cl
+ if (!TEST_HARD_REG_BIT (reg_class_contents[class], last))
+ return NULL_RTX;
+
+- if (new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i,
+- regno))
++ new = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i, regno);
++ if (new)
+ {
+ ORIGINAL_REGNO (new) = ORIGINAL_REGNO (reg);
+ REG_ATTRS (new) = REG_ATTRS (reg);
diff --git a/lang/gcc48/pkg-plist b/lang/gcc48/pkg-plist
index 0119d6a..a25a199 100644
--- a/lang/gcc48/pkg-plist
+++ b/lang/gcc48/pkg-plist
@@ -1,14 +1,16 @@
@comment $FreeBSD$
+bin/c++34
bin/cpp34
bin/g++34
bin/g77-34
bin/gcc34
bin/gcov34
+bin/%%GNU_HOST%%-c++34
bin/%%GNU_HOST%%-gcc-%%GCC_VER%%
bin/%%GNU_HOST%%-gcc34
bin/%%GNU_HOST%%-g++34
-bin/%%GNU_HOST%%-gcj
-bin/%%GNU_HOST%%-gcjh
+bin/%%GNU_HOST%%-gcj34
+bin/%%GNU_HOST%%-gcjh34
bin/gccbug34
bin/gcj34
bin/gcjh34
@@ -20,7 +22,7 @@ bin/jar34
bin/grepjar34
bin/rmic34
bin/rmiregistry34
-bin/addr2name.awk
+bin/addr2name.awk34
include/ffi.h
include/jni.h
include/jvmpi.h
OpenPOWER on IntegriCloud