source: patches/gcc-4.4.1-fixes-3.patch@ 8415b6e

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 8415b6e was 0cbb4b7, checked in by jim <jim@…>, 15 years ago

Updated GCC Patches

  • Property mode set to 100644
File size: 25.0 KB
  • boehm-gc/ia64_save_regs_in_stack.s

    Submitted By: Jim Gifford (jim at cross-lfs dot org)
    Date: 09-12-2009
    Initial Package Version: 4.4.1
    Origin: Upstream
    Upstream Status: Applied
    Description: This Patch contains fixes for gcc-4.4.1, and should be
                 rechecked periodically. These patches are not for inclusion in the book
                 but for testing purposes only. 
    
    diff -Naur gcc-4.4.1.orig/boehm-gc/ia64_save_regs_in_stack.s gcc-4.4.1/boehm-gc/ia64_save_regs_in_stack.s
    old new  
    1         .text
    2         .align 16
    3         .global GC_save_regs_in_stack
    4         .proc GC_save_regs_in_stack
    5 GC_save_regs_in_stack:
    6         .body
    7         flushrs
    8         ;;
    9         mov r8=ar.bsp
    10         br.ret.sptk.few rp
    11         .endp GC_save_regs_in_stack
    12 
  • boehm-gc/ia64_save_regs_in_stack.S

    diff -Naur gcc-4.4.1.orig/boehm-gc/ia64_save_regs_in_stack.S gcc-4.4.1/boehm-gc/ia64_save_regs_in_stack.S
    old new  
     1        .text
     2        .align 16
     3        .global GC_save_regs_in_stack
     4        .proc GC_save_regs_in_stack
     5GC_save_regs_in_stack:
     6        .body
     7        flushrs
     8        ;;
     9        mov r8=ar.bsp
     10        br.ret.sptk.few rp
     11        .endp GC_save_regs_in_stack
     12
     13#ifdef __linux__
     14        .section .note.GNU-stack,"",@progbits
     15#endif
  • boehm-gc/include/private/gc_locks.h

    diff -Naur gcc-4.4.1.orig/boehm-gc/include/private/gc_locks.h gcc-4.4.1/boehm-gc/include/private/gc_locks.h
    old new  
    139139#      define GC_TEST_AND_SET_DEFINED
    140140#    endif
    141141#    if defined(POWERPC)
    142 #     if 0 /* CPP_WORDSZ == 64  totally broken to use int locks with ldarx */
    143         inline static int GC_test_and_set(volatile unsigned int *addr) {
    144           unsigned long oldval;
    145           unsigned long temp = 1; /* locked value */
    146 
    147           __asm__ __volatile__(
    148                "1:\tldarx %0,0,%3\n"   /* load and reserve               */
    149                "\tcmpdi %0, 0\n"       /* if load is                     */
    150                "\tbne 2f\n"            /*   non-zero, return already set */
    151                "\tstdcx. %2,0,%1\n"    /* else store conditional         */
    152                "\tbne- 1b\n"           /* retry if lost reservation      */
    153                "\tsync\n"              /* import barrier                 */
    154                "2:\t\n"                /* oldval is zero if we set       */
    155               : "=&r"(oldval), "=p"(addr)
    156               : "r"(temp), "1"(addr)
    157               : "cr0","memory");
    158           return (int)oldval;
    159         }
     142#     define GC_TEST_AND_SET_DEFINED
     143#     define GC_CLEAR_DEFINED
     144#     if (__GNUC__>4)||((__GNUC__==4)&&(__GNUC_MINOR__>=4))
     145#       define GC_test_and_set(addr) __sync_lock_test_and_set (addr, 1)
     146#       define GC_clear(addr) __sync_lock_release (addr)
    160147#     else
    161148        inline static int GC_test_and_set(volatile unsigned int *addr) {
    162149          int oldval;
    163150          int temp = 1; /* locked value */
    164151
    165152          __asm__ __volatile__(
    166                "1:\tlwarx %0,0,%3\n"   /* load and reserve               */
     153               "\n1:\n"
     154               "\tlwarx %0,%y3\n"      /* load and reserve, 32-bits      */
    167155               "\tcmpwi %0, 0\n"       /* if load is                     */
    168156               "\tbne 2f\n"            /*   non-zero, return already set */
    169                "\tstwcx. %2,0,%1\n"    /* else store conditional         */
     157               "\tstwcx. %2,%y3\n"     /* else store conditional         */
    170158               "\tbne- 1b\n"           /* retry if lost reservation      */
    171159               "\tsync\n"              /* import barrier                 */
    172160               "2:\t\n"                /* oldval is zero if we set       */
    173               : "=&r"(oldval), "=p"(addr)
    174               : "r"(temp), "1"(addr)
     161              : "=&r"(oldval), "=m"(addr)
     162              : "r"(temp), "Z"(addr)
    175163              : "cr0","memory");
    176164          return oldval;
    177165        }
    178 #     endif
    179 #     define GC_TEST_AND_SET_DEFINED
    180166      inline static void GC_clear(volatile unsigned int *addr) {
    181167        __asm__ __volatile__("lwsync" : : : "memory");
    182168        *(addr) = 0;
    183169      }
    184 #     define GC_CLEAR_DEFINED
     170#    endif
    185171#    endif
    186172#    if defined(ALPHA)
    187173        inline static int GC_test_and_set(volatile unsigned int * addr)
  • gcc/config/alpha/linux-elf.h

    diff -Naur gcc-4.4.1.orig/gcc/config/alpha/linux-elf.h gcc-4.4.1/gcc/config/alpha/linux-elf.h
    old new  
    3939
    4040#define ELF_DYNAMIC_LINKER      LINUX_DYNAMIC_LINKER
    4141
    42 #define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax}          \
     42#define LINK_SPEC "-m elf64alpha --hash-style=both %{G*} %{relax:-relax}        \
    4343  %{O*:-O3} %{!O*:-O1}                                          \
    4444  %{shared:-shared}                                             \
    4545  %{!shared:                                                    \
  • gcc/config/i386/linux64.h

    diff -Naur gcc-4.4.1.orig/gcc/config/i386/linux64.h gcc-4.4.1/gcc/config/i386/linux64.h
    old new  
    7575#endif
    7676
    7777#undef  LINK_SPEC
    78 #define LINK_SPEC "%{" SPEC_64 ":-m elf_x86_64} %{" SPEC_32 ":-m elf_i386} \
     78#define LINK_SPEC "%{" SPEC_64 ":-m elf_x86_64} %{" SPEC_32 ":-m elf_i386} --hash-style=both \
    7979  %{shared:-shared} \
    8080  %{!shared: \
    8181    %{!static: \
  • gcc/config/i386/linux.h

    diff -Naur gcc-4.4.1.orig/gcc/config/i386/linux.h gcc-4.4.1/gcc/config/i386/linux.h
    old new  
    113113  { "dynamic_linker", LINUX_DYNAMIC_LINKER }
    114114
    115115#undef  LINK_SPEC
    116 #define LINK_SPEC "-m %(link_emulation) %{shared:-shared} \
     116#define LINK_SPEC "-m %(link_emulation) --hash-style=both %{shared:-shared} \
    117117  %{!shared: \
    118118    %{!ibcs: \
    119119      %{!static: \
  • gcc/config/ia64/crtbegin.asm

    diff -Naur gcc-4.4.1.orig/gcc/config/ia64/crtbegin.asm gcc-4.4.1/gcc/config/ia64/crtbegin.asm
    old new  
    252252.weak __cxa_finalize
    253253#endif
    254254.weak _Jv_RegisterClasses
     255
     256#ifdef __linux__
     257.section .note.GNU-stack; .previous
     258#endif
  • gcc/config/ia64/crtend.asm

    diff -Naur gcc-4.4.1.orig/gcc/config/ia64/crtend.asm gcc-4.4.1/gcc/config/ia64/crtend.asm
    old new  
    119119
    120120        br.ret.sptk.many rp
    121121        .endp __do_global_ctors_aux
     122
     123#ifdef __linux__
     124.section .note.GNU-stack; .previous
     125#endif
  • gcc/config/ia64/crti.asm

    diff -Naur gcc-4.4.1.orig/gcc/config/ia64/crti.asm gcc-4.4.1/gcc/config/ia64/crti.asm
    old new  
    5151        .body
    5252
    5353# end of crti.asm
     54
     55#ifdef __linux__
     56.section .note.GNU-stack; .previous
     57#endif
  • gcc/config/ia64/crtn.asm

    diff -Naur gcc-4.4.1.orig/gcc/config/ia64/crtn.asm gcc-4.4.1/gcc/config/ia64/crtn.asm
    old new  
    4141        br.ret.sptk.many b0
    4242
    4343# end of crtn.asm
     44
     45#ifdef __linux__
     46.section .note.GNU-stack; .previous
     47#endif
  • gcc/config/ia64/lib1funcs.asm

    diff -Naur gcc-4.4.1.orig/gcc/config/ia64/lib1funcs.asm gcc-4.4.1/gcc/config/ia64/lib1funcs.asm
    old new  
    793793        .endp __floattitf
    794794#endif
    795795#endif
     796
     797#ifdef __linux__
     798.section .note.GNU-stack; .previous
     799#endif
  • gcc/config/ia64/linux.h

    diff -Naur gcc-4.4.1.orig/gcc/config/ia64/linux.h gcc-4.4.1/gcc/config/ia64/linux.h
    old new  
    55
    66#define TARGET_VERSION fprintf (stderr, " (IA-64) Linux");
    77
     8#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
     9
    810/* This is for -profile to use -lc_p instead of -lc.  */
    911#undef CC1_SPEC
    1012#define CC1_SPEC "%{profile:-p} %{G*}"
     
    4042#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
    4143
    4244#undef LINK_SPEC
    43 #define LINK_SPEC "\
     45#define LINK_SPEC "--hash-style=both \
    4446  %{shared:-shared} \
    4547  %{!shared: \
    4648    %{!static: \
  • gcc/config/rs6000/linux64.h

    diff -Naur gcc-4.4.1.orig/gcc/config/rs6000/linux64.h gcc-4.4.1/gcc/config/rs6000/linux64.h
    old new  
    357357  CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER64)
    358358
    359359
    360 #define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux %{!shared: %{!static: \
     360#define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux --hash-style=both %{!shared: %{!static: \
    361361  %{rdynamic:-export-dynamic} \
    362362  %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER32 "}}}"
    363363
    364 #define LINK_OS_LINUX_SPEC64 "-m elf64ppc %{!shared: %{!static: \
     364#define LINK_OS_LINUX_SPEC64 "-m elf64ppc --hash-style=both %{!shared: %{!static: \
    365365  %{rdynamic:-export-dynamic} \
    366366  %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER64 "}}}"
    367367
  • gcc/config/rs6000/ppc-asm.h

    diff -Naur gcc-4.4.1.orig/gcc/config/rs6000/ppc-asm.h gcc-4.4.1/gcc/config/rs6000/ppc-asm.h
    old new  
    172172        .size FUNC_NAME(name),GLUE(.L,name)-FUNC_NAME(name)
    173173#endif
    174174
    175 #if defined __linux__ && !defined __powerpc64__
     175#if defined __linux__
    176176        .section .note.GNU-stack
    177177        .previous
    178178#endif
  • gcc/config/rs6000/sysv4.h

    diff -Naur gcc-4.4.1.orig/gcc/config/rs6000/sysv4.h gcc-4.4.1/gcc/config/rs6000/sysv4.h
    old new  
    911911#define LINUX_DYNAMIC_LINKER \
    912912  CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
    913913
    914 #define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
     914#define LINK_OS_LINUX_SPEC "-m elf32ppclinux --hash-style=both %{!shared: %{!static: \
    915915  %{rdynamic:-export-dynamic} \
    916916  %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}}}"
    917917
  • gcc/config/rs6000/t-linux64

    diff -Naur gcc-4.4.1.orig/gcc/config/rs6000/t-linux64 gcc-4.4.1/gcc/config/rs6000/t-linux64
    old new  
    1414# it doesn't tell anything about the 32bit libraries on those systems.  Set
    1515# MULTILIB_OSDIRNAMES according to what is found on the target.
    1616
    17 MULTILIB_OPTIONS        = m64/m32 msoft-float
     17MULTILIB_OPTIONS        = m64/m32
    1818MULTILIB_DIRNAMES       = 64 32 nof
    1919MULTILIB_EXTRA_OPTS     = fPIC mstrict-align
    20 MULTILIB_EXCEPTIONS     = m64/msoft-float
    21 MULTILIB_EXCLUSIONS     = m64/!m32/msoft-float
    22 MULTILIB_OSDIRNAMES     = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib) nof
    23 MULTILIB_MATCHES        = $(MULTILIB_MATCHES_FLOAT)
     20MULTILIB_EXCEPTIONS     =
     21MULTILIB_EXCLUSIONS     =
     22MULTILIB_OSDIRNAMES     = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
     23MULTILIB_MATCHES        =
    2424
    2525softfp_wrap_start := '\#ifndef __powerpc64__'
    2626softfp_wrap_end := '\#endif'
  • gcc/config/s390/linux.h

    diff -Naur gcc-4.4.1.orig/gcc/config/s390/linux.h gcc-4.4.1/gcc/config/s390/linux.h
    old new  
    7777
    7878#undef  LINK_SPEC
    7979#define LINK_SPEC \
    80   "%{m31:-m elf_s390}%{m64:-m elf64_s390} \
     80  "%{m31:-m elf_s390}%{m64:-m elf64_s390} --hash-style=both \
    8181   %{shared:-shared} \
    8282   %{!shared: \
    8383      %{static:-static} \
  • gcc/config/sparc/linux64.h

    diff -Naur gcc-4.4.1.orig/gcc/config/sparc/linux64.h gcc-4.4.1/gcc/config/sparc/linux64.h
    old new  
    121121  { "link_arch_default", LINK_ARCH_DEFAULT_SPEC },        \
    122122  { "link_arch",         LINK_ARCH_SPEC },
    123123
    124 #define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,%R/usr/lib %{shared:-shared} \
     124#define LINK_ARCH32_SPEC "-m elf32_sparc --hash-style=both -Y P,%R/usr/lib %{shared:-shared} \
    125125  %{!shared: \
    126126    %{!ibcs: \
    127127      %{!static: \
     
    130130        %{static:-static}}} \
    131131"
    132132
    133 #define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
     133#define LINK_ARCH64_SPEC "-m elf64_sparc --hash-style=both -Y P,%R/usr/lib64 %{shared:-shared} \
    134134  %{!shared: \
    135135    %{!ibcs: \
    136136      %{!static: \
     
    211211#else /* !SPARC_BI_ARCH */
    212212
    213213#undef LINK_SPEC
    214 #define LINK_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
     214#define LINK_SPEC "-m elf64_sparc --hash-style=both -Y P,%R/usr/lib64 %{shared:-shared} \
    215215  %{!shared: \
    216216    %{!ibcs: \
    217217      %{!static: \
  • gcc/config/sparc/linux.h

    diff -Naur gcc-4.4.1.orig/gcc/config/sparc/linux.h gcc-4.4.1/gcc/config/sparc/linux.h
    old new  
    8686#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
    8787
    8888#undef  LINK_SPEC
    89 #define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
     89#define LINK_SPEC "-m elf32_sparc --hash-style=both -Y P,/usr/lib %{shared:-shared} \
    9090  %{!mno-relax:%{!r:-relax}} \
    9191  %{!shared: \
    9292    %{!ibcs: \
  • gcc/graphite.c

    diff -Naur gcc-4.4.1.orig/gcc/graphite.c gcc-4.4.1/gcc/graphite.c
    old new  
    5959#include "cloog/cloog.h"
    6060#include "graphite.h"
    6161
     62#include <dlfcn.h>
     63#define DYNSYMS \
     64  DYNSYM (cloog_block_alloc); \
     65  DYNSYM (cloog_block_list_free); \
     66  DYNSYM (cloog_block_list_malloc); \
     67  DYNSYM (cloog_clast_create); \
     68  DYNSYM (cloog_clast_free); \
     69  DYNSYM (cloog_domain_free); \
     70  DYNSYM (cloog_domain_matrix2domain); \
     71  DYNSYM (cloog_initialize); \
     72  DYNSYM (cloog_loop_malloc); \
     73  DYNSYM (cloog_matrix_alloc); \
     74  DYNSYM (cloog_matrix_copy); \
     75  DYNSYM (cloog_matrix_free); \
     76  DYNSYM (cloog_matrix_print); \
     77  DYNSYM (cloog_names_malloc); \
     78  DYNSYM (cloog_names_scalarize); \
     79  DYNSYM (cloog_options_free); \
     80  DYNSYM (cloog_options_malloc); \
     81  DYNSYM (cloog_program_dump_cloog); \
     82  DYNSYM (cloog_program_extract_scalars); \
     83  DYNSYM (cloog_program_free); \
     84  DYNSYM (cloog_program_generate); \
     85  DYNSYM (cloog_program_malloc); \
     86  DYNSYM (cloog_program_print); \
     87  DYNSYM (cloog_program_scatter); \
     88  DYNSYM (cloog_statement_alloc); \
     89  DYNSYM (ppl_finalize); \
     90  DYNSYM (pprint); \
     91  DYNSYM (stmt_block); \
     92  DYNSYM (stmt_for); \
     93  DYNSYM (stmt_guard); \
     94  DYNSYM (stmt_root); \
     95  DYNSYM (stmt_user);
     96static struct
     97{
     98  bool inited;
     99  void *h;
     100#define DYNSYM(x) __typeof (x) *p_##x
     101  DYNSYMS
     102#undef DYNSYM
     103} cloog_pointers;
     104
     105#define cloog_block_alloc (*cloog_pointers.p_cloog_block_alloc)
     106#define cloog_block_list_free (*cloog_pointers.p_cloog_block_list_free)
     107#define cloog_block_list_malloc (*cloog_pointers.p_cloog_block_list_malloc)
     108#define cloog_clast_create (*cloog_pointers.p_cloog_clast_create)
     109#define cloog_clast_free (*cloog_pointers.p_cloog_clast_free)
     110#define cloog_domain_free (*cloog_pointers.p_cloog_domain_free)
     111#define cloog_domain_matrix2domain (*cloog_pointers.p_cloog_domain_matrix2domain)
     112#define cloog_initialize (*cloog_pointers.p_cloog_initialize)
     113#define cloog_loop_malloc (*cloog_pointers.p_cloog_loop_malloc)
     114#define cloog_matrix_alloc (*cloog_pointers.p_cloog_matrix_alloc)
     115#define cloog_matrix_copy (*cloog_pointers.p_cloog_matrix_copy)
     116#define cloog_matrix_free (*cloog_pointers.p_cloog_matrix_free)
     117#define cloog_matrix_print (*cloog_pointers.p_cloog_matrix_print)
     118#define cloog_names_malloc (*cloog_pointers.p_cloog_names_malloc)
     119#define cloog_names_scalarize (*cloog_pointers.p_cloog_names_scalarize)
     120#define cloog_options_free (*cloog_pointers.p_cloog_options_free)
     121#define cloog_options_malloc (*cloog_pointers.p_cloog_options_malloc)
     122#define cloog_program_dump_cloog (*cloog_pointers.p_cloog_program_dump_cloog)
     123#define cloog_program_extract_scalars (*cloog_pointers.p_cloog_program_extract_scalars)
     124#define cloog_program_free (*cloog_pointers.p_cloog_program_free)
     125#define cloog_program_generate (*cloog_pointers.p_cloog_program_generate)
     126#define cloog_program_malloc (*cloog_pointers.p_cloog_program_malloc)
     127#define cloog_program_print (*cloog_pointers.p_cloog_program_print)
     128#define cloog_program_scatter (*cloog_pointers.p_cloog_program_scatter)
     129#define cloog_statement_alloc (*cloog_pointers.p_cloog_statement_alloc)
     130#define ppl_finalize (*cloog_pointers.p_ppl_finalize)
     131#define pprint (*cloog_pointers.p_pprint)
     132#define stmt_block (*cloog_pointers.p_stmt_block)
     133#define stmt_for (*cloog_pointers.p_stmt_for)
     134#define stmt_guard (*cloog_pointers.p_stmt_guard)
     135#define stmt_root (*cloog_pointers.p_stmt_root)
     136#define stmt_user (*cloog_pointers.p_stmt_user)
     137
     138#define cloog_finalize (*cloog_pointers.p_ppl_finalize)
     139
     140static bool
     141init_cloog_pointers (void)
     142{
     143  void *h;
     144
     145  if (cloog_pointers.inited)
     146    return cloog_pointers.h != NULL;
     147  h = dlopen ("libcloog.so.0", RTLD_LAZY);
     148  cloog_pointers.h = h;
     149  if (h == NULL)
     150    return false;
     151#define DYNSYM(x) \
     152  do \
     153    { \
     154      union { __typeof (cloog_pointers.p_##x) p; void *q; } u; \
     155      u.q = dlsym (h, #x); \
     156      if (u.q == NULL) \
     157        return false; \
     158      cloog_pointers.p_##x = u.p; \
     159    } \
     160  while (0)
     161  DYNSYMS
     162#undef DYNSYM
     163  return true;
     164}
     165
    62166static VEC (scop_p, heap) *current_scops;
    63167
    64168/* Converts a GMP constant V to a tree and returns it.  */
     
    40754179   STMT.  */
    40764180
    40774181static tree
    4078 gcc_type_for_iv_of_clast_loop (struct clast_for *stmt_for)
     4182gcc_type_for_iv_of_clast_loop (struct clast_for *stmt_fora)
    40794183{
    4080   struct clast_user_stmt *stmt = clast_get_body_of_loop ((struct clast_stmt *) stmt_for);
    4081   const char *cloog_iv = stmt_for->iterator;
     4184  struct clast_user_stmt *stmt = clast_get_body_of_loop ((struct clast_stmt *) stmt_fora);
     4185  const char *cloog_iv = stmt_fora->iterator;
    40824186  CloogStatement *cs = stmt->statement;
    40834187  graphite_bb_p gbb = (graphite_bb_p) cloog_statement_usr (cs);
    40844188
     
    61096213  if (number_of_loops () <= 1)
    61106214    return;
    61116215
     6216  if (!init_cloog_pointers ())
     6217    {
     6218      sorry ("Graphite loop optimizations cannot be used");
     6219      return;
     6220    }
     6221
    61126222  current_scops = VEC_alloc (scop_p, heap, 3);
    61136223  recompute_all_dominators ();
    61146224
  • gcc/Makefile.in

    diff -Naur gcc-4.4.1.orig/gcc/Makefile.in gcc-4.4.1/gcc/Makefile.in
    old new  
    914914# How to link with both our special library facilities
    915915# and the system's installed libraries.
    916916LIBS = @LIBS@ $(CPPLIB) $(LIBINTL) $(LIBICONV) $(LIBIBERTY) $(LIBDECNUMBER)
    917 BACKENDLIBS = $(CLOOGLIBS) $(PPLLIBS) $(GMPLIBS)
     917BACKENDLIBS = $(GMPLIBS) $(if $(CLOOGLIBS),-ldl)
    918918# Any system libraries needed just for GNAT.
    919919SYSLIBS = @GNAT_LIBEXC@
    920920
     
    30613061        $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
    30623062                $(out_file) $(OUTPUT_OPTION)
    30633063
     3064graphite.o : \
     3065  ALL_CFLAGS := -O $(filter-out -fkeep-inline-functions, $(ALL_CFLAGS))
     3066
    30643067# Build auxiliary files that support ecoff format.
    30653068mips-tfile: mips-tfile.o version.o $(LIBDEPS)
    30663069        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ mips-tfile.o version.o $(LIBS)
  • libffi/src/ia64/unix.S

    diff -Naur gcc-4.4.1.orig/libffi/src/ia64/unix.S gcc-4.4.1/libffi/src/ia64/unix.S
    old new  
    553553        data8   @pcrel(.Lld_hfa_float)          // FFI_IA64_TYPE_HFA_FLOAT
    554554        data8   @pcrel(.Lld_hfa_double)         // FFI_IA64_TYPE_HFA_DOUBLE
    555555        data8   @pcrel(.Lld_hfa_ldouble)        // FFI_IA64_TYPE_HFA_LDOUBLE
     556
     557#if defined __ELF__ && defined __linux__
     558        .section        .note.GNU-stack,"",@progbits
     559#endif
  • libffi/src/powerpc/linux64_closure.S

    diff -Naur gcc-4.4.1.orig/libffi/src/powerpc/linux64_closure.S gcc-4.4.1/libffi/src/powerpc/linux64_closure.S
    old new  
    204204        .align 3
    205205.LEFDE1:
    206206#endif
     207
     208#if defined __ELF__ && defined __linux__
     209        .section        .note.GNU-stack,"",@progbits
     210#endif
  • libffi/src/powerpc/linux64.S

    diff -Naur gcc-4.4.1.orig/libffi/src/powerpc/linux64.S gcc-4.4.1/libffi/src/powerpc/linux64.S
    old new  
    179179        .align 3
    180180.LEFDE1:
    181181#endif
     182
     183#if defined __ELF__ && defined __linux__
     184        .section        .note.GNU-stack,"",@progbits
     185#endif
  • libgomp/omp.h.in

    diff -Naur gcc-4.4.1.orig/libgomp/omp.h.in gcc-4.4.1/libgomp/omp.h.in
    old new  
    3939
    4040typedef struct
    4141{
    42   unsigned char _x[@OMP_NEST_LOCK_SIZE@]
    43     __attribute__((__aligned__(@OMP_NEST_LOCK_ALIGN@)));
     42  unsigned char _x[8 + sizeof (void *)]
     43    __attribute__((__aligned__(sizeof (void *))));
    4444} omp_nest_lock_t;
    4545#endif
    4646
  • libjava/configure

    diff -Naur gcc-4.4.1.orig/libjava/configure gcc-4.4.1/libjava/configure
    old new  
    10211021                          default=yes
    10221022  --enable-java-maintainer-mode
    10231023                          allow rebuilding of .class and .h files
     1024  --enable-libjava-multilib
     1025                          build libjava as multilib
    10241026  --disable-dependency-tracking  speeds up one-time build
    10251027  --enable-dependency-tracking   do not reject slow dependency extractors
    10261028  --enable-maintainer-mode  enable make rules and dependencies not useful
     
    19731975fi
    19741976
    19751977
     1978# Check whether --enable-libjava-multilib was given.
     1979if test "${enable_libjava_multilib+set}" = set; then
     1980  enableval=$enable_libjava_multilib;
     1981fi
     1982
     1983if test "$enable_libjava_multilib" = no; then
     1984  multilib=no
     1985  ac_configure_args="$ac_configure_args --disable-multilib"
     1986fi
     1987
    19761988# It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
    19771989
    19781990
  • libjava/configure.ac

    diff -Naur gcc-4.4.1.orig/libjava/configure.ac gcc-4.4.1/libjava/configure.ac
    old new  
    139139        [allow rebuilding of .class and .h files]))
    140140AM_CONDITIONAL(JAVA_MAINTAINER_MODE, test "$enable_java_maintainer_mode" = yes)
    141141
     142AC_ARG_ENABLE(libjava-multilib,
     143        AS_HELP_STRING([--enable-libjava-multilib], [build libjava as multilib]))
     144if test "$enable_libjava_multilib" = no; then
     145  multilib=no
     146  ac_configure_args="$ac_configure_args --disable-multilib"
     147fi
     148
    142149# It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
    143150GCC_NO_EXECUTABLES
    144151
  • ltmain.sh

    diff -Naur gcc-4.4.1.orig/ltmain.sh gcc-4.4.1/ltmain.sh
    old new  
    68866886          rpath="$finalize_rpath"
    68876887          test "$mode" != relink && rpath="$compile_rpath$rpath"
    68886888          for libdir in $rpath; do
     6889            case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
    68896890            if test -n "$hardcode_libdir_flag_spec"; then
    68906891              if test -n "$hardcode_libdir_separator"; then
    68916892                if test -z "$hardcode_libdirs"; then
     
    75757576      rpath=
    75767577      hardcode_libdirs=
    75777578      for libdir in $compile_rpath $finalize_rpath; do
     7579        case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
    75787580        if test -n "$hardcode_libdir_flag_spec"; then
    75797581          if test -n "$hardcode_libdir_separator"; then
    75807582            if test -z "$hardcode_libdirs"; then
     
    76267628      rpath=
    76277629      hardcode_libdirs=
    76287630      for libdir in $finalize_rpath; do
     7631        case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
    76297632        if test -n "$hardcode_libdir_flag_spec"; then
    76307633          if test -n "$hardcode_libdir_separator"; then
    76317634            if test -z "$hardcode_libdirs"; then
  • src/boehm-gc/ia64_save_regs_in_stack.S

    diff -Naur gcc-4.4.1.orig/src/boehm-gc/ia64_save_regs_in_stack.S gcc-4.4.1/src/boehm-gc/ia64_save_regs_in_stack.S
    old new  
     1        .text
     2        .align 16
     3        .global GC_save_regs_in_stack
     4        .proc GC_save_regs_in_stack
     5GC_save_regs_in_stack:
     6        .body
     7        flushrs
     8        ;;
     9        mov r8=ar.bsp
     10        br.ret.sptk.few rp
     11        .endp GC_save_regs_in_stack
     12
     13#ifdef __linux__
     14        .section .note.GNU-stack,"",@progbits
     15#endif
Note: See TracBrowser for help on using the repository browser.