source: patches/gcc-4.2.2-PR31490-1.patch@ 0f9d1e9

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 0f9d1e9 was 99ccd00, checked in by Ken Moffat <zarniwhoop@…>, 17 years ago

Let gcc-4.2.2 build a ppc64 kernel.

  • Property mode set to 100644
File size: 1.3 KB
  • gcc/varasm.c

    Submitted By: Ken Moffat <zarniwhoop @ ntlworld dot com>
    Date: 2008-01-06
    Initial Package Version: 4.2.2
    Upstream Status: Kicking around in bugzilla, apparently nobody cares.
    Origin: Dinar Temirbulatov
    Description: Allows gcc-4.2 to compile a modular kernel on ppc64.  Rediffed
     to apply with -p1.
    
    diff -Naur gcc-4.2.2/gcc/varasm.c gcc-4.2.2-PR31490/gcc/varasm.c
    old new  
    54525452             be read-only or not, but whether the dynamic link will have to
    54535453             do something.  If so, we wish to segregate the data in order to
    54545454             minimize cache misses inside the dynamic linker.  */
    5455           if (reloc & targetm.asm_out.reloc_rw_mask ())
     5455          if (reloc & targetm.asm_out.reloc_rw_mask ()
     5456              && !lookup_attribute ("section", DECL_ATTRIBUTES (decl)))
    54565457            ret = reloc == 1 ? SECCAT_DATA_REL_LOCAL : SECCAT_DATA_REL;
    54575458          else
    54585459            ret = SECCAT_DATA;
    54595460        }
    5460       else if (reloc & targetm.asm_out.reloc_rw_mask ())
     5461      else if (reloc & targetm.asm_out.reloc_rw_mask ()
     5462              && !lookup_attribute ("section", DECL_ATTRIBUTES (decl)))
    54615463        ret = reloc == 1 ? SECCAT_DATA_REL_RO_LOCAL : SECCAT_DATA_REL_RO;
    54625464      else if (reloc || flag_merge_constants < 2)
    54635465        /* C and C++ don't allow different variables to share the same
Note: See TracBrowser for help on using the repository browser.