summaryrefslogtreecommitdiff
path: root/lang/icc7/files
diff options
context:
space:
mode:
Diffstat (limited to 'lang/icc7/files')
-rw-r--r--lang/icc7/files/assert_fail.c40
-rw-r--r--lang/icc7/files/cpio-exclude64
-rw-r--r--lang/icc7/files/cxa_atexit.c52
-rw-r--r--lang/icc7/files/cxa_finalize.c38
-rw-r--r--lang/icc7/files/errno_location.c37
-rw-r--r--lang/icc7/files/ld.c444
-rw-r--r--lang/icc7/files/mcount.S34
-rw-r--r--lang/icc7/files/patch-icc64
-rw-r--r--lang/icc7/files/patch-icpc57
-rw-r--r--lang/icc7/files/patch-include92
-rw-r--r--lang/icc7/files/stderr.c32
11 files changed, 0 insertions, 954 deletions
diff --git a/lang/icc7/files/assert_fail.c b/lang/icc7/files/assert_fail.c
deleted file mode 100644
index b55be3d86ffc..000000000000
--- a/lang/icc7/files/assert_fail.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (c) 2002 Marius Strobl
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * $FreeBSD$
- */
-
-#include <err.h>
-#include <stdlib.h>
-
-void
-__assert_fail(const char *failedexpr, const char *file, unsigned int line,
- const char *fn)
-{
- warnx("assertion \"%s\" failed: file \"%s\", line %u%s%s%s", failedexpr,
- file, line, fn ? ", function: \"" : "", fn ? fn : "",
- fn ? "\"" : "");
- abort();
-}
diff --git a/lang/icc7/files/cpio-exclude b/lang/icc7/files/cpio-exclude
deleted file mode 100644
index 3ff7d00ae33f..000000000000
--- a/lang/icc7/files/cpio-exclude
+++ /dev/null
@@ -1,64 +0,0 @@
-*/opt/intel/compiler60/ia32/bin/uninstall
-*/opt/intel/compiler60/ia32/include/algorithm
-*/opt/intel/compiler60/ia32/include/bitset
-*/opt/intel/compiler60/ia32/include/complex
-*/opt/intel/compiler60/ia32/include/deque
-*/opt/intel/compiler60/ia32/include/fstream
-*/opt/intel/compiler60/ia32/include/fstream.h
-*/opt/intel/compiler60/ia32/include/functional
-*/opt/intel/compiler60/ia32/include/hash_map
-*/opt/intel/compiler60/ia32/include/hash_set
-*/opt/intel/compiler60/ia32/include/iomanip
-*/opt/intel/compiler60/ia32/include/iomanip.h
-*/opt/intel/compiler60/ia32/include/ios
-*/opt/intel/compiler60/ia32/include/iosfwd
-*/opt/intel/compiler60/ia32/include/iostream
-*/opt/intel/compiler60/ia32/include/iostream.h
-*/opt/intel/compiler60/ia32/include/istream
-*/opt/intel/compiler60/ia32/include/iterator
-*/opt/intel/compiler60/ia32/include/limits
-*/opt/intel/compiler60/ia32/include/list
-*/opt/intel/compiler60/ia32/include/locale
-*/opt/intel/compiler60/ia32/include/map
-*/opt/intel/compiler60/ia32/include/memory
-*/opt/intel/compiler60/ia32/include/numeric
-*/opt/intel/compiler60/ia32/include/ostream
-*/opt/intel/compiler60/ia32/include/queue
-*/opt/intel/compiler60/ia32/include/set
-*/opt/intel/compiler60/ia32/include/slist
-*/opt/intel/compiler60/ia32/include/sstream
-*/opt/intel/compiler60/ia32/include/stack
-*/opt/intel/compiler60/ia32/include/stdexcept
-*/opt/intel/compiler60/ia32/include/stdiostream.h
-*/opt/intel/compiler60/ia32/include/stl.h
-*/opt/intel/compiler60/ia32/include/stream.h
-*/opt/intel/compiler60/ia32/include/streambuf
-*/opt/intel/compiler60/ia32/include/string
-*/opt/intel/compiler60/ia32/include/strstream
-*/opt/intel/compiler60/ia32/include/strstream.h
-*/opt/intel/compiler60/ia32/include/utility
-*/opt/intel/compiler60/ia32/include/valarray
-*/opt/intel/compiler60/ia32/include/vector
-*/opt/intel/compiler60/ia32/include/xcomplex
-*/opt/intel/compiler60/ia32/include/xdebug
-*/opt/intel/compiler60/ia32/include/xhash
-*/opt/intel/compiler60/ia32/include/xiosbase
-*/opt/intel/compiler60/ia32/include/xlocale
-*/opt/intel/compiler60/ia32/include/xlocinfo
-*/opt/intel/compiler60/ia32/include/xlocinfo.h
-*/opt/intel/compiler60/ia32/include/xlocmes
-*/opt/intel/compiler60/ia32/include/xlocmon
-*/opt/intel/compiler60/ia32/include/xlocnum
-*/opt/intel/compiler60/ia32/include/xloctime
-*/opt/intel/compiler60/ia32/include/xmemory
-*/opt/intel/compiler60/ia32/include/xstring
-*/opt/intel/compiler60/ia32/include/xtree
-*/opt/intel/compiler60/ia32/include/xutility
-*/opt/intel/compiler60/ia32/include/ymath.h
-*/opt/intel/compiler60/ia32/lib/libcprts.a
-*/opt/intel/compiler60/ia32/lib/libcprts.so
-*/opt/intel/compiler60/ia32/lib/libcprts.so.1
-*/opt/intel/compiler60/ia32/lib/libguide.a
-*/opt/intel/compiler60/ia32/lib/libguide.so
-*/opt/intel/compiler60/ia32/lib/libunwind.so
-*/opt/intel/compiler60/ia32/lib/libunwind.so.1
diff --git a/lang/icc7/files/cxa_atexit.c b/lang/icc7/files/cxa_atexit.c
deleted file mode 100644
index d9dd1d0a1700..000000000000
--- a/lang/icc7/files/cxa_atexit.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright (c) 2002 Marius Strobl
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * $FreeBSD$
- */
-
-#include <stdlib.h>
-
-/*
- * The __cxa_atexit() function and friends are needed for full (IA64) C++ ABI
- * compatibility but FreeBSD doesn't have implemented them, yet. In addition
- * to the classic atexit() it is not only used to register functions to be
- * called at program exit but also to call them (C++ destructors in that case)
- * when a shared object is unloaded. For the later to work the dynamic linker
- * assigns a unique dynamic shared object handle to every shared object while
- * a handle of NULL represents a main program. When __cxa_finalize() is called
- * with a specific (non-NULL) handle as an argument all functions registered
- * via __cxa_atexit() and having the same handle are called.
- * The best we can do here to emulate that behaviour until FreeBSD supports
- * this is to register the functions via atexit(). While this certainly is a
- * bad hack it seems to work, even the current dynamic linker is assigning
- * the handles. I didn't see a function getting registered with an argument
- * so far.
- */
-int
-__cxa_atexit(void (*fn)(), void *arg, void *handle)
-{
-
- return (handle ? atexit(fn) : 0);
-}
diff --git a/lang/icc7/files/cxa_finalize.c b/lang/icc7/files/cxa_finalize.c
deleted file mode 100644
index 5865a2f7138f..000000000000
--- a/lang/icc7/files/cxa_finalize.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (c) 2002 Marius Strobl
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * $FreeBSD$
- */
-
-void
-__cxa_finalize(void *handle)
-{
-
- /*
- * As we dared to register the functions via atexit() this job will
- * be done by exit().
- */
- return;
-}
diff --git a/lang/icc7/files/errno_location.c b/lang/icc7/files/errno_location.c
deleted file mode 100644
index ba9f3d8b48bc..000000000000
--- a/lang/icc7/files/errno_location.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/*-
- * Copyright (c) 2000 Andrew Gallatin and David O'Brien
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * copied over from: FreeBSD: ports/lang/compaq-cc/files/errno_location.c,v 1.1 2000/12/08 13:27:29 obrien Exp
- *
- * $FreeBSD$
- */
-
-#include <errno.h>
-
-int *
-__errno_location(void)
-{
- return &errno;
-}
diff --git a/lang/icc7/files/ld.c b/lang/icc7/files/ld.c
deleted file mode 100644
index c5d2f63858c9..000000000000
--- a/lang/icc7/files/ld.c
+++ /dev/null
@@ -1,444 +0,0 @@
-/*
- * Copyright (c) 2002 Marius Strobl
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * Wrapper for Intel(R) C/C++ Compiler for Linux to allow linking of native
- * FreeBSD binaries.
- * Based on a shell-script written by Dan Nelson <dnelson@allantgroup.com>
- * with some modifications by Alexander Leidinger <netchild@FreeBSD.org>.
- *
- * $FreeBSD$
- */
-
-/* Uses code marked: */
-
-/* OpenBSD: mailwrapper.c,v 1.6 1999/12/17 05:06:28 mickey Exp */
-/* NetBSD: mailwrapper.c,v 1.3 1999/05/29 18:18:15 christos Exp */
-/* FreeBSD: src/usr.sbin/mailwrapper/mailwrapper.c,v 1.8 2002/07/11 18:27:55 alfred Exp */
-
-/*
- * Copyright (c) 1998
- * Perry E. Metzger. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgment:
- * This product includes software developed for the NetBSD Project
- * by Perry E. Metzger.
- * 4. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <err.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-#if defined (__FreeBSD__) && __FreeBSD__ >= 2
- #include <osreldate.h>
-#else
- #error "Won't work here."
-#endif
-
-#define PATH_LD "/usr/bin/ld"
-
-struct arglist {
- size_t argc, maxc;
- char **argv;
-};
-
-static void initarg(struct arglist *al);
-static void addarg(struct arglist *al, const char *arg, int copy);
-static void freearg(struct arglist *al, int copy);
-int main(int argc, char *argv[], char *envp[]);
-
-static void
-initarg(struct arglist *al)
-{
-
- al->argc = 0;
- al->maxc = 10;
- if ((al->argv = malloc(al->maxc * sizeof(char *))) == NULL)
- err(1, NULL);
-}
-
-static void
-addarg(struct arglist *al, const char *arg, int copy)
-{
- char **argv2;
-
- if (al->argc == al->maxc) {
- al->maxc <<= 1;
-
- if ((argv2 = realloc(al->argv,
- al->maxc * sizeof(char *))) == NULL) {
- if (al->argv)
- free(al->argv);
- al->argv = NULL;
- err(1, NULL);
- } else {
- al->argv = argv2;
- }
- }
- if (copy) {
- if ((al->argv[al->argc++] = strdup(arg)) == NULL)
- err(1, NULL);
- } else {
- al->argv[al->argc++] = (char *)arg;
- }
-}
-
-static
-void freearg(struct arglist *al, int copy)
-{
- size_t i;
-
- if (copy)
- for (i = 0; i < al->argc; i++)
- free(al->argv[i]);
- free(al->argv);
-}
-
-int
-main(int argc, char *argv[], char *envp[])
-{
- size_t i;
- int bootstrap, cpp, dynamic, pic, gprof, stlinserted, threaded;
- char *libc, *libc_r, *prefix;
- struct arglist al;
-
- if (argc == 1)
- errx(1, "no input files");
-
- if ((prefix = getenv("PREFIX")) == NULL)
- errx(1, "can't get PREFIX");
-
- initarg(&al);
- bootstrap = cpp = dynamic = pic = gprof = stlinserted = threaded = 0;
-
-#ifdef DEBUG
- printf("input: ");
-#endif
-
-#define ARGCMP(x) !strcmp(argv[i], (x))
-#define ARGCMPB(x, y) (strlen(x) + strlen(y) == strlen(argv[i]) && \
- !strncmp(argv[i], (x), strlen(x)) && \
- !strncmp(argv[i] + strlen(x), (y), strlen(y)))
-
- /*
- * XXX This doesn't deal with whitespace but a) the output of the
- * compiler should be fixed and b) the real linker is also picky
- * about whitespace.
- */
- for (i = 0; i < argc; i++) {
-#ifdef DEBUG
- printf("%s ", argv[i]);
-#endif
-
- if (ARGCMP("-CPLUSPLUS")) {
- cpp++;
- continue;
- }
-
- if (ARGCMP("-BOOTSTRAPSTLPORT")) {
- bootstrap++;
- continue;
- }
-
- if (ARGCMP("-PIC")) {
- pic++;
- continue;
- }
-
- /*
- * If the compiler was called with -static we shouldn't see
- * "--dynamic-linker" here.
- * Note: According to ld(1) this is "--dynamic-linker" but
- * ICC passes "-dynamic-linker" to it.
- */
- if (ARGCMP("--dynamic-linker") || ARGCMP("-dynamic-linker")) {
- dynamic++;
- continue;
- }
-
- /*
- * Just link libstlport_icc* once when compiling the stlport
- * tests.
- */
- if (!strncmp(argv[i], "-lstlport_icc",
- strlen("-lstlport_icc"))) {
- stlinserted++;
- continue;
- }
-
- /*
- * ICC links the thread safe libircmt instead of libirc when
- * told to generate threaded code by any of the compiler flags
- * "-mt", "-openmp" or "-parallel". We use this as an indicator
- * to link against libc_r.
- */
- if (ARGCMP("-lircmt")) {
- threaded++;
- continue;
- }
-
- /*
- * Link against libc_p when "-pg" was given, "/usr/lib/gcrt1.o"
- * indicates this.
- */
- if (ARGCMP("/usr/lib/gcrt1.o")) {
- gprof++;
- continue;
- }
- }
-
- /*
- * Use the appropriate libs for libc and libc_r when linking static
- * and "-KPIC" or "-pg" where given.
- */
- if (!dynamic && (pic || gprof)) {
- /*
- * Let libc_p win above libc_pic when both, "-KPIC" and "-pg",
- * where given, GCC does the same.
- */
- if (!gprof) {
- libc = strdup("-lc_pic");
- libc_r = strdup("-lc_r");
- } else {
- libc = strdup("-lc_p");
- libc_r = strdup("-lc_r_p");
- }
- } else {
- libc = strdup("-lc");
- libc_r = strdup("-lc_r");
- }
-
-#ifdef DEBUG
- printf("\ncpp: %s bootstrap: %s dynamic: %s gprof: %s pic: %s "
- "threaded: %s\n", cpp ? "YES" : "NO", bootstrap ? "YES" : "NO",
- dynamic ? "YES" : "NO", gprof ? "YES" : "NO", pic ? "YES" : "NO",
- threaded ? "YES" : "NO");
-#endif
-
- if (bootstrap && !cpp)
- errx(1, "-BOOTSTRAPSTLPORT is only valid in combination with "
- "-CPLUSPLUS");
-
- for (i = 0; i < argc; i++) {
- if (ARGCMP("-CPLUSPLUS") || ARGCMP("-BOOTSTRAPSTLPORT") ||
- ARGCMP("-PIC"))
- continue;
-
- /* prepend "-melf_i386" to the commandline */
- if (i == 0) {
- addarg(&al, argv[0], 1);
-#if __FreeBSD_version < 500042
- addarg(&al, "-melf_i386", 1);
-#else
- addarg(&al, "-melf_i386_fbsd", 1);
-#endif
- continue;
- }
-
- /*
- * "-u ___pseudo_link" triggers linking of additional objects
- * from libcxa which seem to bloat the binaries, i.e. they
- * perfectly work without it. Intel Support promised to look
- * up what this servers for...
- */
- if (ARGCMP("-u") || ARGCMP("___pseudo_link"))
- continue;
-
- /* Don't add obsolete flag "-Qy". */
- if (ARGCMP("-Qy"))
- continue;
-
- /* Libunwind is only needed when compiling C++ source. */
- if (!cpp && ARGCMP("-lunwind"))
- continue;
-
- /*
- * Replace libcprts with libstlport_icc. The Dinkumware STL
- * shipping with ICC has unresolvable glibc dependencies
- * in both, the static and the dynamic, versions.
- */
- if (ARGCMP("-lcprts")) {
- if (cpp && !bootstrap && !stlinserted) {
- addarg(&al,
- dynamic ? "-Bdynamic" : "-Bstatic", 1);
- addarg(&al, "-lstlport_icc", 1);
- stlinserted++;
- }
- continue;
- }
-
- /*
- * Link against libc_r when compiling multi-threaded or C++
- * code (libcxa and libunwind depend on libc_r when compiling
- * C++ source).
- */
- if (ARGCMP("-lc")) {
- if (al.argc > 0 &&
- strncmp(al.argv[al.argc - 1], "-B", strlen("-B")))
- addarg(&al,
- dynamic ? "-Bdynamic" : "-Bstatic", 1);
- if (cpp || threaded) {
-#if __FreeBSD_version < 500016
- addarg(&al, libc_r, 0);
-#else
- addarg(&al, libc, 0);
- addarg(&al,
- dynamic ? "-Bdynamic" : "-Bstatic", 1);
- addarg(&al, libc_r, 0);
-#endif
- } else {
- addarg(&al, libc, 0);
- }
- continue;
- }
-
- /* Switch Linux stuff to FreeBSD counterparts. */
- if (ARGCMP("/lib/ld-linux.so.2")) {
- addarg(&al, "/usr/libexec/ld-elf.so.1", 1);
- continue;
- }
- if (ARGCMP("-L/usr/lib")) {
- char *temp;
-
- if ((temp = (char *) malloc(strlen("-L") +
- strlen(prefix) + strlen("/lib") + 1)) == NULL)
- err(1, NULL);
-
- addarg(&al, "-L/usr/libexec/elf", 1);
- addarg(&al, "-L/usr/libexec", 1);
- addarg(&al, "-L/usr/lib", 1);
- snprintf(temp, strlen("-L") + strlen(prefix) +
- strlen("/lib") + 1, "-L%s/lib", prefix);
- addarg(&al, temp, 1);
- free(temp);
- continue;
- }
-
- /*
- * Link and map files for C++ exception handling.
- */
- if (!cpp &&
- (ARGCMP("--version-script") ||
- ARGCMPB(prefix, "/intel/compiler60/ia32/lib/icrt.link") ||
- ARGCMPB(prefix,
- "/intel/compiler60/ia32/lib/icrt.internal.map")))
- continue;
-
- /*
- * Force libcxa and libunwind to static linkage, since the
- * dynamic versions have glibc dependencies.
- * Don't add superfluous -Bdynamic.
- */
- if (ARGCMP("-Bdynamic") && i < argc - 1) {
- if (!strcmp(argv[i + 1], "-lcxa") ||
- (cpp && !strcmp(argv[i + 1], "-lunwind"))) {
- addarg(&al, "-Bstatic", 1);
- continue;
- }
-
- if (!strcmp(argv[i + 1], "-lcprts") ||
- !strcmp(argv[i + 1], "-lunwind"))
- continue;
- }
-
- /* Don't add superfluous -Bstatic. */
- if (ARGCMP("-Bstatic") && i < argc - 1 &&
- (!strcmp(argv[i + 1], "-lcprts") ||
- (!cpp && !strcmp(argv[i + 1], "-lunwind"))))
- continue;
-
- /*
- * Sanity check if every lib is prepended by a linkage option,
- * add if missing.
- */
- if (!strncmp(argv[i], "-l", strlen("-l")) && al.argc > 0 &&
- strncmp(al.argv[al.argc - 1], "-B", strlen("-B"))) {
- if (!strcmp(argv[i], "-lcxa") ||
- !strcmp(argv[i], "-limf") ||
- !strcmp(argv[i], "-lirc") ||
- !strcmp(argv[i], "-lircmt") ||
- !strcmp(argv[i], "-lunwind"))
- addarg(&al, "-Bstatic", 1);
- else
- addarg(&al,
- dynamic ? "-Bdynamic" : "-Bstatic", 1);
-
- addarg(&al, argv[i], 1);
- continue;
- }
-
- /* default */
- addarg(&al, argv[i], 1);
- }
-
-#undef ARGCMP
-#undef ARGCMPB
-
- /* Still something to do ? */
- if (al.argc == 1)
- errx(1, "no input files");
-
-#ifdef DEBUG
- printf("output: ");
-
- for (i = 0; i < al.argc; i++)
- printf("%s ", al.argv[i]);
-
- printf("\n");
-#endif
-
- addarg(&al, NULL, 0);
-
- /* Launch the real linker */
- if (execve(PATH_LD, al.argv, envp) == -1)
- err(1, "execing %s", PATH_LD);
-
- freearg(&al, 1);
-
- exit (1);
-}
diff --git a/lang/icc7/files/mcount.S b/lang/icc7/files/mcount.S
deleted file mode 100644
index f269f0f06bea..000000000000
--- a/lang/icc7/files/mcount.S
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (c) 2002 Marius Strobl
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * $FreeBSD$
- */
-
- .text
- .extern .mcount
- .globl mcount
- .type mcount,@function
-mcount:
- jmp .mcount
diff --git a/lang/icc7/files/patch-icc b/lang/icc7/files/patch-icc
deleted file mode 100644
index 66e2ee66830a..000000000000
--- a/lang/icc7/files/patch-icc
+++ /dev/null
@@ -1,64 +0,0 @@
---- opt/intel/compiler60/ia32/bin/icc.orig Tue Aug 6 04:34:18 2002
-+++ opt/intel/compiler60/ia32/bin/icc Tue Aug 6 04:46:51 2002
-@@ -1,29 +1,52 @@
- #!/bin/sh
-
--INTEL_LICENSE_FILE=<INSTALLDIR>/licenses;
-+PREFIX=@@PREFIX@@
-+export PREFIX;
-+INTEL_LICENSE_FILE=${PREFIX}/intel/licenses;
- export INTEL_LICENSE_FILE;
-
- if [ -z LD_LIBRARY_PATH ]
- then
-- LD_LIBRARY_PATH=<INSTALLDIR>/compiler60/ia32/lib;
-+ LD_LIBRARY_PATH=${PREFIX}/intel/compiler60/ia32/lib;
- else
-- LD_LIBRARY_PATH=<INSTALLDIR>/compiler60/ia32/lib:$LD_LIBRARY_PATH
-+ LD_LIBRARY_PATH=${PREFIX}/intel/compiler60/ia32/lib:$LD_LIBRARY_PATH
- fi
- export LD_LIBRARY_PATH;
-
- if [ -z PATH ]
- then
-- PATH=<INSTALLDIR>/compiler60/ia32/bin;
-+ PATH=${PREFIX}/intel/compiler60/ia32/bin;
- else
-- PATH=<INSTALLDIR>/compiler60/ia32/bin:$PATH;
-+ PATH=${PREFIX}/intel/compiler60/ia32/bin:$PATH;
- fi
- export PATH;
-
--export -n IA32ROOT; unset IA32ROOT;
--
- if [ $# != 0 ]
- then
-- exec -a "<INSTALLDIR>/compiler60/ia32/bin/icc" <INSTALLDIR>/compiler60/ia32/bin/iccbin "$@";
-+ i=0
-+ argc=$#
-+ while [ $i -lt $argc ] ; do
-+ val1=$1
-+ shift
-+ for s in .C .cc .cpp .cxx .c++; do
-+ val2=${val1%$s}
-+ if [ ${#val1} -gt ${#val2} ] ; then
-+ echo "Please use icpc to compile C++ source."
-+ exit 1
-+ fi
-+ done
-+ val2=${val1#"-openmp"}
-+ if [ ${#val1} -gt ${#val2} ] || [ ${val1} = "-parallel" ] ; then
-+ echo "Sorry, option '$val1' is not supported on FreeBSD."
-+ exit 1
-+ fi
-+ if [ ${val1} = "-Kpic" ] || [ ${val1} = "-KPIC" ] ; then
-+ set -- "$@" "-Qoption,ld,-PIC"
-+ fi
-+ set -- "$@" "$val1"
-+ i=$(($i+1))
-+ done
-+ exec ${PREFIX}/intel/compiler60/ia32/bin/iccbin "$@";
- else
-- exec -a "<INSTALLDIR>/compiler60/ia32/bin/icc" <INSTALLDIR>/compiler60/ia32/bin/iccbin;
-+ exec ${PREFIX}/intel/compiler60/ia32/bin/iccbin;
- fi
diff --git a/lang/icc7/files/patch-icpc b/lang/icc7/files/patch-icpc
deleted file mode 100644
index 0853a53798bd..000000000000
--- a/lang/icc7/files/patch-icpc
+++ /dev/null
@@ -1,57 +0,0 @@
---- opt/intel/compiler60/ia32/bin/icpc.orig Fri Sep 6 02:18:03 2002
-+++ opt/intel/compiler60/ia32/bin/icpc Tue Sep 10 18:32:59 2002
-@@ -1,29 +1,45 @@
- #!/bin/sh
-
--INTEL_LICENSE_FILE=<INSTALLDIR>/licenses;
-+PREFIX=@@PREFIX@@
-+export PREFIX;
-+INTEL_LICENSE_FILE=${PREFIX}/intel/licenses;
- export INTEL_LICENSE_FILE;
-
- if [ -z LD_LIBRARY_PATH ]
- then
-- LD_LIBRARY_PATH=<INSTALLDIR>/compiler60/ia32/lib;
-+ LD_LIBRARY_PATH=${PREFIX}/intel/compiler60/ia32/lib;
- else
-- LD_LIBRARY_PATH=<INSTALLDIR>/compiler60/ia32/lib:$LD_LIBRARY_PATH
-+ LD_LIBRARY_PATH=${PREFIX}/intel/compiler60/ia32/lib:$LD_LIBRARY_PATH
- fi
- export LD_LIBRARY_PATH;
-
- if [ -z PATH ]
- then
-- PATH=<INSTALLDIR>/compiler60/ia32/bin;
-+ PATH=${PREFIX}/intel/compiler60/ia32/bin;
- else
-- PATH=<INSTALLDIR>/compiler60/ia32/bin:$PATH;
-+ PATH=${PREFIX}/intel/compiler60/ia32/bin:$PATH;
- fi
- export PATH;
-
--export -n IA32ROOT; unset IA32ROOT;
--
- if [ $# != 0 ]
- then
-- exec -a "<INSTALLDIR>/compiler60/ia32/bin/icpc" <INSTALLDIR>/compiler60/ia32/bin/icpcbin "$@";
-+ i=0
-+ argc=$#
-+ while [ $i -lt $argc ] ; do
-+ val1=$1
-+ shift
-+ val2=${val1#"-openmp"}
-+ if [ ${#val1} -gt ${#val2} ] || [ ${val1} = "-parallel" ] ; then
-+ echo "Sorry, option '$val1' is not supported on FreeBSD."
-+ exit 1
-+ fi
-+ if [ ${val1} = "-Kpic" ] || [ ${val1} = "-KPIC" ] ; then
-+ set -- "$@" "-Qoption,ld,-PIC"
-+ fi
-+ set -- "$@" "$val1"
-+ i=$(($i+1))
-+ done
-+ exec ${PREFIX}/intel/compiler60/ia32/bin/icpcbin "$@";
- else
-- exec -a "<INSTALLDIR>/compiler60/ia32/bin/icpc" <INSTALLDIR>/compiler60/ia32/bin/icpcbin;
-+ exec ${PREFIX}/intel/compiler60/ia32/bin/icpcbin;
- fi
diff --git a/lang/icc7/files/patch-include b/lang/icc7/files/patch-include
deleted file mode 100644
index 35613dd41e4b..000000000000
--- a/lang/icc7/files/patch-include
+++ /dev/null
@@ -1,92 +0,0 @@
---- opt/intel/compiler60/ia32/include/yvals.h.orig Wed Apr 24 12:13:04 2002
-+++ opt/intel/compiler60/ia32/include/yvals.h Wed Apr 24 12:13:26 2002
-@@ -4,10 +4,6 @@
- #define _YVALS
- #include <stdarg.h>
-
--#include <features.h> /* Get glibc version __GLIBC__ and __GLIBC_MINOR__*/
--#define __GLIBC_2_2 ((__GLIBC__ > 2) || ((__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 2)))
-- /* true if glibc-2.2 and older is used */
--
- #define _CPPLIB_VER 310
-
- #if defined(ia64) || defined(__ia64) || defined(__ia64__) /* assume Itanium */
---- opt/intel/compiler60/ia32/include/cwchar.orig Tue Aug 6 04:32:48 2002
-+++ opt/intel/compiler60/ia32/include/cwchar Tue Aug 6 05:04:09 2002
-@@ -13,25 +13,29 @@
-
- #ifdef _GLOBAL_USING
- _STD_BEGIN
--using ::mbstate_t; using ::size_t; using ::tm; using ::wint_t;
-+using ::mbstate_t; using ::size_t; using ::wint_t;
-+// using ::tm;
-
-
--using ::btowc;
-+// using ::btowc;
- // using ::fwide; using ::fwprintf;
- // using ::fwscanf;
--using ::mbrlen; using ::mbrtowc; using ::mbsrtowcs;
--using ::mbsinit;
-+// using ::mbrlen; using ::mbrtowc; using ::mbsrtowcs;
-+// using ::mbsinit;
- // using ::swprintf; using ::swscanf;
- // using ::vfwprintf; using ::vswprintf; using ::vwprintf;
--using ::wcrtomb;
-+// using ::wcrtomb;
- // using ::wprintf; using ::wscanf;
--using ::wcsrtombs; using ::wcstol; using ::wcscat;
--using ::wcschr; using ::wcscmp; using ::wcscoll;
-+// using ::wcsrtombs; using ::wcstol;
-+using ::wcscat;
-+using ::wcschr; using ::wcscmp;
-+// using ::wcscoll;
- using ::wcscpy; using ::wcscspn; using ::wcslen;
- using ::wcsncat; using ::wcsncmp; using ::wcsncpy;
- using ::wcspbrk; using ::wcsrchr; using ::wcsspn;
--using ::wcstod; using ::wcstoul; using ::wcsstr;
--using ::wcstok; using ::wcsxfrm; using ::wctob;
-+// using ::wcstod; using ::wcstoul;
-+using ::wcsstr;
-+// using ::wcstok; using ::wcsxfrm; using ::wctob;
- using ::wmemchr; using ::wmemcmp; using ::wmemcpy;
- using ::wmemmove; using ::wmemset;
- // using ::wcsftime;
---- opt/intel/compiler60/ia32/include/cfloat.orig Thu Sep 12 07:08:29 2002
-+++ opt/intel/compiler60/ia32/include/cfloat Thu Sep 12 08:01:57 2002
-@@ -6,35 +6,6 @@
-
- #include <float.h>
-
-- #if __EDG__
--_C_STD_BEGIN
-- /* TYPE DEFINITIONS */
--typedef struct
-- { /* parameters for a floating-point type */
-- int _Ddig, _Dmdig, _Dmax10e, _Dmaxe, _Dmin10e, _Dmine;
-- union
-- { /* union of short array and all floats */
-- unsigned short _Us[8];
-- float _Float;
-- double _Double;
-- long double _Long_double;
-- } _Deps, _Dmax, _Dmin;
-- } _Dvals;
--
-- /* DECLARATIONS */
--_C_LIB_DECL
--extern const _Dvals _Ldbl;
--_END_C_LIB_DECL
--_C_STD_END
--
--#undef LDBL_EPSILON /* redefine macros that use gcc extension */
--#undef LDBL_MAX
--#undef LDBL_MIN
--
--#define LDBL_EPSILON _CSTD _Ldbl._Deps._Long_double
--#define LDBL_MAX _CSTD _Ldbl._Dmax._Long_double
--#define LDBL_MIN _CSTD _Ldbl._Dmin._Long_double
-- #endif /* __EDG__ */
- #endif /* _CFLOAT_ */
-
- /*
diff --git a/lang/icc7/files/stderr.c b/lang/icc7/files/stderr.c
deleted file mode 100644
index 9e463e445318..000000000000
--- a/lang/icc7/files/stderr.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (c) 2002 Marius Strobl
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * $FreeBSD$
- */
-
-#include <stdio.h>
-
-#undef stderr
-FILE *stderr = &__sF[2];