source: patches/gcc-4.1.1-pure64-1.patch@ aec544d

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since aec544d was 89d1048, checked in by Jim Gifford <clfs@…>, 19 years ago

Updated to GCC 4.1.1 patches

  • Property mode set to 100644
File size: 6.4 KB
  • gcc/config/i386/linux64.h

    Submitted By: Jim Gifford (patches at jg555 dot com)
    Date: 2005-08-27
    Initial Package Version: 4.x
    Origin: Ken Moffat and Jim Gifford
            Rediffed against 4.1.0 by Chris Staub
    Upstream Status: LFS Specific
    Description: Make LIB64 builds in /lib instead of /lib64 
    
    diff -Naur gcc-4.1.0.orig/gcc/config/i386/linux64.h gcc-4.1.0/gcc/config/i386/linux64.h
    old new  
    6060  %{!shared: \
    6161    %{!static: \
    6262      %{rdynamic:-export-dynamic} \
    63       %{m32:%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
    64       %{!m32:%{!dynamic-linker:-dynamic-linker /lib64/ld-linux-x86-64.so.2}}} \
     63      %{m32:%{!dynamic-linker:-dynamic-linker /lib32/ld-linux.so.2}} \
     64      %{!m32:%{!dynamic-linker:-dynamic-linker /lib/ld-linux-x86-64.so.2}}} \
    6565    %{static:-static}}"
    6666
    6767/* Similar to standard Linux, but adding -ffast-math support.  */
  • gcc/config/i386/t-linux64

    diff -Naur gcc-4.1.0.orig/gcc/config/i386/t-linux64 gcc-4.1.0/gcc/config/i386/t-linux64
    old new  
    66
    77MULTILIB_OPTIONS = m64/m32
    88MULTILIB_DIRNAMES = 64 32
    9 MULTILIB_OSDIRNAMES = ../lib64 ../lib
     9MULTILIB_OSDIRNAMES = ../lib ../lib32
    1010
    1111LIBGCC = stmp-multilib
    1212INSTALL_LIBGCC = install-multilib
  • gcc/config/mips/linux64.h

    diff -Naur gcc-4.1.0.orig/gcc/config/mips/linux64.h gcc-4.1.0/gcc/config/mips/linux64.h
    old new  
    4747      %{!static: \
    4848        %{rdynamic:-export-dynamic} \
    4949        %{!dynamic-linker: \
    50           %{mabi=n32: -dynamic-linker /lib32/ld.so.1} \
    51           %{mabi=64: -dynamic-linker /lib64/ld.so.1} \
    52           %{mabi=32: -dynamic-linker /lib/ld.so.1}}} \
     50          %{mabi=n32: -dynamic-linker /lib64/ld.so.1} \
     51          %{mabi=64: -dynamic-linker /lib/ld.so.1} \
     52          %{mabi=32: -dynamic-linker /lib32/ld.so.1}}} \
    5353      %{static:-static}}} \
    5454%{mabi=n32:-melf32%{EB:b}%{EL:l}tsmipn32} \
    5555%{mabi=64:-melf64%{EB:b}%{EL:l}tsmip} \
  • gcc/config/mips/t-linux64

    diff -Naur gcc-4.1.0.orig/gcc/config/mips/t-linux64 gcc-4.1.0/gcc/config/mips/t-linux64
    old new  
    11MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi=64
    22MULTILIB_DIRNAMES = n32 32 64
    3 MULTILIB_OSDIRNAMES = ../lib32 ../lib ../lib64
     3MULTILIB_OSDIRNAMES = ../lib64 ../lib32 ../lib
    44
    55EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o
    66
  • gcc/config/rs6000/linux64.h

    diff -Naur gcc-4.1.0.orig/gcc/config/rs6000/linux64.h gcc-4.1.0/gcc/config/rs6000/linux64.h
    old new  
    339339
    340340#define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux %{!shared: %{!static: \
    341341  %{rdynamic:-export-dynamic} \
    342   %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
     342  %{!dynamic-linker:-dynamic-linker /lib32/ld.so.1}}}"
    343343
    344344#define LINK_OS_LINUX_SPEC64 "-m elf64ppc %{!shared: %{!static: \
    345345  %{rdynamic:-export-dynamic} \
    346   %{!dynamic-linker:-dynamic-linker /lib64/ld64.so.1}}}"
     346  %{!dynamic-linker:-dynamic-linker /lib/ld64.so.1}}}"
    347347
    348348#undef  TOC_SECTION_ASM_OP
    349349#define TOC_SECTION_ASM_OP \
  • gcc/config/rs6000/t-linux64

    diff -Naur gcc-4.1.0.orig/gcc/config/rs6000/t-linux64 gcc-4.1.0/gcc/config/rs6000/t-linux64
    old new  
    1111MULTILIB_EXTRA_OPTS     = fPIC mstrict-align
    1212MULTILIB_EXCEPTIONS     = m64/msoft-float
    1313MULTILIB_EXCLUSIONS     = m64/!m32/msoft-float
    14 MULTILIB_OSDIRNAMES     = ../lib64 ../lib nof
     14MULTILIB_OSDIRNAMES     = ../lib ../lib32 nof
    1515MULTILIB_MATCHES        = $(MULTILIB_MATCHES_FLOAT)
    1616
    1717# We want fine grained libraries, so use the new code to build the
  • gcc/config/sparc/linux64.h

    diff -Naur gcc-4.1.0.orig/gcc/config/sparc/linux64.h gcc-4.1.0/gcc/config/sparc/linux64.h
    old new  
    162162  { "link_arch_default", LINK_ARCH_DEFAULT_SPEC },        \
    163163  { "link_arch",         LINK_ARCH_SPEC },
    164164   
    165 #define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
     165#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib32 %{shared:-shared} \
    166166  %{!shared: \
    167167    %{!ibcs: \
    168168      %{!static: \
    169169        %{rdynamic:-export-dynamic} \
    170         %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
     170        %{!dynamic-linker:-dynamic-linker /lib32/ld-linux.so.2}} \
    171171        %{static:-static}}} \
    172172"
    173173
    174 #define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
     174#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/usr/lib %{shared:-shared} \
    175175  %{!shared: \
    176176    %{!ibcs: \
    177177      %{!static: \
    178178        %{rdynamic:-export-dynamic} \
    179         %{!dynamic-linker:-dynamic-linker /lib64/ld-linux.so.2}} \
     179        %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
    180180        %{static:-static}}} \
    181181"
    182182
     
    252252#else /* !SPARC_BI_ARCH */
    253253
    254254#undef LINK_SPEC
    255 #define LINK_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
     255#define LINK_SPEC "-m elf64_sparc -Y P,/usr/lib %{shared:-shared} \
    256256  %{!shared: \
    257257    %{!ibcs: \
    258258      %{!static: \
    259259        %{rdynamic:-export-dynamic} \
    260         %{!dynamic-linker:-dynamic-linker /lib64/ld-linux.so.2}} \
     260        %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
    261261        %{static:-static}}} \
    262262%{mlittle-endian:-EL} \
    263263%{!mno-relax:%{!r:-relax}} \
  • gcc/config/sparc/t-linux64

    diff -Naur gcc-4.1.0.orig/gcc/config/sparc/t-linux64 gcc-4.1.0/gcc/config/sparc/t-linux64
    old new  
    11MULTILIB_OPTIONS = m64/m32
    22MULTILIB_DIRNAMES = 64 32
    3 MULTILIB_OSDIRNAMES = ../lib64 ../lib
     3MULTILIB_OSDIRNAMES = ../lib ../lib32
    44
    55LIBGCC = stmp-multilib
    66INSTALL_LIBGCC = install-multilib
     
    1616
    1717CRTSTUFF_T_CFLAGS = `if test x$$($(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) \
    1818                                 -print-multi-os-directory) \
    19                         = x../lib64; then echo -mcmodel=medany; fi`
     19                        = x../lib; then echo -mcmodel=medany; fi`
Note: See TracBrowser for help on using the repository browser.