diff options
author | dholland <dholland@pkgsrc.org> | 2011-12-20 02:36:54 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2011-12-20 02:36:54 +0000 |
commit | 8d3aeaa464943edad467e6d74f09a575e835e070 (patch) | |
tree | 36d679492e83c5a4196e4338ce35be1d7a19b84a /cross | |
parent | 9cd8bcb51da2d0cd69cee4ab89e38f702c717664 (diff) | |
download | pkgsrc-8d3aeaa464943edad467e6d74f09a575e835e070.tar.gz |
Garbage-collect cross/i386-netbsdpe. The corresponding code in base
that this was meant to support never amounted to much and was removed
some time back. The package is also severely outdated and no longer
buildable.
Diffstat (limited to 'cross')
-rw-r--r-- | cross/i386-netbsdpe/DESCR | 11 | ||||
-rw-r--r-- | cross/i386-netbsdpe/MESSAGE | 12 | ||||
-rw-r--r-- | cross/i386-netbsdpe/Makefile | 125 | ||||
-rw-r--r-- | cross/i386-netbsdpe/PLIST | 78 | ||||
-rw-r--r-- | cross/i386-netbsdpe/distinfo | 17 | ||||
-rw-r--r-- | cross/i386-netbsdpe/patches/binutils-ad | 20 | ||||
-rw-r--r-- | cross/i386-netbsdpe/patches/binutils-ae | 17 | ||||
-rw-r--r-- | cross/i386-netbsdpe/patches/binutils-af | 75 | ||||
-rw-r--r-- | cross/i386-netbsdpe/patches/binutils-ag | 13 | ||||
-rw-r--r-- | cross/i386-netbsdpe/patches/binutils-ah | 13 | ||||
-rw-r--r-- | cross/i386-netbsdpe/patches/binutils-ai | 13 | ||||
-rw-r--r-- | cross/i386-netbsdpe/patches/binutils-aj | 13 | ||||
-rw-r--r-- | cross/i386-netbsdpe/patches/patch-ab | 16 | ||||
-rw-r--r-- | cross/i386-netbsdpe/patches/patch-ad | 22 | ||||
-rw-r--r-- | cross/i386-netbsdpe/patches/patch-ae | 22 | ||||
-rw-r--r-- | cross/i386-netbsdpe/patches/patch-af | 13 | ||||
-rw-r--r-- | cross/i386-netbsdpe/patches/patch-co | 23 | ||||
-rw-r--r-- | cross/i386-netbsdpe/patches/patch-pe | 71 |
18 files changed, 0 insertions, 574 deletions
diff --git a/cross/i386-netbsdpe/DESCR b/cross/i386-netbsdpe/DESCR deleted file mode 100644 index e6c7b3d3c71..00000000000 --- a/cross/i386-netbsdpe/DESCR +++ /dev/null @@ -1,11 +0,0 @@ -This cross-compile environment is for PE/COFF NetBSD/i386, and -it is based on gcc-2.95.2 + the x86-win32 patch. - -The preprocessor predefines following symbols: - * i386 _X86 - * __PEACE__ - * __CYGWIN32__ - * __NetBSD__ __PECOFF__ __NetBSDPE__ (if -mwindows is not specified) - * _WIN32 WINNT (if -mwindows is specified) - -The compiler is capable of anonymous unions/structs. diff --git a/cross/i386-netbsdpe/MESSAGE b/cross/i386-netbsdpe/MESSAGE deleted file mode 100644 index 83840f283fc..00000000000 --- a/cross/i386-netbsdpe/MESSAGE +++ /dev/null @@ -1,12 +0,0 @@ -=========================================================================== -$NetBSD: MESSAGE,v 1.2 2002/09/12 17:16:39 wiz Exp $ - -This pkg DOES NOT install headers or runtime link libraries. Only the -compilers are installed. - -In order to have a complete development setup, you need to install -includes and libraries in ${CROSSBASE}/i386-netbsdpe/include and -${CROSSBASE}/i386-netbsdpe/lib respectively, or symlink these paths to -the appropriate places. - -=========================================================================== diff --git a/cross/i386-netbsdpe/Makefile b/cross/i386-netbsdpe/Makefile deleted file mode 100644 index b78504917fe..00000000000 --- a/cross/i386-netbsdpe/Makefile +++ /dev/null @@ -1,125 +0,0 @@ -# $NetBSD: Makefile,v 1.25 2009/03/21 05:47:54 darcy Exp $ - -DISTNAME= cross-${TARGET_ARCH}-${DISTVERSION} -DISTVERSION= 3.3.6 -CATEGORIES= cross lang -MASTER_SITES= http://chiharu.hauN.org/peace/dist/ - -MAINTAINER= pkgsrc-users@NetBSD.org -HOMEPAGE= http://chiharu.hauN.org/peace/ -COMMENT= Cross-compile environment for PEACE/i386 - -# Need NetBSD headers in /usr/include -ONLY_FOR_PLATFORM= NetBSD-1.6[Q-Z]*-* NetBSD-[2-9]*-* -CONFLICTS= pth-[0-9]* pth-current-[0-9]* pth-syscall-[0-9]* -USE_CROSSBASE= yes - -WRKSRC= ${WRKDIR}/${GCC_DISTNAME} -BU_WRKSRC= ${WRKDIR}/${BINUTILS_DISTNAME} -BINUTILS_GNUTARGET= pe-i386 -BINUTILS_LDEMULATION= i386pe -TARGET_ARCH= i386-netbsdpe -GCC_CONFIGURE_ARGS+= --enable-threads -BINUTILS_EXTRAS= dlltool dllwrap windres -INFO_FILES= yes - -# Mingw pathes -DISTFILES+= gcc-3.3.3-20040217-1-src.diff.gz -GCC_WIN32_PATCH= ${WRKDIR}/gcc-3.3.3-20040217-1-src.diff -MASTER_SITES+= ${MASTER_SITE_SOURCEFORGE:=mingw/} - -MESSAGE_SUBST+= CROSSBASE=${CROSSBASE} -TARGET_DIR= ${PREFIX}/${TARGET_ARCH} - -GCC_DISTNAME= gcc-3.3.6 -GCC_INTVERSION= 3.3.6 -MASTER_SITES+= ${MASTER_SITE_GNU:=gcc/gcc-3.3.6/} -DISTFILES+= ${GCC_DISTNAME}.tar.bz2 -USE_TOOLS+= gmake makeinfo -GCC_LANGUAGES= c,c++ -CONFIGURE_ENV= ${SETENV} CC=${CC:Q} CFLAGS=${CFLAGS:M*:Q} \ - CXXFLAGS=${CXXFLAGS:M*:Q} LDFLAGS=${LDFLAGS:M*:Q} -GCC_CONFIGURE_ARGS= --with-gnu-ld --with-gnu-as -disable-multilib \ - --enable-threads=posix --disable-shared --with-system-zlib \ - --enable-languages=${GCC_LANGUAGES} --with-headers=yes \ - --target=${TARGET_ARCH} --datadir=${TARGET_DIR}/share -GCC_MAKE_FLAGS= AS_FOR_TARGET="${AS_FOR_TARGET}" \ - AR_FOR_TARGET="${AR_FOR_TARGET}" \ - NM_FOR_TARGET="${NM_FOR_TARGET}" \ - RANLIB_FOR_TARGET="${RANLIB_FOR_TARGET}" -# INSTALL="${INSTALL} -c -o ${BINOWN} -g ${BINGRP}" \ -# INSTALL_PROGRAM="${INSTALL_PROGRAM}" -GCC_MAKE= ${SETENV} ${MAKE_ENV} \ - ${MAKE_PROGRAM} ${MAKE_FLAGS} ${GCC_MAKE_FLAGS} -WRKOBJ= ${WRKDIR}/obj - -BINUTILS_DISTNAME= binutils-2.16.91-20060119-1 -DISTFILES+= ${BINUTILS_DISTNAME}-src.tar.gz -MASTER_SITES+= ${MASTER_SITE_SOURCEFORGE:=mingw/} -#MASTER_SITES+= ${MASTER_SITE_GNU:=binutils/} -#MASTER_SITES+= http://prdownloads.sourceforge.net/mingw/ -#CONFIGURE_ARGS+= --with-gnu-as --with-gnu-ld --data-dir=${TARGET_DIR}/share -BU_WRKSRC= ${WRKDIR}/${BINUTILS_DISTNAME} -AS_FOR_TARGET= ${WRKOBJ}/gas/as-new -AR_FOR_TARGET= ${WRKOBJ}/binutils/ar -NM_FOR_TARGET= ${WRKOBJ}/binutils/nm-new -RANLIB_FOR_TARGET= ${WRKOBJ}/binutils/ranlib -LD_FOR_TARGET= ${WRKOBJ}/ld/ld-new - -post-extract: - ${PATCH} -d ${WRKSRC} -p1 --forward --quiet -E < ${GCC_WIN32_PATCH} \ - || ${WARNING_MSG} "[${.TARGET}] The patch command failed with exitcode $$?" - ${CP} ${WRKSRC}/gcc/config/i386/mingw32.h ${WRKSRC}/gcc/config/i386/netbsdpe.h - ${CP} ${WRKSRC}/gcc/config/i386/t-cygming ${WRKSRC}/gcc/config/i386/t-netbsdpe - -post-patch: - for i in patches/binutils-??; do \ - ${PATCH} -d ${BU_WRKSRC} --forward --quiet -E < $$i; \ - done - -CFLAGS_FOR_TARGET+= -I${WRKDIR} -post-configure: - ${SED} "s/^extern FILE/__declspec(dllimport) FILE/" /usr/include/stdio.h > ${WRKDIR}/stdio.h - -do-configure: -# @-mkdir -p ${WRKOBJ}/libiberty -# @cd ${WRKOBJ}/libiberty && ${SETENV} CC="${CC}" CFLAGS="${CFLAGS}" \ -# CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" \ -# ${WRKSRC}/libiberty/configure --prefix=${PREFIX} - ${MKDIR} ${WRKOBJ} ${WRKOBJ}/binutils ${WRKOBJ}/gas ${WRKOBJ}/ld - cd ${WRKOBJ} && ${CONFIGURE_ENV} ${BU_WRKSRC}/configure \ - --prefix=${PREFIX} ${GCC_CONFIGURE_ARGS} --disable-nls - cd ${WRKOBJ}/binutils && ${CONFIGURE_ENV} ${BU_WRKSRC}/binutils/configure \ - --prefix=${PREFIX} ${GCC_CONFIGURE_ARGS} --disable-nls - cd ${WRKOBJ}/gas && ${CONFIGURE_ENV} ${BU_WRKSRC}/gas/configure \ - --prefix=${PREFIX} ${GCC_CONFIGURE_ARGS} --disable-nls - cd ${WRKOBJ}/ld && ${CONFIGURE_ENV} ${BU_WRKSRC}/ld/configure \ - --prefix=${PREFIX} ${GCC_CONFIGURE_ARGS} --disable-nls -# Build binutils before configuring gcc so that gcc's configure works correctly - cd ${WRKOBJ} && ${GCC_MAKE} - ${MKDIR} ${WRKOBJ}/gcc - cd ${WRKOBJ}/gcc && ${CONFIGURE_ENV} ${WRKSRC}/gcc/configure \ - --prefix=${PREFIX} ${GCC_CONFIGURE_ARGS} - -do-build: - ${LN} -sf ${AS_FOR_TARGET} ${WRKOBJ}/gcc/as - ${LN} -sf ${LD_FOR_TARGET} ${WRKOBJ}/gcc/ld - cd ${WRKOBJ}/gcc && ${GCC_MAKE} - -do-install: - cd ${WRKOBJ} && ${GCC_MAKE} installdirs install-binutils \ - install-gas install-ld - cd ${WRKOBJ}/gas/doc && ${GCC_MAKE} install-man1 - cd ${WRKOBJ}/gcc && ${GCC_MAKE} install-common \ - install-libgcc install-cpp install-po \ - lang.install-normal install-driver - ${INSTALL_DATA_DIR} ${PREFIX}/lib/gcc-lib/${TARGET_ARCH}/${GCC_INTVERSION}/include - ${INSTALL_DATA} ${WRKOBJ}/gcc/include/mmintrin.h \ - ${PREFIX}/lib/gcc-lib/${TARGET_ARCH}/${GCC_INTVERSION}/include - ${INSTALL_DATA} ${WRKOBJ}/gcc/include/xmmintrin.h \ - ${PREFIX}/lib/gcc-lib/${TARGET_ARCH}/${GCC_INTVERSION}/include - ${INSTALL_DATA_DIR} ${TARGET_DIR}/include - cd ${PREFIX}/bin && ${LN} -sf ${TARGET_ARCH}-gcc ${TARGET_ARCH}-cc - cd ${TARGET_DIR}/bin && ${LN} -sf gcc cc - -.include "../../mk/bsd.pkg.mk" diff --git a/cross/i386-netbsdpe/PLIST b/cross/i386-netbsdpe/PLIST deleted file mode 100644 index 2b215c05cfc..00000000000 --- a/cross/i386-netbsdpe/PLIST +++ /dev/null @@ -1,78 +0,0 @@ -@comment $NetBSD: PLIST,v 1.8 2009/06/14 18:34:00 joerg Exp $ -bin/i386-netbsdpe-addr2line -bin/i386-netbsdpe-ar -bin/i386-netbsdpe-as -bin/i386-netbsdpe-c++ -bin/i386-netbsdpe-c++filt -bin/i386-netbsdpe-cc -bin/i386-netbsdpe-cpp -bin/i386-netbsdpe-dlltool -bin/i386-netbsdpe-dllwrap -bin/i386-netbsdpe-g++ -bin/i386-netbsdpe-gcc -bin/i386-netbsdpe-gcc-3.3.6 -bin/i386-netbsdpe-gccbug -bin/i386-netbsdpe-gcov -bin/i386-netbsdpe-ld -bin/i386-netbsdpe-nm -bin/i386-netbsdpe-objcopy -bin/i386-netbsdpe-objdump -bin/i386-netbsdpe-ranlib -bin/i386-netbsdpe-readelf -bin/i386-netbsdpe-size -bin/i386-netbsdpe-strings -bin/i386-netbsdpe-strip -bin/i386-netbsdpe-windres -i386-netbsdpe/bin/ar -i386-netbsdpe/bin/as -i386-netbsdpe/bin/c++ -i386-netbsdpe/bin/cc -i386-netbsdpe/bin/dlltool -i386-netbsdpe/bin/g++ -i386-netbsdpe/bin/gcc -i386-netbsdpe/bin/ld -i386-netbsdpe/bin/nm -i386-netbsdpe/bin/objdump -i386-netbsdpe/bin/ranlib -i386-netbsdpe/bin/strip -i386-netbsdpe/lib/ldscripts/i386pe.x -i386-netbsdpe/lib/ldscripts/i386pe.xbn -i386-netbsdpe/lib/ldscripts/i386pe.xn -i386-netbsdpe/lib/ldscripts/i386pe.xr -i386-netbsdpe/lib/ldscripts/i386pe.xu -i386-netbsdpe/share/locale/be/LC_MESSAGES/gcc.mo -i386-netbsdpe/share/locale/ca/LC_MESSAGES/gcc.mo -i386-netbsdpe/share/locale/da/LC_MESSAGES/gcc.mo -i386-netbsdpe/share/locale/de/LC_MESSAGES/gcc.mo -i386-netbsdpe/share/locale/el/LC_MESSAGES/gcc.mo -i386-netbsdpe/share/locale/es/LC_MESSAGES/gcc.mo -i386-netbsdpe/share/locale/fr/LC_MESSAGES/gcc.mo -i386-netbsdpe/share/locale/ja/LC_MESSAGES/gcc.mo -i386-netbsdpe/share/locale/nl/LC_MESSAGES/gcc.mo -i386-netbsdpe/share/locale/rw/LC_MESSAGES/gcc.mo -i386-netbsdpe/share/locale/sv/LC_MESSAGES/gcc.mo -i386-netbsdpe/share/locale/tr/LC_MESSAGES/gcc.mo -info/bfd.info -lib/gcc-lib/i386-netbsdpe/3.3.6/cc1 -lib/gcc-lib/i386-netbsdpe/3.3.6/cc1plus -lib/gcc-lib/i386-netbsdpe/3.3.6/collect2 -lib/gcc-lib/i386-netbsdpe/3.3.6/include/mmintrin.h -lib/gcc-lib/i386-netbsdpe/3.3.6/include/xmmintrin.h -lib/gcc-lib/i386-netbsdpe/3.3.6/libgcc.a -lib/gcc-lib/i386-netbsdpe/3.3.6/specs -man/man1/i386-netbsdpe-addr2line.1 -man/man1/i386-netbsdpe-ar.1 -man/man1/i386-netbsdpe-as.1 -man/man1/i386-netbsdpe-c++filt.1 -man/man1/i386-netbsdpe-dlltool.1 -man/man1/i386-netbsdpe-ld.1 -man/man1/i386-netbsdpe-nlmconv.1 -man/man1/i386-netbsdpe-nm.1 -man/man1/i386-netbsdpe-objcopy.1 -man/man1/i386-netbsdpe-objdump.1 -man/man1/i386-netbsdpe-ranlib.1 -man/man1/i386-netbsdpe-readelf.1 -man/man1/i386-netbsdpe-size.1 -man/man1/i386-netbsdpe-strings.1 -man/man1/i386-netbsdpe-strip.1 -man/man1/i386-netbsdpe-windres.1 diff --git a/cross/i386-netbsdpe/distinfo b/cross/i386-netbsdpe/distinfo deleted file mode 100644 index 308c05ccb18..00000000000 --- a/cross/i386-netbsdpe/distinfo +++ /dev/null @@ -1,17 +0,0 @@ -$NetBSD: distinfo,v 1.11 2006/07/03 04:23:38 kent Exp $ - -SHA1 (gcc-3.3.3-20040217-1-src.diff.gz) = 721674ff4b07397a3bd5570832bb89662aacee2a -RMD160 (gcc-3.3.3-20040217-1-src.diff.gz) = 75713a2b9e00f132d9be89ff57e532c1a4bff223 -Size (gcc-3.3.3-20040217-1-src.diff.gz) = 122692 bytes -SHA1 (gcc-3.3.6.tar.bz2) = 2cc43978bb09af6c2ccfdf74797d10d7cc2596fb -RMD160 (gcc-3.3.6.tar.bz2) = b32c7a08c690857f0ac52dda3deb47cf5775d967 -Size (gcc-3.3.6.tar.bz2) = 23972413 bytes -SHA1 (binutils-2.16.91-20060119-1-src.tar.gz) = a63e7c62bb1287cfa5625c2e2b61c076a323883f -RMD160 (binutils-2.16.91-20060119-1-src.tar.gz) = dbcb7003e80733441ffd2f01b55344f36f2dbcd1 -Size (binutils-2.16.91-20060119-1-src.tar.gz) = 16214443 bytes -SHA1 (patch-ab) = fd94571856c4706b324307efa8e2cacec3021463 -SHA1 (patch-ad) = 609f33a5cc0804115ca969aab9b05cbc6162d9e9 -SHA1 (patch-ae) = d738f7f0ec4a0832270d9bc1fdd0f3e69b20b511 -SHA1 (patch-af) = f2a038037b040b8dabc5bdf9532e4ad7f958325b -SHA1 (patch-co) = 70982f85adeaf6d1f0d0fed6cc6f76e774ad0296 -SHA1 (patch-pe) = dd206723655b95e970f545906dff923a7768728c diff --git a/cross/i386-netbsdpe/patches/binutils-ad b/cross/i386-netbsdpe/patches/binutils-ad deleted file mode 100644 index 5107dd33ff3..00000000000 --- a/cross/i386-netbsdpe/patches/binutils-ad +++ /dev/null @@ -1,20 +0,0 @@ -$NetBSD: binutils-ad,v 1.1 2001/10/21 12:24:16 kent Exp $ - ---- bfd/cofflink.c.orig Thu Jun 7 12:08:24 2001 -+++ bfd/cofflink.c -@@ -708,6 +708,15 @@ - long_section_names = false; - for (o = abfd->sections; o != NULL; o = o->next) - { -+#if 0 -+ fprintf(stderr, "_bfd_coff_final_link: %s%s%s%s%s\n", o->name -+ o->flags & SEC_CODE ? " SEC_CODE" : "", -+ o->flags & SEC_DATA ? " SEC_DATA" : "", -+ o->flags & SEC_ALLOC ? " SEC_ALLOC" : "", -+ o->flags & SEC_READONLY ? " SEC_READONLY" : ""); -+#endif -+ if (o->flags & SEC_CODE && o->flags & SEC_DATA) -+ o->flags &= ~SEC_DATA; - o->reloc_count = 0; - o->lineno_count = 0; - for (p = o->link_order_head; p != NULL; p = p->next) diff --git a/cross/i386-netbsdpe/patches/binutils-ae b/cross/i386-netbsdpe/patches/binutils-ae deleted file mode 100644 index c3461754951..00000000000 --- a/cross/i386-netbsdpe/patches/binutils-ae +++ /dev/null @@ -1,17 +0,0 @@ -$NetBSD: binutils-ae,v 1.1 2002/08/21 12:42:46 kent Exp $ - ---- ld/ldmain.c.orig Mon Jul 1 17:07:29 2002 -+++ ld/ldmain.c -@@ -439,8 +439,12 @@ - } - else - { -+#if 0 - if (! bfd_close (output_bfd)) - einfo (_("%F%B: final close failed: %E\n"), output_bfd); -+#else -+ bfd_close (output_bfd); -+#endif - - /* If the --force-exe-suffix is enabled, and we're making an - executable file and it doesn't end in .exe, copy it to one diff --git a/cross/i386-netbsdpe/patches/binutils-af b/cross/i386-netbsdpe/patches/binutils-af deleted file mode 100644 index 93f483d19da..00000000000 --- a/cross/i386-netbsdpe/patches/binutils-af +++ /dev/null @@ -1,75 +0,0 @@ -$NetBSD: binutils-af,v 1.4 2006/07/03 04:23:38 kent Exp $ - ---- binutils/dlltool.c.orig 2005-10-05 07:07:08.000000000 +0900 -+++ binutils/dlltool.c -@@ -1363,6 +1363,8 @@ match_exclude (const char *string) - for (excl_item = excludes; excl_item; excl_item = excl_item->next) - if (strcmp (string, excl_item->string) == 0) - return TRUE; -+ if (string[0] != '_') -+ return TRUE; - return FALSE; - } - -@@ -2169,6 +2171,7 @@ make_one_lib_file (export_type *exp, int - asymbol * exp_label; - asymbol * iname = 0; - asymbol * iname2; -+ asymbol * iname_nm = 0; - asymbol * iname_lab; - asymbol ** iname_lab_pp; - asymbol ** iname_pp; -@@ -2180,7 +2183,7 @@ make_one_lib_file (export_type *exp, int - #ifndef EXTRA - #define EXTRA 0 - #endif -- asymbol * ptrs[NSECS + 4 + EXTRA + 1]; -+ asymbol * ptrs[NSECS + 5 + EXTRA + 1]; - flagword applicable; - char * outname = xmalloc (strlen (TMP_STUB) + 10); - int oidx = 0; -@@ -2278,6 +2281,15 @@ make_one_lib_file (export_type *exp, int - iname2->flags = BSF_GLOBAL; - iname2->value = 0; - -+ if (exp->data) -+ { -+ iname_nm = bfd_make_empty_symbol (abfd); -+ iname_nm->name = make_imp_label ("__nm_", exp->name); -+ iname_nm->section = secdata[IDATA6].sec; -+ iname_nm->flags = BSF_GLOBAL; -+ iname_nm->value = 0; -+ } -+ - iname_lab = bfd_make_empty_symbol (abfd); - - iname_lab->name = head_label; -@@ -2289,6 +2301,8 @@ make_one_lib_file (export_type *exp, int - if (create_compat_implib) - ptrs[oidx++] = iname; - ptrs[oidx++] = iname2; -+ if (exp->data) -+ ptrs[oidx++] = iname_nm; - - iname_lab_pp = ptrs + oidx; - ptrs[oidx++] = iname_lab; -@@ -2595,7 +2609,7 @@ make_head (void) - fprintf (f, "\t%sdoesn't load DLLs when this is set.\n", ASM_C); - fprintf (f, "\t%s\t0\t%s loaded time\n", ASM_LONG, ASM_C); - fprintf (f, "\t%s\t0\t%s Forwarder chain\n", ASM_LONG, ASM_C); -- fprintf (f, "\t%s__%s_iname%s\t%s imported dll's name\n", -+ fprintf (f, "\t%s_%s_iname%s\t%s imported dll's name\n", - ASM_RVA_BEFORE, - imp_name_lab, - ASM_RVA_AFTER, -@@ -2676,8 +2690,8 @@ make_tail (void) - fprintf (f, "\t.section .idata$7\n"); - #endif - -- fprintf (f, "\t%s\t__%s_iname\n", ASM_GLOBAL, imp_name_lab); -- fprintf (f, "__%s_iname:\t%s\t\"%s\"\n", -+ fprintf (f, "\t%s\t_%s_iname\n", ASM_GLOBAL, imp_name_lab); -+ fprintf (f, "_%s_iname:\t%s\t\"%s\"\n", - imp_name_lab, ASM_TEXT, dll_name); - - fclose (f); diff --git a/cross/i386-netbsdpe/patches/binutils-ag b/cross/i386-netbsdpe/patches/binutils-ag deleted file mode 100644 index 6762030c1f0..00000000000 --- a/cross/i386-netbsdpe/patches/binutils-ag +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: binutils-ag,v 1.2 2006/07/03 04:23:38 kent Exp $ - ---- binutils/doc/Makefile.in.orig 2005-10-11 15:46:24.000000000 +0900 -+++ binutils/doc/Makefile.in -@@ -683,7 +683,7 @@ $(DEMANGLER_NAME).1: cxxfilt.man Makefil - - # We want install to imply install-info as per GNU standards, despite the - # cygnus option. --install-data-local: install-info -+#install-data-local: install-info - - # Maintenance - diff --git a/cross/i386-netbsdpe/patches/binutils-ah b/cross/i386-netbsdpe/patches/binutils-ah deleted file mode 100644 index 4728158ae8e..00000000000 --- a/cross/i386-netbsdpe/patches/binutils-ah +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: binutils-ah,v 1.2 2006/07/03 04:23:38 kent Exp $ - ---- gas/doc/Makefile.in.orig 2006-01-19 13:59:42.000000000 +0900 -+++ gas/doc/Makefile.in -@@ -591,7 +591,7 @@ as.dvi: $(srcdir)/as.texinfo asconfig.te - - # We want install to imply install-info as per GNU standards, despite the - # cygnus option. --install-data-local: install-info -+#install-data-local: install-info - - # Maintenance - diff --git a/cross/i386-netbsdpe/patches/binutils-ai b/cross/i386-netbsdpe/patches/binutils-ai deleted file mode 100644 index 16dbc080f86..00000000000 --- a/cross/i386-netbsdpe/patches/binutils-ai +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: binutils-ai,v 1.2 2006/07/03 04:23:38 kent Exp $ - ---- ld/Makefile.in.orig 2006-01-19 14:00:24.000000000 +0900 -+++ ld/Makefile.in -@@ -2496,7 +2496,7 @@ install-data-local: - - # We want install to imply install-info as per GNU standards, despite the - # cygnus option. --install-data-local: install-info -+#install-data-local: install-info - diststuff: info $(EXTRA_DIST) - all: info ld.1 - diff --git a/cross/i386-netbsdpe/patches/binutils-aj b/cross/i386-netbsdpe/patches/binutils-aj deleted file mode 100644 index f034ac2af6a..00000000000 --- a/cross/i386-netbsdpe/patches/binutils-aj +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: binutils-aj,v 1.1 2004/03/09 12:19:12 kent Exp $ - ---- ld/pe-dll.c.orig 2003-11-09 03:47:30.000000000 +0900 -+++ ld/pe-dll.c -@@ -1934,7 +1934,7 @@ make_singleton_name_thunk (const char *i - quick_symbol (abfd, U ("_nm_"), import, "", UNDSEC, BSF_GLOBAL, 0); - - bfd_set_section_size (abfd, id4, 8); -- d4 = xmalloc (4); -+ d4 = xmalloc (8); - id4->contents = d4; - memset (d4, 0, 8); - quick_reloc (abfd, 0, BFD_RELOC_RVA, 2); diff --git a/cross/i386-netbsdpe/patches/patch-ab b/cross/i386-netbsdpe/patches/patch-ab deleted file mode 100644 index f8a11427a98..00000000000 --- a/cross/i386-netbsdpe/patches/patch-ab +++ /dev/null @@ -1,16 +0,0 @@ -$NetBSD: patch-ab,v 1.2 2004/03/09 12:19:12 kent Exp $ - ---- gcc/config/i386/cygwin.asm.orig 2001-10-31 23:32:27.000000000 +0900 -+++ gcc/config/i386/cygwin.asm -@@ -3,9 +3,9 @@ - #ifdef L_chkstk - - .global ___chkstk -- .global __alloca -+ .global __builtin_alloca_checkstack - ___chkstk: --__alloca: -+__builtin_alloca_checkstack: - pushl %ecx /* save temp */ - movl %esp,%ecx /* get sp */ - addl $0x8,%ecx /* and point to return addr */ diff --git a/cross/i386-netbsdpe/patches/patch-ad b/cross/i386-netbsdpe/patches/patch-ad deleted file mode 100644 index 1a0c3fcf190..00000000000 --- a/cross/i386-netbsdpe/patches/patch-ad +++ /dev/null @@ -1,22 +0,0 @@ -$NetBSD: patch-ad,v 1.2 2004/03/09 12:19:12 kent Exp $ - ---- gcc/config/i386/i386.md.orig 2003-10-26 04:43:59.000000000 +0900 -+++ gcc/config/i386/i386.md -@@ -16772,7 +16772,7 @@ - (clobber (match_dup 0)) - (clobber (reg:CC 17))] - "!TARGET_64BIT && TARGET_STACK_PROBE" -- "call\t__alloca" -+ "call\t__builtin_alloca_checkstack" - [(set_attr "type" "multi") - (set_attr "length" "5")]) - -@@ -16782,7 +16782,7 @@ - (clobber (match_dup 0)) - (clobber (reg:CC 17))] - "TARGET_64BIT && TARGET_STACK_PROBE" -- "call\t__alloca" -+ "call\t__builtin_alloca_checkstack" - [(set_attr "type" "multi") - (set_attr "length" "5")]) - diff --git a/cross/i386-netbsdpe/patches/patch-ae b/cross/i386-netbsdpe/patches/patch-ae deleted file mode 100644 index 0d6e85fa980..00000000000 --- a/cross/i386-netbsdpe/patches/patch-ae +++ /dev/null @@ -1,22 +0,0 @@ -$NetBSD: patch-ae,v 1.3 2004/03/09 12:19:12 kent Exp $ - ---- gcc/config/i386/t-netbsdpe.orig 2003-11-03 01:45:58.000000000 +0900 -+++ gcc/config/i386/t-netbsdpe -@@ -8,14 +8,14 @@ LIMITS_H_TEST = true - # If we are building next to winsup, this will let us find the real - # limits.h when building libgcc2. Otherwise, winsup must be installed - # first. --LIBGCC2_INCLUDES = -I$(srcdir)/../winsup/w32api/include -+LIBGCC2_INCLUDES = -I../.. -I/usr/include -D_LIBC_LIMITS_H_ - --LIB2FUNCS_EXTRA = $(srcdir)/config/i386/w32-shared-ptr.c -+#LIB2FUNCS_EXTRA = $(srcdir)/config/i386/w32-shared-ptr.c - - winnt.o: $(srcdir)/config/i386/winnt.c $(RTL_H) $(TREE_H) $(CONFIG_H) - $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/i386/winnt.c - - # Don't run fixproto - STMP_FIXPROTO= --STMP_FIXINC=stmp-fixinc -+STMP_FIXINC= - diff --git a/cross/i386-netbsdpe/patches/patch-af b/cross/i386-netbsdpe/patches/patch-af deleted file mode 100644 index 66a7f3d6f64..00000000000 --- a/cross/i386-netbsdpe/patches/patch-af +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-af,v 1.3 2004/03/09 12:19:12 kent Exp $ - ---- gcc/Makefile.in.orig 2003-11-04 16:19:18.000000000 +0900 -+++ gcc/Makefile.in -@@ -3000,7 +3000,7 @@ install-headers-tar: stmp-int-hdrs $(STM - # found in CDPATH, corrupting the output. We could just redirect the - # output of `cd', but some shells lose on redirection within `()'s - (cd `${PWD_COMMAND}`/include ; \ -- tar -cf - .; exit 0) | (cd $(DESTDIR)$(libsubdir)/include; tar xpf - ) -+ tar -cf - mmintrin.h xmmintrin.h; exit 0) | (cd $(DESTDIR)$(libsubdir)/include; tar xpf - ) - # /bin/sh on some systems returns the status of the first tar, - # and that can lose with GNU tar which always writes a full block. - # So use `exit 0' to ignore its exit status. diff --git a/cross/i386-netbsdpe/patches/patch-co b/cross/i386-netbsdpe/patches/patch-co deleted file mode 100644 index 3db209646d7..00000000000 --- a/cross/i386-netbsdpe/patches/patch-co +++ /dev/null @@ -1,23 +0,0 @@ -$NetBSD: patch-co,v 1.2 2004/03/09 12:19:12 kent Exp $ - ---- gcc/config.gcc.orig2 2003-10-26 04:46:27.000000000 +0900 -+++ gcc/config.gcc -@@ -1139,6 +1139,18 @@ x86_64-*-freebsd*) - i[34567]86-*-netbsdelf*) - tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h" - ;; -+i[34567]86-*-netbsdpe*) -+ tm_file="i386/cygming.h i386/netbsdpe.h" -+ xm_defines=POSIX -+ xm_file=i386/xm-mingw32.h -+ xmake_file=i386/x-mingw32 -+ tmake_file="i386/t-netbsdpe" -+ extra_objs=winnt.o -+ target_cpu_default=TARGET_CPU_DEFAULT_pentiumpro -+ if test x$enable_threads = xyes; then -+ thread_file='posix' -+ fi -+ ;; - i[34567]86-*-netbsd*) - tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h" - tmake_file=t-netbsd diff --git a/cross/i386-netbsdpe/patches/patch-pe b/cross/i386-netbsdpe/patches/patch-pe deleted file mode 100644 index 333ef74499e..00000000000 --- a/cross/i386-netbsdpe/patches/patch-pe +++ /dev/null @@ -1,71 +0,0 @@ -$NetBSD: patch-pe,v 1.3 2004/03/09 12:19:12 kent Exp $ - ---- gcc/config/i386/netbsdpe.h.orig 2003-11-03 05:34:46.000000000 +0900 -+++ gcc/config/i386/netbsdpe.h -@@ -21,16 +21,11 @@ the Free Software Foundation, 59 Temple - Boston, MA 02111-1307, USA. */ - - #undef TARGET_VERSION --#define TARGET_VERSION fprintf (stderr, " (x86 MinGW)"); -+#define TARGET_VERSION fprintf (stderr, " (x86 NetBSD-PE)"); - - #define EXTRA_OS_CPP_BUILTINS() \ - do \ - { \ -- builtin_define ("__MSVCRT__"); \ -- builtin_define ("__MINGW32__"); \ -- builtin_define ("_WIN32"); \ -- builtin_define_std ("WIN32"); \ -- builtin_define_std ("WINNT"); \ - } \ - while (0) - -@@ -41,15 +36,19 @@ Boston, MA 02111-1307, USA. */ - #define STANDARD_INCLUDE_DIR "/mingw/include" - #undef STANDARD_INCLUDE_COMPONENT - #define STANDARD_INCLUDE_COMPONENT "MINGW" -+#undef GPLUSPLUS_INCLUDE_DIR -+#define GPLUSPLUS_INCLUDE_DIR "/usr/include/g++" - - #undef CPP_SPEC --#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT}" -+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT} \ -+%{!mwindows:-D__NetBSD__ -D__PECOFF__ -D__NetBSDPE__} \ -+%{mwindows:-D_WIN32 -DWINNT} -idirafter /usr/include" - - /* For Windows applications, include more libraries, but always include - kernel32. */ - #undef LIB_SPEC --#define LIB_SPEC "%{pg:-lgmon} %{mwindows:-lgdi32 -lcomdlg32} \ -- -luser32 -lkernel32 -ladvapi32 -lshell32" -+#define LIB_SPEC "%{pg:-lgmon} %{mwindows:-lgdi32 -lcomdlg32 -luser32 -ladvapi32 -lshell32} \ -+ -lkernel32 -lpthread -lc %{mdll:-lpeasu}" - - /* Include in the mingw32 libraries with libgcc */ - #undef LINK_SPEC -@@ -62,15 +61,13 @@ Boston, MA 02111-1307, USA. */ - - /* Include in the mingw32 libraries with libgcc */ - #undef LIBGCC_SPEC --#define LIBGCC_SPEC \ -- "%{mthreads:-lmingwthrd} -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt" -+#define LIBGCC_SPEC "-lgcc" - - #undef STARTFILE_SPEC --#define STARTFILE_SPEC "%{shared|mdll:dllcrt2%O%s} \ -- %{!shared:%{!mdll:crt2%O%s}} %{pg:gcrt2%O%s} %{!fno-exceptions:crtbegin%O%s}" -+#define STARTFILE_SPEC "%{mdll:crt0dll%O%s} %{!mdll: %{!mwindows:crt0%O%s} %{mwindows:crt0win%O%s}}" - - #undef ENDFILE_SPEC --#define ENDFILE_SPEC "%{!fno-exceptions:crtend%O%s}" -+#define ENDFILE_SPEC "" - - /* An additional prefix to try after the standard prefixes. */ - #undef MD_STARTFILE_PREFIX -@@ -111,3 +108,6 @@ do { \ - /* When we are ready for Dwarf2 EH handling */ - #undef DWARF2_UNWIND_INFO - #define DWARF2_UNWIND_INFO 1 -+ -+#undef BIGGEST_FIELD_ALIGNMENT -+#define BIGGEST_FIELD_ALIGNMENT 32 |