X-Git-Url: http://git.buserror.net/cgi-bin/gitweb.cgi?p=polintos%2Fscott%2Fpriv.git;a=blobdiff_plain;f=toolchain-patches%2Fgcc%2F4.1.0%2Fconfig.patch;fp=toolchain-patches%2Fgcc%2F4.1.0%2Fconfig.patch;h=2844ec384b34b9a5bf7891aeb1e03f7639dc0db9;hp=0000000000000000000000000000000000000000;hb=9b36e0babf885409bdfc643184f14a5300294859;hpb=5adc890ffae4f90536e72bc32ef83e1141689520 diff --git a/toolchain-patches/gcc/4.1.0/config.patch b/toolchain-patches/gcc/4.1.0/config.patch new file mode 100644 index 0000000..2844ec3 --- /dev/null +++ b/toolchain-patches/gcc/4.1.0/config.patch @@ -0,0 +1,279 @@ +diff -urN gcc-4.1.0/config.guess gcc-4.1.0-new/config.guess +--- gcc-4.1.0/config.guess Thu Nov 24 06:49:42 2005 ++++ gcc-4.1.0-new/config.guess Fri Apr 7 18:04:43 2006 +@@ -141,6 +141,9 @@ + # Note: order is significant - the case branches are not exclusive. + + case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in ++ *:PolIntOS:*:*) ++ echo ${UNAME_MACHINE}-polintos ++ exit 0 ;; + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, +diff -urN gcc-4.1.0/config.sub gcc-4.1.0-new/config.sub +--- gcc-4.1.0/config.sub Fri Dec 16 06:57:40 2005 ++++ gcc-4.1.0-new/config.sub Fri Apr 7 18:05:30 2006 +@@ -1202,7 +1202,7 @@ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ +- | -skyos* | -haiku*) ++ | -skyos* | -haiku* | -polintos*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) +--- gcc-4.1.0-new//gcc/config/i386/polintos.h.ORIG1 Wed Dec 31 18:00:00 1969 ++++ gcc-4.1.0-new//gcc/config/i386/polintos.h Sat Apr 8 19:04:55 2006 +@@ -0,0 +1,145 @@ ++/* Definitions for Intel x86 running PolIntOS. ++ Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2004 ++ Free Software Foundation, Inc. ++ Based on i386/linux.h ++ ++This file is part of GCC. ++ ++GCC is free software; you can redistribute it and/or modify ++it under the terms of the GNU General Public License as published by ++the Free Software Foundation; either version 2, or (at your option) ++any later version. ++ ++GCC is distributed in the hope that it will be useful, ++but WITHOUT ANY WARRANTY; without even the implied warranty of ++MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++GNU General Public License for more details. ++ ++You should have received a copy of the GNU General Public License ++along with GCC; see the file COPYING. If not, write to ++the Free Software Foundation, 51 Franklin Street, Fifth Floor, ++Boston, MA 02110-1301, USA. */ ++ ++/* Output at beginning of assembler file. */ ++/* The .file command should always begin the output. */ ++#define TARGET_ASM_FILE_START_FILE_DIRECTIVE true ++ ++#define TARGET_VERSION fprintf (stderr, " (x86 PolIntOS)"); ++ ++/* The svr4 ABI for the i386 says that records and unions are returned ++ in memory. */ ++#undef DEFAULT_PCC_STRUCT_RETURN ++#define DEFAULT_PCC_STRUCT_RETURN 1 ++ ++/* We arrange for the whole %gs segment to map the tls area. */ ++#undef TARGET_TLS_DIRECT_SEG_REFS_DEFAULT ++#define TARGET_TLS_DIRECT_SEG_REFS_DEFAULT MASK_TLS_DIRECT_SEG_REFS ++ ++#undef ASM_COMMENT_START ++#define ASM_COMMENT_START "#" ++ ++#define NO_PROFILE_COUNTERS 1 ++ ++#undef MCOUNT_NAME ++#define MCOUNT_NAME "mcount" ++ ++#define TARGET_OS_CPP_BUILTINS() do { \ ++ POLINTOS_TARGET_OS_CPP_BUILTINS(); \ ++ if (flag_pic) { \ ++ builtin_define("__PIC__"); \ ++ builtin_define("__pic__"); \ ++ } \ ++} while (0) ++ ++#define LINK_EMULATION "elf_i386" ++#define DYNAMIC_LINKER "/System/Libraries/DynamicLinker" ++ ++#undef SUBTARGET_EXTRA_SPECS ++#define SUBTARGET_EXTRA_SPECS \ ++ { "link_emulation", LINK_EMULATION },\ ++ { "dynamic_linker", DYNAMIC_LINKER } ++ ++#undef LINK_SPEC ++#define LINK_SPEC "-m %(link_emulation) %{shared:-shared} \ ++ %{!shared: \ ++ %{!ibcs: \ ++ %{!static: \ ++ %{rdynamic:-export-dynamic} \ ++ %{!dynamic-linker:-dynamic-linker %(dynamic_linker)}} \ ++ %{static:-static}}}" ++ ++#define OLD_ENDFILE_SPEC ENDFILE_SPEC ++#undef ENDFILE_SPEC ++#define ENDFILE_SPEC \ ++ "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} " OLD_ENDFILE_SPEC ++ ++/* A C statement (sans semicolon) to output to the stdio stream ++ FILE the assembler definition of uninitialized global DECL named ++ NAME whose size is SIZE bytes and alignment is ALIGN bytes. ++ Try to use asm_output_aligned_bss to implement this macro. */ ++ ++#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \ ++ asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN) ++ ++/* A C statement to output to the stdio stream FILE an assembler ++ command to advance the location counter to a multiple of 1<