diff options
Diffstat (limited to 'lang/icc/files')
25 files changed, 0 insertions, 2048 deletions
diff --git a/lang/icc/files/_types.h b/lang/icc/files/_types.h deleted file mode 100644 index b14b9ed70e02..000000000000 --- a/lang/icc/files/_types.h +++ /dev/null @@ -1,49 +0,0 @@ -/*- - * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> - * Copyright (c) 1990, 1993 - * The Regents of the University of California. 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 acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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. - * - * From: @(#)ansi.h 8.2 (Berkeley) 1/4/94 - * From: @(#)types.h 8.3 (Berkeley) 1/5/94 - * From: FreeBSD: src/sys/i386/include/_types.h,v 1.9 2004/03/20 20:41:40 marcel Exp - */ - -#ifndef __INTEL_COMPILER_MACHINE__TYPES_H_ -#define __INTEL_COMPILER_MACHINE__TYPES_H_ - -#include_next <machine/_types.h> - -#if defined(__GNUC__) && !defined(__GNUC_VA_LIST) && !defined(__NO_GNUC_VA_LIST) -#define __GNUC_VA_LIST -typedef __va_list __gnuc_va_list; /* compatibility w/GNU headers*/ -#endif - -#endif /* !__INTEL_COMPILER_MACHINE__TYPES_H_ */ diff --git a/lang/icc/files/assert_fail.c b/lang/icc/files/assert_fail.c deleted file mode 100644 index 1aa74794e02c..000000000000 --- a/lang/icc/files/assert_fail.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. - */ - -#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/icc/files/cdefs.h b/lang/icc/files/cdefs.h deleted file mode 100644 index bbf776dc3c72..000000000000 --- a/lang/icc/files/cdefs.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef __INTEL_COMPILER_SYS_CDEFS_H_ -#define __INTEL_COMPILER_SYS_CDEFS_H_ - -#ifndef __GNUC__ -#define __INTEL_COMPILER_NO_GNUC_DEFINED -#define __GNUC__ 3 -#define __GNUC_MINOR__ 2 -#define __GNUC_PATCHLEVEL__ 0 -#endif - -#include_next <sys/cdefs.h> - -#ifdef __INTEL_COMPILER_NO_GNUC_DEFINED -#undef __GNUC__ -#undef __GNUC_MINOR__ -#undef __GNUC_PATCHLEVEL__ -#undef __INTEL_COMPILER_NO_GNUC_DEFINED -#endif - -#endif /* !__INTEL_COMPILER_SYS_CDEFS_H_ */ diff --git a/lang/icc/files/cxa_atexit.c b/lang/icc/files/cxa_atexit.c deleted file mode 100644 index 85aa199603d2..000000000000 --- a/lang/icc/files/cxa_atexit.c +++ /dev/null @@ -1,213 +0,0 @@ -/* Based on code marked: */ - -/*- - * Copyright (c) 1990, 1993 - * The Regents of the University of California. All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * Chris Torek. - * - * 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 acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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. - * - * from: FreeBSD: src/lib/libc/stdlib/atexit.c,v 1.7 2003/12/19 17:11:20 kan Exp - * - */ - -/* - * Copyright (c) 2004 Marius Strobl <marius@alchemy.franken.de>. - * All rights reserved. - * - * The same license as above applies. If clause 3 of the license in the - * above mentioned file gets removed this file should follow and this - * sentence should get removed. - * - */ - -#include <sys/cdefs.h> - -#include <stddef.h> -#include <stdlib.h> -#include <unistd.h> -#include <osreldate.h> - -#if __FreeBSD_version >= 502101 - #error "Not required on this version of FreeBSD." -#endif - -#define ATEXIT_FN_EMPTY 0 -#define ATEXIT_FN_STD 1 -#define ATEXIT_FN_CXA 2 - -/* must be at least 32 to guarantee ANSI conformance */ -#define ATEXIT_SIZE 32 - -extern int __isthreaded; - -#if __FreeBSD_version < 500016 -typedef struct { - volatile long access_lock; - volatile long lock_owner; - volatile char *fname; - volatile int lineno; -} spinlock_t; - -#define _SPINLOCK_INITIALIZER { 0, 0, 0, 0 } - -#define _SPINUNLOCK(_lck) (_lck)->access_lock = 0 -#ifdef _LOCK_DEBUG -#define _SPINLOCK(_lck) _spinlock_debug(_lck, __FILE__, __LINE__) -#else -#define _SPINLOCK(_lck) _spinlock(_lck) -#endif - -static spinlock_t thread_lock = _SPINLOCK_INITIALIZER; - -#define _ATEXIT_LOCK() if (__isthreaded) _SPINLOCK(&thread_lock); -#define _ATEXIT_UNLOCK() if (__isthreaded) _SPINUNLOCK(&thread_lock); -#else -#include <pthread.h> - -static pthread_mutex_t atexit_mutex = PTHREAD_MUTEX_INITIALIZER; - -#define _ATEXIT_LOCK() if (__isthreaded) \ - _pthread_mutex_lock(&atexit_mutex) -#define _ATEXIT_UNLOCK() if (__isthreaded) \ - _pthread_mutex_unlock(&atexit_mutex) -#endif - -struct atexit { - struct atexit *next; /* next in list */ - int ind; /* next index in this table */ - struct atexit_fn { - int fn_type; /* ATEXIT_? from above */ - union { - void (*std_func)(void); - void (*cxa_func)(void *); - } fn_ptr; /* function pointer */ - void *fn_arg; /* argument for CXA callback */ - void *fn_dso; /* shared module handle */ - } fns[ATEXIT_SIZE]; /* the table itself */ -}; - -static struct atexit *__atexit; /* points to head of LIFO stack */ - -/* - * Register the function described by 'fptr' to be called at application - * exit or owning shared object unload time. This is a helper function - * for atexit and __cxa_atexit. - */ -static int -atexit_register(struct atexit_fn *fptr) -{ - static struct atexit __atexit0; /* one guaranteed table */ - struct atexit *p; - - _ATEXIT_LOCK(); - if ((p = __atexit) == NULL) - __atexit = p = &__atexit0; - else while (p->ind >= ATEXIT_SIZE) { - struct atexit *old__atexit; - old__atexit = __atexit; - _ATEXIT_UNLOCK(); - if ((p = (struct atexit *)malloc(sizeof(*p))) == NULL) - return (-1); - _ATEXIT_LOCK(); - if (old__atexit != __atexit) { - /* Lost race, retry operation */ - _ATEXIT_UNLOCK(); - free(p); - _ATEXIT_LOCK(); - p = __atexit; - continue; - } - p->ind = 0; - p->next = __atexit; - __atexit = p; - } - p->fns[p->ind++] = *fptr; - _ATEXIT_UNLOCK(); - return 0; -} - -/* - * Register a function to be performed at exit or when an shared object - * with given dso handle is unloaded dynamically. - */ -int -__cxa_atexit(void (*func)(void *), void *arg, void *dso) -{ - struct atexit_fn fn; - int error; - - fn.fn_type = ATEXIT_FN_CXA; - fn.fn_ptr.cxa_func = func;; - fn.fn_arg = arg; - fn.fn_dso = dso; - - error = atexit_register(&fn); - return (error); -} - -/* - * Call all handlers registered with __cxa_atexit for the shared - * object owning 'dso'. Note: if 'dso' is NULL, then all remaining - * handlers are called. - */ -void -__cxa_finalize(void *dso) -{ - struct atexit *p; - struct atexit_fn fn; - int n; - - _ATEXIT_LOCK(); - for (p = __atexit; p; p = p->next) { - for (n = p->ind; --n >= 0;) { - if (p->fns[n].fn_type == ATEXIT_FN_EMPTY) - continue; /* already been called */ - if (dso != NULL && dso != p->fns[n].fn_dso) - continue; /* wrong DSO */ - fn = p->fns[n]; - /* - Mark entry to indicate that this particular handler - has already been called. - */ - p->fns[n].fn_type = ATEXIT_FN_EMPTY; - _ATEXIT_UNLOCK(); - - /* Call the function of correct type. */ - if (fn.fn_type == ATEXIT_FN_CXA) - fn.fn_ptr.cxa_func(fn.fn_arg); - else if (fn.fn_type == ATEXIT_FN_STD) - fn.fn_ptr.std_func(); - _ATEXIT_LOCK(); - } - } - _ATEXIT_UNLOCK(); -} diff --git a/lang/icc/files/errno_location.c b/lang/icc/files/errno_location.c deleted file mode 100644 index fbc8b45159d2..000000000000 --- a/lang/icc/files/errno_location.c +++ /dev/null @@ -1,35 +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 - */ - -#include <errno.h> - -int * -__errno_location(void) -{ - return &errno; -} diff --git a/lang/icc/files/exclude b/lang/icc/files/exclude deleted file mode 100644 index 40278da8a9ce..000000000000 --- a/lang/icc/files/exclude +++ /dev/null @@ -1,78 +0,0 @@ -bin/uninstall.sh -include/c++/algorithm -include/c++/alt -include/c++/backward -include/c++/bitset -include/c++/complex -include/c++/deque -include/c++/ext -include/c++/fstream -include/c++/functional -include/c++/iomanip -include/c++/ios -include/c++/iosfwd -include/c++/iostream -include/c++/istream -include/c++/iterator -include/c++/limits -include/c++/list -include/c++/locale -include/c++/map -include/c++/memory -include/c++/numeric -include/c++/ostream -include/c++/queue -include/c++/set -include/c++/sstream -include/c++/stack -include/c++/stdexcept -include/c++/streambuf -include/c++/string -include/c++/utility -include/c++/valarray -include/c++/vector -include/c++/xcomplex -include/c++/xdebug -include/c++/xhash -include/c++/xiosbase -include/c++/xlocale -include/c++/xlocinfo -include/c++/xlocinfo.h -include/c++/xlocmes -include/c++/xlocmon -include/c++/xlocnum -include/c++/xloctime -include/c++/xmemory -include/c++/xstring -include/c++/xthreads -include/c++/xtree -include/c++/xutility -include/c++/ymath.h -include/c++/xmtx.h -include/float.h -include/iso646.h -include/limits.h -include/mathf.h -include/omp.h -include/stdarg.h -include/stdbool.h -include/stddef.h -include/syslimits.h -include/varargs.h -include/xarg.h -lib/libcprts.a -lib/libcprts.so -lib/libcprts.so.5 -lib/libcxa.so -lib/libcxa.so.5 -lib/libcxaguard.so -lib/libcxaguard.so.5 -lib/libguide.a -lib/libguide.so -lib/libguide_stats.a -lib/libguide_stats.so -lib/libompstub.a -lib/libsvml.so -lib/libunwind.so -lib/libunwind.so.5 -man/man1/icpc.1 diff --git a/lang/icc/files/exclude_noportdocs b/lang/icc/files/exclude_noportdocs deleted file mode 100644 index f66878f3a50a..000000000000 --- a/lang/icc/files/exclude_noportdocs +++ /dev/null @@ -1,7 +0,0 @@ -doc/C++ReleaseNotes.htm -doc/c_ug -doc/c_ug_lnx.pdf -doc/ccompindex.htm -doc/flex_ug.pdf -doc/icpi.htm -doc/training diff --git a/lang/icc/files/ld.c b/lang/icc/files/ld.c deleted file mode 100644 index a6e3c5907c23..000000000000 --- a/lang/icc/files/ld.c +++ /dev/null @@ -1,342 +0,0 @@ -/* - * Copyright (c) 2002-2004 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>. - * - */ - -#include <sys/cdefs.h> - -#include <err.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <unistd.h> -#include <osreldate.h> - -#define PATH_LD "/usr/bin/ld" - -#define LDW_CXXICC (1<<0) -#define LDW_DYN (1<<1) -#define LDW_GPROF (1<<2) -#define LDW_PIC (1<<3) -#define LDW_STLP (1<<4) -#define LDW_THR (1<<5) - -struct arglist { - size_t argc; - const char **argv; -}; - -static void addarg(struct arglist *al, const char *arg); -int main(int argc, char *argv[], char *envp[]); - -static void -addarg(struct arglist *al, const char *arg) -{ - const char **argv2; - - argv2 = realloc(al->argv, (al->argc + 1) * sizeof(al->argv[0])); - - if (argv2 == NULL) - err(1, NULL); - - al->argv = argv2; - - al->argv[al->argc++] = arg; -} - -int -main(int argc, char *argv[], char *envp[]) -{ - size_t i; - u_int flags; - const char *libc, *libthr, *icc_localbase; - struct arglist al = { 0, NULL }; - - flags = 0; - - if (argc == 1) - errx(1, "no input files"); - - if ((icc_localbase = getenv("ICC_LOCALBASE")) == NULL) - errx(1, "can't get ICC_LOCALBASE"); - -#ifdef DEBUG - printf("input: "); -#endif - -#define ARGCMP(i, x) !strcmp(argv[i], (x)) - - /* - * 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(i, "-CPLUSPLUS")) { - flags |= LDW_CXXICC; - continue; - } - - if (ARGCMP(i, "-MT")) { - flags |= LDW_THR; - continue; - } - - if (ARGCMP(i, "-PIC")) { - flags |= LDW_PIC; - continue; - } - - /* - * Check if the compiler wants us to do dynamic linking, i.e. - * the compiler was called with -shared or without -static. - * 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(i, "--dynamic-linker") || - ARGCMP(i, "-dynamic-linker") || ARGCMP(i, "-shared")) { - flags |= LDW_DYN; - continue; - } - - /* - * The STLport library just can be linked once otherwise - * we get problems with constructors and destructors of - * global instances. - */ - if (!strncmp(argv[i], "-lstlport_icc", - sizeof("-lstlport_icc") - 1)) { - flags |= LDW_STLP; - continue; - } - - /* - * Link against libc_p when "-qp" or "-p" were given, - * "/usr/lib/gcrt1.o" indicates this. - */ - if (ARGCMP(i, "/usr/lib/gcrt1.o")) { - flags |= LDW_GPROF; - continue; - } - } - - /* - * Allow the user to specify an alternative threads library - * implementation, such as -lthr, or whatever. - */ -#if __FreeBSD_version >= 500016 - if ((libthr = getenv("PTHREAD_LIBS")) == NULL) -#if __FreeBSD_version >= 502102 - libthr = "-lpthread"; -#else - libthr = "-lc_r"; -#endif -#else - libthr = "-lc_r"; -#endif - /* - * Use the appropriate libs for libc and libthr when linking static - * and "-KPIC" or "-pg" where given. - */ - if (!(flags & LDW_DYN) && flags & (LDW_PIC | LDW_GPROF)) { - /* - * Let libc_p win above libc_pic when both, "-KPIC" and "-pg", - * where given, GCC does the same. - */ - if (!(flags & LDW_GPROF)) - libc = "-lc_pic"; - else { - char *p; - - libc = "-lc_p"; - asprintf(&p, "%s_p", libthr); - if (p == NULL) - err(1, NULL); - libthr = p; - } - } else - libc = "-lc"; - -#ifdef DEBUG - printf("\n"); -#endif - - for (i = 0; i < argc; i++) { - if (ARGCMP(i, "-CPLUSPLUS") || ARGCMP(i, "-MT") || - ARGCMP(i, "-PIC")) - continue; - - /* - * Prepend "-melf_i386" and "-melf_i386_fbsd" respectively - * to the commandline. - */ - if (i == 0) { - addarg(&al, argv[0]); -#if __FreeBSD_version < 500042 - addarg(&al, "-melf_i386"); -#else - addarg(&al, "-melf_i386_fbsd"); -#endif - continue; - } - - /* - * Don't add "-m elf_i386" ICC passed to us. Don't add - * libgcc_eh, libgcc_s or libgcc_s_32, libdl. - */ - if ((ARGCMP(i, "-m") && i < argc - 1 && ARGCMP(i + 1, - "elf_i386")) || (ARGCMP(i, "elf_i386") && i != 0 && - ARGCMP(i - 1, "-m")) || ARGCMP(i, "-lgcc_eh") || - ARGCMP(i, "-lgcc_s") || ARGCMP(i, "-lgcc_s_32") || - ARGCMP(i, "-ldl")) - 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(i, "-lcprts")) { - if (flags & LDW_CXXICC && !(flags & LDW_STLP)) { - char *p; - - asprintf(&p, "-L%s/lib", icc_localbase); - if (p == NULL) - err(1, NULL); - addarg(&al, p); - addarg(&al, - flags & LDW_DYN ? "-Bdynamic" : "-Bstatic"); - addarg(&al, "-lstlport_icc"); - } - continue; - } - - /* - * Inject the compatibility library for ICC libs on FreeBSD. - * Link against libthr when compiling multi-threaded or C++ - * code and not using libstdc++ (libcxa and libunwind depend - * on a threads library). - */ - if (ARGCMP(i, "-lc")) { - addarg(&al, "-Bstatic"); - addarg(&al, "-liccfbsd"); - addarg(&al, flags & LDW_DYN ? "-Bdynamic" : "-Bstatic"); - if (flags & (LDW_CXXICC | LDW_THR)) { - addarg(&al, libthr); -#if __FreeBSD_version >= 500016 - addarg(&al, - flags & LDW_DYN ? "-Bdynamic" : "-Bstatic"); - addarg(&al, libc); -#endif - } else - addarg(&al, libc); - continue; - } - - /* Switch Linux stuff to FreeBSD counterparts. */ - if (ARGCMP(i, "/lib/ld-linux.so.2")) { -#if __FreeBSD_version >= 501105 - addarg(&al, "/libexec/ld-elf.so.1"); -#else - addarg(&al, "/usr/libexec/ld-elf.so.1"); -#endif - continue; - } - if (ARGCMP(i, "-L/usr/lib")) { - addarg(&al, "-L/usr/libexec/elf"); - addarg(&al, "-L/usr/libexec"); - addarg(&al, "-L/usr/lib"); - continue; - } - - /* - * Force libcxa, libcxaguard, libimf, libsvml and libunwind - * to static linkage, since the dynamic versions have glibc - * dependencies. - */ - if (ARGCMP(i, "-Bdynamic") && i < argc - 1 && - (ARGCMP(i + 1, "-lcxa") || ARGCMP(i + 1, "-lcxaguard") || - ARGCMP(i + 1, "-limf") || ARGCMP(i + 1, "-lsvml") || - ARGCMP(i + 1, "-lunwind"))) { - addarg(&al, "-Bstatic"); - continue; - } - - /* - * Sanity check if every lib is prepended by a linkage option, - * add if missing. - */ - if (!strncmp(argv[i], "-l", 2) && - ((i != 0 && strncmp(argv[i - 1], "-B", 2)) || - (al.argc > 0 && strncmp(al.argv[al.argc - 1], "-B", 2)))) { - if (ARGCMP(i, "-lcxa") || ARGCMP(i, "-lcxaguard") || - ARGCMP(i, "-limf") || ARGCMP(i, "-lirc") || - ARGCMP(i, "-lirc_s") || ARGCMP(i, "-lsvml") || - ARGCMP(i, "-lunwind")) - addarg(&al, "-Bstatic"); - else - addarg(&al, - flags & LDW_DYN ? "-Bdynamic" : "-Bstatic"); - - addarg(&al, argv[i]); - continue; - } - - /* default */ - addarg(&al, argv[i]); - } - - /* 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); - - /* Launch the real linker. */ - if (execve(PATH_LD, (char **)al.argv, envp) == -1) - err(1, "execing " PATH_LD); - - exit (1); -} diff --git a/lang/icc/files/mcount.S b/lang/icc/files/mcount.S deleted file mode 100644 index d11c4375a2ad..000000000000 --- a/lang/icc/files/mcount.S +++ /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. - */ - - .text - .extern .mcount - .globl mcount - .type mcount,@function -mcount: - jmp .mcount diff --git a/lang/icc/files/patch-bin__icc b/lang/icc/files/patch-bin__icc deleted file mode 100644 index c839ac96d8b3..000000000000 --- a/lang/icc/files/patch-bin__icc +++ /dev/null @@ -1,65 +0,0 @@ ---- bin/icc.orig Sun Mar 6 15:40:09 2005 -+++ bin/icc Sun Mar 6 15:44:30 2005 -@@ -1,5 +1,11 @@ - #!/bin/sh - -+ICC_LOCALBASE=%%ICC_LOCALBASE%% -+export ICC_LOCALBASE -+ -+GXX_ROOT=${GXX_ROOT:-<INSTALLDIR>/lib} -+export GXX_ROOT -+ - if [ -z "$INTEL_LICENSE_FILE" ] - then - INTEL_LICENSE_FILE="<INSTALLDIR>/licenses"; -@@ -24,11 +30,46 @@ - fi - export PATH; - --export -n IA32ROOT; unset IA32ROOT; -- - if [ $# != 0 ] - then -- exec -a "<INSTALLDIR>/bin/icc" <INSTALLDIR>/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} ] ; then -+ echo "Sorry, option '$val1' is not supported on FreeBSD." -+ exit 1 -+ fi -+ val2=${val1#"-par"} -+ if [ ${#val1} -gt ${#val2} ] ; then -+ echo "Sorry, option '$val1' is not supported on FreeBSD." -+ exit 1 -+ fi -+ if [ "${val1}" = "-Kpic" ] || [ "${val1}" = "-KPIC" ] || \ -+ [ "${val1}" = "-fpic" ] || [ "${val1}" = "-fPIC" ] ; then -+ set -- "$@" "-Qoption,ld,-PIC" -+ fi -+ if [ "${val1}" = "-mt" ] ; then -+ unset val1 -+ set -- "$@" "-Qoption,ld,-MT" -+ fi -+ if [ "${val1}" = "-pipe" ] ; then -+ unset val1 -+ set -- "$@" -+ fi -+ set -- "$@" "$val1" -+ i=$(($i+1)) -+ done -+ exec <INSTALLDIR>/bin/iccbin "$@"; - else -- exec -a "<INSTALLDIR>/bin/icc" <INSTALLDIR>/bin/iccbin; -+ exec <INSTALLDIR>/bin/iccbin; - fi diff --git a/lang/icc/files/patch-bin__icpc b/lang/icc/files/patch-bin__icpc deleted file mode 100644 index 7ea91465461a..000000000000 --- a/lang/icc/files/patch-bin__icpc +++ /dev/null @@ -1,68 +0,0 @@ ---- bin/icpc.orig Sun Mar 6 15:46:09 2005 -+++ bin/icpc Sun Mar 6 15:48:12 2005 -@@ -1,5 +1,17 @@ - #!/bin/sh - -+ICC_LOCALBASE=%%ICC_LOCALBASE%% -+export ICC_LOCALBASE -+ -+GXX_ROOT=${GXX_ROOT:-<INSTALLDIR>/lib} -+export GXX_ROOT -+ -+GXX_INCLUDE=${GXX_INCLUDE:-%%GXX_INCLUDE%%} -+if [ ! -z "$GXX_INCLUDE" ] -+then -+ export GXX_INCLUDE -+fi -+ - if [ -z "$INTEL_LICENSE_FILE" ] - then - INTEL_LICENSE_FILE="<INSTALLDIR>/licenses"; -@@ -24,11 +36,43 @@ - fi - export PATH; - --export -n IA32ROOT; unset IA32ROOT; -- - if [ $# != 0 ] - then -- exec -a "<INSTALLDIR>/bin/icpc" <INSTALLDIR>/bin/icpcbin "$@"; -+ i=0 -+ argc=$# -+ while [ $i -lt $argc ] ; do -+ val1=$1 -+ shift -+ val2=${val1#"-openmp"} -+ if [ ${#val1} -gt ${#val2} ] ; then -+ echo "Sorry, option '$val1' is not supported on FreeBSD." -+ exit 1 -+ fi -+ val2=${val1#"-par"} -+ if [ ${#val1} -gt ${#val2} ] ; then -+ echo "Sorry, option '$val1' is not supported on FreeBSD." -+ exit 1 -+ fi -+ if [ "${val1}" = "-cxxlib-icc" ] ; then -+ set -- "$@" "-I${ICC_LOCALBASE}/include/stlport" -+ set -- "$@" "-Qoption,ld,-CPLUSPLUS" -+ fi -+ if [ "${val1}" = "-Kpic" ] || [ "${val1}" = "-KPIC" ] || \ -+ [ "${val1}" = "-fpic" ] || [ "${val1}" = "-fPIC" ] ; then -+ set -- "$@" "-Qoption,ld,-PIC" -+ fi -+ if [ "${val1}" = "-mt" ] ; then -+ unset val1 -+ set -- "$@" "-Qoption,ld,-MT" -+ fi -+ if [ "${val1}" = "-pipe" ] ; then -+ unset val1 -+ set -- "$@" -+ fi -+ set -- "$@" "$val1" -+ i=$(($i+1)) -+ done -+ exec <INSTALLDIR>/bin/icpcbin "$@"; - else -- exec -a "<INSTALLDIR>/bin/icpc" <INSTALLDIR>/bin/icpcbin; -+ exec <INSTALLDIR>/bin/icpcbin; - fi diff --git a/lang/icc/files/patch-include__c++__cstdio b/lang/icc/files/patch-include__c++__cstdio deleted file mode 100644 index 64a832a67796..000000000000 --- a/lang/icc/files/patch-include__c++__cstdio +++ /dev/null @@ -1,67 +0,0 @@ ---- include/c++/cstdio.orig Wed Mar 17 14:14:58 2004 -+++ include/c++/cstdio Wed Mar 17 14:17:22 2004 -@@ -13,40 +13,6 @@ - #include <stdio.h> - #endif /* _STD_USING */ - -- #if defined(__GLIBC__) /* compiler test */ -- -- #define _HAS_POINTER_CLIB 1 -- #define _RBEGIN _IO_read_base -- #define _RNEXT _IO_read_ptr -- #define _REND _IO_read_end -- #define _WBEGIN _IO_write_base -- #define _WNEXT _IO_write_ptr -- #define _WEND _IO_write_end -- #endif /* defined(__GLIBC__) */ -- -- #if !defined(__GLIBC__) /* compiler test */ -- -- #if defined(__MWERKS__) -- #define _IOBASE buffer -- #define _IOPTR buffer_ptr -- #define _IOCNT buffer_len -- -- #else /* elif defined(__sun) */ -- #define _IOBASE _base -- #define _IOPTR _ptr -- #define _IOCNT _cnt -- #endif /* defined(__MWERKS__) */ -- -- #endif /* !defined(__GLIBC__) etc. */ -- -- #ifndef _HAS_POINTER_CLIB --/* -- I do not know, why this is defined here, but this breaks down library -- compilation. Commented out as QNX does -- */ --// #define _HAS_CONVENTIONAL_CLIB 1 -- #endif /* _HAS_POINTER_CLIB */ -- - #ifdef _GLOBAL_USING - _STD_BEGIN - using _CSTD size_t; using _CSTD fpos_t; using _CSTD FILE; -@@ -74,23 +40,6 @@ - _STD_END - #endif /* _GLOBAL_USING */ - --#ifndef __QNX__ --#ifndef _Filet -- #define _Filet FILE --#endif /* _Filet */ --#endif /* __QNX__ */ -- --#ifndef _FPOSOFF -- -- #if defined(__GLIBC__) /* compiler test */ \ -- && !(__GLIBC__ < 2 || __GLIBC__ == 2 && __GLIBC_MINOR__ < 2) -- #define _FPOSOFF(fp) ((long)(fp).__pos) -- -- #else /* !defined(__GLIBC__) etc. */ -- #define _FPOSOFF(fp) ((long)(fp)) -- #endif /* !defined(__GLIBC__) etc. */ -- --#endif /* _FPOSOFF */ - #endif /* _CSTDIO_ */ - - /* diff --git a/lang/icc/files/patch-include__c++__cstdlib b/lang/icc/files/patch-include__c++__cstdlib deleted file mode 100644 index f8157fbcc2cf..000000000000 --- a/lang/icc/files/patch-include__c++__cstdlib +++ /dev/null @@ -1,11 +0,0 @@ ---- include/c++/cstdlib.orig Sat Dec 13 19:29:45 2003 -+++ include/c++/cstdlib Sat Dec 13 19:32:21 2003 -@@ -12,7 +12,7 @@ - #else /* _STD_USING */ - #include <stdlib.h> - -- #if defined(__GLIBC__) -+ #if defined(__GLIBC__) || defined(__FreeBSD__) - _STD_BEGIN - /* long OVERLOADS */ - inline long (abs)(long _Left) diff --git a/lang/icc/files/patch-include__c++__cwchar b/lang/icc/files/patch-include__c++__cwchar deleted file mode 100644 index 9f930394d647..000000000000 --- a/lang/icc/files/patch-include__c++__cwchar +++ /dev/null @@ -1,61 +0,0 @@ ---- include/c++/cwchar.orig Wed Mar 17 14:30:53 2004 -+++ include/c++/cwchar Wed Mar 17 14:33:12 2004 -@@ -9,27 +9,12 @@ - #include <wchar.h> - #define _STD_USING - --#ifndef __QNX__ --typedef mbstate_t _Mbstatet; --#endif /* __QNX__ */ -- - #else /* _STD_USING */ - #include <wchar.h> - --#ifndef WCHAR_MAX -- #define WCHAR_MAX 0x7fff --#endif /* WCHAR_MAX */ -- --#ifndef WCHAR_MIN -- #define WCHAR_MIN 0 --#endif /* WCHAR_MIN */ -- -- --typedef mbstate_t _Mbstatet; -- - #ifdef _GLOBAL_USING - _STD_BEGIN --using _CSTD mbstate_t; using _CSTD size_t; using _CSTD tm; using _CSTD wint_t; -+using _CSTD mbstate_t; using _CSTD size_t; /* using _CSTD tm; */ using _CSTD wint_t; - - #if __GLIBC__ > 2 || __GLIBC__ == 2 && __GLIBC_MINOR__ >= 2 - using _CSTD fgetwc; using _CSTD fgetws; using _CSTD fputwc; -@@ -37,20 +22,20 @@ - using _CSTD putwc; using _CSTD putwchar; using _CSTD ungetwc; - #endif - --using _CSTD btowc; --using _CSTD mbrlen; using _CSTD mbrtowc; using _CSTD mbsrtowcs; --using _CSTD mbsinit; --using _CSTD wcrtomb; --using _CSTD wcsrtombs; using _CSTD wcstol; using _CSTD wcscat; --using _CSTD wcschr; using _CSTD wcscmp; using _CSTD wcscoll; -+// using _CSTD btowc; -+// using _CSTD mbrlen; using _CSTD mbrtowc; using _CSTD mbsrtowcs; -+// using _CSTD mbsinit; -+// using _CSTD wcrtomb; -+/* using _CSTD wcsrtombs; using _CSTD wcstol; */ using _CSTD wcscat; -+using _CSTD wcschr; using _CSTD wcscmp; // using _CSTD wcscoll; - using _CSTD wcscpy; using _CSTD wcscspn; using _CSTD wcslen; - using _CSTD wcsncat; using _CSTD wcsncmp; using _CSTD wcsncpy; - using _CSTD wcspbrk; using _CSTD wcsrchr; using _CSTD wcsspn; --using _CSTD wcstod; using _CSTD wcstoul; using _CSTD wcsstr; --using _CSTD wcstok; using _CSTD wcsxfrm; using _CSTD wctob; -+/* using _CSTD wcstod; using _CSTD wcstoul; */ using _CSTD wcsstr; -+// using _CSTD wcstok; using _CSTD wcsxfrm; using _CSTD wctob; - using _CSTD wmemchr; using _CSTD wmemcmp; using _CSTD wmemcpy; - using _CSTD wmemmove; using _CSTD wmemset; --using _CSTD wcsftime; -+// using _CSTD wcsftime; - - #ifdef __USE_ISOC99 - using _CSTD fwide; using _CSTD fwprintf; diff --git a/lang/icc/files/patch-include__c++__yvals.h b/lang/icc/files/patch-include__c++__yvals.h deleted file mode 100644 index a44516b948f9..000000000000 --- a/lang/icc/files/patch-include__c++__yvals.h +++ /dev/null @@ -1,392 +0,0 @@ ---- include/c++/yvals.h.orig Thu Mar 18 20:22:51 2004 -+++ include/c++/yvals.h Sat Mar 27 13:32:51 2004 -@@ -7,24 +7,6 @@ - - _ABRCPP -- to turn ON Abridged C++ dialect (implies _ECPP) - _ECPP -- to turn ON Embedded C++ dialect --_NO_MT -- to turn OFF thread synchronization --_STL_DB (or _STLP_DEBUG) -- to turn ON iterator/range debugging -- --You can change (in this header): -- --_COMPILER_TLS -- from 0 to 1 if _TLS_QUAL is not nil --_EXFAIL -- from 1 to any nonzero value for EXIT_FAILURE --_FILE_OP_LOCKS -- from 0 to 1 for file atomic locks --_GLOBAL_LOCALE -- from 0 to 1 for shared locales instead of per-thread --_HAS_IMMUTABLE_SETS -- from 1 to 0 to permit alterable set elements --_HAS_STRICT_CONFORMANCE -- from 0 to 1 to disable nonconforming extensions --_HAS_TRADITIONAL_IOSTREAMS -- from 1 to 0 to omit old iostreams functions --_HAS_TRADITIONAL_ITERATORS -- from 1 to 0 to change vector/string iterators from -- just pointers to something more complicated --_HAS_TRADITIONAL_POS_TYPE -- from 0 to 1 for streampos same as streamoff --_HAS_TRADITIONAL_STL -- from 1 to 0 to omit old STL functions --_IOSTREAM_OP_LOCKS -- from 0 to 1 for iostream atomic locks --_TLS_QUAL -- from nil to compiler TLS qualifier, such as __declspec(thread) - - Include directories needed to compile with Dinkum C: - -@@ -47,85 +29,10 @@ - (--export --template_dir=lib/export) - */ - --#define __need___va_list --#include <stdarg.h> -- --#if !(defined __QNX__) --#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 */ --#endif /* __QNX__ */ -- --#define _CPPLIB_VER 402 -- -- /* DETERMINE MACHINE TYPE */ -- -- #if defined(i386) || defined(__i386) \ -- || defined(__i386__) || defined(_M_IX86) /* Pentium */ -- #define _D0 3 /* 0: big endian, 3: little endian floating-point */ -- #define _DLONG 1 /* 0: 64, 1: 80, 2: 128 long double bits */ -- #define _LBIAS 0x3ffe /* 80/128 long double bits */ -- #define _LOFF 15 /* 80/128 long double bits */ -- #define _FPP_TYPE _FPP_X86 /* Pentium FPP */ -- -- #elif defined(ia64) || defined(__ia64) || defined(__ia64__) /* Itanium(R) */ -- #define _D0 3 /* 0: big endian, 3: little endian floating-point */ -- #define _DLONG 1 /* 0: 64, 1: 80, 2: 128 long double bits */ -- #define _LBIAS 0x3ffe /* 80/128 long double bits */ -- #define _LOFF 15 /* 80/128 long double bits */ -- #define _FPP_TYPE _FPP_IA64 /* HP PA-RISC FPP */ -- -- #else /* system detector */ --/* #error unknown compilation environment, guess big-endian */ -- #define _D0 0 /* 0: big endian, 3: little endian floating-point */ -- #define _DLONG 0 /* 0: 64, 1: 80, 2: 128 long double bits */ -- #define _LBIAS 0x3fe /* 64 long double bits */ -- #define _LOFF 4 /* 64 long double bits */ -- #endif /* system detector */ -- -- /* DETERMINE _Ptrdifft AND _Sizet FROM MACHINE TYPE */ -- -- #if defined(_MACH_I32) --typedef _MACH_I32 _Int32t; --typedef unsigned _MACH_I32 _Uint32t; -- -- #else /* defined(_MACH_I32) */ -- #if defined __QNX__ --typedef unsigned _Uint32t __attribute__((__aligned__(4))); --typedef int _Int32t __attribute__((__aligned__(4))); -- #else /* __QNX__ */ --typedef long _Int32t; --typedef unsigned long _Uint32t; -- #endif /* __QNX__ */ -- #endif /* defined(_MACH_I32) */ -- -- #if defined(_MACH_PDT) --typedef _MACH_PDT _Ptrdifft; -- -- #else /* defined(_MACH_PDT) */ --typedef __PTRDIFF_TYPE__ _Ptrdifft; -- #endif /* defined(_MACH_PDT) */ -- -- #if defined(_MACH_SZT) --typedef _MACH_SZT _Sizet; -- -- #else /* defined(_MACH_SZT) */ --typedef __SIZE_TYPE__ _Sizet; -- #endif /* defined(_MACH_SZT) */ -- -- #if defined(__linux) -- #define _LINUX_C_LIB 1 /* Linux-specific conventions */ -- #endif /* defined(__linux) */ -- -- #define _POSIX_C_LIB 1 /* use common Unix/Linux conventions */ -- - #if !defined(_HAS_C9X) && defined(_C99) - #define _HAS_C9X 1 - #endif /* !defined(_HAS_C9X) etc. */ - -- #define _HAS_C9X_IMAGINARY_TYPE (_HAS_C9X && __EDG__ \ -- && !defined(__cplusplus)) -- - #if !defined(_ECPP) && defined(_ABRCPP) - #define _ECPP - #endif /* !defined(_ECPP) && defined(_ABRCPP) */ -@@ -146,56 +53,8 @@ - #define _HAS_NAMESPACE 1 /* 1 for C++ names in std */ - #endif /* _HAS_NAMESPACE */ - -- #if !defined(_HAS_STRICT_LINKAGE) \ -- && __EDG__ -- #define _HAS_STRICT_LINKAGE 1 /* extern "C" in function type */ -- #endif /* !defined(_HAS_STRICT_LINKAGE) */ -- -- /* THREAD AND LOCALE CONTROL */ -- #ifndef _MULTI_THREAD -- -- #ifdef __CYGWIN__ -- #define _MULTI_THREAD 0 /* Cygwin has dummy thread library */ -- -- #else /* __CYGWIN__ */ -- #ifndef _NO_MT -- #define _MULTI_THREAD 1 /* 0 for no thread locks */ -- -- #else -- #define _MULTI_THREAD 0 -- #endif /* _NO_MT */ -- -- #endif /* __CYGWIN__ */ -- #endif /* _MULTI_THREAD */ -- --#define _GLOBAL_LOCALE 0 /* 0 for per-thread locales, 1 for shared */ --#define _FILE_OP_LOCKS 0 /* 0 for no FILE locks, 1 for atomic */ -- --#ifndef _IOSTREAM_OP_LOCKS -- #define _IOSTREAM_OP_LOCKS 1 /* 0 for no iostream locks, 1 for atomic */ --#endif /* _IOSTREAM_OP_LOCKS */ -- -- /* THREAD-LOCAL STORAGE */ --#define _COMPILER_TLS 0 /* 1 if compiler supports TLS directly */ --#define _TLS_QUAL /* TLS qualifier, such as __declspec(thread), if any */ -- -- #define _HAS_PLACEMENT_DELETE 1 -- -- #define _HAS_IMMUTABLE_SETS 1 -- #define _HAS_TRADITIONAL_IOSTREAMS 1 -- #define _HAS_TRADITIONAL_ITERATORS 1 -- #define _HAS_TRADITIONAL_POS_TYPE 1 - #define _HAS_TRADITIONAL_STL 1 - -- #if !defined(_HAS_STRICT_CONFORMANCE) -- #define _HAS_STRICT_CONFORMANCE 0 /* enable nonconforming extensions */ -- #endif /* !defined(_HAS_STRICT_CONFORMANCE) */ -- -- #if !defined(_HAS_ITERATOR_DEBUGGING) \ -- && (defined(_STL_DB) || defined(_STLP_DEBUG)) -- #define _HAS_ITERATOR_DEBUGGING 1 /* for range checks, etc. */ -- #endif /* define _HAS_ITERATOR_DEBUGGING */ -- - /* NAMESPACE CONTROL */ - #if defined(__QNX__) && defined(__cplusplus) - #define _STD_USING 1 /* To be compatible with QNX, where _STD_USING defined for C++ only */ -@@ -283,221 +142,13 @@ - #define _END_EXTERN_C - #endif /* __cplusplus */ - -- #if defined(__cplusplus) -- #define _C99_float_complex float __complex__ -- #define _C99_double_complex double __complex__ -- #define _C99_ldouble_complex long double __complex__ -- #endif /* defined(__cplusplus) */ -- -- #define _Restrict -- -- #ifdef __cplusplus --_STD_BEGIN --typedef bool _Bool; --_STD_END -- #endif /* __cplusplus */ -- - /* VC++ COMPILER PARAMETERS */ -- #define _CRTIMP - #define _CDECL - -- #define _LONGLONG long long -- #define _ULONGLONG unsigned long long -- #define _LLONG_MAX 0x7fffffffffffffffLL -- #define _ULLONG_MAX 0xffffffffffffffffULL --typedef _LONGLONG _Longlong; --typedef _ULONGLONG _ULonglong; -- --_C_STD_BEGIN -- /* FLOATING-POINT PROPERTIES */ --#define _DBIAS 0x3fe /* IEEE format double and float */ --#define _DOFF 4 --#define _FBIAS 0x7e --#define _FOFF 7 --#define _FRND 1 -- -- /* INTEGER PROPERTIES */ --#define _BITS_BYTE 8 --#define _C2 1 /* 0 if not 2's complement */ --#define _MBMAX 8 /* MB_LEN_MAX */ --#define _ILONG 1 /* 0 if 16-bit int */ -- -- #if defined(__CHAR_UNSIGNED__) \ -- || defined(_CHAR_UNSIGNED) -- #define _CSIGN 0 /* 0 if char is not signed */ -- -- #else /* defined(__CHAR_UNSIGNED__) etc */ -- #define _CSIGN 1 -- #endif /* defined(__CHAR_UNSIGNED__) etc */ -- --#define _MAX_EXP_DIG 8 /* for parsing numerics */ --#define _MAX_INT_DIG 32 --#define _MAX_SIG_DIG 36 -- -- /* wchar_t AND wint_t PROPERTIES */ -- -- #if defined(_WCHAR_T) || defined(_WCHAR_T_DEFINED) \ -- || defined (_MSL_WCHAR_T_TYPE) -- #define _WCHART -- #endif /* defined(_WCHAR_T) || defined(_WCHAR_T_DEFINED) */ -- -- #if defined(_WINT_T) -- #define _WINTT -- #endif /* _WINT_T */ -- -- #ifdef __cplusplus -- #define _WCHART --typedef wchar_t _Wchart; -- #ifdef __QNX__ --/* define _Wint and wint_t as QNX does */ --typedef long _Wintt; --typedef _Wintt wint_t; -- #else /* __QNX__ */ --/* Original _Wint definition */ --typedef wchar_t _Wintt; -- #endif /* __QNX__ */ -- #endif /* __cplusplus */ -- -- #if defined(_MSL_WCHAR_T_TYPE) -- #define _WCMIN 0 -- #define _WCMAX 0xffff -- -- #ifndef __cplusplus --typedef wchar_t _Wchart; --typedef wint_t _Wintt; -- #endif /* __cplusplus */ -- -- #define mbstate_t _DNK_mbstate_t -- #define wctype_t _DNK_wctype_t -- #define wint_t _DNK_wint_t -- #define _MSC_VER 1 -- -- #elif defined(__CYGWIN__) -- #define _WCMIN (-_WCMAX - _C2) -- #define _WCMAX 0x7fff -- -- #ifndef __cplusplus --typedef short _Wchart; --typedef short _Wintt; -- #endif /* __cplusplus */ -- -- #elif defined(__WCHAR_TYPE__) -- #define _WCMIN (-_WCMAX - _C2) -- #define _WCMAX 0x7fffffff /* assume signed 32-bit wchar_t */ -- -- #ifndef __cplusplus -- #ifndef __QNX__ /* _Wchart declared in QNX system headers */ --typedef __WCHAR_TYPE__ _Wchart; --typedef __WCHAR_TYPE__ _Wintt; -- #endif /* __QNX__ */ -- #endif /* __cplusplus */ -- -- #else /* default wchar_t/wint_t */ -- #define _WCMIN (-_WCMAX - _C2) -- #define _WCMAX 0x7fffffff -- -- #ifndef __cplusplus --typedef long _Wchart; --typedef long _Wintt; -- #endif /* __cplusplus */ -- -- #endif /* compiler/library type */ -- -- /* POINTER PROPERTIES */ --#define _NULL 0L /* 0L if pointer same as long */ -- -- /* signal PROPERTIES */ -- --#define _SIGABRT 6 --#define _SIGMAX 44 -- -- /* stdarg PROPERTIES */ --#ifdef __x86_64__ --typedef __gnuc_va_list _Va_list; --#else --typedef va_list _Va_list; --#endif -- -- #if _HAS_C9X -- -- #if __EDG__ -- #undef va_copy -- #endif /* __EDG__ */ -- -- #ifndef va_copy --_EXTERN_C --void _Vacopy(_Va_list *, _Va_list); --_END_EXTERN_C -- #define va_copy(apd, aps) _Vacopy(&(apd), aps) -- #endif /* va_copy */ -- -- #endif /* _IS_C9X */ -- -- /* stdlib PROPERTIES */ --#define _EXFAIL 1 /* EXIT_FAILURE */ -- --_EXTERN_C --void __Atexit(void (*)(void)); --_END_EXTERN_C -- -- /* stdio PROPERTIES */ --#define _FNAMAX 260 --#define _FOPMAX 20 --#define _TNAMAX 16 -- -- #define _FD_TYPE int -- #define _FD_NO(str) ((str)->_Handle) -- #define _FD_VALID(fd) (0 <= (fd)) /* fd is signed integer */ -- #define _FD_INVALID (-1) -- #define _SYSCH(x) x --typedef char _Sysch_t; -- -- /* STORAGE ALIGNMENT PROPERTIES */ --#define _MEMBND 3U /* eight-byte boundaries (2^^3) */ -- -- /* time PROPERTIES */ --#define _TBIAS ((70 * 365LU + 17) * 86400) --_C_STD_END -- -- /* MULTITHREAD PROPERTIES */ --_STD_BEGIN -- #if _MULTI_THREAD --void _Locksyslock(int); --void _Unlocksyslock(int); -- -- #else /* _MULTI_THREAD */ -- #define _Locksyslock(x) (void)0 -- #define _Unlocksyslock(x) (void)0 -- #endif /* _MULTI_THREAD */ --_STD_END -- /* LOCK MACROS */ -- #define _LOCK_LOCALE 0 -- #define _LOCK_MALLOC 1 -- #define _LOCK_STREAM 2 -- #define _LOCK_DEBUG 3 -- #define _MAX_LOCK 4 /* one more than highest lock number */ -- -- #if _IOSTREAM_OP_LOCKS -- #define _MAYBE_LOCK -- -- #else /* _IOSTREAM_OP_LOCKS */ -- #define _MAYBE_LOCK \ -- if (_Locktype == _LOCK_MALLOC || _Locktype == _LOCK_DEBUG) -- #endif /* _IOSTREAM_OP_LOCKS */ -- -- /* MISCELLANEOUS MACROS */ --#define _ATEXIT_T void -- --#define _MAX (max) --#define _MIN (min) -- - #define _TEMPLATE_STAT - - #if 0 < __GNUC__ - #define _NO_RETURN(fun) void fun __attribute__((__noreturn__)) -- -- #elif 1200 <= _MSC_VER -- #define _NO_RETURN(fun) __declspec(noreturn) void fun - - #else /* compiler selector */ - #define _NO_RETURN(fun) void fun diff --git a/lang/icc/files/patch-include__dvec.h b/lang/icc/files/patch-include__dvec.h deleted file mode 100644 index a8f4ff75ca64..000000000000 --- a/lang/icc/files/patch-include__dvec.h +++ /dev/null @@ -1,24 +0,0 @@ ---- include/dvec.h.orig Sat Jun 4 17:31:49 2005 -+++ include/dvec.h Sat Jun 4 17:34:42 2005 -@@ -38,7 +38,7 @@ - - - /* If using MSVC5.0, explicit keyword should be used */ --#if (_MSC_VER >= 1100) || defined (__linux__) || defined(__QNX__) -+#if (_MSC_VER >= 1100) || defined (__linux__) || defined(__QNX__) || defined (__FreeBSD__) - #define EXPLICIT explicit - #else - #if (__INTEL_COMPILER) -@@ -50,10 +50,10 @@ - #endif - - /* Figure out whether and how to define the output operators */ --#if defined(_IOSTREAM_) || defined(_CPP_IOSTREAM) -+#if defined(_IOSTREAM_) || defined(_CPP_IOSTREAM) || defined(_STLP_IOSTREAM) - #define DVEC_DEFINE_OUTPUT_OPERATORS - #define DVEC_STD std:: --#elif defined(_INC_IOSTREAM) || defined(_IOSTREAM_H_) -+#elif defined(_INC_IOSTREAM) || defined(_IOSTREAM_H_) || defined(_STLP_IOSTREAM_H) - #define DVEC_DEFINE_OUTPUT_OPERATORS - #define DVEC_STD - #endif diff --git a/lang/icc/files/patch-include__fvec.h b/lang/icc/files/patch-include__fvec.h deleted file mode 100644 index 0ec03efd745f..000000000000 --- a/lang/icc/files/patch-include__fvec.h +++ /dev/null @@ -1,24 +0,0 @@ ---- include/fvec.h.orig Sat Jun 4 17:36:19 2005 -+++ include/fvec.h Sat Jun 4 17:45:48 2005 -@@ -41,7 +41,7 @@ - #pragma pack(push,16) /* Must ensure class & union 16-B aligned */ - - /* If using MSVC5.0, explicit keyword should be used */ --#if (_MSC_VER >= 1100) || defined (__linux__) || defined(__QNX__) -+#if (_MSC_VER >= 1100) || defined (__linux__) || defined(__QNX__) || defined (__FreeBSD__) - #define EXPLICIT explicit - #else - #if (__INTEL_COMPILER) -@@ -53,10 +53,10 @@ - #endif - - /* Figure out whether and how to define the output operators */ --#if defined(_IOSTREAM_) || defined(_CPP_IOSTREAM) -+#if defined(_IOSTREAM_) || defined(_CPP_IOSTREAM) || defined(_STLP_IOSTREAM) - #define FVEC_DEFINE_OUTPUT_OPERATORS - #define FVEC_STD std:: --#elif defined(_INC_IOSTREAM) || defined(_IOSTREAM_H_) -+#elif defined(_INC_IOSTREAM) || defined(_IOSTREAM_H_) || defined(_STLP_IOSTREAM_H) - #define FVEC_DEFINE_OUTPUT_OPERATORS - #define FVEC_STD - #endif diff --git a/lang/icc/files/patch-include__ivec.h b/lang/icc/files/patch-include__ivec.h deleted file mode 100644 index f250e87f4c94..000000000000 --- a/lang/icc/files/patch-include__ivec.h +++ /dev/null @@ -1,24 +0,0 @@ ---- include/ivec.h.orig Sat Jun 4 17:36:19 2005 -+++ include/ivec.h Sat Jun 4 17:47:23 2005 -@@ -23,7 +23,7 @@ - #include <assert.h> - - /* If using MSVC5.0, explicit keyword should be used */ --#if (_MSC_VER >= 1100) || defined (__linux__) || defined(__QNX__) -+#if (_MSC_VER >= 1100) || defined (__linux__) || defined(__QNX__) || defined (__FreeBSD__) - #define EXPLICIT explicit - #else - #if (__INTEL_COMPILER) -@@ -35,10 +35,10 @@ - #endif - - /* Figure out whether and how to define the output operators */ --#if defined(_IOSTREAM_) || defined(_CPP_IOSTREAM) -+#if defined(_IOSTREAM_) || defined(_CPP_IOSTREAM) || defined(_STLP_IOSTREAM) - #define IVEC_DEFINE_OUTPUT_OPERATORS - #define IVEC_STD std:: --#elif defined(_INC_IOSTREAM) || defined(_IOSTREAM_H_) -+#elif defined(_INC_IOSTREAM) || defined(_IOSTREAM_H_) || defined(_STLP_IOSTREAM_H) - #define IVEC_DEFINE_OUTPUT_OPERATORS - #define IVEC_STD - #endif diff --git a/lang/icc/files/patch-include__mathimf.h b/lang/icc/files/patch-include__mathimf.h deleted file mode 100644 index 8de149da80b2..000000000000 --- a/lang/icc/files/patch-include__mathimf.h +++ /dev/null @@ -1,348 +0,0 @@ ---- include/mathimf.h.orig Sun Dec 12 17:56:24 2004 -+++ include/mathimf.h Sun Dec 12 18:02:12 2004 -@@ -40,7 +40,7 @@ - # endif - #endif - --#if defined(__linux__) -+#if defined(__linux__) || defined(__FreeBSD__) - # include <math.h> /* utilize GNU math header */ - # if defined(fpclassify) - # undef fpclassify -@@ -262,7 +262,7 @@ - - /* Radian argument trigonometric functions */ - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI acos( _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI acosf( _LIBIMF_FLOAT __x ); -@@ -292,7 +292,7 @@ - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI tanf( _LIBIMF_FLOAT __x ); - _LIBIMF_EXT _LIBIMF_XDOUBLE _LIBIMF_PUBAPI tanl( _LIBIMF_XDOUBLE __x ); - --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI cot( _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI cotf( _LIBIMF_FLOAT __x ); -@@ -346,7 +346,7 @@ - - /* Hyperbolic functions */ - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI acosh( _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI acoshf( _LIBIMF_FLOAT __x ); -@@ -372,7 +372,7 @@ - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI tanhf( _LIBIMF_FLOAT __x ); - _LIBIMF_EXT _LIBIMF_XDOUBLE _LIBIMF_PUBAPI tanhl( _LIBIMF_XDOUBLE __x ); - --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - - _LIBIMF_EXT _LIBIMF_VOID _LIBIMF_PUBAPI sinhcosh( _LIBIMF_DOUBLE __x, _LIBIMF_DOUBLE *__psinh, _LIBIMF_DOUBLE *__pcosh ); - _LIBIMF_EXT _LIBIMF_VOID _LIBIMF_PUBAPI sinhcoshf( _LIBIMF_FLOAT __x, _LIBIMF_FLOAT *__psinh, _LIBIMF_FLOAT *__pcosh ); -@@ -380,13 +380,13 @@ - - /* Exponential functions */ - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI exp( _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI expf( _LIBIMF_FLOAT __x ); - _LIBIMF_EXT _LIBIMF_XDOUBLE _LIBIMF_PUBAPI expl( _LIBIMF_XDOUBLE __x ); - --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI exp2( _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI exp2f( _LIBIMF_FLOAT __x ); -@@ -396,7 +396,7 @@ - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI exp10f( _LIBIMF_FLOAT __x ); - _LIBIMF_EXT _LIBIMF_XDOUBLE _LIBIMF_PUBAPI exp10l( _LIBIMF_XDOUBLE __x ); - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI expm1( _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI expm1f( _LIBIMF_FLOAT __x ); -@@ -418,7 +418,7 @@ - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI scalbnf( _LIBIMF_FLOAT __x, _LIBIMF_INT __n ); - _LIBIMF_EXT _LIBIMF_XDOUBLE _LIBIMF_PUBAPI scalbnl( _LIBIMF_XDOUBLE __x, _LIBIMF_INT __n ); - --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI scalbln( _LIBIMF_DOUBLE __x, _LIBIMF_LONGINT __n ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI scalblnf( _LIBIMF_FLOAT __x, _LIBIMF_LONGINT __n ); -@@ -426,19 +426,19 @@ - - /* Logarithmic functions */ - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI log( _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI logf( _LIBIMF_FLOAT __x ); - _LIBIMF_EXT _LIBIMF_XDOUBLE _LIBIMF_PUBAPI logl( _LIBIMF_XDOUBLE __x ); - --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI log2( _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI log2f( _LIBIMF_FLOAT __x ); - _LIBIMF_EXT _LIBIMF_XDOUBLE _LIBIMF_PUBAPI log2l( _LIBIMF_XDOUBLE __x ); - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI log10( _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI log10f( _LIBIMF_FLOAT __x ); -@@ -460,11 +460,11 @@ - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI modff( _LIBIMF_FLOAT __x, _LIBIMF_FLOAT *__iptr ); - _LIBIMF_EXT _LIBIMF_XDOUBLE _LIBIMF_PUBAPI modfl( _LIBIMF_XDOUBLE __x, _LIBIMF_XDOUBLE *__iptr ); - --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - - /* Power/root/abs functions */ - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI cbrt( _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI cbrtf( _LIBIMF_FLOAT __x ); -@@ -486,7 +486,7 @@ - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI sqrtf( _LIBIMF_FLOAT __x ); - _LIBIMF_EXT _LIBIMF_XDOUBLE _LIBIMF_PUBAPI sqrtl( _LIBIMF_XDOUBLE __x ); - --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI invsqrt( _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI invsqrtf( _LIBIMF_FLOAT __x ); -@@ -494,7 +494,7 @@ - - /* Error and gamma functions */ - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI erf( _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI erff( _LIBIMF_FLOAT __x ); -@@ -516,7 +516,7 @@ - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI gammaf( _LIBIMF_FLOAT __x ); - _LIBIMF_EXT _LIBIMF_XDOUBLE _LIBIMF_PUBAPI gammal( _LIBIMF_XDOUBLE __x ); - --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI gamma_r( _LIBIMF_DOUBLE __x, _LIBIMF_INT *__signgam ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI gammaf_r( _LIBIMF_FLOAT __x, _LIBIMF_INT *__signgam ); -@@ -528,7 +528,7 @@ - - /* Nearest integer functions */ - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI ceil( _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI ceilf( _LIBIMF_FLOAT __x ); -@@ -538,19 +538,19 @@ - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI floorf( _LIBIMF_FLOAT __x ); - _LIBIMF_EXT _LIBIMF_XDOUBLE _LIBIMF_PUBAPI floorl( _LIBIMF_XDOUBLE __x ); - --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI nearbyint( _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI nearbyintf( _LIBIMF_FLOAT __x ); - _LIBIMF_EXT _LIBIMF_XDOUBLE _LIBIMF_PUBAPI nearbyintl( _LIBIMF_XDOUBLE __x ); - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI rint( _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI rintf( _LIBIMF_FLOAT __x ); - _LIBIMF_EXT _LIBIMF_XDOUBLE _LIBIMF_PUBAPI rintl( _LIBIMF_XDOUBLE __x ); - --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - - _LIBIMF_EXT _LIBIMF_LONGINT _LIBIMF_PUBAPI lrint( _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_LONGINT _LIBIMF_PUBAPI lrintf( _LIBIMF_FLOAT __x ); -@@ -578,7 +578,7 @@ - - /* Remainder functions */ - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI fmod( _LIBIMF_DOUBLE __x, _LIBIMF_DOUBLE __y ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI fmodf( _LIBIMF_FLOAT __x, _LIBIMF_FLOAT __y ); -@@ -588,7 +588,7 @@ - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI remainderf( _LIBIMF_FLOAT __x, _LIBIMF_FLOAT __y ); - _LIBIMF_EXT _LIBIMF_XDOUBLE _LIBIMF_PUBAPI remainderl( _LIBIMF_XDOUBLE __x, _LIBIMF_XDOUBLE __y ); - --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI remquo( _LIBIMF_DOUBLE __x, _LIBIMF_DOUBLE __y, _LIBIMF_INT *__quo ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI remquof( _LIBIMF_FLOAT __x, _LIBIMF_FLOAT __y, _LIBIMF_INT *__quo ); -@@ -596,7 +596,7 @@ - - /* Manipulation functions */ - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI significand( _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI significandf( _LIBIMF_FLOAT __x ); -@@ -610,7 +610,7 @@ - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI nextafterf( _LIBIMF_FLOAT __x, _LIBIMF_FLOAT __y ); - _LIBIMF_EXT _LIBIMF_XDOUBLE _LIBIMF_PUBAPI nextafterl( _LIBIMF_XDOUBLE __x, _LIBIMF_XDOUBLE __y ); - --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI nexttoward( _LIBIMF_DOUBLE __x, _LIBIMF_XDOUBLE __y ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI nexttowardf( _LIBIMF_FLOAT __x, _LIBIMF_XDOUBLE __y ); -@@ -646,7 +646,7 @@ - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI compoundf( _LIBIMF_FLOAT __x, _LIBIMF_FLOAT __y ); - _LIBIMF_EXT _LIBIMF_XDOUBLE _LIBIMF_PUBAPI compoundl( _LIBIMF_XDOUBLE __x, _LIBIMF_XDOUBLE __y ); - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI j0( _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI j0f( _LIBIMF_FLOAT __x ); -@@ -666,7 +666,7 @@ - _LIBIMF_EXT _LIBIMF_DOUBLE _LIBIMF_PUBAPI yn( _LIBIMF_INT __n, _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI ynf( _LIBIMF_INT __n, _LIBIMF_FLOAT __x ); - --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - - #if (__IMFLONGDOUBLE == 64) /* MS compatibility */ - # define acosdl acosd -@@ -784,7 +784,7 @@ - - /* Complex trigonometric functions */ - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - - _LIBIMF_EXT _LIBIMF_DCOMPLEX _LIBIMF_PUBAPI ccos( _LIBIMF_DCOMPLEX __z ); - _LIBIMF_EXT _LIBIMF_FCOMPLEX _LIBIMF_PUBAPI ccosf( _LIBIMF_FCOMPLEX __z ); -@@ -814,7 +814,7 @@ - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI cargf( _LIBIMF_FCOMPLEX __z ); - _LIBIMF_EXT _LIBIMF_XDOUBLE _LIBIMF_PUBAPI cargl( _LIBIMF_XCOMPLEX __z ); - --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - - _LIBIMF_EXT _LIBIMF_DCOMPLEX _LIBIMF_PUBAPI cis( _LIBIMF_DOUBLE __x ); - _LIBIMF_EXT _LIBIMF_FCOMPLEX _LIBIMF_PUBAPI cisf( _LIBIMF_FLOAT __x ); -@@ -826,13 +826,13 @@ - - /* Complex exponential functions */ - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - - _LIBIMF_EXT _LIBIMF_DCOMPLEX _LIBIMF_PUBAPI cexp( _LIBIMF_DCOMPLEX __z ); - _LIBIMF_EXT _LIBIMF_FCOMPLEX _LIBIMF_PUBAPI cexpf( _LIBIMF_FCOMPLEX __z ); - _LIBIMF_EXT _LIBIMF_XCOMPLEX _LIBIMF_PUBAPI cexpl( _LIBIMF_XCOMPLEX __z ); - --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - - _LIBIMF_EXT _LIBIMF_DCOMPLEX _LIBIMF_PUBAPI cexp2( _LIBIMF_DCOMPLEX __z ); - _LIBIMF_EXT _LIBIMF_FCOMPLEX _LIBIMF_PUBAPI cexp2f( _LIBIMF_FCOMPLEX __z ); -@@ -842,7 +842,7 @@ - _LIBIMF_EXT _LIBIMF_FCOMPLEX _LIBIMF_PUBAPI cexp10f( _LIBIMF_FCOMPLEX __z ); - _LIBIMF_EXT _LIBIMF_XCOMPLEX _LIBIMF_PUBAPI cexp10l( _LIBIMF_XCOMPLEX __z ); - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - - _LIBIMF_EXT _LIBIMF_DCOMPLEX _LIBIMF_PUBAPI ccosh( _LIBIMF_DCOMPLEX __z ); - _LIBIMF_EXT _LIBIMF_FCOMPLEX _LIBIMF_PUBAPI ccoshf( _LIBIMF_FCOMPLEX __z ); -@@ -868,17 +868,17 @@ - _LIBIMF_EXT _LIBIMF_FCOMPLEX _LIBIMF_PUBAPI catanhf( _LIBIMF_FCOMPLEX __z ); - _LIBIMF_EXT _LIBIMF_XCOMPLEX _LIBIMF_PUBAPI catanhl( _LIBIMF_XCOMPLEX __z ); - --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - - /* Complex logarithmic functions */ - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - - _LIBIMF_EXT _LIBIMF_DCOMPLEX _LIBIMF_PUBAPI clog( _LIBIMF_DCOMPLEX __z ); - _LIBIMF_EXT _LIBIMF_FCOMPLEX _LIBIMF_PUBAPI clogf( _LIBIMF_FCOMPLEX __z ); - _LIBIMF_EXT _LIBIMF_XCOMPLEX _LIBIMF_PUBAPI clogl( _LIBIMF_XCOMPLEX __z ); - --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - - _LIBIMF_EXT _LIBIMF_DCOMPLEX _LIBIMF_PUBAPI clog2( _LIBIMF_DCOMPLEX __z ); - _LIBIMF_EXT _LIBIMF_FCOMPLEX _LIBIMF_PUBAPI clog2f( _LIBIMF_FCOMPLEX __z ); -@@ -890,7 +890,7 @@ - - /* Complex power/root/abs functions */ - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - - _LIBIMF_EXT _LIBIMF_DCOMPLEX _LIBIMF_PUBAPI cpow( _LIBIMF_DCOMPLEX __z, _LIBIMF_DCOMPLEX __c ); - _LIBIMF_EXT _LIBIMF_FCOMPLEX _LIBIMF_PUBAPI cpowf( _LIBIMF_FCOMPLEX __z, _LIBIMF_FCOMPLEX __c ); -@@ -904,11 +904,11 @@ - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI cabsf( _LIBIMF_FCOMPLEX __z ); - _LIBIMF_EXT _LIBIMF_XDOUBLE _LIBIMF_PUBAPI cabsl( _LIBIMF_XCOMPLEX __z ); - --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - - /* Other complex functions */ - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - - _LIBIMF_EXT _LIBIMF_DCOMPLEX _LIBIMF_PUBAPI conj( _LIBIMF_DCOMPLEX __z ); - _LIBIMF_EXT _LIBIMF_FCOMPLEX _LIBIMF_PUBAPI conjf( _LIBIMF_FCOMPLEX __z ); -@@ -926,7 +926,7 @@ - _LIBIMF_EXT _LIBIMF_FLOAT _LIBIMF_PUBAPI crealf( _LIBIMF_FCOMPLEX __z ); - _LIBIMF_EXT _LIBIMF_XDOUBLE _LIBIMF_PUBAPI creall( _LIBIMF_XCOMPLEX __z ); - --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - - #if (__IMFLONGDOUBLE == 64) /* MS compatibility */ - # define cabsl cabs -@@ -979,7 +979,7 @@ - _LIBIMF_DOUBLE retval; - } ___exception; - --#if defined(__linux__) -+#if defined(__linux__) || defined(__FreeBSD__) - # if defined(__cplusplus) - # define __exception ____exception /* map 'struct __exception' to 'struct ____exception' */ - # else /*__cplusplus*/ -@@ -1008,9 +1008,9 @@ - _LIBIMF_XDOUBLE retval; - } ___exceptionl; - --#if !defined(__linux__) -+#if !defined(__linux__) && !defined(__FreeBSD__) - _LIBIMF_EXT _LIBIMF_INT _LIBIMF_PUBAPI matherr( struct ____exception *__e ); --#endif /*!__linux__*/ -+#endif /*!__linux__ && !__FreeBSD__*/ - _LIBIMF_EXT _LIBIMF_INT _LIBIMF_PUBAPI matherrf( struct ____exceptionf *__e ); - _LIBIMF_EXT _LIBIMF_INT _LIBIMF_PUBAPI matherrl( struct ____exceptionl *__e ); - diff --git a/lang/icc/files/patch-include__xmmintrin.h b/lang/icc/files/patch-include__xmmintrin.h deleted file mode 100644 index 7169899b6abf..000000000000 --- a/lang/icc/files/patch-include__xmmintrin.h +++ /dev/null @@ -1,11 +0,0 @@ ---- include/xmmintrin.h.orig Wed Mar 17 14:42:12 2004 -+++ include/xmmintrin.h Wed Mar 17 14:42:31 2004 -@@ -18,7 +18,7 @@ - #ifndef _INCLUDED_MM2 - #define _INCLUDED_MM2 - --#if defined (__linux__) || defined (__QNX__) /* EIA Compiler does not compile either */ -+#if defined (__linux__) || defined (__FreeBSD__) || defined(__QNX__) /* EIA Compiler does not compile either */ - #define __cdecl - #endif - diff --git a/lang/icc/files/pkg-message.in b/lang/icc/files/pkg-message.in deleted file mode 100644 index 28c268e170ec..000000000000 --- a/lang/icc/files/pkg-message.in +++ /dev/null @@ -1,36 +0,0 @@ -[ -{ type: install - message: <<EOM -%%PKGNAME%% is now installed in %%PREFIX%%/%%COMPILERDIR%%, to use it you -have to put your license into your INTEL_FLEXLM_LICENSE (default: -%%PREFIX%%/%%COMPILERDIR%%/licenses) directory and add -%%PREFIX%%/%%COMPILERDIR%%/bin to your PATH. - -WARNING: If you use icc while having linux_devtools installed, icc will -use the wrong includes and therefore will generate non-working binaries! - -If you encounter problems with icc please consult the errata at -http://support.intel.com/support/performancetools/c/C_Compiler_Errata.htm -first. - -Call for benchmarks: Intel is interested to see some benchmark numbers -which compare gcc with icc. If you have a CPU produced by Intel and are -able to do benchmarks with either your own source or with one of our major -ports (e.g. with a webserver, a mailserver, a database system, an -important graphics suite/program or some important math tool, ...) please -try to spend some time to do a benchmark and send me (%%MAINTAINER%%) the -result. You should include your system specs (CPU: speed/model, RAM: -amount/speed, used disks (if necessary), chipset/mainboard type, ...), the -version of the used software (OS, gcc, icc, ...), non default tuning -options (kernel, sysctl) and the used compiler switches. If you don't use -some 'standard' benchmark (e.g. the official MySQL benchmark, or the -performance test suite of your prefered scripting language), please -include a description about the benchmark too. - -Please use FreeBSD as the name of your OS in communications with the -support, the larger the FreeBSD userbase is, more gets done on FreeBSD -specific issues by Intel. And please thank them for the FreeBSD support, -they are already spending some time to improve icc on FreeBSD. -EOM -} -] diff --git a/lang/icc/files/stdarg.h b/lang/icc/files/stdarg.h deleted file mode 100644 index e2f40091f821..000000000000 --- a/lang/icc/files/stdarg.h +++ /dev/null @@ -1,13 +0,0 @@ -#ifndef __INTEL_COMPILER_STDARG_H_ -#define __INTEL_COMPILER_STDARG_H_ - -#include_next <stdarg.h> - -#if __ISO_C_VISIBLE >= 1999 -/* Taken from original yvals.h. */ -#ifndef va_copy -#define va_copy(dest, src) ((dest) = (src)) -#endif -#endif - -#endif /* !__INTEL_COMPILER_STDARG_H_ */ diff --git a/lang/icc/files/stderr.c b/lang/icc/files/stderr.c deleted file mode 100644 index 43360a1ddcd1..000000000000 --- a/lang/icc/files/stderr.c +++ /dev/null @@ -1,30 +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. - */ - -#include <stdio.h> - -#undef stderr -FILE *stderr = &__sF[2]; diff --git a/lang/icc/files/stdin.c b/lang/icc/files/stdin.c deleted file mode 100644 index 87f806c26db3..000000000000 --- a/lang/icc/files/stdin.c +++ /dev/null @@ -1,30 +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. - */ - -#include <stdio.h> - -#undef stdin -FILE *stdin = &__sF[0]; diff --git a/lang/icc/files/stdout.c b/lang/icc/files/stdout.c deleted file mode 100644 index d6a0a6acd3d2..000000000000 --- a/lang/icc/files/stdout.c +++ /dev/null @@ -1,30 +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. - */ - -#include <stdio.h> - -#undef stdout -FILE *stdout = &__sF[1]; |